raze/wadsrc/static/zscript/games/duke/actors/dukeenemies/turret.zs
Christoph Oelckers 513de38723 - pass the spawner to Initialize as an explicit parameter.
Using ownerActor is not robust, for some actors this will have unwanted side effects.
2023-05-19 22:57:26 +02:00

27 lines
No EOL
398 B
Text

class DukeTurret : DukeActor
{
const TURRETSTRENGTH = 30;
default
{
pic "ORGANTIC";
Strength TURRETSTRENGTH;
+INTERNAL_BADGUY;
+KILLCOUNT;
+NOVERTICALMOVE;
+NOHITJIBS;
+NOSHOTGUNBLOOD;
aimoffset 32;
}
override void PlayFTASound(int mode)
{
self.PlayActorSound("TURR_RECOG");
}
override void Initialize(DukeActor spawner)
{
self.cstat |= CSTAT_SPRITE_YCENTER;
}
}