Makron torso flashes red like the legs

This commit is contained in:
BjossiAlfreds 2019-09-26 12:42:57 +00:00
parent f76ce1d64b
commit f7e9b2c150
1 changed files with 11 additions and 0 deletions

View File

@ -805,6 +805,17 @@ makron_torso_think(edict_t *self)
return; return;
} }
if (self->owner && (self->owner->monsterinfo.aiflags & AI_RESURRECTING))
{
self->s.effects |= EF_COLOR_SHELL;
self->s.renderfx |= RF_SHELL_RED;
}
else
{
self->s.effects &= ~EF_COLOR_SHELL;
self->s.renderfx &= ~RF_SHELL_RED;
}
if (++self->s.frame >= FRAME_death320) if (++self->s.frame >= FRAME_death320)
{ {
self->s.frame = FRAME_death301; self->s.frame = FRAME_death301;