mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-23 04:22:16 +00:00
- fixed missing handling for BADGUYSTAYPUT flag.
This commit is contained in:
parent
b6767aa7a3
commit
b993f05c8f
3 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -138,6 +138,7 @@ class DukeLizTrooperStayput : DukeLizTrooper
|
|||
{
|
||||
pic "LIZTROOPSTAYPUT";
|
||||
+BADGUYSTAYPUT;
|
||||
+BADGUYSTAYPUT;
|
||||
}
|
||||
|
||||
override void PlayFTASound(int mode)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue