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

42 lines
No EOL
635 B
Text

class RedneckBillyRay : DukeActor
{
const BILLYRAYSTRENGTH = 100;
default
{
pic "BILLYRAY";
+INTERNAL_BADGUY;
+KILLCOUNT;
precacheclass "RedneckBillyJibA", "RedneckBillyJibB";
Strength BILLYRAYSTRENGTH;
}
override void PlayFTASound(int mode)
{
if (mode == 0) self.PlayActorSound("BR_RECOG");
else self.PlayActorSound("FART1");
}
override void Initialize(DukeActor spawner)
{
self.scale = (0.390625, 0.328125);
self.setClipDistFromTile();
}
}
class RedneckBillyRayStayput: RedneckBillyRay
{
default
{
pic "BILLYRAYSTAYPUT";
+BADGUYSTAYPUT
}
override void PlayFTASound(int mode)
{
}
}