24 BASEFL_CHANGED_MODELINDEX,
25 BASEFL_CHANGED_ORIGIN_X,
26 BASEFL_CHANGED_ORIGIN_Y,
27 BASEFL_CHANGED_ORIGIN_Z,
28 BASEFL_CHANGED_ANGLES_X,
29 BASEFL_CHANGED_ANGLES_Y,
30 BASEFL_CHANGED_ANGLES_Z,
31 BASEFL_CHANGED_VELOCITY_X,
32 BASEFL_CHANGED_VELOCITY_Y,
33 BASEFL_CHANGED_VELOCITY_Z,
34 BASEFL_CHANGED_ANGULARVELOCITY,
40 BASEFL_CHANGED_MOVETYPE,
41 BASEFL_CHANGED_EFFECTS,
76 virtual void SpawnKey(
string,
string);
89 virtual bool CanSpawn(
bool clientSide);
93 virtual void Input(entity,
string,
string);
94 virtual void Save(
float);
95 virtual void Restore(
string,
string);
142 nonvirtual
void SetSkin(
float);
180 nonvirtual
void SetSize(vector,vector);
191 nonvirtual
void TurnTo(
float);
214 nonvirtual
float GetSkin(
void);
238 nonvirtual vector
GetMins(
void);
240 nonvirtual vector
GetMaxs(
void);
283 nonvirtual
void Show(
void);
285 nonvirtual
void Hide(
void);
309 nonvirtual vector
GetUp(
void);
324 nonvirtual
bool Visible(entity);
347 nonvirtual
bool StartSound(
string,
float,
float,
bool);
375 nonvirtual
void Transport(vector, vector);
378 nonvirtual
void Relink(
void);
399 vector m_vecEditorColor;
419 string m_parent_attachment;
426 nonvirtual
bool _ProjectileAttack(
string,
bool);
433void sendInput(entity
target,
string inputName,
string dataString, entity activator);
435bool isAI(entity entityToCheck);
437bool isAlive(entity entityToCheck);
445bool isBot(entity entityToCheck);
typedef enumflags
Bitfield enumeration for NSEntity its SendFlags field.
Definition: NSEntity.h:23
NSEntity is the lowest of the user-accessible entity class.
Definition: NSEntity.h:54
nonvirtual void ScheduleThink(void(void), float)
Schedules a think timer.
Definition: NSEntity.qc:738
nonvirtual vector GetOrigin(void)
Returns the absolute world position of the entity.
Definition: NSEntity.qc:815
nonvirtual void SetOrigin(vector)
Sets the absolute 3D world position of the entity.
Definition: NSEntity.qc:637
nonvirtual bool Visible(entity)
Returns if the entity is visible by another entity and a field of view of 90 degrees.
Definition: NSEntity.qc:116
nonvirtual void Destroy(void)
When called, will remove the entity from the game entirely.
Definition: NSEntity.qc:1150
nonvirtual vector GetRealMins(void)
Returns the actual bounding box mins of the entity, before having been affected by scale modifiers.
Definition: NSEntity.qc:833
nonvirtual vector GetRight(void)
Returns a normalized right vector of the entity to more easily test what's right next to it.
Definition: NSEntity.qc:74
nonvirtual void SetTouch(void())
Overrides the touch function of a the entity to the specified function.
Definition: NSEntity.qc:490
nonvirtual bool IsThinking(void)
Returns whether or not we're currently expecting to think any time soon.
Definition: NSEntity.qc:887
nonvirtual float EntIndex(void)
Returns the unique entity id of the entity.
Definition: NSEntity.qc:56
nonvirtual void SetOriginUnstick(vector)
Same as SetOrigin(), but will push the entity out the ground if needed.
Definition: NSEntity.qc:642
nonvirtual float HasVFlags(float)
Returns true if the entity has the specified, nuclide specific, flags.
Definition: NSEntity.qc:875
nonvirtual void AddVFlags(float)
Adds one or more nuclide specific flags to the entity.
Definition: NSEntity.qc:699
virtual void MakeStatic(void)
Tells the engine to make the entity static, effectively making it inaccessible.
Definition: NSEntity.qc:1190
virtual void ParentUpdate(void)
Called when we need to re-align the entity to our parent entity.
nonvirtual void ReleaseThink(void)
When called, will unset anything related to ongoing think operations.
Definition: NSEntity.qc:893
nonvirtual void SetSize(vector, vector)
Sets the bounding box size of the entity.
Definition: NSEntity.qc:622
nonvirtual float GetFlags(void)
Returns an engine flags bitfield that the entity associates with.
Definition: NSEntity.qc:857
nonvirtual void Disappear(void)
When called it'll make the entity uninteractable (but not destroy it).
Definition: NSEntity.qc:1183
virtual bool AttackByDef(string, bool)
Will read from the named def to perform an attack.
Definition: NSEntity.qc:1443
nonvirtual float GetSkin(void)
Returns the currently equipped skin of the entity.
Definition: NSEntity.qc:754
virtual void Restore(string, string)
Similar to NSIO::SpawnKey but for save-game fields.
Definition: NSEntity.qc:945
nonvirtual void Transport(vector, vector)
Move the entity to a new position, with updated angles.
Definition: NSEntity.qc:1322
nonvirtual float GetNextThinkTime(void)
Returns an absolute value of when the entity will be think again.
Definition: NSEntity.qc:881
nonvirtual float GetScale(void)
Returns the scale modifier of the entity.
Definition: NSEntity.qc:759
nonvirtual vector GetAbsoluteMins(void)
Returns the absolute bounding box mins of the entity, instead of being relative to the world position...
Definition: NSEntity.qc:845
nonvirtual bool IsFacing(entity)
Returns either true or false depending on if this entity is facing the entity in question.
Definition: NSEntity.qc:1296
nonvirtual void SetNextThink(float)
Sets the next think timer of the entity.
Definition: NSEntity.qc:724
nonvirtual bool DropToFloor(void)
When called, will drop the entity down onto the surface it's hovering over.
Definition: NSEntity.qc:62
nonvirtual void UseBy(entity)
Simulates the press of the use/activate key, with the passed entity being the activator.
nonvirtual bool IsOnGround(void)
Returns if the entity is aligned to the ground.
Definition: NSEntity.qc:145
nonvirtual void TurnTo(float)
Turns to the specified angle.
Definition: NSEntity.qc:709
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: NSEntity.qc:916
nonvirtual float GetMovetype(void)
Returns the movement type of the entity.
Definition: NSEntity.qc:791
nonvirtual void SetOwner(entity)
Sets the owner of the entity.
Definition: NSEntity.qc:478
nonvirtual void SetAngularVelocity(vector)
Sets the angular velocity of the entity in degrees per second on each axis.
Definition: NSEntity.qc:616
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition: NSEntity.qc:994
nonvirtual vector GetAngularVelocity(void)
Returns the direction the entity is spinning in degrees per second for each axis.
Definition: NSEntity.qc:809
nonvirtual void AddFlags(float)
Adds one or more engine specific flags to the entity.
Definition: NSEntity.qc:688
nonvirtual float GetGravity(void)
Returns the gravity modifier of the entity.
Definition: NSEntity.qc:797
nonvirtual vector GetViewAngle(void)
Returns an euler angle of where the entity is 'looking' at.
Definition: NSEntity.qc:535
nonvirtual void SetGravity(float)
Sets the gravitational modifier of the entity.
Definition: NSEntity.qc:513
nonvirtual float GetSpawnAge(void)
Returns the time that's passed since the entity has been spawned.
Definition: NSEntity.qc:1310
nonvirtual bool StartSoundDef(string, float, bool)
Plays a soundDef on the entity.
Definition: NSEntity.qc:1251
nonvirtual float GetSolid(void)
Returns the collision type of the entity.
Definition: NSEntity.qc:774
nonvirtual void RemoveEffects(effects_t)
Removes one or more effects from the entity.
Definition: NSEntity.qc:682
nonvirtual vector GetMins(void)
Returns the bounding box mins of the entity.
Definition: NSEntity.qc:821
virtual float predraw(void)
Definition: NSEntity.qc:176
nonvirtual vector GetForward(void)
Returns a normalized forward vector of the entity to more easily test which way it's facing.
Definition: NSEntity.qc:68
virtual void postdraw(void)
Client: Run after the rendering of 3D world is complete.
Definition: NSEntity.qc:236
virtual void EvaluateEntity(void)
Run each tic after physics are run to determine if we need to send updates over the network.
nonvirtual bool HasSpawnFlags(float)
Returns if the entity has any spawnflags set.
Definition: NSEntity.qc:139
nonvirtual void SetSkin(float)
Sets the skingroup of the entity.
Definition: NSEntity.qc:472
nonvirtual vector GetVelocity(void)
Returns the movement velocity of the entity.
Definition: NSEntity.qc:769
nonvirtual void AddVelocity(vector)
Adds onto the existing velocity.
Definition: NSEntity.qc:671
nonvirtual void SetSendFlags(float)
Overrides the field that's used to determine which information should be networked.
Definition: NSEntity.qc:499
nonvirtual void ClearVelocity(void)
When called, will clear anything related to physical movement on the entity.
Definition: NSEntity.qc:909
nonvirtual void SetSolid(float)
Sets the collision type of the entity.
Definition: NSEntity.qc:519
nonvirtual int GetSharedID(void)
Returns a unique id between shared entities.
Definition: NSEntity.qc:1465
nonvirtual void ForceNetworkUpdate(void)
Forces the entity to re-network updates to all clients.
nonvirtual void SetMovetype(float)
Sets the movement type of the entity.
Definition: NSEntity.qc:507
virtual void RendererRestarted(void)
Client: Called when video resources need to be allocated or reloaded for the entity.
Definition: NSEntity.qc:170
nonvirtual void SetBotTag(botInfo_t)
Sets the Info Tags tag on this entity to the desired botInfo_t tag.
Definition: NSEntity.qc:1457
nonvirtual string GetModel(void)
Returns the name of the 3D model representation of the entity.
Definition: NSEntity.qc:779
void NSEntity(void)
The constructor.
Definition: NSEntity.qc:29
nonvirtual vector GetEyePos(void)
Returns the absolute world position of where the eyes are located.
Definition: NSEntity.qc:553
nonvirtual float HasFlags(float)
Returns true if the entity has the specified engine flags.
Definition: NSEntity.qc:869
nonvirtual void StopSound(float, bool)
Stops a sound sample or soundDef that is playing on the given channel.
Definition: NSEntity.qc:1259
virtual void OnRemoveEntity(void)
Handles what happens before the entity gets removed from the client game.
Definition: NSEntity.qc:1145
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: NSEntity.qc:1082
nonvirtual vector GetMaxs(void)
Returns the bounding box maxs of the entity.
Definition: NSEntity.qc:827
nonvirtual bool IsHidden(void)
Returns if the entity is currently being hidden explicitly.
Definition: NSEntity.qc:1177
nonvirtual vector GetNearbySpot(void)
Finds a free spot of an entity near itself of same size.
Definition: NSEntity.qc:1344
nonvirtual void SetModelindex(float)
Sets the 3D model representation of the entity from an already precached resource id.
Definition: NSEntity.qc:656
nonvirtual void SetThink(void())
Overrides the Think function of the entity.
Definition: NSEntity.qc:719
virtual float SendEntity(entity, float)
Called by the engine whenever we need to send a client an update about this entity.
nonvirtual float GetEffects(void)
Returns a bitfield of the active effects running on the entity.
Definition: NSEntity.qc:744
nonvirtual float WaterLevel(void)
Returns the water level the entity is in.
Definition: NSEntity.qc:92
nonvirtual void UpdateBounds(void)
Call this if you want to update bounding boxes to take angles into account.
Definition: NSEntity.qc:564
nonvirtual void SetEyePos(vector)
Sets the relative position of the eyes.
Definition: NSEntity.qc:546
nonvirtual void AddEffects(effects_t)
Appends one or more effects to the entity.
Definition: NSEntity.qc:677
nonvirtual void SetEffects(float)
Sets the whole effects field.
Definition: NSEntity.qc:424
nonvirtual vector GetAngles(void)
Returns the direction the entity is facing in euler angles.
Definition: NSEntity.qc:803
nonvirtual float GetSpawnTime(void)
Returns the absolute timestamp of when the entity had been spawned.
Definition: NSEntity.qc:1316
nonvirtual void RestoreAngles(void)
Restore the entity's angles to the value the spawndata contains.
nonvirtual bool IsFacingPosition(vector)
Returns either true or false depending on if this entity is facing a position in question.
Definition: NSEntity.qc:1303
nonvirtual bool WithinBounds(entity)
Returns whether or not we are fully within the bounds of a given entity.
Definition: NSEntity.qc:1202
virtual void DebugDraw(void)
nonvirtual vector GetRealMaxs(void)
Returns the actual bounding box maxs of the entity, before having been affected by scale modifiers.
Definition: NSEntity.qc:839
virtual void ReceiveEntity(float, float)
Client: Handles network updates from the server for the associated entity.
Definition: NSEntity.qc:187
nonvirtual float GetFrame(void)
Returns the currently active framegroup of the entity.
Definition: NSEntity.qc:749
nonvirtual void RemoveFlags(float)
Remove one or more engine specific flags from the entity.
Definition: NSEntity.qc:693
nonvirtual void SetFrame(float)
Sets the framegroup sequence of the entity.
Definition: NSEntity.qc:430
virtual bool CanSpawn(bool clientSide)
Returns if this entity can spawned from the map file.
Definition: NSEntity.qc:1196
nonvirtual vector GetAbsoluteMaxs(void)
Returns the absolute bounding box maxs of the entity, instead of being relative to the world position...
Definition: NSEntity.qc:851
nonvirtual void SetParent(string)
Call this to parent the entity to another entity.
nonvirtual void Hide(void)
When called, the entity will stop being rendered on the client.
Definition: NSEntity.qc:1171
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: NSEntity.qc:926
nonvirtual void ThinkBusy(float)
When called, will make the entity think busy for the specified amount of time.
Definition: NSEntity.qc:900
virtual void Spawned(void)
Called when the entity is fulled initialized.
Definition: NSEntity.qc:37
nonvirtual vector WorldSpaceCenter(void)
Returns absolute world coordinates of the center of the entity according to its pivot point.
Definition: NSEntity.qc:86
nonvirtual bool CreatedByMap(void)
Returns if the entity was spawned by the map we're on.
Definition: NSEntity.qc:163
nonvirtual void RemoveVFlags(float)
Remove one or more nuclide specific flags from the entity.
Definition: NSEntity.qc:704
nonvirtual vector NearestWallPointForRadius(float)
Returns the nearest point on a wall of this entity within a specified radius.
Definition: NSEntity.qc:1276
nonvirtual entity GetOwner(void)
Returns the owner of the entity.
Definition: NSEntity.qc:764
nonvirtual void SetScale(float)
Sets the scale of the entity.
Definition: NSEntity.qc:525
nonvirtual void SetParentAttachment(string)
Call this to parent the entity to an attachment of another entity.
nonvirtual float GetModelindex(void)
Returns the model id of the 3D model representation of the entity.
Definition: NSEntity.qc:785
nonvirtual void ClearParent(void)
Call this on an entity to remove the connection to its parent.
nonvirtual entity GetGroundEntity(void)
Returns the entity we're standing on.
Definition: NSEntity.qc:157
nonvirtual float DistanceFromYaw(vector)
Returns a normalized value of how far away the target is from the entity's view direction.
Definition: NSEntity.qc:133
nonvirtual void Relink(void)
Relink the entity against the world.
Definition: NSEntity.qc:1338
nonvirtual bool IsSolid(void)
Returns if the entity is solid or non-solid.
Definition: NSEntity.qc:151
nonvirtual bool StartSound(string, float, float, bool)
Plays a sound sample directly onto the entity.
Definition: NSEntity.qc:1228
nonvirtual float GetVFlags(void)
Returns a nuclide flags bitfield that the entity associates with.
Definition: NSEntity.qc:863
nonvirtual vector GetUp(void)
Returns a normalized up vector of the entity to more easily test what may be above it.
Definition: NSEntity.qc:80
nonvirtual bool IntersectsWith(entity)
Returns whether or not the given entity insersects with us.
Definition: NSEntity.qc:1215
virtual void ReceiveEvent(float)
Definition: NSEntity.qc:227
nonvirtual void TurnToPos(vector)
Turns towards the specified position.
Definition: NSEntity.qc:714
nonvirtual void SetAngles(vector)
Sets the direction the entity is facing in eueler angles.
Definition: NSEntity.qc:610
nonvirtual bool VisibleVec(vector)
Returns if the entity is visible from a given position and a field of view of 90 degrees.
Definition: NSEntity.qc:98
nonvirtual void AddAngularVelocity(vector)
Adds onto the existing angular velocity.
Definition: NSEntity.qc:665
virtual void SetModel(string)
Sets the 3D model representation of the entity from a file path and name.
Definition: NSEntity.qc:647
nonvirtual void Show(void)
When called, will unhide the entity.
Definition: NSEntity.qc:1165
nonvirtual entity GetParent(void)
Returns the entity this is parented to.
nonvirtual void HandleThink(void)
For physics functions only.
Definition: NSEntity.qc:1284
nonvirtual void SetVelocity(vector)
Sets the movement velocity of the given entity.
Definition: NSEntity.qc:484
nonvirtual void ClearAngles(void)
Unsets any any angle related values within the entity.
NSTrigger handles all the non-input as well as Legacy (Quake, GoldSource) style trigger behaviour.
Definition: NSTrigger.h:71
effects_t
Definition: effects.h:19
float vv_flags
Definition: flags.h:35
botInfo_t
Definition: botinfo.h:29
bool isGodMode(entity entityToCheck)
Returns true/false depending on if the entity is in "god" mode.
Definition: mapC.h:131
bool isAI(entity entityToCheck)
Returns true/false depending on if the entity is an AI character.
Definition: mapC.h:111
bool isBot(entity entityToCheck)
Returns true/false depending on if the entity is a bot.
Definition: mapC.h:161
void sendInput(entity target, string inputName, string dataString, entity activator)
Sends an input (See NSIO::Input) to an entity.
Definition: mapC.h:66
bool isAlive(entity entityToCheck)
Returns true/false depending on if the entity is alive.
Definition: mapC.h:121
bool isSentient(entity entityToCheck)
Returns true/false depending on if the entity is either a player, or AI character.
Definition: mapC.h:151
bool isPlayer(entity entityToCheck)
Returns true/false depending on if the entity is a player.
Definition: mapC.h:141
NSEntity spawnClass(string className, vector desiredPos)
Returns a new entity.
Definition: mapC.h:49
float flags
Definition: sound.h:113
string target
Definition: defs.h:23
#define PREDICTED_FLOAT_N(x)
Definition: defs.h:41
#define PREDICTED_FLOAT(x)
Definition: defs.h:34
#define PREDICTED_VECTOR_N(x)
Definition: defs.h:42
noref vector mins
Definition: ui_3dview.qc:19
noref vector angles
Definition: ui_3dview.qc:18
noref float frame
Definition: ui_3dview.qc:22
noref vector maxs
Definition: ui_3dview.qc:20
noref vector origin
Definition: ui_3dview.qc:17