23 SRFENT_CHANGED_ORIGIN_X,
24 SRFENT_CHANGED_ORIGIN_Y,
25 SRFENT_CHANGED_ORIGIN_Z,
26 SRFENT_CHANGED_ANGLES_X,
27 SRFENT_CHANGED_ANGLES_Y,
28 SRFENT_CHANGED_ANGLES_Z,
29 SRFENT_CHANGED_MODELINDEX,
32 SRFENT_CHANGED_SOLIDMOVETYPE,
35 SRFENT_CHANGED_EFFECTS,
38 SRFENT_CHANGED_VELOCITY,
39 SRFENT_CHANGED_ANGULARVELOCITY,
40 SRFENT_CHANGED_RENDERCOLOR,
41 SRFENT_CHANGED_RENDERAMT,
42 SRFENT_CHANGED_RENDERMODE,
43 SRFENT_CHANGED_CONTROLLER
44} nssurfacepropentity_changed_t;
79 virtual void Save(
float);
80 virtual void Restore(
string,
string);
83 virtual void Input(entity,
string,
string);
84 virtual void SpawnKey(
string,
string);
101 virtual void Damage(entity, entity,
ncDict,
float, vector, vector);
105 virtual void Pain(entity, entity,
int, vector, vector,
int);
107 virtual void Death(entity, entity,
int, vector, vector,
int);
114 nonvirtual
void Ignite(entity,
float,
string);
183 nonvirtual
void _SurfaceDataFinish(
void);
184 nonvirtual
void _PropDataFinish(
void);
186 float m_timeUntilNextBurnDamage;
188 PREDICTED_FLOAT(armor)
189 PREDICTED_FLOAT_N(health)
198 nonvirtual
void _UpdateTakedamage(
void);
201 float m_timeUntilBonusHealthDecreases;
203 float m_timeUntilBonusArmorDecreases;
210 entity m_burningAttacker;
211 string m_burningWeapon;
212 float m_timeUntilBurningStops;
213 float m_timeUntilNextBurnDamage;
216 string m_outputOnDamaged;
217 string m_outputOnDamagedByPlayer;
218 string m_outputOnHalfHealth;
219 string m_outputOnDeath;
220 string m_outputOnBreak;
226void ncSurfacePropEntity_ReadEntity(
bool);
This class is responsible for handling groups of key/value pairs.
Definition: Dict.h:42
This entity represents any ncEntity with advanced rendering properties.
Definition: RenderableEntity.h:94
This entity represents an ncRenderableEntity with interactive surface properties.
Definition: SurfacePropEntity.h:70
virtual void ParentUpdate(void)
Called when we need to re-align the entity to our parent entity.
Definition: SurfacePropEntity.qc:248
virtual void Death(entity, entity, int, vector, vector, int)
Called when the health is equal or below 0.
Definition: SurfacePropEntity.qc:644
nonvirtual bool HasPropData(void)
Returns if the entity has prop data information set.
Definition: SurfacePropEntity.qc:966
virtual float SendEntity(entity, float)
Called by the engine whenever we need to send a client an update about this entity.
Definition: SurfacePropEntity.qc:773
virtual void RenderFire(void)
Called every frame to render a fire effect, but will only do so if the entity is burning.
nonvirtual void AddBonusArmor(float)
Adds bonus armor to the entity.
Definition: SurfacePropEntity.qc:216
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: SurfacePropEntity.qc:594
nonvirtual float GetBonusArmor(void)
Returns the bonus armor of the entity.
Definition: SurfacePropEntity.qc:236
nonvirtual float GetMaxArmor(void)
Returns the maximum armor value the entity can have.
Definition: SurfacePropEntity.qc:169
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: SurfacePropEntity.qc:461
void ncSurfacePropEntity(void)
Definition: SurfacePropEntity.qc:18
virtual void Damage(entity, entity, ncDict, float, vector, vector)
Applies damage to the entity.
Definition: SurfacePropEntity.qc:303
nonvirtual bool HasSurfaceData(void)
Returns if the entity has surface data information set.
Definition: SurfacePropEntity.qc:978
nonvirtual void AddBonusHealth(float)
Adds bonus health to the entity.
Definition: SurfacePropEntity.qc:196
virtual void DamageFeedback(entity, entity, int)
Called when a different entity gets damaged by this entity.
Definition: SurfacePropEntity.qc:655
nonvirtual float GetHealth(void)
Returns the current health of the entity.
Definition: SurfacePropEntity.qc:157
virtual float predraw(void)
nonvirtual bool CanBeDamaged(vector, vector)
Returns whether this entity reacts to damage being inflicted.
Definition: SurfacePropEntity.qc:387
virtual void SetModel(string)
Sets the 3D model representation of the entity from a file path and name.
Definition: SurfacePropEntity.qc:1023
nonvirtual void SetSurfaceData(string)
Assigns the surface data of a given description onto this entity.
Definition: SurfacePropEntity.qc:946
nonvirtual bool IsOnFire(void)
Returns whether or not this entity is on fire.
Definition: SurfacePropEntity.qc:66
virtual void Restore(string, string)
Similar to ncIO::SpawnKey() but for save-game fields.
Definition: SurfacePropEntity.qc:485
nonvirtual void MakeVulnerable(void)
Makes the entity vulnerable if it wasn't already.
Definition: SurfacePropEntity.qc:100
nonvirtual void SetMaxArmor(float)
Sets the maximum amount of armor the entity can have.
Definition: SurfacePropEntity.qc:150
virtual void Spawned(void)
Called when the entity is fulled initialized.
Definition: SurfacePropEntity.qc:42
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition: SurfacePropEntity.qc:550
nonvirtual void SetMaxHealth(float)
Sets the maximum amount of health the entity can have.
Definition: SurfacePropEntity.qc:143
nonvirtual void DisableAimAssist(void)
Makes the entity invisible to other entity their aim-assists.
Definition: SurfacePropEntity.qc:93
nonvirtual float GetMaxHealth(void)
Returns the maximum health the entity can have.
Definition: SurfacePropEntity.qc:163
nonvirtual bool IsVulnerable(void)
Returns whether the entity can be damaged.
Definition: SurfacePropEntity.qc:80
nonvirtual void EnableAimAssist(void)
Makes the entity visible to other entity their aim-assists.
Definition: SurfacePropEntity.qc:86
nonvirtual void SetArmor(float)
Sets the current armor of the entity.
Definition: SurfacePropEntity.qc:175
virtual void BreakModel(int, vector, int)
Called when the health is equal or below 0.
Definition: SurfacePropEntity.qc:661
nonvirtual void Extinguish(void)
If the entity is on fire, it'll have it extinguished.
Definition: SurfacePropEntity.qc:425
virtual void ReceiveEntity(float, float)
Client: Handles network updates from the server for the associated entity.
virtual void EvaluateEntity(void)
Run each tic after physics are run to determine if we need to send updates over the network.
Definition: SurfacePropEntity.qc:726
nonvirtual __variant GetSurfaceData(int)
Returns a variable type of information about the entity's surface data.
Definition: SurfacePropEntity.qc:984
nonvirtual __variant GetPropData(int)
Returns a variable type of information about the entity's prop data.
Definition: SurfacePropEntity.qc:972
virtual void RestoreComplete(void)
Called when the entity has been successfully restored from a savegame file.
Definition: SurfacePropEntity.qc:542
nonvirtual void MakeInvulnerable(void)
Makes the entity invulnerable if it wasn't already.
Definition: SurfacePropEntity.qc:107
nonvirtual void SetPropData(string)
Assigns the prop data of a given description onto this entity.
Definition: SurfacePropEntity.qc:956
nonvirtual float TimeSinceDeath(void)
Returns how many seconds have passed since we died.
Definition: SurfacePropEntity.qc:716
virtual void Pain(entity, entity, int, vector, vector, int)
Called whenever the entity receives damage.
Definition: SurfacePropEntity.qc:638
nonvirtual void Ignite(entity, float, string)
Sets the entity on fire.
Definition: SurfacePropEntity.qc:367
nonvirtual void SetHealth(float)
Sets the current health of the entity.
Definition: SurfacePropEntity.qc:128
nonvirtual float GetArmor(void)
Returns the current armor of the entity.
Definition: SurfacePropEntity.qc:190
nonvirtual float GetBonusHealth(void)
Returns the bonus health of the entity.
Definition: SurfacePropEntity.qc:242
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: SurfacePropEntity.qc:434
virtual bool IsAlive(void)
Returns whether or not the entity is alive.
Definition: SurfacePropEntity.qc:74
typedef enumflags
Defines the valid alignment flags for text fields.
Definition: font.h:37