2022-12-14 16:12:36 +00:00
|
|
|
class DukeSteamBase : DukeActor // we need this for in-game checking and the shared CON code.
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
statnum STAT_STANDABLE;
|
2022-12-16 11:47:30 +00:00
|
|
|
+FORCERUNCON;
|
2022-12-14 16:12:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeCeilingSteam : DukeSteamBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "CEILINGSTEAM";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-12-16 11:47:30 +00:00
|
|
|
class DukeSteam : DukeSteamBase
|
2022-12-12 18:39:17 +00:00
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "STEAM";
|
2022-12-16 11:47:30 +00:00
|
|
|
+FORCERUNCON;
|
2022-12-12 18:39:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
override void Initialize()
|
|
|
|
{
|
|
|
|
let owner = self.ownerActor;
|
|
|
|
|
|
|
|
if (owner && owner != self)
|
|
|
|
{
|
|
|
|
self.Angle = owner.Angle;
|
|
|
|
self.cstat = CSTAT_SPRITE_ALIGNMENT_WALL | CSTAT_SPRITE_YCENTER | CSTAT_SPRITE_TRANSLUCENT;
|
|
|
|
self.vel.X = -0.5;
|
|
|
|
self.doMove(CLIPMASK0);
|
|
|
|
}
|
|
|
|
self.scale = (REPEAT_SCALE, REPEAT_SCALE);
|
|
|
|
self.ChangeStat(STAT_STANDABLE);
|
|
|
|
}
|
|
|
|
}
|