ACTOR AlphaLegendaryDoomguy
{
MONSTER 
Health 4000
WoundHealth 810
Height 56
Radius 16
Mass 1200
Speed 40
FastSpeed 40
MaxStepHeight 32
MaxDropOffHeight 32
MeleeRange 80
BloodColor "Blue"
PainChance 152
PainChance "Crush", 256
MinMissileChance 196
Species "LegendaryDoomguy"
Damagetype "Legendary"
DamageFactor "Crush", 0.05
DamageFactor "Acid", 0.2
DamageFactor "Fire", 0.15
DamageFactor "Ice", 0.2
DamageFactor "Poison", 0.0
DamageFactor "PoisonCloud", 0.0
DamageFactor "PyroShot", 0.15
DamageFactor "PlayerPyro", 0.15
DamageFactor "Explosion", 0.15
DamageFactor "NuclearFire", 0.15
DamageFactor "BFG9500Ball", 0.5
DamageFactor "BFGSplash", 0.5
DamageFactor "UpBFG9500Ball", 0.5
DamageFactor "UpBFGSplash", 0.25
DamageFactor "PDTBFG", 0.02
DamageFactor "PDTBFGTracer", 0.02
DamageFactor "PlayerDevBall", 0.01
DamageFactor "PlayerDevBall2", 0.01
DamageFactor "PlayerDevTracer", 0.01
DamageFactor "PlayerDBFG2", 0.65
DamageFactor "PlayerDBFG10K2", 0.65
DamageFactor "PlayerDBFGSplash2", 0.65
DamageFactor "PlayerBHole", 0.05
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "PlayerHellfire", 0.1
DamageFactor "SuperWeapon", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "SS", 0.05
DamageFactor 0.35
//No Infighting
DamageFactor "Legendary", 0.0
DamageFactor "Legendary1", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "UltimateLegendary", 0.0
DamageFactor "LegendaryZombie", 0.0
DamageFactor "LACGrenade", 0.0
DamageFactor "LSSGGrenade", 0.0
DamageFactor "ZExplosiveBullets", 0.0
DamageFactor "MiniRocket", 0.0
DamageFactor "ZombieDev", 0.0
DamageFactor "SoapOpera", 0.0
DamageFactor "HTZombie", 0.0
DamageFactor "ZGrenade", 0.0
DamageFactor "ZombieCannon", 0.0
DamageFactor "GeneralTracer", 0.0
DamageFactor "BloodSkull", 0.0
DamageFactor "BloodElemental", 0.0
DamageFactor "Broat", 0.0
DamageFactor "SatanGuard", 0.0
DamageFactor "CurseComet", 0.0
DamageFactor "HelementalComet", 0.0
DamageFactor "DementedTerminator", 0.0
DamageFactor "Terminator", 0.0
DamageFactor "Cyber10K", 0.0
DamageFactor "UBDTR", 0.0
DamageFactor "DemolisherEx", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "Commander", 0.0
DamageFactor "CerChainguns", 0.0	
DamageFactor "CerEnergyBall", 0.0
DamageFactor "Hell", 0.0
DamageFactor "HFCyber", 0.0
DamageFactor "DBFG2", 0.0
DamageFactor "DBFG10K2", 0.0
DamageFactor "DBFGSplash2", 0.0
DropItem "LegAmmoSphere", 256, 1
DropItem "LegendaryRandomSphere", 256, 1
DropItem "LegendaryPowerShard", 135, 1
DropItem "LegendaryRune", 256, 1
DropItem "LegendaryArmor", 100, 1
DropItem "ModdedBackPack", 256, 1
DropItem "LDemonAmmo", 256, 100
SeeSound "legdoomguy/sight"
AttackSound "Null"
PainSound "Null"
DeathSound "legdoomguy/death"
ActiveSound "legdoomguy/active"
Obituary "%o was sent a ticket back to hell by the Legendary Doomguy."
Tag "\c[z3]Alpha Legendary\c- \c[l5]Doomguy\c-"
+BOSS
+NOFEAR
+BOSSDEATH
+NOICEDEATH
+NOTIMEFREEZE
+FLOORCLIP
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+NODROPOFF
+NOTARGET
+DONTGIB
+DONTRIP
+DONTMORPH
+DONTBLAST
+NORADIUSDMG
+CANUSEWALLS
+NOBLOCKMONST
+BRIGHT
+THRUSPECIES
+DONTHARMSPECIES
+DONTHARMCLASS
var int user_music;
var int user_currenthp;
var int user_enraged;
var int user_protected;
var int user_quaddamage;
var int user_timer;
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_PlaySoundEx("legdoomguy/bfg","Voice",0,2)
	LG47 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIfHealthLower(4000,"Idle")
	Loop
  Idle:
	TNT1 A 0
	TNT1 A 0 A_SetUserVar("user_timer",0)
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 A 17 A_Look
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 A 17 A_Look
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 A 17 A_Look
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 A 17 A_Look
  Idleloop:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) > 100,"Protection")
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_LookEx(0,0,0,0,360,"See")
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	LG47 A 3 A_Wander
	LG47 A 3 A_LookEx(0,0,0,0,360,"See")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 B 3 A_Wander
	LG47 B 3 A_LookEx(0,0,0,0,360,"See")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	LG47 C 3 A_Wander
	LG47 C 3 A_LookEx(0,0,0,0,360,"See")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 D 3 A_Wander
	LG47 D 3 A_LookEx(0,0,0,0,360,"See")
	Loop
  See:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,87)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) > 100,"Protection")
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_JumpIf(user_enraged == 1,"NotEnraged")
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageAlert")
  NotEnraged:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(user_quaddamage == 1,2)
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.25),"UseQuadDamage")
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	LG47 AA 3 A_Chase
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 BB 3 A_Chase
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	LG47 CC 3 A_Chase
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 DD 3 A_Chase
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"TryBFG1")
  NoUseBFG1:
	TNT1 A 0
	TNT1 A 0 A_Jump(80,"Rush")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIf(user_timer > 438,"Idle")
	TNT1 A 0 A_SetUserVar("user_timer",user_timer + 1)
	GoTo See
  Rush:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) > 100,"Protection")
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostA",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 A 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostA",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 A 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostB",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 B 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostB",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 B 1 A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostC",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 C 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostC",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 C 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostD",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 D 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostD",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 D 1 A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"TryBFG2")
  NoUseBFG2:
	TNT1 A 0
	TNT1 A 0 A_Jump(84,"See")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	GoTo Rush
  Strafing:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LG47 AA 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LG47 BB 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LG47 CC 3 A_GiveInventory("LegZombieStrafing",1)	
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LG47 DD 3 A_GiveInventory("LegZombieStrafing",1)
	Goto See	
  Missile:
	TNT1 A 0
	TNT1 A 0 A_SetUserVar("user_timer",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) > 100,"Protection")
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageMissile")
	TNT1 A 0 A_JumpIfCloser(500,"TryASG")
  MissileAK47:
	TNT1 A 0
	TNT1 A 0 A_JumpIfCloser(800,"TryAK47")
  MissileOther:
	TNT1 A 0
	TNT1 A 0 A_Jump(104,"LegPCannon","LegPRifle")
	TNT1 A 0 A_Jump(48,"LegBFG")
	GoTo LegRailgun
  RageMissile:
	TNT1 A 0
	TNT1 A 0 A_Jump(40,"LegBFG")
	TNT1 A 0 A_JumpIfCloser(850,"RageTryASG")
  RageMissileAK47:
	TNT1 A 0
	TNT1 A 0 A_JumpIfCloser(1300,"RageTryAK47")
  RageMissileOther:
	TNT1 A 0
	TNT1 A 0 A_Jump(128,"RageLegPCannon","RageLegPRifle")
	GoTo RageLegRailgun
  TryASG:
	TNT1 A 0
	TNT1 A 0 A_Jump(128,"LegASG")
	GoTo MissileAK47
  TryAK47:
	TNT1 A 0
	TNT1 A 0 A_Jump(128,"AK47")
	GoTo MissileOther
  RageTryASG:
	TNT1 A 0
	TNT1 A 0 A_Jump(196,"RageLegASG")
	GoTo RageMissileAK47
  RageTryAK47:
	TNT1 A 0
	TNT1 A 0 A_Jump(196,"RageAK47")
	GoTo RageMissileOther
  TryBFG1:
	TNT1 A 0
	TNT1 A 0 A_Jump(5,"LegBFG")
	GoTo NoUseBFG1
  TryBFG2:
	TNT1 A 0
	TNT1 A 0 A_Jump(10,"LegBFG")
	GoTo NoUseBFG2
  TryBFG3:
	TNT1 A 0
	TNT1 A 0 A_Jump(64,"LegBFG")
	GoTo Missile
  AK47:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",Random(28,34),0,random(-6,6),0)
	TNT1 A 0 A_SpawnItemEx("LegRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	TNT1 A 0 A_CustomBulletAttack(10.4,7,1,Random(5,15)*3,"LegModdedBulletPuff")
	TNT1 A 0 A_PlaySound("weapons/LegAK47Fire",CHAN_WEAPON)
	LG47 E 1 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 E 3 A_CustomBulletAttack(22.5,0,1,random(1,5)*3,"LegModdedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",Random(28,34),0,random(-6,6),0)
	TNT1 A 0 A_SpawnItemEx("LegRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	TNT1 A 0 A_CustomBulletAttack(10.4,7,1,Random(5,15)*3,"LegModdedBulletPuff")
	TNT1 A 0 A_PlaySound("weapons/LegAK47Fire",CHAN_WEAPON)
	LG47 E 1 A_GiveInventory("LegZombieStrafing",1)	
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 F 4 A_CustomBulletAttack(22.5,0,1,random(1,5)*3,"LegModdedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CPosRefire
	TNT1 A 0 A_Jump(18,"Pause47")
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageAK47")
	Goto AK47
  Pause47:
	LG47 EEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PauseASG:
	LGAG EEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PausePR:
	PRLG EEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PausePC:
	LGPC EEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  LegASG:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("LShotgun/Cock",CHAN_ITEM)
  LegASGLoop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	LGAG E 5 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("BlueShellCasing",-8,7,30,4,0,(0.1)*Random(30,40),Random(-80,-90),128)
	TNT1 A 0 A_PlaySound("Weapons/LegAutoShotgun",CHAN_WEAPON)
	TNT1 AAAA 0 A_CustomMissile("LegendaryBlueTracer",Random(28,34),0,Random(6,-6),0)
	LGAG F 2 A_CustomBulletAttack(18.3,18.3,7,Random(5,15)*6,"LegModdedBulletPuff")
	LGAG E 2 A_FaceTarget
	TNT1 A 0 A_CPosRefire
	//NULL A 0 A_Jump(10,"Grenade")
	//NULL A 0 A_JumpIfCloser(300,"Grenade")
	TNT1 A 0 A_Jump(24,"PauseASG")
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageLegASG")
	Goto LegASGLoop
  LegPRifle:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/legup",CHAN_ITEM)
  LegPRifleLoop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	PRLG E 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegendaryProjectile",32,0,random(-2,2),CMF_TRACKOWNER)
	PRLG F 3 A_PlaySound("weapons/DemonTechRifle",CHAN_WEAPON)
	TNT1 A 0 A_PlaySound("BlueDTRFire",6)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Jump(24,"PausePR")
	TNT1 A 0 A_SpidRefire
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageLegPRifle")
	Goto LegPRifleLoop
  LegPCannon:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("legendarycannon/up",CHAN_ITEM)
	TNT1 A 0 A_Jump(96,"LegPCannonAlt")
  LegPCannonLoop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGPC E 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGPC E 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderProj",32,0,0)
	LGPC F 3 A_PlaySound("legendarycannon/fire",CHAN_WEAPON)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Jump(24,"PausePC")
	TNT1 A 0 A_SpidRefire
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageLegPCannon")
	Goto LegPCannonLoop
  LegPCannonAlt:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	LGPC E 1 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGPC EEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("legendarycannon/charge",CHAN_WEAPON)
	LGPC EEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	LGPC EEEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	GoTo See
  RageAK47:
	TNT1 A 0
	TNT1 A 0 A_SetInvulnerable
  RageAK47Loop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",Random(28,34),0,random(-6,6),0)
	TNT1 A 0 A_SpawnItemEx("LegRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	TNT1 A 0 A_CustomBulletAttack(10.4,7,1,Random(5,15)*3,"LegModdedBulletPuff")
	TNT1 A 0 A_PlaySound("weapons/LegAK47Fire",CHAN_WEAPON)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 E 1 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 E 3 A_CustomBulletAttack(22.5,0,1,random(1,5)*3,"LegModdedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",Random(28,34),0,random(-6,6),0)
	TNT1 A 0 A_SpawnItemEx("LegRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	TNT1 A 0 A_CustomBulletAttack(5.2,3.5,1,Random(5,15)*3,"LegModdedBulletPuff")
	TNT1 A 0 A_PlaySound("weapons/LegAK47Fire",CHAN_WEAPON)
	LG47 E 1 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 F 4 A_CustomBulletAttack(22.5,0,1,random(1,5)*3,"LegModdedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_MonsterRefire(0,"RageAK47End")
	TNT1 A 0 A_Jump(18,"Pause47")
	Goto RageAK47Loop
  RageAK47End:
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  RageLegASG:
	TNT1 A 0
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySound("LShotgun/Cock",CHAN_ITEM)
  RageLegASGLoop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGAG E 5 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("BlueShellCasing",-8,7,30,4,0,(0.1)*Random(30,40),Random(-80,-90),128)
	TNT1 A 0 A_PlaySound("Weapons/LegAutoShotgun",CHAN_WEAPON)
	TNT1 AAAA 0 A_CustomMissile("LegendaryBlueTracer",Random(28,34),0,Random(6,-6),0)
	LGAG F 2 A_CustomBulletAttack(18.3,18.3,7,Random(5,15)*6,"LegModdedBulletPuff")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_MonsterRefire(0,"RageLegASGEnd")
	//NULL A 0 A_Jump(10,"Grenade")
	//NULL A 0 A_JumpIfCloser(300,"Grenade")
	TNT1 A 0 A_Jump(24,"PauseASG")
	Goto RageLegASGLoop
  RageLegASGEnd:
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  RageLegPRifle:
	TNT1 A 0
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySound("weapons/legup",CHAN_ITEM)
  RageLegPRifleLoop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	PRLG E 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegendaryProjectile",32,0,random(-4,4),0)
	PRLG F 3 A_PlaySound("weapons/DemonTechRifle",CHAN_WEAPON)
	TNT1 A 0 A_PlaySound("BlueDTRFire",6)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_MonsterRefire(0,"RageLegPRifleEnd")
	TNT1 A 0 A_Jump(24,"PausePR")
	Goto RageLegPRifleLoop
  RageLegPRifleEnd:
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  RageLegPCannon:
	TNT1 A 0
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySound("legendarycannon/up",CHAN_ITEM)
	TNT1 A 0 A_Jump(96,"LegPCannonAlt")
  RageLegPCannonLoop:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGPC E 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGPC E 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderProj",32,0,0)
	LGPC F 3 A_PlaySound("legendarycannon/fire",CHAN_WEAPON)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_MonsterRefire(0,"RageLegPCannonEnd")
	TNT1 A 0 A_Jump(24,"PausePC")
	Goto RageLegPCannonLoop
  RageLegPCannonEnd:
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  RageLegPCannonAlt:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	LGPC E 1 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGPC EEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("legendarycannon/charge",CHAN_WEAPON)
	LGPC EEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	LGPC E 0 A_UnSetInvulnerable
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	LGPC FE 3 A_GiveInventory("LegZombieStrafing",1)
	LGPC EEEEEE 3 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	GoTo Missile
  LegBFG:
	TNT1 A 0
	TNT1 A 0 A_SetUserVar("user_timer",0)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_GiveInventory("LegMonsterInvulnerable",1)
	TNT1 AAA 0 A_StopSound
	TNT1 A 0 A_PlaySound("legdoomguy/bfg",CHAN_VOICE,1.0)
	TNT1 A 0 A_PlaySound("Weapons/GuruUp",CHAN_ITEM)
	TNT1 A 0 A_PlaySound("Weapons/GuruIdle",5,1.0,1)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GuruTrigger",1)
	LGBG EEEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("Weapons/GuruCharge",6)
	LGBG EEEEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("GuruCharge",5)
  Gurucharger:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("GuruCharge",1)
	LGBG EEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGBG EEEE 1 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIfInventory("GuruCharge",1,"Gurucharger")
	TNT1 A 0 A_FaceTarget
	LGBG FFF 1 A_Quake(4,2,0,2,"none")
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_StopSound(5)
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_PlaySound("Weapons/GuruFire",5)
	TNT1 A 0 A_PlaySound("Weapons/GuruAddFire",6)
	TNT1 A 0 A_CustomMissile("RTLBBall",32,0,0,CMF_TRACKOWNER)
	Goto See
  LegRailgun:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/railselect",CHAN_ITEM)
	LGRG E 2
	TNT1 A 0 A_PlaySound("weapons/rgcharge",CHAN_WEAPON)
	LGRG EEEEE 4 A_FaceTarget
	LGRG E 8 A_FaceTarget
	LGRG F 2 A_CustomMissile("LegDoomguyRail",32,0,0,CMF_TRACKOWNER)
	GoTo See
  RageLegRailgun:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/railselect",CHAN_ITEM)
	LGRG E 2
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySound("weapons/rgcharge",CHAN_WEAPON)
	LGRG EEEE 4 A_FaceTarget
	LGRG E 4 A_FaceTarget
	LGRG F 2 A_CustomMissile("LegDoomguyRail",32,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_UnSetInvulnerable
	GoTo Missile
  RageAlert:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("legendary/defense",CHAN_BODY)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_FaceTarget
	LGFT E 5 A_PlaySound("legdoomguy/rage1",CHAN_VOICE,1.0,0,ATTN_NONE)
	TNT1 A 0 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGFT EEEE 2 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGFT EEEE 2 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGFT EEEE 2 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGFT EEEE 2 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGFT EEEE 2 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LGFT EEEE 2 A_FaceTarget
	LGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("legdoomguy/rage2",CHAN_VOICE,1.0,0,ATTN_NONE)
	LGFT EEEE 2 A_FaceTarget
	TNT1 A 0 A_ChangeFlag("ALWAYSFAST",1)
	TNT1 A 0 A_SetUserVar("user_enraged",1)
	TNT1 A 0 A_UnsetInvulnerable
	Goto NotEnraged
  Rekt:
	TNT1 AAA 0 A_StopSound
	TNT1 A 0 A_PlaySound("legdoomguy/rekt",CHAN_VOICE,0.8,0,ATTN_NONE)
	TNT1 A 0 A_TakeInventory("MarineKilled",1)
	GoTo See
  IgnoreDamage:
	TNT1 A 0
	LG47 A 1 A_UnSetShootable
	TNT1 AAAA 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("boss/teleport",CHAN_VOICE)
	LG47 AAAAAAAAAA 1 A_FadeOut(0.1,0)
	TNT1 A 2
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.25),"InvisibleHunt")
	TNT1 A 0 A_ChangeFlag("NOFEAR",0)
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",1)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Chase("","",CHF_NOPLAYACTIVE)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 2 A_PlaySound("boss/teleport",CHAN_BODY)
	TNT1 AAAA 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_Facetarget
	LG47 AAAAAAAAAA 1 A_FadeIn(0.1)
	TNT1 A 0 A_SetTranslucent(1)
	LG47 A 1 A_SetShootable
	Goto PainMissile
  InvisibleHunt:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Chase("InvisibleHuntEnd","",CHF_NOPLAYACTIVE)
  InvisibleHuntEnd:
	TNT1 A 2 A_PlaySound("boss/teleport",CHAN_BODY)
	TNT1 AAAA 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_Facetarget
	LG47 AAAAA 1 A_FadeIn(0.2)
	TNT1 A 0 A_SetTranslucent(1)
	LG47 A 1 A_SetShootable
	Goto Missile
  Wound:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("Tic",2,"Pain")
	TNT1 A 0 A_GiveInventory("Tic",1)
	TNT1 A 0 A_ClassBossHealth
	Goto See
  Pain:
	TNT1 A 0
	TNT1 A 0 A_SetUserVar("user_timer",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_Jump(48,"IgnoreDamage","IgnoreDamage","Protection")
	TNT1 A 0
	Goto PainMissile
  Pain.BFG9500Ball:
  Pain.BFGSplash:
  Pain.UpBFG9500Ball:
  Pain.UpBFGSplash:
  Pain.PDTBFG:
  Pain.PlayerDBFG2:
  Pain.PlayerDBFG10K2:
  Pain.PlayerDBFGSplash2:
	TNT1 A 0
	TNT1 A 0 A_SetUserVar("user_timer",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_Jump(128,"IgnoreDamage","IgnoreDamage","IgnoreDamage","Protection")
	TNT1 A 0
	Goto PainMissile
  Pain.PlayerDevBall:
  Pain.PlayerDevBall2:
  Pain.Players:
  Pain.PDTBFGTracer:
  Pain.PlayerDTBFGRailgunSlug:
  Pain.PlayerDevTracer:
  Pain.PlayerPyro:
  Pain.NuclearFire:
	TNT1 A 0
	TNT1 A 0 A_SetUserVar("user_timer",0)
	TNT1 A 0 A_ChangeFlag("NOFEAR",1)
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetSpecies",0,1)
	TNT1 A 0 A_Jump(128,"Protection","Protection","Protection","IgnoreDamage")
	TNT1 A 0
	GoTo PainMissile
  PainMissile:
	TNT1 A 0
	LG47 E 3 A_GiveInventory("LegZombieStrafing",1)
	LG47 E 3 A_GiveInventory("LegZombieStrafing",1)
	Goto Missile
  Protection:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(user_protected == 1,2)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_ProtectionForLegDoomguy",0)
	TNT1 A 0
	TNT1 A 0 A_PlaySound("legendary/defense",CHAN_BODY)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageProtection")
	TNT1 A 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) <= 0,2)
	LG47 E 1 HealThing(((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))*0.75)+1)
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_Jump(128,"PainMissile")
	TNT1 A 0
	Goto See
  RageProtection:
	TNT1 A 0
	TNT1 A 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) <= 0,2)
	LG47 E 1 HealThing(((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))*0.95)+1)
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0
	LG47 AABB 1 A_Chase("","TryBFG3")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 CCDD 1
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 AABB 1 A_Chase("","TryBFG3")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 CCDD 1
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 AABB 1 A_Chase("","TryBFG3")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 CCDD 1
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 AABB 1 A_Chase("","TryBFG3")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 CCDD 1
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 AABB 1 A_Chase("","TryBFG3")
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	LG47 CCDD 1
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIf(user_quaddamage == 1,2)
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.25),"UseQuadDamage")
	TNT1 A 0 A_JumpIf(user_enraged == 1,2)
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.5),"RageAlert")
	TNT1 A 0
	Goto TryBFG3
  UseQuadDamage:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("legdoomguy/quaddmg",CHAN_VOICE,1.0,0,ATTN_NONE)
	TNT1 A 0 A_GiveInventory("LegDoomguyQuadDamagePowerUp",1)
	TNT1 A 0 A_GiveInventory("RingOfRegenerationHalfQuiet",1)
	TNT1 A 0 ACS_NamedExecutealways("Hem_QuadDamageLDG",0)
	GoTo TryBFG3
  Death:
	TNT1 AAA 0 A_StopSound
	TNT1 A 0 A_ChangeFlag("Bright",0)
	TNT1 A 0 A_SpawnItemEx("RingOfRegenerationHalf",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,12,random(0,8),random(0,8),2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,160)
	LG47 O 5 A_Scream
	LG47 P 5 A_Fall
	LG47 Q 5 A_SpawnItem("BodyCrash",0,0,0,0)
	LG47 R 5
	TNT1 A 0 A_SpawnItemEx("LegDoomguySoulEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	LG47 T 5
	LG47 U 5
	TNT1 A 20
	TNT1 A 0 //A_PlaySoundEx("brain/spit","Voice",0,2)
	TNT1 A 1 //A_SpawnItemEx("LegendaryHeroSoul",0,0,16,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 1
	Stop
	}
}

Actor AlphaLegDoomguySpawner
{
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("AlphaLegDoomguySpawner2",0,-250,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid)
	TNT1 A 0 A_SpawnItemEx("AlphaLegDoomguySpawner2",0,250,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid)
	Stop
  }
}

Actor AlphaLegDoomguySpawner2
{
  States
  {
  Spawn:
	TNT1 A 0
	TNT1 A random(0,10)
	TNT1 A 0 A_SpawnItemEx("TeleportFog")
	TNT1 A 0 A_SpawnItemEx("AlphaLegendaryDoomguy",0,0,0,0,0,0,random(0,360),SXF_NOCHECKPOSITION,0,tid)
	Stop
	}
}