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

23 lines
No EOL
337 B
Text

class DukeShark : DukeActor
{
const SHARKSTRENGTH = 35;
const SHARKBITESTRENGTH = -9;
default
{
pic "SHARK";
+INTERNAL_BADGUY;
+DONTDIVEALIVE;
+FLOATING;
Strength SHARKSTRENGTH;
}
override void Initialize(DukeActor spawner)
{
// override some defaults.
self.scale = (0.9375, 0.9375);
self.clipdist = 10;
}
}