2022-11-20 10:58:19 +00:00
|
|
|
class RedneckRabbitSpawner : DukeActor
|
|
|
|
{
|
2023-05-14 10:18:47 +00:00
|
|
|
override void Initialize(DukeActor spawner)
|
2022-11-20 10:58:19 +00:00
|
|
|
{
|
|
|
|
self.cstat = CSTAT_SPRITE_INVISIBLE;
|
2022-12-19 09:21:20 +00:00
|
|
|
self.extra = 0;
|
|
|
|
self.ChangeStat(STAT_FX);
|
2022-11-20 10:58:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|