From 7b034b5eabc66721dee8fbc11398dae8680627b6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 14 Dec 2022 12:28:43 +0100 Subject: [PATCH] - handle stayput for bosses. The generic code is not ready yet so it has to be done manually. --- wadsrc/static/zscript/games/duke/actors/boss1.zs | 7 +++++++ wadsrc/static/zscript/games/duke/actors/boss2.zs | 7 +++++++ wadsrc/static/zscript/games/duke/actors/boss3.zs | 7 +++++++ wadsrc/static/zscript/games/duke/actors/boss4.zs | 7 +++++++ wadsrc/static/zscript/games/duke/actors/boss5.zs | 7 +++++++ 5 files changed, 35 insertions(+) diff --git a/wadsrc/static/zscript/games/duke/actors/boss1.zs b/wadsrc/static/zscript/games/duke/actors/boss1.zs index c04994d69..d12fa33e4 100644 --- a/wadsrc/static/zscript/games/duke/actors/boss1.zs +++ b/wadsrc/static/zscript/games/duke/actors/boss1.zs @@ -40,5 +40,12 @@ class DukeBoss1Stayput : DukeBoss1 override void PlayFTASound() { } + + override void initialize() + { + super.initialize(); + self.actorstayput = self.sector; // make this a flag once everything has been exported. + } + } \ No newline at end of file diff --git a/wadsrc/static/zscript/games/duke/actors/boss2.zs b/wadsrc/static/zscript/games/duke/actors/boss2.zs index 90de809c6..1f83c2f4d 100644 --- a/wadsrc/static/zscript/games/duke/actors/boss2.zs +++ b/wadsrc/static/zscript/games/duke/actors/boss2.zs @@ -20,5 +20,12 @@ class DukeBoss2Stayput : DukeBoss2 { pic "BOSS2STAYPUT"; } + + override void initialize() + { + super.initialize(); + self.actorstayput = self.sector; // make this a flag once everything has been exported. + } + } diff --git a/wadsrc/static/zscript/games/duke/actors/boss3.zs b/wadsrc/static/zscript/games/duke/actors/boss3.zs index aab2c6d20..4a0df573b 100644 --- a/wadsrc/static/zscript/games/duke/actors/boss3.zs +++ b/wadsrc/static/zscript/games/duke/actors/boss3.zs @@ -20,5 +20,12 @@ class DukeBoss3Stayput : DukeBoss3 { pic "BOSS3STAYPUT"; } + + override void initialize() + { + super.initialize(); + self.actorstayput = self.sector; // make this a flag once everything has been exported. + } + } \ No newline at end of file diff --git a/wadsrc/static/zscript/games/duke/actors/boss4.zs b/wadsrc/static/zscript/games/duke/actors/boss4.zs index 3a8c6c529..06733edd4 100644 --- a/wadsrc/static/zscript/games/duke/actors/boss4.zs +++ b/wadsrc/static/zscript/games/duke/actors/boss4.zs @@ -20,6 +20,13 @@ class DukeBoss4Stayput : DukeBoss4 { pic "BOSS4STAYPUT"; } + + override void initialize() + { + super.initialize(); + self.actorstayput = self.sector; // make this a flag once everything has been exported. + } + } diff --git a/wadsrc/static/zscript/games/duke/actors/boss5.zs b/wadsrc/static/zscript/games/duke/actors/boss5.zs index c1754f5cb..278efb6ba 100644 --- a/wadsrc/static/zscript/games/duke/actors/boss5.zs +++ b/wadsrc/static/zscript/games/duke/actors/boss5.zs @@ -13,6 +13,13 @@ class DukeBoss5Stayput : DukeBoss5 { pic "BOSS5STAYPUT"; } + + override void initialize() + { + super.initialize(); + self.actorstayput = self.sector; // make this a flag once everything has been exported. + } + }