From fda386423f2e35fd12819ec632080b50c15347ee Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 7 Apr 2023 08:30:58 +0200 Subject: [PATCH] - added back WT's fireball's postHitEffect. This somehow got lost during scriptification. --- .../zscript/games/duke/actors/projectiles.zs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wadsrc/static/zscript/games/duke/actors/projectiles.zs b/wadsrc/static/zscript/games/duke/actors/projectiles.zs index 60482e7d1..52ceba38a 100644 --- a/wadsrc/static/zscript/games/duke/actors/projectiles.zs +++ b/wadsrc/static/zscript/games/duke/actors/projectiles.zs @@ -683,6 +683,20 @@ class DukeFireball : DukeProjectile // WorldTour only } return false; } + + override void posthiteffect(CollisionData coll) + { + if (self.detail != 1) + { + let spawned = self.spawn('DukeExplosion2'); + if (spawned) + { + let scale = self.scale.X * 0.5; + spawned.scale = (scale,scale); + } + } + Super.postHitEffect(coll); + } override bool animate(tspritetype tspr) {