From 9a1a90a730ae41a5b922e904643db1822abe0115 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 18 Dec 2022 09:14:11 +0100 Subject: [PATCH] - Duke: fixed mortars not toggling their hittable state depending on player distance. This is needed to make them shootable from a distance. Somehow these two lines of code had gotten lost during scriptification. --- wadsrc/static/zscript/games/duke/actors/mortar.zs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wadsrc/static/zscript/games/duke/actors/mortar.zs b/wadsrc/static/zscript/games/duke/actors/mortar.zs index e36882280..21c9a1115 100644 --- a/wadsrc/static/zscript/games/duke/actors/mortar.zs +++ b/wadsrc/static/zscript/games/duke/actors/mortar.zs @@ -21,6 +21,9 @@ class DukeMortar : DukeActor [p,xx] = self.findplayer(); + if (xx < 1220 / 16.) self.cstat &= ~CSTAT_SPRITE_BLOCK_ALL; + else self.cstat |= CSTAT_SPRITE_BLOCK_ALL; + if (self.temp_data[3] == 0) { int j = self.ifhitbyweapon();