Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
52 gi.sound(
self, CHAN_VOICE,
sound_scream[rand() % 8], 1, ATTN_IDLE, 0);
427 if (self->spawnflags & 16)
432 if (self->spawnflags & 4)
442 if (self->spawnflags & 16)
447 if (self->spawnflags & 4)
463 if (
level.
time < self->pain_debounce_time)
466 self->pain_debounce_time =
level.
time + 3;
468 r = 1 + (rand() & 1);
469 if (self->health < 25)
471 else if (self->health < 50)
473 else if (self->health < 75)
477 gi.sound(
self, CHAN_VOICE,
gi.soundindex(
va(
"player/male/pain%i_%i.wav", l, r)), 1, ATTN_IDLE, 0);
479 if (
skill->value == 3)
483 if (self->spawnflags & 8) {
503 if (self->spawnflags & 32)
516 if ((self->spawnflags & 4) && (self->spawnflags & 16))
525 if (self->spawnflags & 8) {
530 else if ((self->spawnflags & 4) && (self->spawnflags & 16))
540 if (self->spawnflags & 8) {
543 VectorSet(self->mins, -16, -16, -24);
544 VectorSet(self->maxs, 16, 16, -8);
547 self->svflags |= SVF_DEADMONSTER;
553 void insane_die(edict_t *
self, edict_t *inflictor, edict_t *attacker,
int damage, vec3_t point)
557 if (self->health <= self->gib_health) {
558 gi.sound(
self, CHAN_VOICE,
gi.soundindex(
"misc/udeath.wav"), 1, ATTN_IDLE, 0);
559 for (n = 0; n < 2; n++)
561 for (n = 0; n < 4; n++)
571 gi.sound(
self, CHAN_VOICE,
gi.soundindex(
va(
"player/male/death%i.wav", (rand() % 4) + 1)), 1, ATTN_IDLE, 0);
576 if (self->spawnflags & 8) {
611 self->solid = SOLID_BBOX;
612 self->s.modelindex =
gi.modelindex(
"models/monsters/insane/tris.md2");
614 VectorSet(self->mins, -16, -16, -24);
615 VectorSet(self->maxs, 16, 16, 32);
618 self->gib_health = -50;
627 self->monsterinfo.dodge = NULL;
628 self->monsterinfo.attack = NULL;
629 self->monsterinfo.melee = NULL;
630 self->monsterinfo.sight = NULL;
641 if (self->spawnflags & 16)
648 if (self->spawnflags & 8) {
649 VectorSet(self->mins, -16, 0, 0);
650 VectorSet(self->maxs, 16, 8, 32);
655 self->s.skinnum = rand() % 3;
mframe_t insane_frames_struggle_cross[]
void insane_walk(edict_t *self)
mframe_t insane_frames_crawl_death[]
void insane_moan(edict_t *self)
mmove_t insane_move_walk_insane
void insane_pain(edict_t *self, edict_t *other, float kick, int damage)
static int sound_scream[8]
mframe_t insane_frames_stand_death[]
void ThrowGib(edict_t *self, char *gibname, int damage, int type)
mframe_t insane_frames_down[]
mmove_t insane_move_crawl_death
void insane_scream(edict_t *self)
mframe_t insane_frames_cross[]
mmove_t insane_move_stand_death
mmove_t insane_move_crawl
mmove_t insane_move_walk_normal
mframe_t insane_frames_downtoup[]
void SP_misc_insane(edict_t *self)
void insane_checkup(edict_t *self)
void insane_die(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void walkmonster_start(edict_t *self)
mmove_t insane_move_run_insane
void insane_cross(edict_t *self)
void G_FreeEdict(edict_t *e)
mframe_t insane_frames_crawl[]
void insane_shake(edict_t *self)
char * va(const char *format,...)
void insane_dead(edict_t *self)
mframe_t insane_frames_uptodown[]
mmove_t insane_move_downtoup
void ai_walk(edict_t *self, float dist)
mmove_t insane_move_cross
void insane_onground(edict_t *self)
mframe_t insane_frames_walk_insane[]
mframe_t insane_frames_stand_normal[]
void ai_move(edict_t *self, float dist)
mframe_t insane_frames_jumpdown[]
mmove_t insane_move_crawl_pain
mmove_t insane_move_run_normal
void insane_stand(edict_t *self)
mframe_t insane_frames_walk_normal[]
mframe_t insane_frames_stand_insane[]
mmove_t insane_move_runcrawl
mmove_t insane_move_stand_insane
void ThrowHead(edict_t *self, char *gibname, int damage, int type)
mmove_t insane_move_struggle_cross
void insane_checkdown(edict_t *self)
mmove_t insane_move_stand_normal
void insane_run(edict_t *self)
mmove_t insane_move_uptodown
void insane_fist(edict_t *self)
mmove_t insane_move_jumpdown
mframe_t insane_frames_stand_pain[]
void ai_stand(edict_t *self, float dist)
void flymonster_start(edict_t *self)
mframe_t insane_frames_crawl_pain[]
mmove_t insane_move_stand_pain