raze/wadsrc/static/zscript/games/duke/actors/dukeitems.zs

289 lines
3.1 KiB
Text
Raw Normal View History

2022-12-14 12:50:13 +00:00
class DukeItemBase : DukeActor
{
override void Initialize()
{
commonItemSetup();
}
}
class DukeCrystalAmmo : DukeItemBase
{
default
{
pic "CRYSTALAMMO";
+NOFLOORPAL;
2022-12-14 12:50:13 +00:00
}
override bool animate(tspritetype t)
{
t.shade = int(Raze.BobVal(PlayClock << 4) * 16);
return false;
}
}
class DukeFlamethrowerSprite : DukeItemBase
{
default
{
pic "FLAMETHROWERSPRITE";
}
}
class DukeFlamethrowerAmmo : DukeItemBase
{
default
{
pic "FLAMETHROWERAMMO";
}
}
class DukeSteroids : DukeItemBase
{
default
{
pic "STEROIDS";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeHeatSensor : DukeItemBase
{
default
{
pic "HEATSENSOR";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeShield : DukeItemBase
{
default
{
pic "SHIELD";
}
}
class DukeAirtank : DukeItemBase
{
default
{
pic "AIRTANK";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeTripbombSprite : DukeItemBase
{
default
{
pic "TRIPBOMBSPRITE";
}
}
class DukeJetpack : DukeItemBase
{
default
{
pic "JETPACK";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeHoloDuke : DukeItemBase
{
default
{
pic "HOLODUKE";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeFirstgunSprite : DukeItemBase
{
default
{
pic "FIRSTGUNSPRITE";
}
}
class DukeShotgunSprite : DukeItemBase
{
default
{
pic "SHOTGUNSPRITE";
}
}
class DukeChaingunSprite : DukeItemBase
{
default
{
pic "CHAINGUNSPRITE";
}
}
class DukeRPGSprite : DukeItemBase
{
default
{
pic "RPGSPRITE";
}
}
class DukeShrinkerSprite : DukeItemBase
{
default
{
pic "SHRINKERSPRITE";
}
}
class DukeFreezeSprite : DukeItemBase
{
default
{
pic "FREEZESPRITE";
}
}
class DukeDevastatorSprite : DukeItemBase
{
default
{
pic "DEVISTATORSPRITE";
}
}
class DukeShotgunammo : DukeItemBase
{
default
{
pic "SHOTGUNAMMO";
}
}
class DukeFreezeammo : DukeItemBase
{
default
{
pic "FREEZEAMMO";
}
}
class DukeHBombammo : DukeItemBase
{
default
{
pic "HBOMBAMMO";
}
}
class DukeGrowammo : DukeItemBase
{
default
{
pic "GROWAMMO";
}
}
class DukeDevastatorammo : DukeItemBase
{
default
{
pic "DEVISTATORAMMO";
}
}
class DukeRPGammo : DukeItemBase
{
default
{
pic "RPGAMMO";
}
}
class DukeAmmo : DukeItemBase
{
default
{
pic "AMMO";
}
override void Initialize()
{
commonItemSetup((0.25, 0.25));
}
}
class DukeBoots : DukeItemBase
{
default
{
pic "BOOTS";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeAmmoLots : DukeItemBase
{
default
{
pic "AMMOLOTS";
}
}
class DukeCola : DukeItemBase
{
default
{
pic "COLA";
}
}
class DukeFirstAid : DukeItemBase
{
default
{
pic "FIRSTAID";
+INVENTORY;
2022-12-14 12:50:13 +00:00
}
}
class DukeAccessCard : DukeItemBase
{
default
{
pic "ACCESSCARD";
}
override void Initialize()
{
if (ud.multimode > 1 && ud.coop != 1)
{
self.scale = (0, 0);
self.ChangeStat(STAT_MISC);
return;
}
self.Scale = (0.5, 0.5);
self.shade = -17;
if (!self.mapSpawned) self.ChangeStat(STAT_ACTOR);
else
{
self.ChangeStat(STAT_ZOMBIEACTOR);
self.makeitfall();
}
}
}
class DukeGrowSpark : DukeActor
{
default
{
spriteset "GROWSPARK", "GROWSPARK1", "GROWSPARK2", "GROWSPARK3";
+FULLBRIGHT;
+NOFLOORPAL;
}
override bool animate(tspritetype t)
{
t.setSpritePic(self, (PlayClock >> 4) & 3);
return true;
}
}