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);
134 nonvirtual
void SetTeam(
float);
137 nonvirtual
float GetTeam(
void);
146 nonvirtual
void _TouchHandler(
void);
147 nonvirtual
void _BlockedHandler(
void);
150 string m_strGlobalName;
151 string m_strGlobalState;
152 string m_strKillTarget;
159 bool m_bStartDisabled;
globalstate_t
States for env_global data.
Definition: NSTrigger.h:29
@ GLOBAL_ON
env_global data in question is set to 'on'.
Definition: NSTrigger.h:33
@ GLOBAL_OFF
env_global data in question is set to 'off'.
Definition: NSTrigger.h:31
@ GLOBAL_DEAD
env_global data in question is dead.
Definition: NSTrigger.h:35
enumflags
Definition: NSTrigger.h:50
triggermode_t
The type of trigger activation.
Definition: NSTrigger.h:40
@ TRIG_OFF
Trigger the target 'off', for doors that may tell them to close.
Definition: NSTrigger.h:42
@ TRIG_TOGGLE
Trigger the target the opposite to whatever they're currently in.
Definition: NSTrigger.h:46
@ TRIG_ON
Trigger the target 'on', for doors that may tell them to open.
Definition: NSTrigger.h:44
This class is responsible for handling core entity functionality.
Definition: NSIO.h:27
NSTrigger handles all the non-input as well as Legacy (Quake, GoldSource) style trigger behaviour.
Definition: NSTrigger.h:71
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition: NSTrigger.qc:353
virtual void Trigger(entity, triggermode_t)
Called whenever we're legacy triggered by another object or function.
Definition: NSTrigger.qc:83
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition: NSTrigger.qc:313
virtual bool CanBeTriggeredBy(entity)
Definition: NSTrigger.qc:46
nonvirtual globalstate_t GetGlobalValue(string)
Returns the value of a given env_global property.
Definition: NSTrigger.qc:156
nonvirtual bool HasTriggerTarget(void)
Returns TRUE if the entity has a legacy trigger target.
Definition: NSTrigger.qc:215
nonvirtual void UseTargets(entity, int, float)
When called will trigger its legacy targets with a given delay.
Definition: NSTrigger.qc:89
nonvirtual int GetMaster(entity)
Returns whether our master allows us to be triggered.
Definition: NSTrigger.qc:167
nonvirtual void SetTeam(float)
Assigns the entity to a given team value.
Definition: NSTrigger.qc:334
virtual void EndTouch(entity)
Called when we stopped touching the last touched entity.
Definition: NSTrigger.qc:414
nonvirtual string GetTriggerTarget(void)
Returns the name of the entity group it can trigger (legacy style).
Definition: NSTrigger.qc:200
virtual int GetValue(entity)
Returns what we will pass onto other's NSTrigger::GetMaster() calls if we're their master.
Definition: NSTrigger.qc:150
void NSTrigger(void)
Definition: NSTrigger.qc:18
virtual void StartTouch(entity)
Called when we started touching another entity.
Definition: NSTrigger.qc:408
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: NSTrigger.qc:235
nonvirtual bool HasTargetname(void)
Returns TRUE if the entity has a name that can be used for messaging.
Definition: NSTrigger.qc:226
virtual void Respawn(void)
Server: Called when the entity first spawns or when game-logic requests the entity to return to its o...
Definition: NSTrigger.qc:40
nonvirtual entity GetTargetEntity(void)
Returns the first entity named after the target field.
Definition: NSTrigger.qc:206
nonvirtual void SetTriggerTarget(string)
Sets the legacy target for this entity.
Definition: NSTrigger.qc:144
virtual void Touch(entity)
Called whenever we're touching another entity.
Definition: NSTrigger.qc:402
virtual void Blocked(entity)
Called whenever out movement is being blocked by an entity.
Definition: NSTrigger.qc:390
virtual void Restore(string, string)
Similar to NSIO::SpawnKey but for save-game fields.
Definition: NSTrigger.qc:256
nonvirtual float GetTeam(void)
Retrives the team value of a given entity.
Definition: NSTrigger.qc:346