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

@ -3,12 +3,11 @@ Fundamental things:
- Silver Bullet
- Ynykron
- Wallbuster
- Clean up / rewrite lore entries
- Spanish lore entry retranslation
Not so fundamental things:
- Chanceboxes
- Extra Demolitionist animations (swim, weapon melee/reload/idle)
- Separate HUD and healthbar/damnum scaling factors
Extra things:
- Art for custom intermission

View file

@ -1,2 +1,2 @@
[default]
SWWM_MODVER="\cxSWWM GZ\c- r254 (Tue 19 May 17:22:31 CEST 2020)";
SWWM_MODVER="\cxSWWM GZ\c- r255 (Wed 20 May 11:02:52 CEST 2020)";

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