mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-01 00:22:03 +00:00
ccc048136f
All types needed for cleaning up PicForName
49 lines
773 B
Text
49 lines
773 B
Text
class DukeExplosion2 : DukeActor
|
|
{
|
|
default
|
|
{
|
|
pic "EXPLOSION2";
|
|
}
|
|
|
|
override bool animate(tspritetype t)
|
|
{
|
|
Duke.GetViewPlayer().visibility = -127;
|
|
Duke.setlastvisinc(32);
|
|
t.shade = -127;
|
|
return false;
|
|
}
|
|
|
|
override void Initialize()
|
|
{
|
|
let owner = self.ownerActor;
|
|
|
|
if (owner && owner != self)
|
|
{
|
|
self.Angle = owner.Angle;
|
|
self.cstat = randomXFlip();
|
|
|
|
double c,f;
|
|
[c, f] = self.sector.getSlopes(self.pos.XY);
|
|
self.pos.Z = min(self.pos.Z, f - 12);
|
|
}
|
|
self.cstat |= CSTAT_SPRITE_YCENTER;
|
|
self.shade = -127;
|
|
self.Scale = (0.75, 0.75);
|
|
self.ChangeStat(STAT_MISC);
|
|
}
|
|
}
|
|
|
|
class DukeExplosion2Bot : DukeExplosion2
|
|
{
|
|
default
|
|
{
|
|
pic "EXPLOSION2BOT";
|
|
}
|
|
|
|
override bool animate(tspritetype t)
|
|
{
|
|
t.shade = -127;
|
|
return false;
|
|
}
|
|
}
|
|
|