mirror of
https://github.com/yquake2/zaero.git
synced 2024-11-22 03:51:13 +00:00
Switch to Enforcers bloody skin when he's killed
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.
This commit is contained in:
parent
61b100d096
commit
4e031fe308
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ void infantry_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int dam
|
||||||
// regular death
|
// regular death
|
||||||
self->deadflag = DEAD_DEAD;
|
self->deadflag = DEAD_DEAD;
|
||||||
self->takedamage = DAMAGE_YES;
|
self->takedamage = DAMAGE_YES;
|
||||||
|
self->s.skinnum = 1; /* switch to bloody skin */
|
||||||
|
|
||||||
n = rand() % 3;
|
n = rand() % 3;
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
|
|
Loading…
Reference in a new issue