Trigger functions. More...
#include "g_local.h"
Go to the source code of this file.
Functions | |
edict_t * | G_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. |
Trigger functions.
Definition in file g_trigger.c.
Definition at line 32 of file g_trigger.c.
References edict_s::absmax, edict_s::absmin, edict_s::classname, ET_TRIGGER, G_Spawn(), gi, edict_s::maxs, edict_s::mins, edict_s::owner, edict_s::solid, SOLID_TRIGGER, edict_s::type, UNIT_SIZE, and VectorCopy.
Referenced by SP_func_door(), SP_misc_mission(), and SP_misc_mission_aliens().
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.
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.
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.
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.
Hurt trigger.
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().
Rescue trigger.
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().
Touch trigger.
Definition at line 114 of file g_trigger.c.
References G_FindTargetEntity(), G_FreeEdict(), G_IsDead, gi, and qfalse.
Referenced by SP_trigger_touch().