Actor TrueLegendaryHellSmith : LegendaryHellSmith
{
//Creator: Dr. Blood (Dr. Sticky for the port) + Nolram For Extra edits
//Origin: Complex Doom Invasion / Nexus Extra Infinity
//Sprite: LGEP
//Title: "True Legendary HellSmith"
Scale 1.25
Health 15666 //14666
Radius 40 
Height 110 
Mass 5000 
Speed 35 
PainChance 3 
MONSTER
DamageFactor "PDTBFG", 0.05
DamageFactor "PDTBFGTracer", 0.05
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.3
DamageFactor "CadaverRocket", 0.0
DamageFactor "BFGSplash", 0.25
DamageFactor "BFGSpray", 0.25
DamageFactor "PlayerDevBall", 0.025
DamageFactor "PlayerDevBall2", 0.025
DamageFactor "PlayerDTBFGRailgunSlug", 0.025
DamageFactor "PlayerDevTracer", 0.025
DamageFactor "DemolisherEx", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "CerChainguns", 0.0
DamageFactor "CerEnergyBall", 0.0
DamageFactor "DBFG10K2", 0.4
DamageFactor "PlayerDBFG10K2", 0.4
DamageFactor "PlayerDTRG", 0.3
DamageFactor "DBFG2", 0.4
DamageFactor "PlayerDBFG2", 0.4
DamageFactor "PyroShot", 0.0
DamageFactor "PlayerPyro", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "TrueLegendaryDamage", 0.0
DamageFactor "TrueLegendaryPlayer", 0.0
DamageFactor "PlayerNemesisPlasma", 0.2
DamageFactor 0.3
DropItem "LegendaryRune" 256 1
DropItem "TrueLegendaryUltraSphere" 256 1
DropItem "LDemonAmmoBox" 256 
DropItem "LDemonAmmo" 256
DropItem "Legendary BFG" 256 1
DropItem "BossLifeEssence" 256 
DropItem "BossArmorBonusMax" 256 
DropItem "DemonicChalice" 256
DropItem "Legendary Plasmatic Rifle" 256 1
DropItem "LegAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Legendary Assault Shotgun" 256 1
DropItem "Legendary Plasmatic Cannon" 256 1 
DropItem "LegendarySphere" 256 1
DropItem "LegTimeFreezeSphere" 256
DropItem "TrueLegendarySyringe" 150 1
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 256
DropItem "LegendaryBulletBox" 256 
DropItem "LegendaryLMGBulletMag" 256 20
DropItem "Legendary Pyro Cannon" 128 1
DropItem "Legendary Light Machine Gun" 256 1
DropItem "UpgradedTrueLegendaryArmor", 256
DropItem "TrueLegendaryBFGUpgrade" 250 1
Species "Cybers"
BloodColor "Blue"
RadiusDamageFactor 0.3
MeleeRange 128
MeleeDamage 40
SeeSound "LegendaryEmperor/See"
PainSound "LegendaryEmperor/Pain"
DeathSound "LegendaryEmperor/Death"
ActiveSound "baron/active"
Obituary "%o met The \c[l5]True Legendary HellSmith\c- and was Destroyed without mercy."
Tag "\c[l5]True Legendary HellSmith\c-"
Translation "0:255=%[0.00,0.00,0.00]:[0.35,0.45,1.75]"
+FLOORCLIP
+BOSS
+BOSSDEATH
+FIRERESIST
+NOTARGET
+QUICKTORETALIATE
+LOOKALLAROUND
+NORADIUSDMG
+NOICEDEATH
+NOTARGET
+CANTSEEK
+NOFEAR
+DONTSPLASH
+NOTIMEFREEZE
+NOTELEFRAG
+MISSILEEVENMORE
+DONTHURTSPECIES
+DONTHARMSPECIES
var int user_wait;
var int user_music;
States
{
  Spawn:
    TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP A 10 A_Look
	Loop
  See:
    TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1762,1003)
    TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_Jump(64,"Rush")
	TNT1 A 0 A_ChangeFlag("DROPOFF",FALSE)
    LGEP A 0 A_PlaySound("hellboss/step")
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP BB 3 A_Chase
	LGEP C 0 A_PlaySound("hellboss/step")
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP DD 3 A_Chase
	TNT1 A 0 A_Jump(16,"Teleport")
	Loop
  Rush:
	LGEP OO 0 A_Chase
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP O 1 A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0,0,0,0,128)
	LGEP OO 0 A_Chase
	LGEP O 1 A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0,0,0,0,128)
	LGEP OO 0 A_Chase
	LGEP O 1 A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Jump(12,"Teleport")
	TNT1 A 0 A_Jump(8,"See")
	Loop
  Strafing:
	TNT1 A 0 A_PlaySound("hellboss/step")
	TNT1 A 0 A_Chase("Melee","Missile",CHF_DONTMOVE)
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	LGEP AA 2 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Chase("Melee","Missile",CHF_DONTMOVE)
	LGEP BB 2 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_PlaySound("hellboss/step")
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Chase("Melee","Missile",CHF_DONTMOVE)
    LGEP CC 2 A_GiveInventory("LegCyberStrafe",1)	
	TNT1 A 0 A_Chase("Melee","Missile",CHF_DONTMOVE)
	LGEP DD 2 A_GiveInventory("LegCyberStrafe",1)
	Goto See
  Teleport:
    LGEP I 1 A_UnSetShootable
	LGEP IIIIIIIIIIIII 0 A_SpawnItemEx("TrueLegendaryCyberFlameSpawner2")
	LGEP IIIIIIIIII 1 A_FadeOut(0.1,0)
	LGEP I 2
	LGEP IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 0 A_Wander
	LGEP IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 0 A_Wander
    LGEP I 1 A_PlayWeaponSound("boss/teleport")
	LGEP IIIIIIIIIIIII 0 A_SpawnItemEx("TrueLegendaryCyberFlameSpawner2")
	LGEP IIIIIIIIIII 1 A_FadeIn(0.1)
    LGEP I 1 A_SetShootable
    Goto See
  Melee:
    TNT1 A 0
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	LGEP E 6 A_FaceTarget
	LGEP F 1 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP F 5 A_FaceTarget
	TNT1 A 0 A_Jump(192,2)
	TNT1 A 0 A_CustomMissile("LegendaryHellSmithMeleeLightning",0,0,0,6,90)
	LGEP G 10 A_MeleeAttack
	LGEP J 6 A_FaceTarget
	LGEP K 1 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP K 5 A_FaceTarget
	TNT1 A 0 A_Jump(192,2)
	TNT1 A 0 A_CustomMissile("LegendaryHellSmithMeleeLightning",0,0,0,6,90)
	LGEP L 10 A_MeleeAttack	
	Goto See
  Missile: 
    TNT1 A 0
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_Jump(24,"PrepareCharge")
	TNT1 A 0 A_Jump(128,"LegendaryStorm","LegendaryThunder","LegendaryLightning","NormalCombo","OtherCombo","Proton","Laser","WaitAttack","RageSkull","LegendaryBFG","LegendaryMiniBFG","LegendaryBFGExplode")
	TNT1 A 0 A_Jump(128,"TripleTruelegendaryPyroShots","RagelegendaryPyroShots","TripleTrueDarklegendaryBlasts","TrueLegBfgRageShots","TrueStormRageSmash")
	TNT1 A 0 A_Jump(256,"Normal","FloorTracers","Spread","FloorFire","FloorSeeker")
  Normal:
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,-7)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,7)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,-14)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,14)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,0)
	LGEP I 0 A_PlaySound("legendarycannon/fire")
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,-7)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,7)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,-14)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,14)
	LGEP I 0 A_CustomMissile("TrueLegendaryPlasmaBall",64,0,0)
	LGEP I 0 A_PlaySound("legendarycannon/fire")
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"FloorFire")
    Goto See
  FloorTracers:
	LGEP EF 4 A_GiveInventory("LegCyberStrafe",1)
	LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,45)
    LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,-45)
	LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,35)
    LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,-35)
	LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,25)
    LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,-25)
    LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,15)
    LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,-15)
    LGEP G 0 A_CustomMissile("LegBehFloorFire",40,0,0)
	LGEP G 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP GGGGG 4 A_GiveInventory("LegCyberStrafe",1)
	LGEP JK 4 A_GiveInventory("LegCyberStrafe",1)
	LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,45)
    LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,-45)
	LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,35)
    LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,-35)
	LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,25)
    LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,-25)
    LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,15)
    LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,-15)
    LGEP L 0 A_CustomMissile("LegBehFloorFire",40,0,0)
	LGEP L 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP LLLLL 4 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"Spread")
    Goto See
  Spread:
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,18)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-18)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,15)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-15)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,12)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-12)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,9)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-9)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,6)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-6)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,3)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-3)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,0)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP IIIMMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,18)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-18)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,15)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-15)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,12)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-12)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,9)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-9)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,6)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-6)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,3)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-3)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,0)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNNHHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,18)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-18)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,15)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-15)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,12)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-12)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,9)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-9)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,6)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-6)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,3)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,-3)
	LGEP I 0 A_CustomMissile("LegendaryOrbProj",64,0,0)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP IIIMMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,18)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-18)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,15)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-15)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,12)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-12)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,9)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-9)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,6)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-6)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,3)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,-3)
	LGEP N 0 A_CustomMissile("LegendaryOrbProj",64,0,0)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"FloorFire")
    Goto See
  FloorFire:
	LGEP EF 4 A_GiveInventory("LegCyberStrafe",1)
    LGEP G 0 A_CustomMissile("LegendaryNobleFloorFireSpawner",40,0,9)
    LGEP G 0 A_CustomMissile("LegendaryNobleFloorFireSpawner",40,0,-9)
    LGEP G 0 A_CustomMissile("LegendaryNobleFloorFireSpawner",40,0,0)
	LGEP G 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP GGGGG 4 A_GiveInventory("LegCyberStrafe",1)
	LGEP JK 4 A_GiveInventory("LegCyberStrafe",1)
    LGEP L 0 A_CustomMissile("LegendaryNobleFloorFireSpawner",40,0,9)
    LGEP L 0 A_CustomMissile("LegendaryNobleFloorFireSpawner",40,0,-9)
    LGEP L 0 A_CustomMissile("LegendaryNobleFloorFireSpawner",40,0,0)
	LGEP L 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP LLLLL 4 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"FloorSeeker")
    Goto See
  FloorSeeker:
	LGEP EF 4 A_GiveInventory("LegCyberStrafe",1)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,35,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,-35,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,70,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,-70,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,0,0)
	LGEP G 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP GGGGG 4 A_GiveInventory("LegCyberStrafe",1)
	LGEP JK 4 A_GiveInventory("LegCyberStrafe",1)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,35,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,-35,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,70,0)
    LGEP G 0 A_CustomMissile("LegNobleBall3",40,-70,0)
    LGEP L 0 A_CustomMissile("LegNobleBall3",40,0,0)
	LGEP L 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP LLLLL 4 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"LegendaryStorm","RagelegendaryPyroShots")
    Goto See
  LegendaryStorm:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack2","LAUGH2")
	LGEP EEEEEEEEFFFFFFFF 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_GiveInventory("HammerQuake",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_Jump(156,"NormalCombo")
    Goto See
  NormalCombo:
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 2 A_CustomMissile("LegendarySuperComet",68,0,0)
	LGEP I 0 A_CustomMissile("LegendarySuperComet",64,0,8)  
	LGEP I 0 A_CustomMissile("LegendarySuperComet",64,0,-8)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 2 A_CustomMissile("LegSoulBigBall",68,0,0)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 2 A_GiveInventory("LegCyberStrafe",1)
	LGEP HHH 2 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("LegendaryAssaultProjectile",64,0,7)
	LGEP I 0 A_CustomMissile("LegendaryAssaultProjectile",64,0,-7)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 2 A_CustomMissile("LegendaryArchvileThunderBall",68,0,0)
	LGEP N 0 A_CustomMissile("LegendaryArchvileThunderBall",64,0,8)  
	LGEP N 0 A_CustomMissile("LegendaryArchvileThunderBall",64,0,-8)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"OtherCombo")
    Goto See
  OtherCombo:
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 2 A_CustomMissile("LegTerminatorBFG9500Ball1",68,0,0)
	LGEP I 0 A_CustomMissile("LegTerminatorBFG9500Ball1",64,0,8)  
	LGEP I 0 A_CustomMissile("LegTerminatorBFG9500Ball1",64,0,-8)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 2 A_CustomMissile("LegNobleBall4",68,0,0)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 2 A_GiveInventory("LegCyberStrafe",1)
	LGEP HHH 2 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("TrueDarkLegendaryBall",64,0,7)
	LGEP I 0 A_CustomMissile("TrueDarkLegendaryBall",64,0,-7)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 2 A_CustomMissile("LegendarySmallBeam",68,0,0)
	LGEP N 0 A_CustomMissile("LegendarySmallBeam",64,0,8)  
	LGEP N 0 A_CustomMissile("LegendarySmallBeam",64,0,-8)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"Proton","RagelegendaryPyroShots")
    Goto See
  Proton:
    LGEP EEE 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_SetInvulnerable
	LGEP EEEEEEEEEEEEEEEE 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnsetInvulnerable
    LGEP HHHHHH 3 A_GiveInventory("LegCyberStrafe3",1)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",68,0,0)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)  
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP IIIIII 3 A_GiveInventory("LegCyberStrafe3",1)
	LGEP MMMMMM 3 A_GiveInventory("LegCyberStrafe3",1)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",68,0,0)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)  
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNNNNN 3 A_GiveInventory("LegCyberStrafe3",1)
    LGEP HHHHHH 3 A_GiveInventory("LegCyberStrafe3",1)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",68,0,0)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)  
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP IIIIII 3 A_GiveInventory("LegCyberStrafe3",1)
	LGEP MMMMMM 3 A_GiveInventory("LegCyberStrafe3",1)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",68,0,0)
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)  
	LGEP I 0 A_CustomMissile("TLBSBFG15KBall",64,0,-38)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNNNNN 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_Jump(156,"Laser")
    Goto See
  Laser:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack1","LAUGH1")
	LGEP MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetUserVar("user_wait",0)
  LaserGo:
    TNT1 A 0 A_JumpIf(user_wait >= 16,"LaserEnd")	 
    TNT1 A 0 A_SetUserVar("user_wait",user_wait+1)
	TNT1 A 0 A_CustomMissile("LegBanishedLaserBeam",64,0,0)
	LGEP N 4 A_GiveInventory("LegCyberStrafe2",1)
    Loop
  LaserEnd:
    LGEP NNNNN 2 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"WaitAttack")
	Goto See
  WaitAttack:
    LGEP EEEEE 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_SetInvulnerable
	LGEP EEEEEEEEEEEEEEEE 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 AA 0 A_SpawnItemEx("TrueLegendaryCardinalWaitBall",0,0,90,frandom(-40,40),frandom(-40,40),frandom(10,40),0,SXF_TRANSFERPOINTERS)
	LGEP EEEEEEEEEEE 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("TrueLegendaryCardinalWaitBall",0,0,90,frandom(-40,40),frandom(-40,40),frandom(10,40),0,SXF_TRANSFERPOINTERS)
	LGEP EEEEEEEEEEE 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AA 0 A_SpawnItemEx("TrueLegendaryCardinalWaitBall",0,0,90,frandom(-40,40),frandom(-40,40),frandom(10,40),0,SXF_TRANSFERPOINTERS)
	LGEP EEEEEEEEEEEEE 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"RageSkull")
	Goto See
  RageSkull:
    LGEP JJJJJ 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_SetInvulnerable
	LGEP JJJJJJJJJJJJJJJJ 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_UnSetInvulnerable
    TNT1 A 0 A_SetUserVar("user_wait",0)
  RageSkullGo:
    TNT1 A 0 A_JumpIf(user_wait >= 5,"RageSkullEnd")	 
    TNT1 A 0 A_SetUserVar("user_wait",user_wait+1)
	LGEP J 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryEmperorRageSkull",-20,random(120,300),random(64,250),frandom(-3,3),frandom(0,10),frandom(-3,3),(180*random(0,1)),SXF_TRANSFERPOINTERS)
	LGEP JJJJJJJJJJJ 2 A_GiveInventory("LegCyberStrafe2",1)
	Loop
  RageSkullEnd:
	LGEP EEEEEEEEEEEEE 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"LegendaryThunder")
	Goto See
  LegendaryThunder:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack1","LAUGH2")
	LGEP JJJJJJJJKKKKKKKK 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_GiveInventory("HammerQuake",1)
	TNT1 A 0 A_SpawnItemEx("TrueLegCardinalThunder",random(812,-812),random(812,-812))
	LGEP LLLLLL 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_SpawnItemEx("TrueLegCardinalThunder",random(812,-812),random(812,-812))
	LGEP LLLLLL 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_SpawnItemEx("TrueLegCardinalThunder",random(812,-812),random(812,-812))
	LGEP LLLLLL 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_SpawnItemEx("TrueLegCardinalThunder",random(812,-812),random(812,-812))
	LGEP LLLLLL 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_SpawnItemEx("TrueLegCardinalThunder",random(812,-812),random(812,-812))
	LGEP LLLLLL 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_Jump(156,"LegendaryLightning","TrueStormRageSmash","TrueLegBfgRageShots")
    Goto See
  LegendaryLightning:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack2","LAUGH2")
	LGEP EEEEEEEEFFFFFFFF 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_GiveInventory("HammerQuake",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryFloorLightning",random(1024,-1024),random(1024,-1024),0,0,0,0,SXF_NOCHECKPOSITION)
	LGEP GGG 3 A_GiveInventory("LegCyberStrafe2",1)
	TNT1 A 0 A_Jump(156,"LegendaryBFG","TrueLegBfgRageShots")
    Goto See
  LegendaryBFG:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack1","LAUGH1")
	LGEP HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	TNT1 A 0 A_CustomMissile("DemonLegendaryBFGProjectile",64,0,0)
    LGEP IIIIIIIII 2 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"LegendaryMiniBFG","TrueStormRageSmash")
	Goto See
  LegendaryMiniBFG:
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("TrueDarkLegendaryBall",64,0,0)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP IIIMMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 0 A_CustomMissile("TrueDarkLegendaryBall",64,0,0)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNNHHH 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP I 0 A_CustomMissile("TrueDarkLegendaryBall",64,0,0)
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP IIIMMM 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP N 0 A_CustomMissile("TrueDarkLegendaryBall",64,0,0)
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"LegendaryBFGExplode")
    Goto See
  LegendaryBFGExplode:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack2","LAUGH2")
	LGEP EEEEEEEEFFFFFFFF 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("CyberGuruball",0,0,0,CMF_AIMDIRECTION)
	TNT1 AAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	LGEP GGGJJJKKK 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("CyberGuruball",0,0,0,CMF_AIMDIRECTION)
	TNT1 AAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	LGEP LLLEEEFFF 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("CyberGuruball",0,0,0,CMF_AIMDIRECTION)
	TNT1 AAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	LGEP GGGJJJKKK 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("CyberGuruball",0,0,0,CMF_AIMDIRECTION)
	TNT1 AAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	LGEP LLLEEEFFF 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("CyberGuruball",0,0,0,CMF_AIMDIRECTION)
	TNT1 AAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	LGEP GGGJJJKKK 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("CyberGuruball",0,0,0,CMF_AIMDIRECTION)
	TNT1 AAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	LGEP LLLEEEFFF 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_Jump(156,"NormalCombo")
    Goto See
 PrepareCharge:
	TNT1 A 0
	TNT1 A 0 A_JumpIfCloser(2000,1)
    Goto Missile
    TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag("DROPOFF",TRUE)
	TNT1 A 0 Radius_Quake(10,80,0,24,0)
	TNT1 A 0 A_PlaySound("LegendaryEmperor/See")
    LGEP OOOOOOOOOOOOOOOOOOOOOOOOO 3 A_GiveInventory("LegCyberStrafe3")
 Charge:
    TNT1 A 0 A_UnSetInvulnerable
 ChargeLoop:
    LGEP O 0 A_Recoil(-15)
	LGEP O 0 A_JumpIfCloser(110,"ChargeExplosion")
	LGEP O 0 A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0,0,0,0,128)
    LGEP O 3 A_GiveInventory("LegendaryHellSmithFireCharge")
	TNT1 A 0 A_CheckSight("ChargeExplosion")
    Loop
 ChargeExplosion:
	TNT1 A 0 
	TNT1 A 0 A_CustomMissile("LegendaryHellSmithBomb",24,0,0,CMF_AIMDIRECTION)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("GuruStruckGlowY",0,0,10,0,0,0,0,128,0)
	TNT1 AAAAAAAA 0 A_CustomMissile("DemonLegendaryBFGMiniProjectile",24,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruSphereSmoke",random(126,-126),random(126,-126),random(66,-66),0.00001*random(100000,-100000),0.00001*random(100000,-100000),0.00001*random(100000,-100000),random(0,359),0,0)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("GuruChunkSpark",random(126,-126),random(126,-126),random(66,-66),0,0,0,0,0,0)
	TNT1 A 0 Radius_Quake(3,15,0,10,0)
	TNT1 A 0 A_Stop
	LGEP LLLLLLLLL 3 A_GiveInventory("LegendaryHellSmithFireChargeNoFace") 
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("DROPOFF",FALSE)
    Goto See
   TripleTruelegendaryPyroShots:
    LGEP H 10 A_FaceTarget
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 Bright A_Custommissile("LegendaryRSTPyroShot", 42, 0, 0)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",42,15,30)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",42,15,-30)
	LGEP I 0 A_PlaySound("legendarycannon/fire")
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 Bright A_Custommissile("LegendaryRSTPyroShot", 42, 0, 0)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",42,15,30)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",42,15,-30)
	LGEP I 0 A_PlaySound("legendarycannon/fire")
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"FloorFire")
    Goto See
	RagelegendaryPyroShots:
	   TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack1","LAUGH1")
	   LGEP HHHHHHH 6 A_FaceTarget
	   LGEP H 6 A_PlaySound ("monster/hamswg")
       LGEP N 0 A_PLaySound ("weapons/hellfi")
	   LGEP I 4 A_Custommissile("LegendaryRSTPyroShot",100,-14)
	   TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	   LGEP MMM 2 A_FaceTarget
	   TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
	   LGEP M 1 A_PlaySound ("monster/hamswg")
	   LGEP N 1 A_PLaySound ("weapons/hellfi") 
	   LGEP N 4 A_Custommissile("LegendaryRSTPyroShot",120,random(-28,8))
	   TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	   LGEP HHH 2 A_FaceTarget
	   LGEP I 0 A_PlaySound ("monster/hamswg")
       LGEP I 0 A_PLaySound ("weapons/hellfi")
	   LGEP I 4 A_Custommissile("LegendaryRSTPyroShot",135,random(-28,8))
	   TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	   LGEP MMM 2 A_FaceTarget
	   TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
	   LGEP N 0 A_PlaySound ("monster/hamswg")
       LGEP N 0 A_PLaySound ("weapons/hellfi")
	   LGEP N 4 A_Custommissile("LegendaryRSTPyroShot",135,random(-28,8))
	   TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	   LGEP H 6 A_PlaySound ("monster/hamswg")
       LGEP N 0 A_PLaySound ("weapons/hellfi")
	   LGEP I 4 A_Custommissile("LegendaryRSTPyroShot",100,-14)
	   TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	   LGEP MMM 2 A_FaceTarget
	   TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
	   LGEP M 1 A_PlaySound ("monster/hamswg")
	   LGEP N 1 A_PLaySound ("weapons/hellfi") 
	   LGEP N 4 A_Custommissile("LegendaryRSTPyroShot",120,random(-28,8))
	   TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	   LGEP NNN 2 A_FaceTarget
	   TNT1 A 0 A_Jump(156,"Laser")
    Goto See
   TripleTrueDarklegendaryBlasts:
    LGEP H 10 A_FaceTarget
    LGEP HHH 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 Bright A_Custommissile("TrueDarkLegendaryBall", 42, 0, 0)
	TNT1 A 0 Bright A_CustomMissile("TrueDarkLegendaryBall",42,15,30)
	TNT1 A 0 Bright A_CustomMissile("TrueDarkLegendaryBall",42,15,-30)
	LGEP I 0 A_PlaySound("legendarycannon/fire")
	LGEP I 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP III 3 A_GiveInventory("LegCyberStrafe",1)
	LGEP MMM 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 Bright A_Custommissile("TrueDarkLegendaryBall", 42, 0, 0)
	TNT1 A 0 Bright A_CustomMissile("TrueDarkLegendaryBall",42,15,30)
	TNT1 A 0 Bright A_CustomMissile("TrueDarkLegendaryBall",42,15,-30)
	LGEP I 0 A_PlaySound("legendarycannon/fire")
	LGEP N 0 A_PlayWeaponSound("InfernalEmperor/Hammer")
	LGEP NNN 3 A_GiveInventory("LegCyberStrafe",1)
	TNT1 A 0 A_Jump(156,"FloorFire")
    Goto See
   TrueLegBfgRageShots:
       TNT1 A 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack1","LAUGH1")
	   TNT1 AAAA 0 A_SpawnItemEx("LegendaryEmperorRageSkull",-20,random(120,300),random(64,250),frandom(-3,3),frandom(0,10),frandom(-3,3),(180*random(0,1)),SXF_TRANSFERPOINTERS)
	   LGEP HHHHHHHHHHHHHHHHHHHHHHH 3 A_GiveInventory("LegCyberStrafe3",1)
	   TNT1 AAAA 0 A_SpawnItemEx("LegendaryEmperorRageSkull",-20,random(120,300),random(64,250),frandom(-3,3),frandom(0,10),frandom(-3,3),(180*random(0,1)),SXF_TRANSFERPOINTERS)
	   LGEP HHHHHHHHHHHHHHHHHHHHHHH 3 A_GiveInventory("LegCyberStrafe3",1)
	   TNT1 A 0 A_UnSetReflectiveInvulnerable
	   TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	   TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	   TNT1 A 0 A_CustomMissile("CyberGuruBall",64,0,0)
       LGEP IIIIIIIII 2 A_GiveInventory("LegCyberStrafe",1)
	   LGEP MMMMMMMMMMMMMMMMMMMM 3 A_GiveInventory("LegCyberStrafe",1)
	   TNT1 AAAA 0 A_SpawnItemEx("LegendaryEmperorRageSkull",-20,random(120,300),random(64,250),frandom(-3,3),frandom(0,10),frandom(-3,3),(180*random(0,1)),SXF_TRANSFERPOINTERS)
	   LGEP MMMMMMMMMMMMMMMMMMMM 3 A_GiveInventory("LegCyberStrafe",1)
	   TNT1 A 0 A_CustomMissile("CardinalSpecialGuruBall",64,0,0)
       LGEP NNNNNNNNN 2 A_GiveInventory("LegCyberStrafe",1)
	   TNT1 A 0 A_Jump(125,"TripleTrueDarklegendaryBlasts")
    Goto See
   TrueStormRageSmash:
	TNT1 A 0 A_SetReflectiveInvulnerable
	TNT1 A 0 A_PlaySoundEx("LegendaryEmperor/Attack2","LAUGH2")
	LGEP EEEEEEEEFFFFFFFF 3 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_UnSetReflectiveInvulnerable
	TNT1 A 0 A_GiveInventory("HammerQuake",1)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 2 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 A 0 A_SpawnItem("DeathBall2")
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",63,15,0)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",63,15,30)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",63,15,60)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",63,15,-30)
	TNT1 A 0 Bright A_CustomMissile("LegendaryRSTPyroShot",63,15,-60)
	TNT1 AAA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AAA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AAA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AAA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	TNT1 AAA 0 A_SpawnItemEx("LegRedStormBoltSpawner",Random(512,-512),Random(512,-512),0,0,0,0,SXF_NOCHECKPOSITION,64)
	TNT1 A 0 A_GiveToTarget("LegRedStormBoltAttack",1)
	LGEP G 4 A_GiveInventory("LegCyberStrafe3",1)
	Goto See
  Pain:
    TNT1 A 0 A_Jump(44,"PrepareCharge")
	LGEP P 3
	LGEP P 3 A_Pain
	TNT1 A 0 A_Jump(127,"Missile")
	Goto See
   Death:
    TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"TrueDarkForm")
    TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"TrueDarkForm")
    TNT1 A 0 
    TNT1 A 0 A_StopSound(6)
	LGEP PPPPPPPPP 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("DemonLegendaryBFGMiniProjectileDeath")
	LGEP PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("DemonLegendaryBFGMiniProjectileDeath")
	LGEP PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
    TNT1 A 0 A_ScreamAndUnblock
	TNT1 A 0 A_SpawnItem("DemonLegendaryBFGProjectileDeath")
	TNT1 AAA 0 A_CustomMissile("BlueGibbedGenerator", random(10,80), 0, random(0,360), 2, random(0,360))
	LGEP QRS 4 A_SpawnItemEx("BlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BlueGibbedGenerator", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegendaryNuke")
	LGEP TUV 4 A_SpawnItemEx("BlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	LGEP WX 4
    LGEP Y -1
	Stop
   TrueDarkForm:
	    LGEP PPPPPPPPP 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	   TNT1 A 0 A_SpawnItem("DemonLegendaryBFGMiniProjectileDeath")
	LGEP PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("DemonLegendaryBFGMiniProjectileDeath")
	TNT1 A 0 A_ScreamAndUnblock
		LGEP P 100
		BSMT P 0 A_SpawnItemEx("TrueDeathBall")
	    TNT1 A 0 A_SpawnItem("BlueLightning")
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		BSMT P 0 A_SpawnItemEx("TrueDeathBall")
	    TNT1 A 0 A_SpawnItem("BlueLightning")
	    BSMT P 10
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		BSMT P 0 A_SpawnItemEx("TrueDeathBall")
	    TNT1 A 0 A_SpawnItem("BlueLightning")
	    BSMT P 10
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	    BSMT P 10
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
		LGEP P 10
		BSMT P 0 A_SpawnItemEx("BlueLightning")
	    TNT1 A 0 A_SpawnItem("TerminatorNukeDeath")
	    BSMT P 1 
		TNT1 A 1 A_SpawnItemEx("TrueDarkLegendaryHellSmith",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
		Stop
}
}