25#define CENVGLOBAL_CVAR "env_global_data"
55 TOUCHFILTER_FRIENDLIES,
56 TOUCHFILTER_CLIENTSINVEHICLES,
57 TOUCHFILTER_EVERYTHING,
60 TOUCHFILTER_CLIENTSNOTINVEHICLES,
62 TOUCHFILTER_NPCSINVEHICLES,
89 virtual void Touch(entity);
95 virtual void SpawnKey(
string,
string);
101 virtual void Save(
float);
102 virtual void Restore(
string,
string);
104 virtual void Input(entity,
string,
string);
107 nonvirtual
void SetValue(
int newValue);
113 virtual void Trigger(entity, triggermode_t);
161 nonvirtual
void SetTeam(
float);
164 nonvirtual
float GetTeam(
void);
173 float m_timeSinceLastTouch;
175 entity m_touchingEntity;
176 vector m_touchPosition;
177 vector m_touchNormal;
179 nonvirtual
void _TouchHandler(
void);
180 nonvirtual
void _BlockedHandler(
void);
183 nonvirtual
void _TouchEnded(
void);
186 string m_globalState;
187 string m_triggerKillTarget;
188 string m_triggerMessage;
192 bool m_triggerEnabled;
193 bool m_triggerStartsDisabled;
194 bool m_triggerSpawnflagFilter;
196 float m_touchingOnlyTeam;
198 string m_outputOnStartTouch;
199 string m_outputOnEndTouch;
202 float m_triggerDelay;
void ncIO(void)
Definition IO.qc:18
nonvirtual bool TriggerEnabled(void)
Returns whether the trigger functionality of this entity is enabled.
Definition Trigger.qc:304
virtual int GetValue(entity)
Returns what we will pass onto other's ncTrigger::GetMaster() calls if we're their master.
Definition Trigger.qc:178
virtual void Blocked(entity)
Called whenever out movement is being blocked by an entity.
Definition Trigger.qc:476
void ncTrigger(void)
Definition Trigger.qc:22
nonvirtual void UseTargets(entity, int, float)
When called will trigger its legacy targets with a given delay.
Definition Trigger.qc:110
nonvirtual entity GetTargetEntity(void)
Returns the first entity named after the target field.
Definition Trigger.qc:262
nonvirtual float GetTeam(void)
Retrives the team value of a given entity.
Definition Trigger.qc:425
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition Trigger.qc:380
nonvirtual void SetTriggerTarget(string)
Sets the legacy target for this entity.
Definition Trigger.qc:166
nonvirtual void EnableTrigger(void)
Definition Trigger.qc:286
nonvirtual float GetTriggerDelay(void)
Returns the time until this triggers is scheduled to fire its targets, relative time in seconds.
Definition Trigger.qc:244
nonvirtual globalstate_t GetGlobalValue(string)
Returns the value of a given env_global property.
Definition Trigger.qc:184
nonvirtual vector GetTouchNormal(void)
Returns the normal of the last valid surface the entity has touched.
Definition Trigger.qc:512
virtual void StartTouch(entity)
Called when we started touching another entity.
Definition Trigger.qc:494
nonvirtual void DisableTrigger(void)
Definition Trigger.qc:292
nonvirtual void SetValue(int newValue)
Sets the internal value of the entity as queried by GetValue().
Definition Trigger.qc:172
virtual bool CanBeTriggeredBy(entity)
Definition Trigger.qc:55
nonvirtual bool HasTargetname(void)
Returns TRUE if the entity has a name that can be used for messaging.
Definition Trigger.qc:277
virtual void EndTouch(entity)
Called when we stopped touching the last touched entity.
Definition Trigger.qc:500
nonvirtual bool HasTriggerTarget(void)
Returns TRUE if the entity has a legacy trigger target.
Definition Trigger.qc:271
virtual void Trigger(entity, triggermode_t)
Called whenever we're legacy triggered by another object or function.
Definition Trigger.qc:104
virtual void SpawnKey(string, string)
This method handles entity key/value pairs on map load.
Definition Trigger.qc:432
nonvirtual vector GetTouchPosition(void)
Returns the last valid point the entity has touched.
Definition Trigger.qc:506
nonvirtual string GetTriggerKillTarget(void)
Returns the name of the entity group it will remove from the game upon trigger.
Definition Trigger.qc:256
virtual void Spawned(void)
Called when the entity is fulled initialized.
Definition Trigger.qc:42
nonvirtual string GetTriggerTarget(void)
Returns the name of the entity group it can trigger (legacy style).
Definition Trigger.qc:238
nonvirtual string GetTriggerMessage(void)
Returns the message which will be displayed upon trigger.
Definition Trigger.qc:250
virtual void Restore(string, string)
Similar to ncIO::SpawnKey() but for save-game fields.
Definition Trigger.qc:329
virtual void OnRemoveEntity(void)
Handles what happens before the entity gets removed from the client game.
Definition Trigger.qc:577
virtual void Touch(entity)
Called whenever we're touching another entity.
Definition Trigger.qc:488
nonvirtual void SetTeam(float)
Assigns the entity to a given team value.
Definition Trigger.qc:407
nonvirtual void ToggleTrigger(void)
Definition Trigger.qc:298
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition Trigger.qc:310
nonvirtual int GetMaster(entity)
Returns whether our master allows us to be triggered.
Definition Trigger.qc:205