2022-11-19 18:01:17 +00:00
|
|
|
|
|
|
|
class DukeCanWithSomething : DukeActor
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
extra 0;
|
|
|
|
clipdist 18;
|
|
|
|
statnum STAT_ZOMBIEACTOR;
|
|
|
|
pic "CANWITHSOMETHING";
|
|
|
|
}
|
|
|
|
|
|
|
|
override void Initialize()
|
|
|
|
{
|
|
|
|
if (self.ownerActor != self)
|
|
|
|
self.scale = (0.5, 0.5);
|
|
|
|
self.makeitfall();
|
|
|
|
self.cstat = CSTAT_SPRITE_BLOCK_ALL | randomXFlip();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeCanWithSomething2 : DukeCanWithSomething
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
pic "CANWITHSOMETHING2";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeCanWithSomething3 : DukeCanWithSomething
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
pic "CANWITHSOMETHING3";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeCanWithSomething4 : DukeCanWithSomething
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
pic "CANWITHSOMETHING4";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|