mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-03 09:32:45 +00:00
43 lines
562 B
Text
43 lines
562 B
Text
class DukeAtomicHealth : DukeItemBase
|
|
{
|
|
default
|
|
{
|
|
pic "ATOMICHEALTH";
|
|
}
|
|
|
|
override void Initialize()
|
|
{
|
|
commonItemSetup();
|
|
self.cstat |= CSTAT_SPRITE_YCENTER;
|
|
}
|
|
|
|
override bool animate(tspritetype t)
|
|
{
|
|
t.pos.Z -= 4;
|
|
t.shade = -127;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
class RedneckGoogooCluster : DukeItemBase
|
|
{
|
|
default
|
|
{
|
|
pic "ATOMICHEALTH";
|
|
}
|
|
|
|
override void Initialize()
|
|
{
|
|
commonItemSetup((0.125, 0.125));
|
|
self.cstat |= CSTAT_SPRITE_YCENTER;
|
|
}
|
|
|
|
override bool animate(tspritetype t)
|
|
{
|
|
t.pos.Z -= 4;
|
|
t.shade = -127;
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|