2022-12-14 12:50:13 +00:00
|
|
|
class DukeItemBase : DukeActor
|
|
|
|
{
|
|
|
|
override void Initialize()
|
|
|
|
{
|
|
|
|
commonItemSetup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class DukeCrystalAmmo : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "CRYSTALAMMO";
|
2022-12-16 11:47:30 +00:00
|
|
|
+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";
|
2022-12-16 11:47:30 +00:00
|
|
|
+INVENTORY;
|
2022-12-14 12:50:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeHeatSensor : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "HEATSENSOR";
|
2022-12-16 11:47:30 +00:00
|
|
|
+INVENTORY;
|
2022-12-14 12:50:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeShield : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "SHIELD";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeAirtank : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "AIRTANK";
|
2022-12-16 11:47:30 +00:00
|
|
|
+INVENTORY;
|
2022-12-14 12:50:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeTripbombSprite : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "TRIPBOMBSPRITE";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeJetpack : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "JETPACK";
|
2022-12-16 11:47:30 +00:00
|
|
|
+INVENTORY;
|
2022-12-14 12:50:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DukeHoloDuke : DukeItemBase
|
|
|
|
{
|
|
|
|
default
|
|
|
|
{
|
|
|
|
pic "HOLODUKE";
|
2022-12-16 11:47:30 +00:00
|
|
|
+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";
|
2022-12-16 11:47:30 +00:00
|
|
|
+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";
|
2022-12-16 11:47:30 +00:00
|
|
|
+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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-14 19:27:19 +00:00
|
|
|
|