raze/wadsrc/static/zscript/games/duke/actors/redneckstuff/items.zs

375 lines
6 KiB
Text
Raw Permalink Normal View History

extend class DukeItemBase
{
const CASULAMMOAMOUNT = 6;
const SHOTGUNAMMOAMOUNT_RR = 10;
const RIFLEAMMOAMOUNT = 30;
const CROSSBOWAMMOBOX = 5;
const CHICKENBOWAMMOBOX = 5;
const ALIENBLASTERAMMOAMOUNT = 33;
const DYNAMITEBOX = 5;
const MOONSHINE_AMOUNT = 400;
const SHIELD_AMOUNT = 100;
const SCUBA_AMOUNT = 6400;
const HEAT_AMOUNT = 1200;
const COWPIE_AMOUNT = 600;
const BEER_AMOUNT = 2400;
const WHISKEY_AMOUNT = MAXPLAYERHEALTH;
const BOOT_AMOUNT = 2000;
2022-12-15 08:01:01 +00:00
const POWDERKEGBLASTRADIUS = 3880;
}
class RedneckMoonshine : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "STEROIDS";
+INVENTORY;
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.203125, 0.140625));
2022-12-15 08:01:01 +00:00
}
}
class RedneckHipWader : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "BOOTS";
+INVENTORY;
2022-12-15 08:01:01 +00:00
}
}
class RedneckCowpie : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "COWPIE";
+INVENTORY;
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.125, 0.09375));
2022-12-15 08:01:01 +00:00
}
}
class RedneckBeer : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "BEER";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.078125, 0.0625));
2022-12-15 08:01:01 +00:00
}
}
class RedneckSnorkel : DukeItemBase
{
default
{
pic "AIRTANK";
+INVENTORY;
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.296875, 0.25));
2022-12-15 08:01:01 +00:00
}
}
class RedneckDoorkey : DukeAccessCard
{
override void Initialize(DukeActor spawner)
{
super.Initialize(spawner);
self.Scale = (0.171875, 0.1875);
}
}
class RedneckAmmo : DukeItemBase
{
default
{
pic "AMMO";
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.140625, 0.140625));
}
2022-12-15 08:01:01 +00:00
}
class RedneckTitAmmo : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "TEATAMMO";
}
}
class RedneckSawAmmo : DukeItemBase
{
default
{
pic "SAWAMMO";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.1875, 0.109375));
2022-12-15 08:01:01 +00:00
}
}
class RedneckShotgunammo : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "SHOTGUNAMMO";
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.28125, 0.265625));
if (isRRRA()) self.cstat = CSTAT_SPRITE_BLOCK_HITSCAN;
2022-12-15 08:01:01 +00:00
}
}
class RedneckRifleAmmo : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "BATTERYAMMO";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.234375, 0.234375));
2022-12-15 08:01:01 +00:00
}
}
class RedneckBlaster : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "ALIENBLASTERSPRITE";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.28125, 0.265625));
}
}
class RedneckBlasterammo : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "DEVISTATORAMMO";
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.15625, 0.140625));
2022-12-15 08:01:01 +00:00
}
}
class RedneckBowlingBallsprite : DukeItemBase
{
default
{
pic "BOWLINGBALLSPRITE";
strength BOWLINGBALL_WEAPON_STRENGTH;
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.171875, 0.171875), -1, true);
}
}
class RedneckDynamiteAmmo : DukeItemBase
{
default
{
pic "HBOMBAMMO";
}
}
2022-12-15 08:01:01 +00:00
class RedneckCrossbow : DukeItemBase
{
default
{
pic "CROSSBOWSPRITE";
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.25, 0.21875));
2022-12-15 08:01:01 +00:00
}
}
class RedneckShotgun : DukeItemBase
{
default
{
pic "SHOTGUNSPRITE";
}
}
2022-12-15 08:01:01 +00:00
class RedneckRipsaw : DukeItemBase
{
default
{
pic "RIPSAWSPRITE";
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.34375, 0.203125));
2022-12-15 08:01:01 +00:00
}
}
class RedneckTitgun : DukeItemBase
{
default
{
pic "TITSPRITE";
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.265625, 0.25));
2022-12-15 08:01:01 +00:00
}
}
class RedneckPorkRinds : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "SIXPAK";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.203125, 0.140625));
if (isRRRA()) self.cstat = CSTAT_SPRITE_BLOCK_HITSCAN;
2022-12-15 08:01:01 +00:00
}
}
class RedneckGoogooCluster : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "ATOMICHEALTH";
+FULLBRIGHT;
+BIGHEALTH;
+NOFLOORPAL;
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.125, 0.125));
self.cstat |= CSTAT_SPRITE_YCENTER;
2022-12-15 08:01:01 +00:00
}
override bool animate(tspritetype t)
2022-12-15 08:01:01 +00:00
{
t.pos.Z -= 4;
return false;
2022-12-15 08:01:01 +00:00
}
}
class RedneckWhiskey : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "FIRSTAID";
+INVENTORY;
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.125, 0.125));
2022-12-15 08:01:01 +00:00
}
}
class RedneckRevolver : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "FIRSTGUNSPRITE";
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, ((0.25, 0.25)));
2022-12-15 08:01:01 +00:00
}
}
class RedneckPowderKeg : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "POWDERKEG";
+NOFLOORPAL;
+EXPLOSIVE;
+DOUBLEDMGTHRUST;
+BREAKMIRRORS;
+INFLAME;
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
{
commonItemSetup(spawner, (0.171875, 0.171875));
self.yint = 4;
}
2022-12-15 08:01:01 +00:00
override void Tick()
2022-12-15 08:01:01 +00:00
{
let sectp = self.sector;
if (sectp.lotag != ST_1_ABOVE_WATER && (!(ud.mapflags & MFLAG_ALLSECTORTYPES) && sectp.lotag != ST_160_FLOOR_TELEPORT))
if (self.vel.X != 0)
{
movesprite((self.Angle.ToVector()* self.vel.X, self.vel.Z), CLIPMASK0);
self.vel.X -= 1. / 16.;
if (self.vel.X < 0) self.vel.X = 0;
}
Super.Tick();
2022-12-15 08:01:01 +00:00
}
override bool shootthis(DukeActor actor, DukePlayer p, Vector3 spos, double sang) const
2022-12-15 08:01:01 +00:00
{
let j = actor.spawn("RedneckPowderKeg");
if (j)
{
j.vel.X = 2;
j.Angle = actor.Angle;
j.pos.Z -= 5;
}
return true;
2022-12-15 08:01:01 +00:00
}
}
class RedneckRiflegun : DukeItemBase
{
default
2022-12-15 08:01:01 +00:00
{
pic "RIFLEGUNSPRITE";
2022-12-15 08:01:01 +00:00
}
}
class RedneckMotoAmmo : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "MOTOAMMO";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.359375, 0.359375));
2022-12-15 08:01:01 +00:00
}
}
class RedneckBoatAmmo : DukeItemBase
2022-12-15 08:01:01 +00:00
{
default
{
pic "BOATAMMO";
2022-12-15 08:01:01 +00:00
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.359375, 0.359375));
2022-12-15 08:01:01 +00:00
}
}
class RedneckChickenArrows : DukeItemBase
{
default
{
pic "RPG2SPRITE";
}
override void Initialize(DukeActor spawner)
2022-12-15 08:01:01 +00:00
{
commonItemSetup(spawner, (0.34375, 0.3125));
2022-12-15 08:01:01 +00:00
}
}