- handle stayput for bosses.

The generic code is not ready yet so it has to be done manually.
This commit is contained in:
Christoph Oelckers 2022-12-14 12:28:43 +01:00
parent 240b24d771
commit 7b034b5eab
5 changed files with 35 additions and 0 deletions

View file

@ -40,5 +40,12 @@ class DukeBoss1Stayput : DukeBoss1
override void PlayFTASound() override void PlayFTASound()
{ {
} }
override void initialize()
{
super.initialize();
self.actorstayput = self.sector; // make this a flag once everything has been exported.
}
} }

View file

@ -20,5 +20,12 @@ class DukeBoss2Stayput : DukeBoss2
{ {
pic "BOSS2STAYPUT"; pic "BOSS2STAYPUT";
} }
override void initialize()
{
super.initialize();
self.actorstayput = self.sector; // make this a flag once everything has been exported.
}
} }

View file

@ -20,5 +20,12 @@ class DukeBoss3Stayput : DukeBoss3
{ {
pic "BOSS3STAYPUT"; pic "BOSS3STAYPUT";
} }
override void initialize()
{
super.initialize();
self.actorstayput = self.sector; // make this a flag once everything has been exported.
}
} }

View file

@ -20,6 +20,13 @@ class DukeBoss4Stayput : DukeBoss4
{ {
pic "BOSS4STAYPUT"; pic "BOSS4STAYPUT";
} }
override void initialize()
{
super.initialize();
self.actorstayput = self.sector; // make this a flag once everything has been exported.
}
} }

View file

@ -13,6 +13,13 @@ class DukeBoss5Stayput : DukeBoss5
{ {
pic "BOSS5STAYPUT"; pic "BOSS5STAYPUT";
} }
override void initialize()
{
super.initialize();
self.actorstayput = self.sector; // make this a flag once everything has been exported.
}
} }