Fix for insane marines not firing deathtarget right away

This commit is contained in:
BjossiAlfreds 2020-01-02 11:29:50 +00:00
parent e1ef6e6f35
commit 115c5cf619
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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)
{