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

29 lines
444 B
Text

class RedneckHen : DukeActor
{
const HEN_NORMAL_STRENGTH = 5;
const HEN_TOUGHER_STRENGTH = 12;
const HEN_DAMAGE_TO_PLAYER = -1;
default
{
pic "HEN";
+INTERNAL_BADGUY;
Strength HEN_TOUGHER_STRENGTH;
}
override void Initialize(DukeActor spawner)
{
if (self.pal == 35)
{
self.scale = (0.65625, 0.46875);
self.setClipDistFromTile();
}
else
{
self.scale = (0.328125, 0.234375);
self.clipdist = 16;
}
}
}