From 5e76d3af186a9ba78955e22d402feb99d0fef6f7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 2 Nov 2016 00:14:08 +0100 Subject: [PATCH] - fixed BrainishExplosion and removed some unnecessary checks, the state to be set is being defined in the same file, after all... --- wadsrc/static/zscript/doom/bossbrain.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wadsrc/static/zscript/doom/bossbrain.txt b/wadsrc/static/zscript/doom/bossbrain.txt index 2193be9542..641263eccb 100644 --- a/wadsrc/static/zscript/doom/bossbrain.txt +++ b/wadsrc/static/zscript/doom/bossbrain.txt @@ -162,13 +162,12 @@ 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; } - 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()