Actor MLGZombie
{
//Creator: Makarov
//Origin: Infinity Gods
//Sprite: MLGZ
//Title: "MLGZombie" 
Monster
Health 6200
Radius 20
Height 56
Mass 1000
Speed 40
PainChance 50
BloodColor "Green"
MinMissileChance 80
-FORCERADIUSDMG
  -COUNTKILL
  +NOTIMEFREEZE
  +NOBLOOD
  //+BOSS
  +FLOORCLIP
  +NORADIUSDMG
  +MISSILEMORE
  +QUICKTORETALIATE
  +DONTHARMSPECIES
  +THRUSPECIES
Species "Zombies"
  Damagefactor 0.4
  DamageFactor "Ice", 0.0
  Damagefactor "Divine", 0.0
  DamageFactor "Explosion", 0.5
  DamageFactor "PlayerDTRG", 0.1
  DamageFactor "DTRailgun", 0.1
  DamageFactor "PDTPuff", 0.1
  DamageFactor "RailG", 0.1
  DamageFactor "PyroShot", 0.8
  DamageFactor "PlayerPyro", 0.1
  DamageFactor "BFG9500Ball", 0.0
  DamageFactor "BFGSplash", 0.0
  DamageFactor "PDTBFG", 0.5
  DamageFactor "PDTBFGTracer", 0.5
  DamageFactor "PlayerDevBall", 0.1
  DamageFactor "PlayerDevBall2", 0.1
  DamageFactor "PlayerDevTracer", 0.1
  DamageFactor "PlayerDBFG10K2", 0.15
  DamageFactor "PlayerDBFGSplash2", 0.0
  DamageFactor "PlayerBHole", 0.3
  DamageFactor "PlayerDBFG", 0.15
  DamageFactor "PlayerDBFG2", 0.15
  DamageFactor "Legendary", 0.15
  DamageFactor "LegendaryPlayer", 0.15
  DamageFactor "LegendaryGuru", 0.15
  DamageFactor "LegendaryGuruPlayer", 0.15
  DamageFactor "PlayerNemesisPlasma", 0.14
  DamageFactor "Cursed", 0.22
  DamageFactor "Hackroid", 0.32
  DamageFactor "TrueLegendaryDamage", 0.3
  DamageFactor "TrueLegendaryPlayer", 0.3
  DropItem "Demon Tech BFG10K" 256 1
  DropItem "BFS" 256, 1
  DropItem "SuperCrate" 256 1
  DropItem "BFG10K" 256 1
  DropItem "LegDemonRune" 128 1
  DropItem "LegAmmoSphere" 128 1
  DropItem "LegendarySphere" 128 1
  DropItem "LegendaryArmor" 128 1 //I had no idea what he will drops
  DropItem "LegendaryUltraSphere" 233
  DropItem "LegendaryPowerShard" 200 1
  DropItem "ChaosEssence" 256 1
  DropItem "DemonicChalice" 256 1
  DropItem "SkullOfPower" 256 1
  DropItem "MLGRune" 256 1
  DropItem "ExoticWeaponEnhancerModuleGiver" 90
SeeSound "MLGZombie/Sight"
ActiveSound "MLGZombie/Active"
PainSound "lcmdo/pain"
DeathSound "MLGZombie/Death"
  Obituary "%o lagged out during the MLG showdown."
  Tag "\c[u3]MLG Zombie\c-"
  var int user_music;
States
{
  Spawn:
	MLGZ AB 10 A_Look
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	Loop
  Idle:
	MLGZ AB 10 A_Look
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	Loop
  See:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1776,910)
	TNT1 A 0 A_SetUserVar("user_music",1)
	MLGZ A 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ A 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ B 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ B 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ C 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ C 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ D 3 A_Chase
	TNT1 A 0 Healthing(1)
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",360,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_MonsterRefire(0,"Rush")
	MLGZ D 3 A_Chase
	TNT1 A 0 Healthing(1)
	Loop
  Strafing:
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	MLGZ AAA 1 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	MLGZ BBB 1 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	MLGZ CCC 1 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	MLGZ DDD 1 A_GiveInventory("MLGZombieStrafing",1)
	Goto See
  Rush:
	TNT1 A 0 A_Jump(128,"Rush2")
  Rush1:
	MLGZ A 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush3")
  Rush2:
	MLGZ AAA 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush4")
  Rush3:
	MLGZ A 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush5")
  Rush4:
	MLGZ AAA 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush6")
  Rush5:
	MLGZ B 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush7")
  Rush6:
	MLGZ BBB 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush8")
  Rush7:
	MLGZ B 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush9")
  Rush8:
	MLGZ BBB 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush10")
  Rush9:
	MLGZ C 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush11")
  Rush10:
	MLGZ CCC 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush12")
  Rush11:
	MLGZ C 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush13")
  Rush12:
	MLGZ CCC 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush14")
  Rush13:
	MLGZ D 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush15")
  Rush14:
	MLGZ DDD 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush16")
  Rush15:
	MLGZ D 3 A_FastChase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(128,"Rush1")
  Rush16:
	MLGZ DDD 1 A_Chase
	TNT1 A 0 A_JumpIfInTargetLOS("Dodge",45,JLOSF_DEADNOJUMP,1000)
	TNT1 A 0 A_Jump(38,"Teleport","ComboTel")
	TNT1 A 0 A_Jump(8,"See")
	Goto Rush
  Dodge:
	TNT1 A 0
	TNT1 A 0 A_GiveInventory("MonsterAvoid",1)
	TNT1 A 0 A_Jump(64,"See")
	Goto Missile
  DodgeSee:
	TNT1 A 0
	TNT1 A 0 A_GiveInventory("MonsterAvoid",1)
	TNT1 A 0 A_Jump(64,"Rush")
	Goto See
  Teleport:
    MLGZ A 1 Bright A_UnSetShootable
	MLGZ AAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLGZ AAAAAAAAAA 1 A_FadeOut(0.1,0)
	MLGZ A 2
	MLGZ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	MLGZ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    MLGZ A 1 A_PlayWeaponSound("boss/teleport")
	MLGZ AAAAAA 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLGZ AAAAAAAAAA 1 A_FadeIn(0.1)
    MLGZ A 1 Bright A_SetShootable
    Goto See
	ComboTel:
       MLGZ E 1 A_UnSetShootable
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeOut(0.1,0)
       MLGZ EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)
       MLGZ EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
       MLGZ E 1 A_PlayWeaponSound("boss/teleport")
       MLGZ EEEEEEEEEEEE 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
       MLGZ EEEEEEEEEEE 1 A_FadeIn(0.1)   
       MLGZ E 1 A_SetShootable
       Goto See
  Missile:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(88,"SniperRifle","GaussAnnihilator","BFS","Railgun","BFG2704Alt","Lightning")
  SniperRifle:
	MLGZ E 10 A_FaceTarget
	MLGZ F 10 A_CustomMissile("MLGZombieProjectile",47,0,random(-2,2))
	MLGZ E 10 A_PlaySound("MLGZombie/Reload",CHAN_ITEM,1.0,0)
	MLGZ E 10 A_PlaySound("MLGZombie/Reload2",CHAN_ITEM,1.0,0)
	TNT1 A 0 A_Jump(10,"Pause")
	TNT1 A 0 A_Jump(25,"Nade")
	TNT1 A 0 A_MonsterRefire(0,"See")
	Goto See
  GaussAnnihilator:
	TNT1 A 0 A_Playsound("CCHAIN/Telegraph",CHAN_WEAPON)
	MLGZ E 1 A_Facetarget
	MLGZ EEEEEEEEEE 2
	TNT1 A 0 A_SpawnItemEx("SBoysFireSpawner")
	MLGZ EE 5 Bright A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_PlaySound("ThunderCannon/Fire", CHAN_NOPAUSE, 500)
	MLGZ EEEE 1 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_NOPIERCING,1,0,"OverseerRailPuff",0,0,0,0,2.0,0,"OverseerRailParticle",-10)
	MLGZ FF 4 A_CustomMissile("SOverseerGaussAnnihilator", 19, 0, 0)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	MLGZ EEEEEEEEEE 2
	TNT1 A 0 A_SpawnItemEx("SBoysFireSpawner")
	MLGZ EE 5 Bright A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_PlaySound("ThunderCannon/Fire", CHAN_NOPAUSE, 500)
	MLGZ EEEE 1 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_NOPIERCING,1,0,"OverseerRailPuff",0,0,0,0,2.0,0,"OverseerRailParticle",-10)
	MLGZ FF 4 A_CustomMissile("SOverseerGaussAnnihilator", 19, 0, 0)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	MLGZ EEEEEEEEEE 2
	TNT1 A 0 A_SpawnItemEx("SBoysFireSpawner")
	MLGZ EE 5 Bright A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_PlaySound("ThunderCannon/Fire", CHAN_NOPAUSE, 500)
	MLGZ EEEE 1 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_NOPIERCING,1,0,"OverseerRailPuff",0,0,0,0,2.0,0,"OverseerRailParticle",-10)
	MLGZ FF 4 A_CustomMissile("SOverseerGaussAnnihilator", 19, 0, 0)
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	TNT1 A 0 A_Jump(128, "Railgun")
	Goto See
  BFS:
 	TNT1 A 0 A_StopSound(6)
 	MLGZ E 0 A_PlaySound ("Cardinal/9k")
 	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
 	MLGZ EEEEEEEEEEEEEEEE 2 A_FaceTarget
 	MLGZ E 0 A_PlaySound ("Weapons/BFSG/Fire")
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,0,0,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,0,0,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,15,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-15,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,12,0,2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,12,0,-2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-12,0,2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-12,0,-2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,10,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-10,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,8,0,4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,8,0,-4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-8,0,4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-8,0,-4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,6,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-6,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,4,0,5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,4,0,-5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-4,0,5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-4,0,-5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,2,0,0)
 	MLGZ F 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,"Pause")
	TNT1 A 0 A_Jump(25,"Nade")
	TNT1 A 0 A_MonsterRefire(0,"See")
 	Goto See
  SuperCombo:
    TNT1 A 0 A_StopSound(6)
 	MLGZ E 0 A_PlaySound ("Cardinal/9k")
 	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
 	MLGZ EEEEEEEEEEEEEEEE 2 A_FaceTarget
 	MLGZ E 0 A_PlaySound ("Weapons/BFSG/Fire")
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,0,0,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,0,0,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,15,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-15,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,12,0,2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,12,0,-2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-12,0,2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-12,0,-2)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,2,10,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-2,-10,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,8,0,4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,8,0,-4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-8,0,4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-8,0,-4)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,6,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-6,0,0)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,4,0,5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,4,0,-5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-4,0,5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,-1,-4,0,-5)
 	MLGZ F 0 A_CustomMissile("DarkCyber15K",30,1,2,0,0)
 	MLGZ F 10 Bright A_CustomMissile("DarkCyber15K",30,-1,-2,0,0)
 	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ EEEEEEEEEE 2 A_CustomRailgun(-1,10,NONE,"Green",RGF_SILENT|RGF_NOPIERCING,1,0,"RailTargetPuff",0,0,0,0,2,0,"SChainLaserTarget",-15)
	MLGZ F 4 Bright A_CustomMissile("OverseerRail", 30, 0, 0)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, 9)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, -9)
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ EEEEEEEEEE 2 A_CustomRailgun(-1,10,NONE,"Green",RGF_SILENT|RGF_NOPIERCING,1,0,"RailTargetPuff",0,0,0,0,2,0,"SChainLaserTarget",-15)
	MLGZ F 4 Bright A_CustomMissile("OverseerRail", 30, 0, 0)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, 9)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, -9)
	MLGZ E 2 Bright A_FaceTarget
	MLGZ F 2 A_CustomMissile("MLGZombieProjectile",47,0,random(-2,2))
	TNT1 A 0 A_PlaySound("MLGZombie/Reload",CHAN_ITEM,1.0,0)
	TNT1 A 0 A_PlaySound("MLGZombie/Reload2",CHAN_ITEM,1.0,0)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ F 2 A_CustomMissile("MLGZombieProjectile",47,0,random(-2,2))
	TNT1 A 0 A_PlaySound("MLGZombie/Reload",CHAN_ITEM,1.0,0)
	TNT1 A 0 A_PlaySound("MLGZombie/Reload2",CHAN_ITEM,1.0,0)
	TNT1 A 0 A_PlaySound("ThunderCannon/Fire", CHAN_NOPAUSE, 500)
	MLGZ EEEE 1 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_NOPIERCING,1,0,"OverseerRailPuff",0,0,0,0,2.0,0,"OverseerRailParticle",-10)
	MLGZ FF 4 A_CustomMissile("SCommandoGaussAnnihilator", 19, 0, 0)
	TNT1 A 0 A_PlaySound("truelegbfg/trigger",6,1.0,0,0.5)
	MLGZ E 10 A_FaceTarget
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	MLGZ EEEEEEE 5 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ F 20 A_CustomMissile("AltMolochBFG2704",32)
	MLGZ EEEEEEE 5 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ F 20 A_CustomMissile("AltMolochBFG2704",32)
	TNT1 A 0 A_Jump(10,"Pause")
	TNT1 A 0 A_Jump(25,"Nade")
	TNT1 A 0 A_MonsterRefire(0,"See")
	Goto See
  Railgun:	
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ EEEEEEEEEE 2 A_CustomRailgun(-1,10,NONE,"Green",RGF_SILENT|RGF_NOPIERCING,1,0,"RailTargetPuff",0,0,0,0,2,0,"SChainLaserTarget",-15)
	MLGZ F 4 Bright A_CustomMissile("OverseerRail", 30, 0, 0)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, 9)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, -9)
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ EEEEEEEEEE 2 A_CustomRailgun(-1,10,NONE,"Green",RGF_SILENT|RGF_NOPIERCING,1,0,"RailTargetPuff",0,0,0,0,2,0,"SChainLaserTarget",-15)
	MLGZ F 4 Bright A_CustomMissile("OverseerRail", 30, 0, 0)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, 9)
	TNT1 A 0 A_CustomMissile("OverseerRail", 30, 0, -9)
	TNT1 A 0 A_Jump(10,"Pause")
	TNT1 A 0 A_Jump(25,"Nade")
	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)
	MLGZ E 15 A_FaceTarget
	TNT1 A 0 A_PlaySound("truelegbfg/trigger",6,1.0,0,0.5)
	MLGZ E 10 A_FaceTarget
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	MLGZ EEEEEEE 5 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ F 20 A_CustomMissile("AltMolochBFG2704",32)
	MLGZ EEEEEEE 5 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ F 20 A_CustomMissile("AltMolochBFG2704",32)
	Goto Pause
  Lightning:
	MLGZ E 3 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	TNT1 A 0 A_PlaySound("weapons/bfgf", CHAN_NOPAUSE, 500)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	MLGZ F 1 Bright A_CustomMissile("SacroOverseerLightningBall",19)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	MLGZ E 3 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	TNT1 A 0 A_PlaySound("weapons/bfgf", CHAN_NOPAUSE, 500)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	MLGZ F 1 Bright A_CustomMissile("SacroOverseerLightningBall",19)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	MLGZ E 3 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	TNT1 A 0 A_PlaySound("weapons/bfgf", CHAN_NOPAUSE, 500)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	MLGZ F 1 Bright A_CustomMissile("SacroOverseerLightningBall",19)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)	
	TNT1 A 0 A_Jump(10,"Pause")
	TNT1 A 0 A_Jump(25,"Nade")
	TNT1 A 0 A_MonsterRefire(0,"See")
	Goto See
  Pause:
	MLGZ EEEEE 3 Bright A_GiveInventory("MLGZombieStrafing",1)
	Goto See
  Nade:
	MLGZ E 1 A_JumpIfCloser(1000,1)
	Goto Missile
	TNT1 A 0 A_JumpIfCloser(280,"Missile")
	MLGZ E 6 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ EEE 4 A_GiveInventory("MLGZombieStrafing",1)
	TNT1 A 0 A_GiveInventory("MLGZombieStrafing",1)
	MLGZ E 6 A_CustomMissile("MLGGrenade",32,0,0,2,10)
	MLGZ E 1
    Goto See
  PainMissile: 
	MLGZ G 3
	MLGZ G 3 A_Jump(192,"Missile")
	Goto Missile
  Pain:
	TNT1 A 0
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.25),"PainShield")
	TNT1 A 0 A_Jump(96,"NoPainShield")
  PainShield:
	TNT1 A 0 A_GiveInventory("ZombieShieldSphere",1)
  NoPainShield:
	MLGZ G 3
	MLGZ G 3 A_Pain
	Goto Dodge
  Death:
	TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"GodTransformation")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"GodTransformation")
	TNT1 A 0 A_JumpIfInTargetInventory("NexusSpread",1,"GodTransformation")
	MLGZ H 9
	MLGZ I 9 A_Scream
	MLGZ J 9
	MLGZ K 9 A_NoBlocking
	MLGZ L -1
	Stop
  GodTransformation:
    MLGZ H 3
	MLGZ H 15 A_Pain
	TNT1 A 0 A_SpawnItemEx("RedLightning")
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItemEx("RedLightning",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	MLGZ H 15 A_SpawnItemEx("HBoysFireSpawner")
	TNT1 A 0 A_SpawnItem("DarkDesNuke2")
	TNT1 A 0 A_Print("Let's see if you can kill my angry and spooky form!!!", 9)
	TNT1 A 0 A_SpawnItemEx("SkullMLGZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	Stop
	}
}

ACTOR INFMLGZombie : MLGZombie
{
Tag "\c[u3]MLG Assault Captain\c-"
States
{
  Spawn:
    TNT1 A 0 
    TNT1 A 0 A_Jump(140,"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 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
    MLSC A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	MLSC Z 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("INFLegendaryAssaultCaptain",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

Actor MLGZombieProjectile : FastProjectile
{
Projectile
Height 5
Radius 2
Speed 300
Scale 0.375
Decal "Bulletchip"
SeeSound "MLGZombie/Fire"
DamageType "Legendary"
+FORCERADIUSDMG
+NOTIMEFREEZE
+THRUSPECIES
States
{
  Spawn:
	XDML A 1 A_CustomMissile("ProjectileTrailParticleGreen",Random(2,4),Random(-2,2))
	Loop
  Death:
    TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("GreenParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
    FXPG AABBCDEFGHIJKLM 1 Bright A_FadeOut(0.05)
	Stop
	}
}

Actor MLGZombieStrafing : LegZombieStrafing
{
  States
  {
  Pickup:
    NULL A 1 
	NULL A 1 A_SpawnItem("GHellionSmokeSpawner",0,0,0,0)
	NULL A 1 A_Jump(188,2)
	NULL A 1 A_GiveInventory("MLGZombieJumping",1)
	NULL A 1 A_JumpIf(velx != 0 || vely != 0,2)
	NULL A 1 A_Jump(256,2)
	NULL A 1 A_Jump(235,5)
	NULL A 1 A_JumpIfInventory("LegZombieStrafeSens",1,3)
	NULL A 1 A_GiveInventory("LegZombieStrafeSens",1)
	NULL A 1 A_Jump(256,2)	
	NULL A 1 A_TakeInventory("LegZombieStrafeSens",1)
	NULL A 1 A_JumpIfInventory("LegZombieStrafeSens",1,3)
	NULL A 1 ThrustThing(angle*256/360+38.7,3,0,0)
	NULL A 1 A_Jump(256,2)	
	NULL A 1 ThrustThing(angle*256/360+38.7,-3,0,0)
    NULL A 1 A_FaceTarget
	NULL A 1 A_Jump(24,2)
	NULL A 1 A_JumpIfCloser(300,2)
	NULL A 1 A_Recoil(-1)
    Stop
	NULL A 1 A_Recoil(1)
    Stop	
  }
}

Actor MLGZombieJumping : MLGZombieStrafing
{
  +NOTIMEFREEZE
  States
  {
  Pickup:
    NULL A 1 
    NULL A 1 A_CheckFloor(1)
    Stop
	NULL A 1 A_Jump(242,2)
	NULL A 1 ThrustThingZ(0,25,0,1)
    Stop
	NULL A 1
    Stop
  }
}

ACTOR MLGGrenade : LACGrenade
{  
	DamageType "Legendary"
	Obituary "%o was caught in the blast zone of the MLG justice."
	States
   {
   Spawn:
	  TNT1 A 0
      HGN1 A 3 A_StopSound
      HGN1 BCDEFGHABCDEFGHABCDEFGH 3
      Goto Death      
   Death: 
   	  TNT1 A 0
      TNT1 A 0 A_Explode  
	  TNT1 A 0 A_AlertMonsters
	  TNT1 A 0 A_PlaySound("weapons/hgrenadeex")
	  TNT1 A 0 A_SpawnItemEx("GreenParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
      TNT1 AAA 0 A_CustomMissile("Kaboom4", 0, 0, random(0,360), 2, random(0,360))
	  TNT1 AAA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	  TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,0,Random(4,-4),Random(4,-4),Random(4,8),0,128)
      Stop
   }
}

Actor INFMLGZombie : MLGZombie
{
Tag "\c[u3]MLG Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(130,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
	MLGZ A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("GHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Zombieman",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}