From d7224245e3ddbfc7dceb790781f35865fe1251f7 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 7b45c1b2e..912380726 100644 --- a/wadsrc/static/zscript/games/duke/actors/projectiles.zs +++ b/wadsrc/static/zscript/games/duke/actors/projectiles.zs @@ -714,6 +714,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) {