mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 23:42:08 +00:00
513de38723
Using ownerActor is not robust, for some actors this will have unwanted side effects.
29 lines
No EOL
471 B
Text
29 lines
No EOL
471 B
Text
|
|
|
|
|
|
class DukeEgg : DukeActor
|
|
{
|
|
default
|
|
{
|
|
pic "EGG";
|
|
Strength TOUGH;
|
|
|
|
}
|
|
|
|
override void Initialize(DukeActor spawner)
|
|
{
|
|
if (ud.monsters_off == 1)
|
|
{
|
|
self.scale = (0, 0);
|
|
self.ChangeStat(STAT_MISC);
|
|
}
|
|
else
|
|
{
|
|
self.bINTERNAL_BADGUY = true; // the egg needs this flag, but it should not run through the monster init code.
|
|
self.clipdist = 6;
|
|
self.cstat = CSTAT_SPRITE_BLOCK_ALL | randomXFlip();
|
|
self.ChangeStat(STAT_ZOMBIEACTOR);
|
|
}
|
|
}
|
|
|
|
} |