ACTOR EnragedLegendaryExos
{
//Creator: Nemesiscaptain(uwu)and Makarov
//Origin: Infinity Gods
//Sprite: EXEL
//Title: "EnragedLegendaryExos" 
Monster
Health 13500
WoundHealth 0
GibHealth 1000
Height 100//110
Radius 35//40
Mass 1000
Speed 32
SEESOUND "Exos/See"
ACTIVESOUND "Exos/Active"
PAINSOUND "Exos/Pain"
DEATHSOUND "Exos/Die"
MeleeSound ""
Monster
+BOSS
+NOFEAR
+BOSSDEATH
+NOICEDEATH
+DONTRIP
+NORADIUSDMG
+DONTMORPH
+TELESTOMP
+NOTELEFRAG
+NOTARGET
-NOINFIGHTING
+ALWAYSFAST
+NOBLOOD
+FLOORCLIP
+NEVERRESPAWN
+SEEINVISIBLE
+MISSILEMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
+NOTIMEFREEZE
DamageFactor "PDTBFG", 0.05
DamageFactor "BabySpiders", 0.0
DamageFactor "PDTBFG", 0.05
DamageFactor "PDTBFGTracer", 0.05
DamageFactor "VileFires", 0.0
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "BFGSplash", 0.25
DamageFactor "PlayerBHole", 0.0
DamageFactor "BFGSpray", 0.25
DamageFactor "PlayerDevBall", 0.015
DamageFactor "Railg", 0.5
DamageFactor "PlayerDevBall2", 0.015
DamageFactor "PlayerDTBFGRailgunSlug", 0.015
DamageFactor "PlayerDevTracer", 0.015
DamageFactor "PlayerDTRG", 0.05
DamageFactor "DemolisherEx", 0.0
DamageFactor "Term", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "CerChainguns", 0.0
DamageFactor "CerEnergyBall", 0.0
DamageFactor "LegMind", 0.0
DamageFactor "SuperWeapon", 0.0
DamageFactor "Ice", 0.0
DamageFactor "FreezerBurn", 0.0
DamageFactor "Crush", 0.1
DamageFactor "Player", 0.015
DamageFactor "PlayerHellfire", 0.3
DamageFactor "CDTBFG", 0.0
DamageFactor "DBFG10K", 0.015
DamageFactor "NobleComet", 0.0
DamageFactor "ZombieDev", 0.0
DamageFactor "BeheComet", 0.0
DamageFactor "PlayerDBFG10K", 0.0
DamageFactor "DBFG", 0.0
DamageFactor "PlayerBHole", 0.1
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "DBFG210K", 0.0
DamageFactor "PlayerDBFG210K", 0.0
DamageFactor "PlayerDBFG", 0.0
DamageFactor "DBFG2Splash", 0.0
DamageFactor "Baby15K", 0.0
DamageFactor "Extreme", 0.0
DamageFactor "UltimateLegendary", 0.0
DamageFactor "BeheComet", 0.0
DamageFactor "Terminator", 0.0
DamageFactor "Hell", 0.0
DamageFactor "HFCyber", 0.0
DamageFactor "DementedTerminator", 0.0
DamageFactor "CacoComet", 0.0
DamageFactor "CadaverRocket", 0.0
DamageFactor "NobleComet", 0.0
DamageFactor "Commander", 0.0
DamageFactor "DBFG10K2", 0.0
DamageFactor "PlayerDBFG10K2", 0.0
DamageFactor "DBFG2", 0.0
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "PyroShot", 0.0
DamageFactor "PlayerPyro", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor 0.5

DropItem "EnragedLegendaryUltraSphere" 215
DropItem "EnragedLegendaryArmor" 256 1
DropItem "LegendaryRune" 256 1
DropItem "LegendaryRune" 256 1
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "Legendary BFG" 256 1
DropItem "LegendaryBossLifeEssence" 250 
DropItem "LegendaryBossArmorBonusMax" 250 
DropItem "DemonicChalice" 200
DropItem "Enraged Legendary Plasmatic Rifle" 200 1
DropItem "LegAmmoSphere" 128 1
DropItem "LegDemonRune" 80 1
DropItem "Enraged Legendary Assault Shotgun" 200 1
DropItem "EnragedLegendaryCoachgun" 200
Bloodcolor "Red"
Obituary "%o was mercilessly slaughtered by the \c[m6]Enraged\c- \c[z3]Legendary Exos\c-"
Tag "\c[m6]Enraged\c- \c[z3]Legendary Exos\c-"
var int user_missile;
  var int user_music;
  var int user_background;
  var int user_plasma;
  var int user_upgrade;
  var int user_script;
States
	{
  Spawn:
    TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("ELegCardinalFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
    TNT1 A 0 A_JumpIf(user_upgrade >= 1,"SpawnMKII")
  	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX A 1 A_Look
	Loop
  SpawnMKII:
    TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
    EXMK AB 1 A_Look
	Loop
  See:
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,6766,950)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIf(user_upgrade >= 1,"SeeMKII")
	TNT1 A 0 ACS_NamedExecuteAlways("SetEnragedSky",0,4)
	TNT1 A 0 A_Jump(100,"Rush")
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX BB 3 A_Chase
	TNT1 A 0 A_PlaySound("ExosStep")
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX DD 3 A_Chase
	TNT1 A 0 A_PlaySound("ExosStep")
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(65,"Teleport")
	Loop
  SeeMKII:
    TNT1 A 0 A_Jump(100,"RushMKII")
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("ELegCardinalFire",0)
	TNT1 A 0 A_ChangeFlag(FLOAT,1)
	TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK A 3 A_Chase
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK B 3 A_Chase
	TNT1 A 0 A_Jump(65,"TeleportMKII")
	Loop
  Rush:
	TNT1 A 0 A_SpawnItemEx("ExosStep",0,0,5,0,0,-20)
	TNT1 A 0 A_Chase
	ELEX AA 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Chase
	ELEX AA 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Chase
	ELEX BB 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Chase
	ELEX BB 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Chase
	ELEX CC 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Chase
	ELEX CC 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("ExosStep",0,0,5,0,0,-20)
	ELEX DD 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Chase
	ELEX DD 2 A_SpawnItemEx("EnragedLegendaryExosGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Jump(38,"Teleport")
	TNT1 A 0 A_Jump(75,"See")  	
	Loop
  RushMKII:
	EXMK A 0 A_Chase
	EXMK A 0 A_SpawnItemEx("EnragedLegendaryExosMKIIGhost",0,0,0,0,0,0,0,128)
	EXMK A 2 A_Chase
	EXMK A 0 A_Chase
	EXMK A 0 A_SpawnItemEx("EnragedLegendaryExosMKIIGhost",0,0,0,0,0,0,0,128)
	EXMK B 2 A_Chase
	EXMK A 0 A_Chase
	EXMK A 0 A_SpawnItemEx("EnragedLegendaryExosMKIIGhost",0,0,0,0,0,0,0,128)
	EXMK A 2 A_Chase
	EXMK A 0 A_Chase
	EXMK A 0 A_SpawnItemEx("EnragedLegendaryExosMKIIGhost",0,0,0,0,0,0,0,128)
	EXMK B 2 A_Chase
	TNT1 A 0 A_Jump(38,"TeleportMKII")
	TNT1 A 0 A_Jump(75,"SeeMKII")  	
	Loop
  Teleport:
	ELEX A 0 A_UnSetShootable
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	ELEX AA 1 A_FadeOut(0.5,0)
	ELEX AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ELEX AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	ELEX AA 1 A_FadeIn(0.5)
	ELEX A 0 A_SetShootable
    Goto See	
  TeleportMKII:
	EXMK A 0 A_UnSetShootable
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	EXMK BB 1 A_FadeOut(0.5,0)
	EXMK AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	EXMK AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	EXMK BB 1 A_FadeIn(0.5)
	EXMK A 0 A_SetShootable
    Goto SeeMKII	
  Missile:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"MissileMKII")
	TNT1 A 0 A_Jump(200,2)
	TNT1 A 0 A_JumpIfHealthLower(3000,"Upgrade")
    TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_JumpIfCloser(300,"ChainGuns")
    TNT1 A 0 A_Jump(256,"Rockets","Rockets2","EnragedPlasma","DTGrenades","MiniLasers","EnragedCannonBombs","EnragedBFG")
  MissileMKII:
    TNT1 A 0 A_JumpIfCloser(300,"ChainGunsMKII")
    TNT1 A 0 A_Jump(256,"RocketsMKII","Rockets2MKII","EnragedPlasmaMKII","DTGrenadesMKII","MiniLasersMKII","EnragedCannonBombsMKII","EnragedBFGMKII")
	Goto SeeMKII
  ChainGuns:
	ELEX 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)
	ELEX F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"EnragedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_CustomMissile("EnragedExosExplosiveTracer",77,23,Random(5,-5),0)
	ELEX E 1 A_SpawnItemEx("RedShellCasing",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)
	ELEX F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"EnragedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_CustomMissile("EnragedExosExplosiveTracer",77,23,Random(5,-5),0)
	ELEX E 1 A_SpawnItemEx("RedShellCasing",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)
	ELEX F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"EnragedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_CustomMissile("EnragedExosExplosiveTracer",77,23,Random(5,-5),0)
	ELEX E 1 A_SpawnItemEx("RedShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-40,-45),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  ChainGunsEnd:
    ELEX E 1 A_FaceTarget
	TNT1 A 0 A_Jump(256,"Rockets","See")
	Goto See
  ChainGunsMKII:
	EXMK EEEE 1 A_FaceTarget(45)
	TNT1 A 0 A_SetUserVar("user_missile",0)
  ChainGunsMKIILoop:
    TNT1 A 0 A_JumpIf(user_missile >= 15,"ChainGunsMKIIEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
	EXMK F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"EnragedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_CustomMissile("EnragedExosExplosiveTracer",77,23,Random(5,-5),0)
	EXMK E 1 A_SpawnItemEx("RedShellCasing",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)
	EXMK F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"EnragedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_CustomMissile("EnragedExosExplosiveTracer",77,23,Random(5,-5),0)
	EXMK E 1 A_SpawnItemEx("RedShellCasing",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)
	EXMK F 1 Bright A_CustomBulletAttack(4.3,2.6,1,20,"EnragedBulletPuff",0,CBAF_NORANDOM)
	TNT1 A 0 A_CustomMissile("EnragedExosExplosiveTracer",77,23,Random(5,-5),0)
	EXMK E 1 A_SpawnItemEx("RedShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-40,-45),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  ChainGunsMKIIEnd:
    EXMK E 1 A_FaceTarget
	TNT1 A 0 A_Jump(256,"RocketsMKII","SeeMKII")
	Goto SeeMKII
  Rockets:
    ELEX GGGG 1 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX G 2 Bright
    TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Goto See
  RocketsMKII:
    EXMK GGGG 1 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK G 2 Bright
    TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Goto SeeMKII
  Rockets2:
    ELEX GGGG 1 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX G 2 Bright
    TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Goto See
  Rockets2MKII:
    EXMK GGGG 1 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 Bright A_FaceTarget
    TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedHomingRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK G 2 Bright
    TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Goto SeeMKII
  DTGrenades:
	ELEX GGGG 1 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX G 2 A_FaceTarget
	ELEX H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX G 2 A_FaceTarget
	ELEX H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX G 2 A_FaceTarget
	ELEX H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX G 2 A_FaceTarget
	Goto See
  DTGrenadesMKII:
	EXMK GGGG 1 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK G 2 A_FaceTarget
	EXMK H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK G 2 A_FaceTarget
	EXMK H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK G 2 A_FaceTarget
	EXMK H 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Petrovec/Fire",1)
    TNT1 A 0 A_PlaySound("Petrovec/AddFire",6)
    TNT1 A 0 A_PlaySound("Petrovec/Ambient",5)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("EnragedExosDTGrenade",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK G 2 A_FaceTarget
	Goto SeeMKII
  EnragedCannonBombs:
    TNT1 A 0 A_SetTranslucent(1)
	ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load1")
    ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load2")
	ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	ELEX G 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("legcardi/load3")
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    ELEX G 0 A_FaceTarget
	ELEX G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	ELEX G 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Star/fire")
	ELEX H 0 A_CustomMissile("EnragedCardihilatorCannonBomb",79,-15,0,CMF_TRACKOWNER)
    ELEX H 8 A_CustomMissile("EnragedCardihilatorCannonBomb",79,15,0,CMF_TRACKOWNER)
	ELEX G 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Star/fire")
	ELEX H 0 A_CustomMissile("EnragedCardihilatorCannonBomb",79,-15,0,CMF_TRACKOWNER)
    ELEX H 8 A_CustomMissile("EnragedCardihilatorCannonBomb",79,15,0,CMF_TRACKOWNER)
	ELEX G 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Star/fire")
	ELEX H 0 A_CustomMissile("EnragedCardihilatorCannonBomb",79,-15,0,CMF_TRACKOWNER)
    ELEX H 8 A_CustomMissile("EnragedCardihilatorCannonBomb",79,15,0,CMF_TRACKOWNER)
	Goto See
  EnragedCannonBombsMKII:
    TNT1 A 0 A_SetTranslucent(1)
	EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load1")
    EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load2")
	EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	EXMK G 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("legcardi/load3")
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    EXMK G 0 A_FaceTarget
	EXMK G 5 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	EXMK G 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Star/fire")
	EXMK H 0 A_CustomMissile("EnragedCardihilatorCannonBomb",79,-15,0,CMF_TRACKOWNER)
    EXMK H 8 A_CustomMissile("EnragedCardihilatorCannonBomb",79,15,0,CMF_TRACKOWNER)
	EXMK G 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Star/fire")
	EXMK H 0 A_CustomMissile("EnragedCardihilatorCannonBomb",79,-15,0,CMF_TRACKOWNER)
    EXMK H 8 A_CustomMissile("EnragedCardihilatorCannonBomb",79,15,0,CMF_TRACKOWNER)
	EXMK G 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Star/fire")
	EXMK H 0 A_CustomMissile("EnragedCardihilatorCannonBomb",79,-15,0,CMF_TRACKOWNER)
    EXMK H 8 A_CustomMissile("EnragedCardihilatorCannonBomb",79,15,0,CMF_TRACKOWNER)
	Goto SeeMKII
  MiniLasers:
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ELEX GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	ELEX H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ELEX GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	ELEX H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ELEX GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	ELEX H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ELEX GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	ELEX H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	ELEX GG 5
	Goto See
  MiniLasersMKII:
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	EXMK GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	EXMK H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	EXMK GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	EXMK H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	EXMK GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	EXMK H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	EXMK GGG 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("ELegendaryCardihilatorLaser",79,-15,0,CMF_TRACKOWNER)
	EXMK H 10 A_CustomMissile("ELegendaryCardihilatorLaser",79,15,0,CMF_TRACKOWNER)
	EXMK GG 5
	Goto SeeMKII
  EnragedPlasma:
    ELEX EEE 10 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	ELEX E 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar("user_plasma",0)
	TNT1 A 0 A_PlaySoundEx("hfcardinal/begin", 1, 0, 2)
	ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	ELEX EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
  FirePlasmaLoop:
	TNT1 A 0 A_JumpIf(user_plasma >= 20,"PlasmaEnd")
    TNT1 A 0 A_SetUserVar("user_plasma",user_plasma+1)
	ELEX E 2 A_FaceTarget
	TNT1 A 0 A_PlaySoundEx("hfcardinal/fireloop",1,0,2)
	ELEX F 2 A_CustomMissile("BoomBarrageMissile",58,-26,Random(-4,4))
	Loop
  PlasmaEnd:
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX EEEEEEE 2 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	Goto See
  EnragedPlasmaMKII:
    EXMK EEE 10 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
    EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
    EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	EXMK E 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar("user_plasma",0)
	TNT1 A 0 A_PlaySoundEx("hfcardinal/begin", 1, 0, 2)
	EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	EXMK EEE 3 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
  FirePlasmaMKIILoop:
	TNT1 A 0 A_JumpIf(user_plasma >= 20,"PlasmaMKIIEnd")
    TNT1 A 0 A_SetUserVar("user_plasma",user_plasma+1)
	EXMK E 2 A_FaceTarget
	TNT1 A 0 A_PlaySoundEx("hfcardinal/fireloop",1,0,2)
	EXMK F 2 A_CustomMissile("BoomBarrageMissile",58,-26,Random(-4,4))
	Loop
  PlasmaMKIIEnd:
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	EXMK EEEEEEE 2 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	Goto SeeMKII
  EnragedBFG:
    ELEX GGG 10 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	ELEX G 3 A_PlaySoundEx("Legcyber/BFG","GURUCHRG")
	TNT1 A 0 A_SetUserVar("user_missile",0)
  EnragedBFGCharging:
	TNT1 A 0 A_JumpIf(user_missile >= 38,"EnragedBFGFire")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_FaceTarget
	ELEX G 3 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Loop
  EnragedBFGFire:
 	ELEX G 3 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	ELEX H 10 A_CustomMissile("EnragedCyberGuruball",58,-26,0,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    ELEX GG 20 A_FaceTarget
	ELEX A 0 A_UnSetShootable
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	ELEX GG 1 A_FadeOut(0.5,0)
	ELEX AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	ELEX GG 1 A_FadeIn(0.5)
	ELEX A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	ELEX G 3 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	ELEX H 10 A_CustomMissile("EnragedCyberGuruball",58,-26,0,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    ELEX GG 20 A_FaceTarget
	Goto See
  EnragedBFGMKII:
    EXMK GGG 10 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	EXMK G 3 A_PlaySoundEx("Legcyber/BFG","GURUCHRG")
	TNT1 A 0 A_SetUserVar("user_missile",0)
  EnragedBFGMKIICharging:
	TNT1 A 0 A_JumpIf(user_missile >= 38,"EnragedBFGMKIIFire")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_FaceTarget
	EXMK G 3 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Loop
  EnragedBFGMKIIFire:
 	EXMK G 3 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	EXMK H 10 A_CustomMissile("EnragedCyberGuruball",58,-26,0,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    EXMK GG 20 A_FaceTarget
	EXMK A 0 A_UnSetShootable
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	EXMK GG 1 A_FadeOut(0.5,0)
	EXMK AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	EXMK GG 1 A_FadeIn(0.5)
	EXMK A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	EXMK G 3 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	EXMK H 10 A_CustomMissile("EnragedCyberGuruball",58,-26,0,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    EXMK GG 20 A_FaceTarget
	Goto SeeMKII
  Upgrade:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"SpawnMKII")
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
    TNT1 A 0 A_ChangeFlag(NODAMAGE,1)
	TNT1 A 0 A_SpawnItemEx("UpgradeLineSpawner",0,0,32)
	TNT1 A 0 A_GiveInventory("EnragedCybruiserShieldGiver",1)
	TNT1 A 0 ACS_NamedExecuteAlways("EnragedExosUpgrade",0,user_upgrade)
	ELEX E 5
	"####" A 0 A_SpawnItemEx("EnragedTPFog",70,70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedTPFog",70,-70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedTPFog",-70,70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedTPFog",-70,-70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedLegendaryAutomatonMKII",70,70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedLegendaryAutomatonMKII",70,-70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedLegendaryAutomatonMKII",-70,70,16,0,0,0,0,SXF_NOCHECKPOSITION)
	"####" A 0 A_SpawnItemEx("EnragedLegendaryAutomatonMKII",-70,-70,16,0,0,0,0,SXF_NOCHECKPOSITION)
  UpgradeLoop:
	ELEX E 4
	Loop
  UpgradeEnd:
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    TNT1 A 0 A_ChangeFlag(NODAMAGE,0)
    TNT1 A 0 A_SetUserVar(user_upgrade,user_upgrade+1)
    TNT1 AAA 0 A_SpawnItemEx("EnragedDeathBallMedium",Random(-86,86),Random(-86,86))
	Goto Spawn
  Pain:
    TNT1 A 0 A_JumpIf(user_upgrade == 1,"PainMKII")
	ELEX I 8 A_Pain
	Goto See
  PainMKII:
	EXMK I 8 A_Pain
	Goto SeeMKII
  Death:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"DeathMKII")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
	ELEX IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELEX IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELEX IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ELEX I 10 A_Scream
    ELEX IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELEX JJJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_PlaySoundEx("legendary/strike","Voice",0,2)
	TNT1 A 0 A_SpawnItemEx("ELegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
    TNT1 A 0 A_SpawnItemEx("ELegendaryStrikeN")
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
    ELEX KKKKKK 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELEX LLLLLL 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELEX MMMMMM 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELEX NNNNNN 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky",0)
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryBFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged 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("Enraged 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("Legendary Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryBFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryPowerShard",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",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_DropItem("TrueLegendaryRune",1,32)
	TNT1 A 0 A_DropItem("EnragedLegendaryRune",1,128)
	ELEX O 2 A_Fall
	ELEX PQ 4 A_NoBlocking
	TNT1 A 0 A_PlaySound("Exos/Die")
	ELEX R -1 A_Killmaster
	Stop
  DeathMKII:
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
	EXMK IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EXMK IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EXMK IIIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	EXMK I 10 A_Scream
    EXMK JJJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EXMK JJJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_PlaySoundEx("legendary/strike","Voice",0,2)
	TNT1 A 0 A_SpawnItemEx("ELegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
    TNT1 A 0 A_SpawnItemEx("ELegendaryStrikeN")
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
    TNT1 AAAAAAAA 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 AAAAAAAA 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 AAAAAAAA 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 AAAAAAAA 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky",0)
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryBFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged 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("Enraged 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("Legendary Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryBFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryPowerShard",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",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_DropItem("TrueLegendaryRune",1,32)
	TNT1 A 0 A_DropItem("EnragedLegendaryRune",1,128)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryExosGib",0,0,8,random(1,8),0,2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryExosGib2",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryExosGib3",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryExosGib4",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryExosGib5",0,0,8,random(0,8),random(0,8),2,random(0,360),SXF_CLIENTSIDE,0)
	TNT1 A 2 A_Fall
	TNT1 A 4 A_NoBlocking
	TNT1 A 0 A_PlaySound("Exos/Die")
	TNT1 A -1 A_Killmaster
	Stop
	}
}

Actor INFEnragedLegendaryExos : EnragedLegendaryExos
{
Tag "\c[m6]Enraged\c- \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("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ELEX A 1 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 EnragedLegendaryExosGhost
{
Scale 1.2
RENDERSTYLE Translucent
Alpha 0.75
+NOTIMEFREEZE
+NONSHOOTABLE
+NOINTERACTION
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	ELEX A 2 A_FadeOut(0.18,1)
	Wait
	}
}

ACTOR EnragedLegendaryExosMKIIGhost
{
Scale 1.2
RENDERSTYLE Translucent
Alpha 0.75
+NOTIMEFREEZE
+NONSHOOTABLE
+NOINTERACTION
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	EXMK A 2 A_FadeOut(0.18,1)
	Wait
	}
}

ACTOR EnragedExosDTGrenade : EnragedDTGrenade
{
DamageType "Exos"
States
{
  Spawn:
    TNT1 A 0 
	TNT1 A 0 A_StopSound
  Why:
	ERS1 ABCD 1 A_SpawnItemEx("EBFGParticle",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    Loop
  Death:
    TNT1 A 0 A_Explode(128,128)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 Radius_Quake(15,20,0,20,0)
	TNT1 AAAAAA 0 A_CustomMissile("EnragedExosDTGShrapnel",0,0,Random(0,359),CMF_AIMDIRECTION,Random(0,45))
	TNT1 A 0 A_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("Enraged10KShockwave", 0, 0, 15, 0, 0, 0, 0, 128)
    TNT1 A 20 A_SpawnItem("EnragedDTGrenadeEx",0,-10)
	TNT1 A 0 Bright A_SpawnItemEx("BaseFireFlareE",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS|SXF_SETMASTER)
    Stop    
	}
}

ACTOR EnragedExosDTGShrapnel : PlayerDevastatorBall2 
{
DamageType "Exos"
}

ACTOR EnragedExosExplosiveTracer : ELBSExplosiveTracer
{
DamageType "Exos"
States
{
  Spawn:
    TRA3 A 1 Bright
	Loop
  Death:
	TNT1 A 0
	TNT1 A 0 A_SetTranslucent(0.75,1)
	TNT1 A 0 A_SpawnItem("EKaboomLN2")
    EROC C 4 Bright A_Explode(Random(8,12)*5,72)
    EROC DE 3 Bright 
    Stop
  }
}

Actor EnragedLegendaryExosGib
{
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:
	ELEX S 1
	Loop
  Death:
	ELEX S 2100
	ELEX S 5 A_FadeOut(0.1,1)
	Wait
	}
}

Actor EnragedLegendaryExosGib2 : EnragedLegendaryExosGib
{
States
{
  Spawn:
	ELEX T 1
	Loop
  Death:
	ELEX T 2100
	ELEX T 5 A_FadeOut(0.1,1)
	Wait
	}
}

Actor EnragedLegendaryExosGib3 : EnragedLegendaryExosGib
{
States
{
  Spawn:
	ELEX U 1
	Loop
  Death:
	ELEX U 2100
	ELEX U 5 A_FadeOut(0.1,1)
	Wait
	}
}

Actor EnragedLegendaryExosGib4 : EnragedLegendaryExosGib
{
States
{
  Spawn:
	ELEX V 1
	Loop
  Death:
	ELEX V 2100
	ELEX V 5 A_FadeOut(01.1,1)
	Wait
	}
}

Actor EnragedLegendaryExosGib5 : EnragedLegendaryExosGib
{
States
{
  Spawn:
	ELEX W 1
	Loop
  Death:
	ELEX W 2100
	ELEX W 5 A_FadeOut(0.1,1)
	Wait
	}
}
