g_trigger.c File Reference

Trigger functions. More...

#include "g_local.h"
Include dependency graph for g_trigger.c:

Go to the source code of this file.

Functions

edict_tG_TriggerSpawn (edict_t *owner)
static qboolean Touch_HurtTrigger (edict_t *self, edict_t *activator)
 Hurt trigger.
void SP_trigger_hurt (edict_t *ent)
 Trigger for grid fields if they are under fire.
static qboolean Touch_TouchTrigger (edict_t *self, edict_t *activator)
 Touch trigger.
void SP_trigger_touch (edict_t *ent)
 Touch trigger to call the use function of the attached target.
static qboolean Touch_RescueTrigger (edict_t *self, edict_t *activator)
 Rescue trigger.
static void Reset_RescueTrigger (edict_t *self, edict_t *activator)
void SP_trigger_rescue (edict_t *ent)
 Rescue trigger to mark an actor to be in the rescue zone. Aborting a game would not kill the actors inside this trigger area.

Detailed Description

Trigger functions.

Definition in file g_trigger.c.


Function Documentation

edict_t* G_TriggerSpawn ( edict_t owner  ) 
static void Reset_RescueTrigger ( edict_t self,
edict_t activator 
) [static]

Definition at line 179 of file g_trigger.c.

References G_ActorSetInRescueZone(), qfalse, and edict_s::team.

Referenced by SP_trigger_rescue().

void SP_trigger_hurt ( edict_t ent  ) 

Trigger for grid fields if they are under fire.

Note:
Called once for every step
See also:
Touch_HurtTrigger

Definition at line 93 of file g_trigger.c.

References edict_s::child, edict_s::classname, edict_s::dmg, ET_TRIGGER_HURT, gi, edict_s::model, edict_s::solid, SOLID_TRIGGER, edict_s::touch, Touch_HurtTrigger(), and edict_s::type.

void SP_trigger_rescue ( edict_t ent  ) 

Rescue trigger to mark an actor to be in the rescue zone. Aborting a game would not kill the actors inside this trigger area.

Note:
Called once for every step
See also:
Touch_RescueTrigger

Definition at line 192 of file g_trigger.c.

References edict_s::child, edict_s::classname, ET_TRIGGER_RESCUE, gi, edict_s::model, edict_s::reset, Reset_RescueTrigger(), edict_s::solid, SOLID_TRIGGER, edict_s::touch, Touch_RescueTrigger(), and edict_s::type.

void SP_trigger_touch ( edict_t ent  ) 

Touch trigger to call the use function of the attached target.

Note:
Called once for every step
See also:
Touch_TouchTrigger

Definition at line 143 of file g_trigger.c.

References edict_s::child, edict_s::classname, ET_TRIGGER_TOUCH, G_FreeEdict(), gi, edict_s::model, edict_s::solid, SOLID_TRIGGER, edict_s::target, edict_s::touch, Touch_TouchTrigger(), and edict_s::type.

static qboolean Touch_HurtTrigger ( edict_t self,
edict_t activator 
) [static]

Hurt trigger.

See also:
SP_trigger_hurt

Todo:
Handle dazed via trigger_hurt

Definition at line 67 of file g_trigger.c.

References edict_s::dmg, G_IsDead, G_IsStunned, G_SetDead, G_SetStunned, G_TakeDamage(), edict_s::HP, qtrue, and edict_s::STUN.

Referenced by SP_trigger_hurt().

static qboolean Touch_RescueTrigger ( edict_t self,
edict_t activator 
) [static]

Rescue trigger.

See also:
SP_trigger_resuce

Definition at line 167 of file g_trigger.c.

References G_ActorSetInRescueZone(), G_IsDead, qfalse, qtrue, and edict_s::team.

Referenced by SP_trigger_rescue().

static qboolean Touch_TouchTrigger ( edict_t self,
edict_t activator 
) [static]

Touch trigger.

See also:
SP_trigger_touch

Definition at line 114 of file g_trigger.c.

References G_FindTargetEntity(), G_FreeEdict(), G_IsDead, gi, and qfalse.

Referenced by SP_trigger_touch().


Generated by  doxygen 1.6.2