Fix Eviscerator chunks still smoking after hitting a target.

This commit is contained in:
Mari the Deer 2020-05-20 11:02:52 +02:00
commit 1114fba301
3 changed files with 3 additions and 4 deletions

View file

@ -123,7 +123,7 @@ Class EvisceratorChunk : Actor
};
oldvel = vel;
Super.Tick();
if ( isFrozen() ) return;
if ( isFrozen() || InStateSequence(CurState,FindState("XDeath") ) return;
lifetime += lifespeed;
A_SetTranslation(tls[clamp(int(lifetime*10),0,7)]);
if ( !Random[Eviscerator](0,3) && (lifetime < .7) )