From 115c5cf6199ac9c43bd3b85d1827267f6842b990 Mon Sep 17 00:00:00 2001 From: BjossiAlfreds Date: Thu, 2 Jan 2020 11:29:50 +0000 Subject: [PATCH] Fix for insane marines not firing deathtarget right away --- src/game/header/local.h | 2 +- src/game/monster/insane/insane.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {