diff --git a/src/game/header/local.h b/src/game/header/local.h index 122c15c6..ddb55ba2 100644 --- a/src/game/header/local.h +++ b/src/game/header/local.h @@ -1015,7 +1015,7 @@ struct edict_s float touch_debounce_time; float pain_debounce_time; float damage_debounce_time; - float fly_sound_debounce_time; + float fly_sound_debounce_time; /* now also used by insane marines to store pain sound timeout */ float last_move_time; int health; diff --git a/src/game/monster/insane/insane.c b/src/game/monster/insane/insane.c index 61779f48..b7bfd29f 100644 --- a/src/game/monster/insane/insane.c +++ b/src/game/monster/insane/insane.c @@ -65,7 +65,7 @@ insane_moan(edict_t *self) } /* suppress screaming so pain sound can play */ - if (self->delay > level.time) + if (self->fly_sound_debounce_time > level.time) { return; } @@ -82,7 +82,7 @@ insane_scream(edict_t *self) } /* suppress screaming so pain sound can play */ - if (self->delay > level.time) + if (self->fly_sound_debounce_time > level.time) { return; } @@ -697,7 +697,7 @@ insane_pain(edict_t *self, edict_t *other /* unused */, l, r)), 1, ATTN_IDLE, 0); /* suppress screaming and moaning for 1 second so pain sound plays */ - self->delay = level.time + 1; + self->fly_sound_debounce_time = level.time + 1; if (skill->value == 3) {