ACTOR MLGDoomguy
{
MONSTER 
Health 8800
Height 56
Radius 16
Mass 1200
Speed 40
FastSpeed 40
MaxStepHeight 32
MaxDropOffHeight 32
MeleeRange 80
BloodColor "Green"
PainChance 152
PainChance "Crush", 256
MinMissileChance 196
Species "LegendaryDoomguy"
Damagetype "Legendary" 
//Hackroid
DamageFactor 0.35
DamageFactor "LegendaryZombie", 0.0
DamageFactor "DBFG10K2", 0.5
DamageFactor "DBFG2", 0.5
DamageFactor "PlayerDBFG2", 0.5
DamageFactor "Superweapon", 0.1
DamageFactor "LegendaryPlayer", 0.1
DamageFactor "Hackroid", 0.0
//Vexed
DamageFactor "Explosion", 0.0001
DamageFactor "PlayerDTRG", 0.0001
DamageFactor "DTRailgun", 0.0001
DamageFactor "PDTPuff", 0.0001
DamageFactor "RailG", 0.0001
DamageFactor "PyroShot", 0.0001
DamageFactor "PlayerPyro", 0.0001
DamageFactor "PlayerBHole", 0.025
DamageFactor "PlayerDBFG", 0.015
DamageFactor "PlayerDBFG2", 0.015
//Nemesis
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "VileFires", 0.0
DamageFactor "DarkDemoEx", 0.0
//Leg Doomguy
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 "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 "PlayerDBFG10K2", 0.5
DamageFactor "PlayerDBFGSplash2", 0.45
DamageFactor "PlayerBHole", 0.05
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "Player", 0.6
DamageFactor "PlayerHellfire", 0.1
DamageFactor "SuperWeapon", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "SS", 0.05
DamageFactor "HellComet", 0.5
DamageFactor "Melee", 0.5
DamageFactor "Normal", 0.4
DamageFactor "None", 0.5
//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 "LegendaryPowerShard", 135, 1
DropItem "LegendaryRune2", 200, 1
DropItem "LegendaryArmor", 256, 1
DropItem "ModdedBackPack", 256, 1
DropItem "SuperCrate" 256 1
DropItem "LDemonAmmo", 256, 100
SeeSound "legdoomguy/sight"
AttackSound "Null"
PainSound "Null"
DeathSound "legdoomguy/death"
ActiveSound "legdoomguy/active"
Obituary "%o just got rekt by PRO-MLG-360-NOSCOPING MLG Doomguy. dank memz xddddd le funny maymay look guys i am so smart"
Tag "\c[u3]MLG 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_enraged;
var int user_protected;
//var int user_quaddamage;
States
{
  Spawn:
    TNT1 A 0 NoDelay A_SpawnItemEx("IlluminatiTriangle1",0,0,0,0,0,0,0,SXF_SETMASTER)
	ML47 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1811,912)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIf(user_enraged == 1,"RageSee")
	TNT1 A 0 A_JumpIfInventory("RunesCheck",1,2)
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckRunes")
	TNT1 A 0 A_JumpIfHealthLower(800,"RageAlert")
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	ML47 AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	ML47 BB 3 A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	ML47 CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	ML47 DD 3 A_Chase
	TNT1 A 0 A_Jump(80,"Rush")
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 HealThing(20)
	TNT1 A 0 A_Jump(64,"Mine")
	MLSC A 0 A_Jump(64,"Rush")
	TNT1 A 0 A_Jump(64,"Right","Left","Back","BackLeftRange","BackRightRange")
	TNT1 A 0 A_Jump(64,"Chase")
	Loop
  Chase:
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLSC AA 1 Bright A_FastChase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(1,"Heal")
	MLSC A 0 A_JumpIfCloser(130,"Dodge")
	MLSC AA 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLSC A 0 A_JumpIfCloser(130,"Dodge")
	MLSC BB 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLSC A 0 A_JumpIfCloser(130,"Dodge")
	MLSC BB 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	MLSC A 0 A_JumpIfCloser(150,"Dodge")
	MLSC CC 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(10,"Heal")
	MLSC A 0 A_JumpIfCloser(150,"Dodge")
	MLSC CC 1 Bright A_FastChase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLSC A 0 A_JumpIfCloser(130,"Dodge")
	MLSC DD 1 Bright A_FastChase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLSC A 0 A_JumpIfCloser(130,"Dodge")
	MLSC DD 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	TNT1 A 0 A_Jump(40,"Teleport","ComboTel")
	TNT1 A 0 A_Jump(95,"Mine")
	MLSC A 0 A_Jump(128,"Dodge")
	Loop
  RageSee:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_ExecuteAlways(5432,0,87)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	ML47 AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	ML47 BB 3 A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	ML47 CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	ML47 DD 3 A_Chase
	TNT1 A 0 A_Jump(80,"Rush")
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	Loop
  Rush:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	ML47 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostA",0,0,0,0,0,0,0,128)
	ML47 A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostA",0,0,0,0,0,0,0,128)
	ML47 A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostB",0,0,0,0,0,0,0,128)
	ML47 B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostB",0,0,0,0,0,0,0,128)
	ML47 B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostC",0,0,0,0,0,0,0,128)
	ML47 C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostC",0,0,0,0,0,0,0,128)
	ML47 C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostD",0,0,0,0,0,0,0,128)
	ML47 D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegDoomguyGhostD",0,0,0,0,0,0,0,128)
	ML47 D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(84,"See")
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("MLGDoomguySmokeSpawner",random(40,-40),random(40,-40),random(60,100),0)
	Loop
  Dodge:
	    TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
		ML47 A 1 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
		ML47 E 0 ThrustThingZ(0, 20, 0, 0)
		ML47 A 0 A_Jump(256, "Right", "Left", "Back", "BackLeftRange", "BackRightRange")
	Left:
		ML47 E 0 ThrustThing(angle*256/360+192, 30, 0, 0)
		Goto SeeNoDodge
	Right:
		ML47 E 0 ThrustThing(angle*256/360+64, 30, 0, 0)
		Goto SeeNoDodge
	Back:
	    ML47 E 0 ThrustThing(angle*256/360+128,30,0,0)
	    Goto See
    BackLeftRange:
    	ML47 E 0 ThrustThing(angle*256/360+random(133,187),30,0,0)
	    Goto See
    BackRightRange:
	    ML47 E 0 ThrustThing(angle*256/360+random(69,123),30,0,0)
	    Goto See
  Teleport:
	ML47 A 1 Bright A_UnSetShootable
	TNT1 AAAA 0 A_SpawnItemEx("GHellionSmokeSpawner")
	ML47 AAAAAAAAAA 1 Bright A_FadeOut(0.1,0)
	ML47 A 2 Bright
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ML47 A 1 Bright A_PlayWeaponSound("boss/teleport")
	TNT1 AAAA 0 A_SpawnItemEx("GHellionSmokeSpawner")
	ML47 AAAAAAAAAA 1 Bright A_FadeIn(0.1)
	ML47 A 1 Bright A_SetShootable
	Goto See  
  ComboTel:
       ML47 E 1 A_UnSetShootable
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeOut(0.1,0)
       ML47 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
       ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	   ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	   ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	   ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)
       ML47 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
       ML47 A 1 A_PlayWeaponSound("boss/teleport")
       ML47 AAAAAAAAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       ML47 AAAAAAAAAAA 1 A_FadeIn(0.1)   
       ML47 A 1 A_SetShootable
       Goto See
  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)
	ML47 AA 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	ML47 BB 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	ML47 CC 3 A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	ML47 DD 3 A_GiveInventory("MLGZombieStrafing",1)
	Goto See	
  Missile:
	TNT1 A 0
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIfCloser(500,"LegASG")
	TNT1 A 0 A_Jump(200,"LegPCannon","LegPRifle","AK47")
	TNT1 A 0 A_Jump(256,"LegBFG","LegRailgun","SniperRifle","BFS","BFG2704Alt")
  AK47:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	ML47 EEE 3 Bright A_GiveInventory("MLGZombieStrafing",1)
	ML47 E 2 Bright A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("NemesisRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	ML47 F 0 A_PlaySound("weapons/ak47/fire")
	TNT1 A 0 A_CustomMissile("MLGASGBall",Random(28,34),0,Random(2,-2),0)
	ML47 F 1 Bright A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("NemesisRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	ML47 F 0 A_PlaySound("weapons/ak47/fire")
	TNT1 A 0 A_CustomMissile("MLGASGBall",Random(28,34),0,Random(2,-2),0)
	ML47 F 1 Bright A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("NemesisRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	ML47 F 0 A_PlaySound("weapons/ak47/fire")
	TNT1 A 0 A_CustomMissile("MLGASGBall",Random(28,34),0,Random(2,-2),0)
	ML47 F 1 Bright A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("NemesisRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	ML47 F 0 A_PlaySound("weapons/ak47/fire")
	TNT1 A 0 A_CustomMissile("MLGASGBall",Random(28,34),0,Random(2,-2),0)
	ML47 F 1 Bright A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("NemesisRifleCasing",12,-6,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	ML47 F 0 A_PlaySound("weapons/ak47/fire")
	TNT1 A 0 A_CustomMissile("MLGASGBall",Random(28,34),0,Random(2,-2),0)
	ML47 F 1 Bright A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CPosRefire
	TNT1 A 0 A_Jump(18,"Pause47")
	Goto AK47
  Pause47:
	ML47 EEEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PauseASG:
	ML47 EEEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PausePR:
	ML47 EEEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PausePC:
	ML47 EEEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_PlaySound("weapons/legAK47Select",CHAN_ITEM)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  PauseBG:
	MLB2 EEEEE 3 A_GiveInventory("MLGZombieStrafing",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")
	MGAG E 5 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("MLGASG/Fire",5)
	TNT1 AAAAAAA 0 A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG F 2 Bright A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("MLGASG/Fire",5)
	TNT1 AAAAAAA 0 A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG F 2 Bright A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("MLGASG/Fire",5)
	TNT1 AAAAAAA 0 A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG F 2 Bright A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGAG E 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("MLGASG/Fire",5)
	TNT1 AAAAAAA 0 A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG F 2 Bright A_CustomMissile("MLGASGBall",32,0,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	MGAG E 9 A_FaceTarget
	TNT1 A 0 A_CPosRefire
	TNT1 A 0 A_Jump(24,"PauseASG")
	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("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MRLG E 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("MLGDTRProjectile",32,0,random(-2,2),CMF_TRACKOWNER)
	MRLG F 2 Bright A_PlaySoundEx("weapons/demontechfire","Weapon")
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Jump(24,"PausePR")
	TNT1 A 0 A_SpidRefire
	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("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGPC E 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGPC E 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderProj",32,0,0)
	MGPC F 3 A_PlaySound("legendarycannon/fire",CHAN_WEAPON)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Jump(24,"PausePC")
	TNT1 A 0 A_SpidRefire
	Goto LegPCannonLoop
  LegPCannonAlt:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Rekt")
	MGPC E 1 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGPC EEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_PlaySound("legendarycannon/charge",CHAN_WEAPON)
	MGPC EEEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_CustomMissile("LegCommanderBall",32,0,random(-2,2))
	MGPC FE 3 A_GiveInventory("MLGZombieStrafing",1)
	MGPC EEEEEE 3 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	GoTo See
  LegBFG:
	TNT1 A 0
	TNT1 A 0 A_SetInvulnerable
	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_FaceTarget
	TNT1 A 0 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGBG 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)
	MGBG 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("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGBG 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)
	MGBG 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("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGBG 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)
	MGBG 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("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGBG 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)
	MGBG 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("MLGDoomguySmokeSpawner",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)
	MGBG 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("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGBG 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)
	MGBG 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("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGBG 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)
	MGBG 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("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_JumpIfInventory("GuruCharge",1,"Gurucharger")
	TNT1 A 0 A_FaceTarget
	MGBG 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)
	MGRG E 2
	TNT1 A 0 A_PlaySound("weapons/rgcharge",CHAN_WEAPON)
	MGRG EEEEE 4 A_FaceTarget
	MGRG E 8 A_FaceTarget
	MGRG F 2 A_CustomMissile("OverseerRail",32,0,0,CMF_TRACKOWNER)
	GoTo See
  BFS:
 	TNT1 A 0 A_StopSound(6)
 	MLB2 E 0 A_PlaySound ("Cardinal/9k")
 	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
 	MLB2 EEEEEEEEEEEEEEEE 2 A_FaceTarget
 	MLB2 E 0 A_PlaySound ("Weapons/BFSG/Fire")
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,0,0,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,0,0,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,2,15,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-2,-15,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,2,12,0,2)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,2,12,0,-2)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-2,-12,0,2)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-2,-12,0,-2)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,2,10,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-2,-10,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,1,8,0,4)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,1,8,0,-4)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-1,-8,0,4)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-1,-8,0,-4)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,1,6,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-1,-6,0,0)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,1,4,0,5)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,1,4,0,-5)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-1,-4,0,5)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,-1,-4,0,-5)
 	MLB2 E 0 A_CustomMissile("DarkCyber15K",30,1,2,0,0)
 	MLB2 E 10 Bright A_CustomMissile("DarkCyber15K",30,-1,-2,0,0)
 	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
 	TNT1 A 0 A_PlaySound("weapons/devexp", 5)
	TNT1 A 0 A_Jump(10,"PauseBG")
	TNT1 A 0 A_MonsterRefire(0,"See")
 	Goto See
  BFG2704Alt:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_PlaySound("Weapons/GuruUp",7,1.0,0,0.5)
	MLB2 E 15 A_FaceTarget
	TNT1 A 0 A_PlaySound("truelegbfg/trigger",6,1.0,0,0.5)
	MLB2 E 10 A_FaceTarget
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	MLB2 EEEEEEE 5 A_GiveInventory("MLGZombieStrafing",1)
	MLB2 E 20 A_CustomMissile("AltMolochBFG2704",32)
	MLB2 EEEEEEE 5 A_GiveInventory("MLGZombieStrafing",1)
	MLB2 E 20 A_CustomMissile("AltMolochBFG2704",32)
	Goto See
  SniperRifle:
	MGRG E 10 A_FaceTarget
	MGRG F 10 A_CustomMissile("MLGZombieProjectileStrong",47,0,random(-2,2))
	MGRG E 10 A_PlaySound("MLGZombie/Reload",CHAN_ITEM,1.0,0)
	MGRG E 10 A_PlaySound("MLGZombie/Reload2",CHAN_ITEM,1.0,0)
	TNT1 A 0 A_MonsterRefire(0,"See")
	Goto See
  RageAlert:
	TNT1 A 0 A_PlaySound("legendary/defense",CHAN_BODY)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_FaceTarget
	MGFT E 5 A_PlaySound("legdoomguy/rage1",CHAN_VOICE,1.0,0,ATTN_NONE)
	TNT1 A 0 A_FaceTarget
	MGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGFT EEEE 2 A_FaceTarget
	MGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGFT EEEE 2 A_FaceTarget
	MGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGFT EEEE 2 A_FaceTarget
	MGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGFT EEEE 2 A_FaceTarget
	MGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGFT EEEE 2 A_FaceTarget
	MGFT EEEE 2 A_SpawnItemEx("HemLegLineSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	MGFT EEEE 2 A_FaceTarget
	MGFT 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)
	MGFT 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 See
  Rekt: //   M M M M   H A H A
	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
  Mine:
	MG47 E 1 Bright
    MGFT E 12 Bright A_CustomMissile("LACThrownMine",32,0,0,2,15)
	MGFT E 12 Bright
	MGFT E 3 Bright
	Goto See
  Grenade:
	TNT1 A 0 A_PlaySound("weapons/hgrenadepin",0,1.0,0)
	MG47 A 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/hgrenadethrow",0,1.0,0)
	MGFT E 1 Bright A_CustomMissile("MLGGrenade",32,0,0,2,4)
	Goto Dodge
  Pain:
	TNT1 A 0 A_Jump(35,"Protection")
	TNT1 A 0 A_Jump(192,"PainMissile")
	MG47 G 3 Bright A_GiveInventory("MLGZombieStrafing",1)
	MG47 G 0 A_Pain
	MG47 G 3 Bright A_GiveInventory("MLGZombieStrafing",1)
	Goto See
  PainMissile: 
	MG47 G 3 Bright A_GiveInventory("MLGZombieStrafing",1)
	MG47 G 0 A_Pain
	MG47 G 3 Bright A_GiveInventory("MLGZombieStrafing",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 A_PlaySound("legendary/defense",CHAN_BODY)
	MG47 E 1 A_FaceTarget
	TNT1 A 0 A_Jump(128,"PainMissile")
	TNT1 A 0
	Goto See
/*	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,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Rifle",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("BFS",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	MG47 O 5 A_Scream
	MG47 P 5 A_Fall
	MG47 Q 5 A_SpawnItem("BodyCrash",0,0,0,0)
	MG47 R 5
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySoulEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	MG47 T 5
	MG47 U 5 ACS_NamedExecuteAlways("DropDoll",0,75)  //75
	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)
	Stop
	}
}

ACTOR INFMLGDoomguy : MLGDoomguy
{
Tag "\c[u3]MLG Doomguy\c-"
States
{
  Spawn:
    TNT1 A 0 
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 NoDelay A_SpawnItemEx("IlluminatiTriangle1",0,0,0,0,0,0,0,SXF_SETMASTER)
	ML47 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_SpawnItemEx("MLGDoomguySmokeSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("INFActuallyGoodLegendaryDoomguyPlusTrueForm",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

Actor MLGDoomguySmokeSpawner
{
+NOTIMEFREEZE
+NOINTERACTION
+CLIENTSIDEONLY
+NONETID
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
	TNT1 A 1 Bright A_SpawnItemEx("MLGDoomguySmoke",random(20,-20),random(20,-20),random(20,40),0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	Stop
  Toaster:
	TNT1 A 1 Bright A_SpawnItemEx("MLGDoomguySmoke",random(20,-20),random(20,-20),random(20,40),0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE,160)
	Stop	
	}
}

Actor MLGDoomguySmokeSpawner2 : LDoomguySmokeSpawner
{
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
	TNT1 A 1 Bright A_SpawnItemEx("MLGDoomguySmoke",random(40,-40),random(40,-40),random(60,100),0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	Stop
  Toaster:
	TNT1 A 1 Bright A_SpawnItemEx("MLGDoomguySmoke",random(40,-40),random(40,-40),random(60,100),0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE,160)
	Stop
	}
}

ACTOR MLGDoomguySmoke
{
Scale 0.8
RenderStyle "Normal"
+MISSILE
+DROPOFF
+NOGRAVITY
+NOBLOCKMAP
+NOTELEPORT
+DONTSPLASH
+THRUACTORS
+NOTIMEFREEZE
+FORCEXYBILLBOARD
+CLIENTSIDEONLY
+NONETID
States
{
  Spawn:
	TNT1 A 0
	GMKE ABCDEFGHIJKL 2 Bright A_FadeOut(0.1,1)
	Stop
	}
} 

ACTOR MLGDoomguySoulEffect
{
Scale 1.25
RenderStyle add
Alpha 1
+MISSILE
+DROPOFF
+NOGRAVITY
+NOBLOCKMAP
+NOTELEPORT
+NOTIMEFREEZE
+NOINTERACTION
+CLIENTSIDEONLY
States
{
  Spawn:
	TNT1 A 0
	MPIR ABCDEF 5 Bright
	Stop
	}
}
Actor MLGDTRProjectile : ZDemonTechProjectile
{
Damagetype "Legendary"
States
{
  XDeath:
  Death:
	TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("GreenParticleSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("DemonTechEx",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
	TNT1 AAAA 0 A_CustomMissile("SmokeFX4",0,0,random(0,360),2,random(0,360))
	TNT1 A 1 A_Explode(50,100)
	Stop
	}
}

ACTOR MLGThrownMine : ThrownMine
{
Species "Zombie"
Obituary "%o tripped on one of the MLG SWAG mines."
+NOTIMEFREEZE
States
{
Spawn:
	TNT1 A 0
	TNT1 A 0 A_StopSound
    Goto Thrown
Thrown:
	MLIN A 30
	MLIN B 10 Bright
	Loop
Death:
	MLIN A 1
	MLIN A 1 A_SpawnItem("MLGLiveMine")
	Stop
	}
}

ACTOR MLGLiveMine
{
Scale 0.85
Radius 10
Height 8
Damage 1
Health 1
Mass 0x7FFFFFFF
Species "Zombie"
DamageType "LACGrenade"
+MISSILE
+THRUSPECIES
+NORADIUSDMG
+MOVEWITHSECTOR
+NOBLOOD
+SHOOTABLE
+NOTIMEFREEZE
Obituary "%o tripped on one of the MLG SWAY mines."
States
{
Spawn:
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	MLIN A 30 A_ChangeFlag(NOBLOCKMAP,0)
	MLIN B 10 Bright A_ChangeFlag(NOBLOCKMAP,1)
	Goto Death
Death:
	TNT1 A 0 A_Die
Explode:
	LLIN B 15 Bright A_PlaySound("weapons/minebeep")
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 A_Explode(150,300)
	TNT1 A 0 A_SpawnItemEx ("BarrelKaboom",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_PlaySound("weapons/mineexplode")
	TNT1 A 0 A_SpawnItemEx("GreenParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
    TNT1 AAAA 0 A_CustomMissile("Kaboom7", 0, 0, random(0,360), 2, random(20,160))
	TNT1 AAAA 0 A_CustomMissile("SmokeFX4", 0, 0, random(0,360), 2, random(20,160))
	TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,0,Random(4,-4),Random(4,-4),Random(4,8),0,128)
    TNT1 A 1 A_SpawnItem("MLGRocketEx")
    Stop
    }
}

Actor IlluminatiTriangle1
{
  +CLIENTSIDEONLY
  +NOINTERACTION
  +ISMONSTER
  +BRIGHT
  Scale 1.2
  states
  {
  Spawn:
	ILUM ABCDEFGH 2 A_Warp(AAPTR_MASTER,0,0,100,0,WARPF_NOCHECKPOSITION)
	Loop
	}
}