2022-12-13 18:39:27 +00:00
|
|
|
class DukeBoss1 : DukeActor
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "BOSS1";
|
2022-12-19 21:40:16 +00:00
|
|
|
+INTERNAL_BADGUY;
|
|
|
|
+KILLCOUNT;
|
2022-12-16 11:47:30 +00:00
|
|
|
+NODAMAGEPUSH;
|
|
|
|
+BOSS;
|
2022-12-13 18:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
override void Initialize()
|
|
|
|
{
|
|
|
|
let owner = self.ownerActor;
|
|
|
|
if (owner && owner is 'DukeRespawnController')
|
|
|
|
self.pal = owner.pal;
|
|
|
|
|
|
|
|
if (self.pal != 0 && (!Raze.isWorldTour() || !(currentLevel.gameflags & MapRecord.LEVEL_WT_BOSSSPAWN) || self.pal != 22))
|
|
|
|
{
|
|
|
|
self.clipdist = 20;
|
|
|
|
self.scale = (0.625, 0.625);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
self.scale = (1.25, 1.25);
|
|
|
|
self.clipdist = 41;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
override void PlayFTASound()
|
|
|
|
{
|
|
|
|
Duke.PlaySound("BOS1_RECOG");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class DukeBoss1Stayput : DukeBoss1
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "BOSS1STAYPUT";
|
|
|
|
}
|
|
|
|
|
|
|
|
override void PlayFTASound()
|
|
|
|
{
|
|
|
|
}
|
2022-12-14 11:28:43 +00:00
|
|
|
|
|
|
|
override void initialize()
|
|
|
|
{
|
|
|
|
super.initialize();
|
|
|
|
self.actorstayput = self.sector; // make this a flag once everything has been exported.
|
|
|
|
}
|
|
|
|
|
2022-12-13 18:39:27 +00:00
|
|
|
}
|
|
|
|
|