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...
 
void sendInput (entity target, string inputName, string dataString, entity activator)
 Sends an input (See NSIO::Input) to an entity. More...
 
bool isAI (entity entityToCheck)
 Returns true/false depending on if the entity is an AI character. More...
 
bool isAlive (entity entityToCheck)
 Returns true/false depending on if the entity is alive. More...
 
bool isGodMode (entity entityToCheck)
 Returns true/false depending on if the entity is in "god" mode. More...
 
bool isPlayer (entity entityToCheck)
 Returns true/false depending on if the entity is a player. More...
 
bool isSentient (entity entityToCheck)
 Returns true/false depending on if the entity is either a player, or AI character. More...
 
bool isBot (entity entityToCheck)
 Returns true/false depending on if the entity is a bot. More...
 

Variables

typedef enumflags
 Bitfield enumeration for NSEntity its SendFlags field. More...
 

Variable Documentation

◆ 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.