2022-11-19 18:01:17 +00:00
|
|
|
|
|
|
|
class DukeCanWithSomething : DukeActor
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
pic "CANWITHSOMETHING";
|
2022-12-16 11:47:30 +00:00
|
|
|
+CHECKSLEEP;
|
|
|
|
+MOVEFTA_MAKESTANDABLE;
|
2022-11-19 18:01:17 +00:00
|
|
|
}
|
|
|
|
|
2023-05-14 10:18:47 +00:00
|
|
|
override void Initialize(DukeActor spawner)
|
2022-11-19 18:01:17 +00:00
|
|
|
{
|
2022-12-13 10:29:37 +00:00
|
|
|
if (!self.mapSpawned)
|
2022-11-19 18:01:17 +00:00
|
|
|
self.scale = (0.5, 0.5);
|
|
|
|
self.makeitfall();
|
|
|
|
self.cstat = CSTAT_SPRITE_BLOCK_ALL | randomXFlip();
|
2022-12-19 09:21:20 +00:00
|
|
|
self.extra = 0;
|
|
|
|
self.clipdist = 18;
|
|
|
|
self.ChangeStat(STAT_ZOMBIEACTOR);
|
2022-11-19 18:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override void Tick()
|
|
|
|
{
|
|
|
|
self.makeitfall();
|
|
|
|
int j = self.ifhitbyweapon();
|
|
|
|
if (j >= 0)
|
|
|
|
{
|
2022-11-24 20:27:08 +00:00
|
|
|
self.PlayActorSound("VENT_BUST");
|
2022-11-19 18:01:17 +00:00
|
|
|
for (j = 0; j < 10; j++)
|
|
|
|
self.RANDOMSCRAP();
|
|
|
|
|
|
|
|
if (self.lotag) self.spawnsprite(self.lotag);
|
|
|
|
self.Destroy();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|