icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
76 if (self->spawnflags & 2)
81 if (!(self->spawnflags & 1))
96 self->activator = other;
122 else if (ent->
sounds == 2)
124 else if (ent->
sounds == 3)
224 if (
level.time < self->touch_debounce_time)
226 self->touch_debounce_time =
level.time + 5.0;
238 if (strcmp(self->item->classname,
"key_power_cube") == 0)
242 for (cube = 0; cube < 8; cube++)
286 gi.
dprintf(
"no key item for trigger_key at %s\n",
vtos(self->s.origin));
299 gi.
dprintf(
"%s at %s has no target\n", self->classname,
vtos(self->s.origin));
328 if (self->count == 0)
335 if (! (self->spawnflags & 1))
343 if (! (self->spawnflags & 1))
348 self->activator = activator;
376 if (ent->
delay < 0.2)
396 if (strcmp(other->
classname,
"grenade") == 0)
400 else if (other->
health > 0)
463 if (!(self->spawnflags & 2))
475 if (self->timestamp >
level.time)
478 if (self->spawnflags & 16)
479 self->timestamp =
level.time + 1;
483 if (!(self->spawnflags & 4))
485 if ((
level.framenum % 10) == 0)
489 if (self->spawnflags & 8)
500 self->noise_index =
gi.
soundindex (
"world/electro.wav");
506 if (self->spawnflags & 1)
511 if (self->spawnflags & 2)
534 other->
gravity =
self->gravity;
541 gi.
dprintf(
"trigger_gravity without gravity set at %s\n",
vtos(self->s.origin));
576 other->
velocity[0] =
self->movedir[0] *
self->speed;
577 other->
velocity[1] =
self->movedir[1] *
self->speed;
583 other->
velocity[2] =
self->movedir[2];
592 if (self->s.angles[
YAW] == 0)
593 self->s.angles[
YAW] = 360;
void trigger_counter_use(edict_t *self, edict_t *other, edict_t *activator)
void(* dprintf)(char *fmt,...)
void trigger_relay_use(edict_t *self, edict_t *other, edict_t *activator)
gitem_t * FindItemByClassname(char *classname)
void SP_trigger_once(edict_t *ent)
void hurt_use(edict_t *self, edict_t *other, edict_t *activator)
void SP_trigger_gravity(edict_t *self)
void SP_trigger_key(edict_t *self)
void VectorScale(vec3_t in, vec_t scale, vec3_t out)
struct gclient_s * client
void(* sound)(edict_t *ent, int channel, int soundindex, float volume, float attenuation, float timeofs)
void SP_trigger_hurt(edict_t *self)
void T_Damage(edict_t *targ, edict_t *inflictor, edict_t *attacker, vec3_t dir, vec3_t point, vec3_t normal, int damage, int knockback, int dflags, int mod)
void trigger_enable(edict_t *self, edict_t *other, edict_t *activator)
void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
#define DAMAGE_NO_PROTECTION
void SP_trigger_always(edict_t *ent)
void G_FreeEdict(edict_t *e)
void Touch_Multi(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
int(* soundindex)(char *name)
void SP_trigger_relay(edict_t *self)
void(* think)(edict_t *self)
vec_t _DotProduct(vec3_t v1, vec3_t v2)
void SP_trigger_counter(edict_t *self)
void multi_wait(edict_t *ent)
void(* centerprintf)(edict_t *ent, char *fmt,...)
void trigger_gravity_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void(* setmodel)(edict_t *ent, char *name)
void SP_trigger_push(edict_t *self)
void Use_Multi(edict_t *ent, edict_t *other, edict_t *activator)
void(* use)(edict_t *self, edict_t *other, edict_t *activator)
void hurt_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void G_UseTargets(edict_t *ent, edict_t *activator)
void VectorMA(vec3_t veca, float scale, vec3_t vecb, vec3_t vecc)
void SP_trigger_multiple(edict_t *ent)
void trigger_key_use(edict_t *self, edict_t *other, edict_t *activator)
void G_SetMovedir(vec3_t angles, vec3_t movedir)
void multi_trigger(edict_t *ent)
void(* touch)(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void SP_trigger_monsterjump(edict_t *self)
void InitTrigger(edict_t *self)
int VectorCompare(vec3_t v1, vec3_t v2)
void trigger_push_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void(* linkentity)(edict_t *ent)
void trigger_monsterjump_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
float fly_sound_debounce_time