Nuclide
Software Development Kit for id Tech
entityDef.qc File Reference

Functions

void EntityDef_ReadFile (string filePath)
 
void EntityDef_Init (void)
 
string EntityDef_GetKeyValue (string className, string keyName)
 Retrieves the value of a specific key defined within an EntityDef. More...
 
bool EntityDef_Precache (string defName)
 
NSEntity EntityDef_SpawnClassname (string className)
 When called will turn the entity 'self' into the specified classname. More...
 
NSEntity EntityDef_SwitchClass (NSEntity target, string className)
 
NSEntity EntityDef_CreateClassname (string className)
 Spawns an entity of a specific class. More...
 
NSEntity Entity_CreateClass (string className)
 Always returns a valid entity. More...
 
bool EntityDef_HasSpawnClass (string className)
 Checks if an entity class was defined in an EntityDef. More...
 
void EntityDef_DebugList (void)
 
int ourCRC (string name)
 
int EntityDef_NetIDFromName (string defName)
 
int EntityDef_IDFromName (string defName)
 
string EntityDef_NameFromNetID (int defNum)
 
string EntityDef_GetSpawnData (int defNum)
 

Function Documentation

◆ EntityDef_CreateClassname()

NSEntity EntityDef_CreateClassname ( string  className)

Spawns an entity of a specific class.

If class doesn't exist, returns NULL.

Parameters
classNameis the type of class to be instantiated.

◆ EntityDef_ReadFile()

void EntityDef_ReadFile ( string  filePath)

◆ EntityDef_SpawnClassname()

NSEntity EntityDef_SpawnClassname ( string  className)

When called will turn the entity 'self' into the specified classname.

This is useful for entities that are already in the game, and need to transition into a different type of entity.

Parameters
classNameis the type of class to be changed to.

◆ ourCRC()

int ourCRC ( string  name)