raze/wadsrc/static/zscript/games/duke/actors/dukeenemies/rotategun.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

30 lines
No EOL
424 B
Text

class DukeRotateGun : DukeActor
{
const ROTTURRETSTRENGTH = 40;
default
{
pic "ROTATEGUN";
Strength ROTTURRETSTRENGTH;
+INTERNAL_BADGUY;
+KILLCOUNT;
+NODAMAGEPUSH;
+NORADIUSPUSH;
+SHOOTCENTERED;
+NOVERTICALMOVE;
+MOVE_NOPLAYERINTERACT;
+NOHITJIBS;
+NOSHOTGUNBLOOD;
sparkoffset -3;
aimoffset 32;
shootzoffset 0;
}
override void Initialize(DukeActor spawner)
{
self.vel.Z = 0;
}
}