mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-28 06:53:29 +00:00
39 lines
652 B
Text
39 lines
652 B
Text
class DukeOnFire : DukeActor
|
|
{
|
|
default
|
|
{
|
|
pic "FLOORFLAME";
|
|
+FORCERUNCON;
|
|
}
|
|
|
|
override void Initialize()
|
|
{
|
|
if (!self.mapspawned)
|
|
{
|
|
self.Angle = self.ownerActor.Angle;
|
|
self.shade = -64;
|
|
self.cstat = randomXFlip();
|
|
|
|
double c, f;
|
|
[c, f] = self.sector.getSlopes(self.pos.XY);
|
|
if (self.pos.Z > f - 12)
|
|
self.pos.Z = f - 12;
|
|
}
|
|
|
|
self.pos.X += frandom(-16, 16);
|
|
self.pos.Y += frandom(-16, 16);
|
|
self.pos.Z -= frandom(0, 40);
|
|
self.cstat |= CSTAT_SPRITE_YCENTER;
|
|
self.scale = (0.375, 0.375);
|
|
self.ChangeStat(STAT_MISC);
|
|
}
|
|
}
|
|
|
|
class DukeOnFireSmoke : DukeActor
|
|
{
|
|
default
|
|
{
|
|
pic "ONFIRESMOKE";
|
|
+FORCERUNCON;
|
|
}
|
|
}
|