- fixed missing handling for BADGUYSTAYPUT flag.

This commit is contained in:
Christoph Oelckers 2023-05-18 09:39:54 +02:00
parent b6767aa7a3
commit b993f05c8f
3 changed files with 7 additions and 1 deletions

View file

@ -295,6 +295,11 @@ static void commonEnemySetup(DDukeActor* self, DDukeActor* owner)
{
if (!self->mapSpawned) self->spr.lotag = 0;
if (self->flags1 & SFLAG_BADGUYSTAYPUT)
{
self->actorstayput = self->spr.sectp;
}
if (gs.actorinfo[self->spr.picnum].scriptaddress) // default scale only applies to actors with a CON part. Note: needs fixing later!
{
// Init the size. This is different for internal and user enemies.

View file

@ -138,6 +138,7 @@ class DukeLizTrooperStayput : DukeLizTrooper
{
pic "LIZTROOPSTAYPUT";
+BADGUYSTAYPUT;
+BADGUYSTAYPUT;
}
override void PlayFTASound(int mode)

View file

@ -4,12 +4,12 @@ class RedneckBubbaStand : DukeActor
{
pic "BUBBASTAND";
+INTERNAL_BADGUY;
+BADGUYSTAYPUT;
Strength 100;
}
override void Initialize(DukeActor spawner)
{
self.actorstayput = self.sector; // make this a flag once everything has been exported.
self.scale = (0.390625, 0.328125);
self.setClipDistFromTile();
}