mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-12 05:32:14 +00:00
bf577916ec
With the exception of isWorldTour, isPlutoPak and isShareware when playing Duke these are always constant and this way can be used to completely eliminate unneeded code.
49 lines
706 B
Text
49 lines
706 B
Text
|
|
|
|
class RedneckCoot : DukeActor
|
|
{
|
|
const COOTSTRENGTH = 50;
|
|
|
|
default
|
|
{
|
|
pic "COOT";
|
|
Strength COOTSTRENGTH;
|
|
precacheclass "RedneckCootJibA", "RedneckCootJibB", "RedneckCootJibC";
|
|
+INTERNAL_BADGUY;
|
|
+KILLCOUNT;
|
|
+DESTRUCTOIMMUNE;
|
|
}
|
|
|
|
override void PlayFTASound(int mode)
|
|
{
|
|
if (!isRRRA() && (random(0, 3)) == 2)
|
|
self.PlayActorSound("CT_GET");
|
|
}
|
|
|
|
override void Initialize()
|
|
{
|
|
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)
|
|
{
|
|
}
|
|
|
|
}
|
|
|