25#define CENVGLOBAL_CVAR "env_global_data"
55 TOUCHFILTER_FRIENDLIES,
56 TOUCHFILTER_CLIENTSINVEHICLES,
57 TOUCHFILTER_EVERYTHING,
60 TOUCHFILTER_CLIENTSNOTINVEHICLES,
62 TOUCHFILTER_NPCSINVEHICLES,
83 virtual void Touch(entity);
89 virtual void SpawnKey(
string,
string);
93 virtual void Save(
float);
94 virtual void Restore(
string,
string);
96 virtual void Input(entity,
string,
string);
102 virtual void Trigger(entity, triggermode_t);
134 nonvirtual
void SetTeam(
float);
137 nonvirtual
float GetTeam(
void);
149 vector m_touchPosition;
150 vector m_touchNormal;
152 nonvirtual
void _TouchHandler(
void);
153 nonvirtual
void _BlockedHandler(
void);
156 string m_strGlobalName;
157 string m_strGlobalState;
158 string m_strKillTarget;
165 bool m_bStartDisabled;
This class is responsible for handling core entity functionality.
Definition: IO.h:78
ncTrigger handles all the non-input as well as Legacy (Quake, GoldSource) style trigger behaviour.
Definition: Trigger.h:71
virtual int GetValue(entity)
Returns what we will pass onto other's ncTrigger::GetMaster() calls if we're their master.
Definition: Trigger.qc:149
virtual void Blocked(entity)
Called whenever out movement is being blocked by an entity.
Definition: Trigger.qc:390
void ncTrigger(void)
Definition: Trigger.qc:18
nonvirtual void UseTargets(entity, int, float)
When called will trigger its legacy targets with a given delay.
Definition: Trigger.qc:88
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: Trigger.qc:39
nonvirtual entity GetTargetEntity(void)
Returns the first entity named after the target field.
Definition: Trigger.qc:205
nonvirtual float GetTeam(void)
Retrives the team value of a given entity.
Definition: Trigger.qc:346
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition: Trigger.qc:307
nonvirtual void SetTriggerTarget(string)
Sets the legacy target for this entity.
Definition: Trigger.qc:143
nonvirtual globalstate_t GetGlobalValue(string)
Returns the value of a given env_global property.
Definition: Trigger.qc:155
nonvirtual vector GetTouchNormal(void)
Returns the normal of the last valid surface the entity has touched.
Definition: Trigger.qc:426
virtual void StartTouch(entity)
Called when we started touching another entity.
Definition: Trigger.qc:408
virtual bool CanBeTriggeredBy(entity)
Definition: Trigger.qc:45
nonvirtual bool HasTargetname(void)
Returns TRUE if the entity has a name that can be used for messaging.
Definition: Trigger.qc:220
virtual void EndTouch(entity)
Called when we stopped touching the last touched entity.
Definition: Trigger.qc:414
nonvirtual bool HasTriggerTarget(void)
Returns TRUE if the entity has a legacy trigger target.
Definition: Trigger.qc:214
virtual void Trigger(entity, triggermode_t)
Called whenever we're legacy triggered by another object or function.
Definition: Trigger.qc:82
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: Trigger.qc:353
nonvirtual vector GetTouchPosition(void)
Returns the last valid point the entity has touched.
Definition: Trigger.qc:420
nonvirtual string GetTriggerTarget(void)
Returns the name of the entity group it can trigger (legacy style).
Definition: Trigger.qc:199
virtual void Restore(string, string)
Similar to ncIO::SpawnKey() but for save-game fields.
Definition: Trigger.qc:250
virtual void Touch(entity)
Called whenever we're touching another entity.
Definition: Trigger.qc:402
nonvirtual void SetTeam(float)
Assigns the entity to a given team value.
Definition: Trigger.qc:334
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: Trigger.qc:229
nonvirtual int GetMaster(entity)
Returns whether our master allows us to be triggered.
Definition: Trigger.qc:166
typedef enumflags
Defines the valid alignment flags for text fields.
Definition: font.h:37