From f2a73b39199d1563ec891775ccf06b92106c1a63 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Wed, 3 Oct 2018 17:44:32 +0200 Subject: [PATCH] Switch to Enforcers bloody skin when he's killed, fixes #331 When killing the enforcer with one shot (instead of damaging him first without killing, which will switch to the bloody skin), the skin wasn't changed. Now it is. --- src/game/monster/infantry/infantry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/monster/infantry/infantry.c b/src/game/monster/infantry/infantry.c index 43bfdac4..127e45fe 100644 --- a/src/game/monster/infantry/infantry.c +++ b/src/game/monster/infantry/infantry.c @@ -532,6 +532,7 @@ infantry_die(edict_t *self, edict_t *inflictor /* unused */, /* regular death */ self->deadflag = DEAD_DEAD; self->takedamage = DAMAGE_YES; + self->s.skinnum = 1; /* switch to bloody skin */ n = randk() % 3;