mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-11 05:11:07 +00:00
35 lines
496 B
Text
35 lines
496 B
Text
|
class DukeWaterBubble : DukeActor
|
||
|
{
|
||
|
default
|
||
|
{
|
||
|
pic "WATERBUBBLE";
|
||
|
}
|
||
|
|
||
|
override void Initialize()
|
||
|
{
|
||
|
let owner = self.ownerActor;
|
||
|
if (owner && owner.isPlayer())
|
||
|
self.pos.Z -= 16;
|
||
|
if (owner != self)
|
||
|
self.angle = owner.angle;
|
||
|
|
||
|
self.scale = (0.0625, 0.0625);
|
||
|
self.ChangeStat(STAT_MISC);
|
||
|
}
|
||
|
|
||
|
override bool animate(tspritetype t)
|
||
|
{
|
||
|
if (dlevel.floorsurface(t.sector) == Duke.TSURF_SLIME)
|
||
|
{
|
||
|
t.pal = 7;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
t.copyfloorpal(t.sector);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|