Nuclide
Software Development Kit for id Tech
NSEntity.h File Reference

Go to the source code of this file.

Classes

class  NSEntity
 NSEntity is the lowest of the user-accessible entity class. More...
 

Functions

NSEntity spawnClass (string className, vector desiredPos)
 Returns a new entity. More...
 
bool changeClass (entity target, string className) void sendInput(entity target
 
bool isAI (entity entityToCheck)
 
bool isAlive (entity entityToCheck)
 
bool isGodMode (entity entityToCheck)
 
bool isClient (entity entityToCheck)
 
bool isPlayer (entity entityToCheck)
 
bool isSentient (entity entityToCheck)
 
bool isBot (entity entityToCheck)
 
bool isItem (entity entityToCheck)
 
bool isWeapon (entity entityToCheck)
 

Variables

typedef enumflags
 Bitfield enumeration for NSEntity its SendFlags field. More...
 
bool string inputName
 
bool string string dataString
 
bool string string entity activator
 

Function Documentation

◆ changeClass()

bool changeClass ( entity  target,
string  className 
)

◆ isAI()

bool isAI ( entity  entityToCheck)

◆ isAlive()

bool isAlive ( entity  entityToCheck)

◆ isBot()

bool isBot ( entity  entityToCheck)

◆ isClient()

bool isClient ( entity  entityToCheck)

◆ isGodMode()

bool isGodMode ( entity  entityToCheck)

◆ isItem()

bool isItem ( entity  entityToCheck)

◆ isPlayer()

bool isPlayer ( entity  entityToCheck)

◆ isSentient()

bool isSentient ( entity  entityToCheck)

◆ isWeapon()

bool isWeapon ( entity  entityToCheck)

◆ spawnClass()

NSEntity spawnClass ( string  className,
vector  desiredPos 
)

Returns a new entity.

Guaranteed to be something. Never NULL unless we're seriously out of memory.

Variable Documentation

◆ activator

bool string string entity activator

◆ dataString

bool string string dataString

◆ enumflags

typedef enumflags
Initial value:
{
BASEFL_CHANGED_MODELINDEX,
BASEFL_CHANGED_ORIGIN_X,
BASEFL_CHANGED_ORIGIN_Y,
BASEFL_CHANGED_ORIGIN_Z,
BASEFL_CHANGED_ANGLES_X,
BASEFL_CHANGED_ANGLES_Y,
BASEFL_CHANGED_ANGLES_Z,
BASEFL_CHANGED_VELOCITY_X,
BASEFL_CHANGED_VELOCITY_Y,
BASEFL_CHANGED_VELOCITY_Z,
BASEFL_CHANGED_ANGULARVELOCITY,
BASEFL_CHANGED_SIZE,
BASEFL_CHANGED_FLAGS,
BASEFL_CHANGED_SOLID,
BASEFL_CHANGED_FRAME,
BASEFL_CHANGED_SKIN,
BASEFL_CHANGED_MOVETYPE,
BASEFL_CHANGED_EFFECTS,
BASEFL_CHANGED_SCALE,
} nsentity_changed_t

Bitfield enumeration for NSEntity its SendFlags field.

These give hint as to which internal fields get networked to the client.

◆ inputName

bool string inputName