mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-02 17:11:51 +00:00
48 lines
921 B
Text
48 lines
921 B
Text
|
// This appears not to be used
|
||
|
class RedneckPigDisplay : DukeActor
|
||
|
{
|
||
|
default
|
||
|
{
|
||
|
spriteset "PIGBACK", "PIGBACK1", "PIGBACK2", "PIGBACK3", "PIGBACK4";
|
||
|
ScaleX 0.25;
|
||
|
ScaleY 0.25;
|
||
|
clipdist 0;
|
||
|
extra 0;
|
||
|
statnum STAT_ACTOR;
|
||
|
}
|
||
|
|
||
|
override void Initialize()
|
||
|
{
|
||
|
cstat = 0;
|
||
|
}
|
||
|
|
||
|
override void Tick()
|
||
|
{
|
||
|
self.extra++;
|
||
|
if (self.extra < 100)
|
||
|
{
|
||
|
if (self.extra == 90)
|
||
|
{
|
||
|
self.setSpriteSetImage(min(self.spritesetIndex + 1, 4));
|
||
|
self.extra = 1;
|
||
|
}
|
||
|
self.movesprite((0, 0, -300/256.), CLIPMASK0);
|
||
|
if (self.sector.ceilingz + 4 > self.pos.Z)
|
||
|
{
|
||
|
self.cstat = CSTAT_SPRITE_INVISIBLE;
|
||
|
self.extra = 100;
|
||
|
}
|
||
|
}
|
||
|
else if (self.extra == 200)
|
||
|
{
|
||
|
// This was really 10 and not (10 << 8)!
|
||
|
self.SetPosition((self.pos.X, self.pos.Y, self.sector.floorz - 10 * zmaptoworld));
|
||
|
self.extra = 1;
|
||
|
self.cstat = 0;
|
||
|
self.setSpriteSetImage(0);
|
||
|
self.spawn("DukeTransporterStar");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|