mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-30 07:50:54 +00:00
41 lines
679 B
Text
41 lines
679 B
Text
class DukeSteamBase : DukeActor // we need this for in-game checking and the shared CON code.
|
|
{
|
|
default
|
|
{
|
|
statnum STAT_STANDABLE;
|
|
+FORCERUNCON;
|
|
}
|
|
}
|
|
|
|
class DukeCeilingSteam : DukeSteamBase
|
|
{
|
|
default
|
|
{
|
|
pic "CEILINGSTEAM";
|
|
}
|
|
}
|
|
|
|
|
|
class DukeSteam : DukeSteamBase
|
|
{
|
|
default
|
|
{
|
|
pic "STEAM";
|
|
+FORCERUNCON;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|