- fixed BrainishExplosion and removed some unnecessary checks, the state to be set is being defined in the same file, after all...

This commit is contained in:
Christoph Oelckers 2016-11-02 00:14:08 +01:00
parent 88fd47247d
commit 5e76d3af18

View file

@ -162,14 +162,13 @@ extend class Actor
boom.DeathSound = "misc/brainexplode";
boom.Vel.z = random[BrainScream](0, 255)/128.;
State stt = "BossBrain::Brainexplode";
if (stt) boom.SetState (stt);
}
boom.SetState ("BossBrain::Brainexplode");
boom.bRocketTrail = false;
boom.SetDamage(0); // disables collision detection which is not wanted here
boom.tics -= random[BrainScream](0, 7);
if (boom.tics < 1) boom.tics = 1;
}
}
void A_BrainScream()
{