raze/wadsrc/static/zscript/games/duke/actors/redneckenemies/coot.zs

50 lines
723 B
Text
Raw Normal View History

class RedneckCoot : DukeActor
{
const COOTSTRENGTH = 50;
default
{
pic "COOT";
Strength COOTSTRENGTH;
precacheclass "RedneckCootJibA", "RedneckCootJibB", "RedneckCootJibC";
+INTERNAL_BADGUY;
+KILLCOUNT;
2022-12-30 17:05:44 +00:00
+DESTRUCTOIMMUNE;
}
override void PlayFTASound(int mode)
{
if (!isRRRA() && (random(0, 3)) == 2)
self.PlayActorSound("CT_GET");
}
override void Initialize(DukeActor spawner)
{
self.scale = (0.375, 0.28125);
self.setClipDistFromTile();
self.clipdist *= 4;
if (isRRRA()) bLookAllaround = true;
}
}
class RedneckCootStayput: RedneckCoot
{
default
{
pic "COOTSTAYPUT";
+INTERNAL_BADGUY;
+KILLCOUNT;
+BADGUYSTAYPUT;
}
override void PlayFTASound(int mode)
{
}
}