mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-12 21:52:23 +00:00
3a00480efd
As soon as default init for CON gets in this won't work right anymore - these must come last, not first. This commit contains all the trivial cases with no inheritance concerns.
39 lines
556 B
Text
39 lines
556 B
Text
class RedneckRabbitSpawner : DukeActor
|
|
{
|
|
override void Initialize()
|
|
{
|
|
self.cstat = CSTAT_SPRITE_INVISIBLE;
|
|
self.extra = 0;
|
|
self.ChangeStat(STAT_FX);
|
|
}
|
|
|
|
override void Tick()
|
|
{
|
|
if (self.statnum == STAT_RABBITSPAWN)
|
|
{
|
|
if (self.hitag > 0)
|
|
{
|
|
if (self.extra == 0)
|
|
{
|
|
self.hitag--;
|
|
self.extra = 150;
|
|
self.spawn("RedneckRabbit");
|
|
}
|
|
else
|
|
self.extra--;
|
|
}
|
|
}
|
|
}
|
|
|
|
override void onRespawn(int low)
|
|
{
|
|
if (self.lotag == low)
|
|
{
|
|
if (!ud.monsters_off)
|
|
self.ChangeStat(STAT_RABBITSPAWN);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|