ACTOR LegendaryExos
{
//Creator: Nemesiscaptain(uwu) and Makarov
//Origin: Infinity Gods
//$Sprite LGEX
//$Title "LegendaryExos"
Monster
Health 12000
WoundHealth 0
GibHealth 1000
Height 100//110
Radius 35//40
Mass 1000
Speed 40
MeleeRange 400
MinMissileChance 100//160
SEESOUND "Exos/See"
ACTIVESOUND "Exos/Active"
PAINSOUND "Exos/Pain"
DEATHSOUND "Exos/Die"
MeleeSound ""
Monster
+NOTIMEFREEZE
+DONTHARMSPECIES
+MISSILEMORE
+FLOORCLIP
+NOTARGET
+FireResist
+NORADIUSDMG
+NOICEDEATH
+BOSS
+MISSILEEVENMORE
+CANTSEEK
+NOFEAR
+DONTSPLASH
+LOOKALLAROUND
+NOEXTREMEDEATH
+BOSSDEATH
+NOTELEFRAG
+DONTGIB
+DONTMORPH
+QUICKTORETALIATE
+NoDropOff
+nofear
+LookAllAround
DamageFactor 0.5
DamageFactor "PlayerFireSword", 0.0
DamageFactor "PlayerDTRG", 0.2
DamageFactor "DTRailgun", 0.2
DamageFactor "PDTPuff", 0.2
DamageFactor "RailG", 0.2
DamageFactor "PlayerBHole", 0.25
DamageFactor "PDTBFG", 0.03
DamageFactor "PDTBFGTracer", 0.03
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "BFGSplash", 0.0
DamageFactor "BFGSpray", 0.0
DamageFactor "PlayerDevBall", 0.020
DamageFactor "PlayerDevBall2", 0.020
DamageFactor "PlayerDTBFGRailgunSlug", 0.0
DamageFactor "PlayerDevTracer", 0.0
DamageFactor "UltimateLegendary", 0.0
DamageFactor "Extreme", 0.0
DamageFactor "PyroShot", 0.0
DamageFactor "PlayerPyro", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "FreezerBurn", 0.0
DamageFactor "SuperWeapon", 0.0
DamageFactor "Fire", 0.0
DamageFactor "Crush", 0.0
DamageFactor "Suicide", 0.0
DamageFactor "Telefrag", 0.0
DamageFactor "Massacre", 0.0
DamageFactor "Ice", 0.0
DamageFactor "Melee", 0.0
DamageFactor "DBFG10K", 0.5
DamageFactor "PlayerDBFG10K", 0.5
DamageFactor "PlayerDBFG2", 0.5
DamageFactor "PlayerDBFG210K", 0.5
DamageFactor "PlayerDBFG", 0.5
DamageFactor "DBFG", 0.5
DamageFactor "DBFG2", 0.0
DamageFactor "DBFG10K2", 0.0
DamageFactor "DBFGSplash2", 0.0
DamageFactor "Normal", 0.9
DamageFactor "PlayerNemesisPlasma", 0.2
DamageFactor "Explosion", 0.1
//No infight
DamageFactor "DemolisherEx", 0.0
DamageFactor "FlamingBatshitBurglers", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "CerChainguns", 0.0
DamageFactor "CerEnergyBall", 0.0
DamageFactor "LegMind", 0.0
DamageFactor "BeheComet", 0.0
DamageFactor "NobleCOmet", 0.0
DamageFactor "CacoComet", 0.0
DamageFactor "CadaverRocket", 0.0
DamageFactor "HellComet", 0.0
DamageFactor "Legendary1", 0.0
DamageFactor "T3rm", 0.0
DamageFactor "Terminator", 0.0
DamageFactor "", 0.0
DamageFactor "Ice", 0.0
DamageFactor "Moloch", 0.0
DamageFactor "AbyssalSatyr", 0.0
DamageFactor "SatanGuard", 0.0
DamageFactor "Hell", 0.0
DamageFactor "C0mm4nder", 0.0
DamageFactor "UpBFGSplash", 0.3
DamageFactor "Baby15K", 0.0
DamageFactor "RST", 0.0
DamageFactor "MinotaurDamage", 0.0
DamageFactor "NemesisBall", 0.5
  DamageFactor "NemesisBeam", 0.5
  DamageFactor "Hackroid", 0.5
  DamageFactor "Cursed", 0.5
  DamageFactor "TrueLegendaryDamage", 0.3
  DamageFactor "TrueLegendaryPlayer", 0.3
  DamageFactor "Normal", 0.5
  DamageFactor "PlayerNemesisPlasma", 0.2
  DamageFactor "Explosion", 0.1
  DamageFactor "DBFG10K2", 0.05
  DamageFactor "PlayerDBFG10K2", 0.05
  DamageFactor "DBFG2", 0.05
  DamageFactor "PlayerDBFG2", 0.05
  DamageFactor "DBFGSplash2", 0.0
  DamageFactor "NemesisBall", 0.5
  DamageFactor "NemesisBeam", 0.5
  DamageFactor "Hackroid", 0.5
  DamageFactor "Cursed", 0.5
  DamageFactor "TrueLegendaryDamage", 0.3
  DamageFactor "TrueLegendaryPlayer", 0.3
  DamageFactor "Normal", 0.5
  DamageFactor "PlayerNemesisPlasma", 0.2
  DamageFactor "Explosion", 0.1
  DamageFactor "DBFG10K2", 0.05
  DamageFactor "PlayerDBFG10K2", 0.05
  DamageFactor "DBFG2", 0.05
  DamageFactor "PlayerDBFG2", 0.05
// Drops
DropItem "LegendarySphere" 120 1
  DropItem "LegendaryPowerSphere" 100 1
  DropItem "LegendaryBossLifeEssence" 256
  DropItem "LegendaryBossArmorBonusMax" 256 
  DropItem "LegendaryArmor" 120 1 
  DropItem "LegAmmoSphere" 128 1
  DropItem "LDemonAmmoBox" 200 
  DropItem "LDemonAmmo" 250 
  DropItem "LegendaryRune" 55 1
  DropItem "Legendary Plasmatic Rifle" 170 1
  DropItem "Legendary Assault Shotgun" 80 1
  DropItem "Legendary Light Machine Gun" 80 1
  DropItem "LegendaryPowerShard" 80 1
  DropItem "LegendaryCell" 180
  DropItem "LegendaryCellPack" 150
  var int user_music;
  var int user_missile;
  
  
Bloodcolor "Blue"
Obituary "%o was annihilated by the overwhelming power of LegendaryExos." 
Tag "\c[z3]Legendary Exos\c-"


States
	{
  Spawn:
  	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX A 4 A_Look
	Loop
  Idle:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX AA 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX BB 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("ExosStep")
	LGEX CC 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX DD 3 A_Wander
	TNT1 A 0 A_PlaySound("ExosStep")
	TNT1 A 0 A_Look
	TNT1 A 0 A_Jump(52,"Teleport","ComboTel")
	Loop
  See:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,800,940)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_Jump(100,"Rush")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX BB 3 A_Chase
	TNT1 A 0 A_PlaySound("ExosStep")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX DD 3 A_Chase
	TNT1 A 0 A_PlaySound("ExosStep")
	TNT1 A 0 A_Jump(52,"Teleport","ComboTel")
	Loop
  Rush:
	LGEX A 0 A_PlaySound("ExosStep")
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX A 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX A 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX B 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX B 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)     
	LGEX A 0 A_PlaySound("ExosStep")
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX C 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX C 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX D 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)
	LGEX AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX D 2 A_SpawnItemEx("LegendaryExosGhost",0,0,0,0,0,0,0,128)     
	TNT1 A 0 A_Jump(38,"Teleport","ComboTel")
	TNT1 A 0 A_Jump(75,"See")   
    Loop
  Teleport:
	LGEX A 0 A_UnSetShootable
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner")
	LGEX EE 1 A_FadeOut(0.5,0)
	LGEX AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	LGEX AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("boss/teleport")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner")
	LGEX EE 1 A_FadeIn(0.5)
	LGEX A 0 A_SetShootable
    Goto See
  ComboTel:
	LGEX E 1 A_UnSetShootable
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeOut(0.1,0)
	LGEX EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeIn(0.1)
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
    LGEX  EEEEEEEEEEE 1 A_FadeOut(0.1,0) 
	LGEX EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeIn(0.1)
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeOut(0.1,0)
	LGEX EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeIn(0.1)
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeOut(0.1,0)
	LGEX EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeIn(0.1)
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeOut(0.1,0)
	LGEX EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	LGEX E 1 A_PlayWeaponSound("boss/teleport")
	LGEX EEEEEEEEEEEE 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX EEEEEEEEEEE 1 A_FadeIn(0.1)    
	LGEX E 1 A_SetShootable
	Goto See
  Missile:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIfTargetInLOS("ChainGuns",90,JLOSF_DEADNOJUMP|JLOSF_TARGETLOS,600,0)
	TNT1 A 0 A_Jump(256,"Rockets","Rockets2","Rockets3","LegendaryCannonBombs","LegendaryLaser","LegendaryBFG")
  ChainGuns:
		LGEX EEEE 1 A_FaceTarget(45)
		TNT1 A 0 A_SetUserVar("user_missile",0)
  ChainGunsLoop:
	    TNT1 A 0 A_JumpIf(user_missile >= 15,"ChainGunsEnd")	 
	    TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		LGEX F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"LegModdedBulletPuff",0,CBAF_NORANDOM)
		TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",77,23,Random(5,-5),0)
		LGEX E 1 A_SpawnItemEx("YellowShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-30,-35),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_FaceTarget
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		LGEX F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"LegModdedBulletPuff",0,CBAF_NORANDOM)
		TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",77,23,Random(5,-5),0)
		LGEX E 1 A_SpawnItemEx("YellowShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-40,-45),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_FaceTarget
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		LGEX F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"LegModdedBulletPuff",0,CBAF_NORANDOM)
		TNT1 A 0 A_CustomMissile("LegendaryBlueTracer",77,23,Random(5,-5),0)
		LGEX E 1 A_SpawnItemEx("YellowShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-40,-45),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		Loop
	ChainGunsEnd:
	    LGEX E 1 A_FaceTarget
	    TNT1 A 0 A_Jump(256,"Rockets","Rockets2","See")
		Goto See
  Rockets:
	LGEX GGGG 1 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX G 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX G 4 Bright
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	Goto See
  Rockets2:
	LGEX GGGG 1 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX G 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX G 4 Bright
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	Goto See
  Rockets3:
	LGEX GGGG 1 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX G 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("LegendaryExosPyroRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LGEX G 4 Bright
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	Goto See
  LegendaryCannonBombs:
    TNT1 A 0 A_SetInvulnerable
	LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load1")
    LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load2")
	LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	ELEX G 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("legcardi/load3")
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGEX G 0 A_FaceTarget
	LGEX G 5 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGEX G 0 A_FaceTarget
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_PlayWeaponSound("lrball3/shot")
	LGEX H 0 A_CustomMissile("LegRevBall3",79,-15,0,CMF_TRACKOWNER)
    LGEX H 8 A_CustomMissile("LegRevBall3",79,15,0,CMF_TRACKOWNER)
	LGEX G 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("lrball3/shot")
	LGEX H 0 A_CustomMissile("LegRevBall3",79,-15,0,CMF_TRACKOWNER)
    LGEX H 8 A_CustomMissile("LegRevBall3",79,15,0,CMF_TRACKOWNER)
	LGEX G 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("lrball3/shot")
	LGEX H 0 A_CustomMissile("LegRevBall3",79,-15,0,CMF_TRACKOWNER)
    LGEX H 8 A_CustomMissile("LegRevBall3",79,15,0,CMF_TRACKOWNER)
	Goto See
  LegendaryLaser:
	TNT1 A 0 A_SetInvulnerable
	LGEX GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegCyberLaserBeam",79,-15,0,CMF_TRACKOWNER)
	LGEX H 10 A_CustomMissile("LegCyberLaserBeam",79,15,0,CMF_TRACKOWNER)
	LGEX G 10 A_FaceTarget
	LGEX G 5 A_FaceTarget
	LGEX G 10 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegCyberLaserBeam",79,-15,0,CMF_TRACKOWNER)
	LGEX H 10 A_CustomMissile("LegCyberLaserBeam",79,15,0,CMF_TRACKOWNER)
	LGEX G 10 A_FaceTarget
	LGEX G 5 A_FaceTarget
	LGEX G 10 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegCyberLaserBeam",79,-15,0,CMF_TRACKOWNER)
	LGEX H 10 A_CustomMissile("LegCyberLaserBeam",79,15,0,CMF_TRACKOWNER)
	LGEX G 10 A_FaceTarget
	LGEX G 5 A_FaceTarget
	LGEX G 10 A_FaceTarget
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  LegendaryBFG:
    LGEX G 30 Bright A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	LGEX G 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_missile",0)
  LegendaryBFGCharging:
	TNT1 A 0 A_JumpIf(user_missile >= 38,"LegendaryBFGFire")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_FaceTarget
	LGEX G 3 Bright A_SpawnItem("LegendaryCyberFlameSpawner",0,0,0,0)
	Loop
  LegendaryBFGFire:
	LGEX GGGGGGGGGGGGG 0 A_SpawnItemEx("LegendaryCyberFlameSpawner2")
	TNT1 A 0 A_UnSetShootable
    LGEX GGGGGGGGGGG 1 A_FadeOut(0.1,0)
	LGEX GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 0 A_Wander
    LGEX G 20
    LGEX G 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	LGEX GGGGGGGGGGGGG 0 A_SpawnItemEx("LegendaryCyberFlameSpawner2")
	LGEX GGGGGGGGGGG 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	LGEX H 5 A_CustomMissile("CyberGuruball", 58, -26, 0, 0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    LGEX G 60 Bright A_FaceTarget
	Goto See
  Pain:
	LGEX I 8 A_Pain
	TNT1 A 0 A_Jump(200,"Teleport")	
	Goto Teleport
  PainMissile:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	Goto Missile
  XDeath:
  Death:
    TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
	TNT1 A 0 A_Jump(40,"TrueLeg")
	LGEX I 4 A_Scream
	TNT1 A 0 A_TakeInventory("Tic",999999)
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LGEX JJJKKK 5 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
	LGEX LLLMMM 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LGEX NNNOOO 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10K",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("LegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryExosGib",0,0,8,random(1,8),0,2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryExosGib2",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryExosGib3",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryExosGib4",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryExosGib5",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_PlaySound("Exos/Die")
	LGEX PQ 4
	LGEX R -1
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGEX H 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LGEX I 5 A_SpawnItem("BlueLightning")
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LGEX I 4 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LGEX K 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LGEX L 5 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LGEX M 5 A_SpawnItem("BlueLightning")
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LGEX M 75 A_SpawnItem("BlueLightning")
	LGEX M 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LGEX MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGEX B 5 A_SpawnItem("BlueLightning")
	TLEX MLKJIH 15 Bright
	TNT1 A 0 A_SpawnItemEx("TruelegendaryExos",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 1
	Stop
	
	}
}

Actor INFLegendaryExos : LegendaryExos
{
Tag "\c[z3]Legendary Exos\c-"
States
{
  Spawn:
    TNT1 A 0
    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("LHellionSmokeSpawner",0,0,0,0)
	LGEX A 4 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}


 ACTOR LegendaryExosGhost
{
Scale 1.4
RENDERSTYLE Translucent
Alpha 0.75
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
States
{
Spawn:
    LGEX A 2 A_FadeOut(0.18)
    Loop
    }
}   

ACTOR LegendaryExosPyroRocket : Rocket
{
Speed 26
Damage (random(20,25))
-ROCKETTRAIL
+DontHarmSpecies
DamageType "Exos"
DeathType "Fire"
SeeSound "rocket/fire"
States
{
  Spawn:
	LFR2 AB 1 Bright A_SpawnItemEx("LegendaryNapalmBallTrail",0,0,0,frandom(-5,0),frandom(-3,3),frandom(0,8))
	Loop
  Death:
    TNT1 A 0 Bright
	TNT1 AAA 0 Bright A_SpawnItemEx("LegendaryFlamethrowerShot",0,0,0,random(0,8),random(0,8),2,random(0,360),SXF_TRANSFERPOINTERS|SXF_SETMASTER,0)
	TNT1 A 0 Bright A_SpawnItemEx("LegendaryBlueParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
	TNT1 AAA 0 Bright A_CustomMissile("BlueKaboom3", 0, 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 Bright A_CustomMissile("LegendarySmokeFX2", 0, 0, random(0,360), 2, random(0,360))	
	LFR2 C 6 Bright A_Explode(random(120,130),128,0)
	LFR2 DE 5 Bright A_SetTranslucent(0.75,1)
	Stop
	}
}

ACTOR TrueLegendaryExosPyroRocket : Rocket
{
Speed 26
Damage (random(30,35))
-ROCKETTRAIL
+DontHarmSpecies
DamageType "Exos"
DeathType "Fire"
SeeSound "rocket/fire"
States
{
  Spawn:
	LFR4 AAABBBCCCDDDEEEFFF 1 Bright A_SpawnItemEx("TrueLegendaryNapalmBallTrail",0,0,0,frandom(-5,0),frandom(-3,3),frandom(0,8))
	Loop
  Death:
	TNT1 A 0 A_SpawnItemEx("LegendaryFlamethrowerBigShot",0,0,0,random(0,2),random(0,2),2,random(0,360),SXF_TRANSFERPOINTERS|SXF_SETMASTER,0)
	TNT1 AAA 0 A_SpawnItemEx("LegendaryFlamethrowerShot",0,0,0,random(0,8),random(0,8),2,random(0,360),SXF_TRANSFERPOINTERS|SXF_SETMASTER,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBlueParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
	TNT1 A 0 A_CustomMissile("BlueParticleSpawner", 0, 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4", 0, 0, random(0,360), 2, random(0,360))	
	TNT1 AAA 0 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(8,16),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("RailgunImpact")
	LFR4 G 6 Bright A_Explode(random(120,130),128,0)
	LFR4 HI 5 Bright A_SetTranslucent(0.75,1)
	Stop
	}
}

Actor LegendaryExosGib
{
Projectile
Mass 50
Height 10
Radius 10
Speed 0
Bouncecount 2
BounceFactor 0.7
WallBounceFactor 0.75
BounceType "Doom"
+DOOMBOUNCE
+BOUNCEONWALLS
+BOUNCEONFLOORS
+BOUNCEONACTORS
+MOVEWITHSECTOR
-NOGRAVITY
+CLIENTSIDEONLY
BounceSound "Exos/Gib1"
WallBounceSound "Exos/Gib1"
States
{
  Spawn:
	LGEX S 1
	Loop
  Death:
	LGEX S 2100
	LGEX S 5 A_FadeOut(0.1,1)
	Wait
	}
}

Actor LegendaryExosGib2 : LegendaryExosGib
{
States
{
  Spawn:
	LGEX T 1
	Loop
  Death:
	LGEX T 2100
	LGEX T 5 A_FadeOut(0.1,1)
	Wait
	}
}

Actor LegendaryExosGib3 : LegendaryExosGib
{
States
{
  Spawn:
	LGEX U 1
	Loop
  Death:
	LGEX U 2100
	LGEX U 5 A_FadeOut(0.1,1)
	Wait
	}
}

Actor LegendaryExosGib4 : LegendaryExosGib
{
States
{
  Spawn:
	LGEX V 1
	Loop
  Death:
	LGEX V 2100
	LGEX V 5 A_FadeOut(01.1,1)
	Wait
	}
}

Actor LegendaryExosGib5 : LegendaryExosGib
{
States
{
  Spawn:
	LGEX W 1
	Loop
  Death:
	LGEX W 2100
	LGEX W 5 A_FadeOut(0.1,1)
	Wait
	}
}
