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

228 lines
3 KiB
Text
Raw Normal View History

class DukeHorseOnSide : DukeActor
2022-12-14 15:24:31 +00:00
{
default
{
pic "HORSEONSIDE";
+FORCERUNCON;
+CHECKSLEEP;
+MOVEFTA_MAKESTANDABLE;
2022-12-14 15:24:31 +00:00
}
2022-12-14 15:24:31 +00:00
override void Initialize()
{
if (!self.mapSpawned)
self.scale = (0.5, 0.5);
self.cstat = CSTAT_SPRITE_BLOCK_ALL | randomXFlip();
self.clipdist = 18;
self.ChangeStat(STAT_ZOMBIEACTOR);
}
}
class DukeExplodingBarrel : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "EXPLODINGBARREL";
+DOUBLEDMGTHRUST;
+BREAKMIRRORS;
2022-12-14 15:24:31 +00:00
}
}
class DukeFireBarrel : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "FIREBARREL";
}
}
class DukeNukeBarrel : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "NUKEBARREL";
+GREENBLOOD;
2022-12-14 15:24:31 +00:00
}
}
class DukeFireVase : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "FIREVASE";
}
}
class DukeNukeBarrelDented : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "NUKEBARRELDENTED";
}
}
class DukeNukeBarrelLeaked : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "NUKEBARRELLEAKED";
2022-12-14 15:24:31 +00:00
}
}
class DukeWoodenHorse : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "WOODENHORSE";
}
}
class DukeRubberCan : DukeHorseOnSide
2022-12-14 15:24:31 +00:00
{
default
{
pic "RUBBERCAN";
}
override void Initialize()
{
super.Initialize();
self.extra = 0;
}
}
class DukeWaterdripSplash : DukeActor
{
default
{
pic "WATERDRIPSPLASH";
}
override void Initialize()
{
self.scale = (0.375, 0.375);
self.ChangeStat(STAT_STANDABLE);
}
}
class DukeWaterbubbleMaker : DukeActor
{
default
{
pic "WATERBUBBLEMAKER";
+FORCERUNCON;
}
override void Initialize()
{
self.hitag = 0;
self.cstat |= CSTAT_SPRITE_INVISIBLE;
self.ChangeStat(STAT_STANDABLE);
}
}
class DukeFeces : DukeActor
{
default
{
pic "FECES";
+FORCERUNCON;
+BROWNBLOOD;
}
override void Initialize()
{
if (!mapSpawned)
self.scale = (REPEAT_SCALE, REPEAT_SCALE);
self.ChangeStat(STAT_MISC);
}
}
class DukeBlood : DukeActor
{
default
{
pic "BLOOD";
+FORCERUNCON;
}
override void Initialize()
{
self.pos.Z -= 26;
if (!mapSpawned && self.ownerActor && self.ownerActor.pal == 6)
self.pal = 6;
self.scale = (0.25, 0.25);
self.ChangeStat(STAT_MISC);
}
}
class RedneckBlood : DukeBlood
{
override void Initialize()
{
Super.Initialize();
self.scale = (0.0625, 0.0625);
self.pos.Z -= 26;
}
}
class DukeBlimp : DukeActor
{
default
{
pic "BLIMP";
}
override void Initialize()
{
self.cstat |= CSTAT_SPRITE_BLOCK_ALL;
self.clipdist = 32;
self.ChangeStat(STAT_ACTOR);
}
}
class DukeMike : DukeActor
{
default
{
pic "MIKE";
}
override void Initialize()
{
self.yint = self.hitag;
self.ChangeStat(STAT_ACTOR);
}
}
class DukeWhispySmoke : DukeActor
{
default
{
pic "WHISPYSMOKE";
+FORCERUNCON;
}
override void Initialize()
{
self.pos.X += frandom(-8, 8);
self.pos.Y += frandom(-8, 8);
self.scale = (0.3125, 0.3125);
self.ChangeStat(STAT_MISC);
}
}
class DukeSeriousSam : DukeActor
{
default
{
2023-04-09 07:34:51 +00:00
pic "SERIOUSSAM";
statnum STAT_ZOMBIEACTOR;
}
override void Initialize()
{
self.cstat |= CSTAT_SPRITE_BLOCK_ALL;
self.extra = 150;
self.ChangeStat(STAT_ZOMBIEACTOR);
}
}