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

41 lines
448 B
Text

class RedneckPig : DukeActor
{
const PIGSTRENGTH = 75;
const PIG_GNAW_AMOUNT = -1;
default
{
pic "PIG";
+INTERNAL_BADGUY;
Strength PIGSTRENGTH;
}
override void Initialize(DukeActor spawner)
{
self.scale = (0.25, 0.25);;
self.setClipDistFromTile();
}
}
class RedneckPigStayput : RedneckPig
{
default
{
pic "PIGSTAYPUT";
+BADGUYSTAYPUT;
}
}
class RedneckPigEat : RedneckPig
{
default
{
pic "PIGEAT";
}
}