ACTOR EnragedLegendaryCardinal : Cyberdemon //Has a rotating skybox for some odd f**king reason
{
//Creator: GDWolf
//Origin: Complex Very Strong Monsters
//Sprite: HULY
//Title: "Enraged Legendary Cardinal"
Health 11000
Scale 1.2
Speed 25
Mass 0x7FFFFFFF
FloatSpeed 12
PainChance 1
DamageFactor 0.34
Species "EnragedLegendary"
DropItem "EnragedLegendaryUltraSphere" 215
DropItem "LegendaryRune" 256 1
DropItem "EnrLegGreaterDemonicEnergy" 256 
DropItem "Legendary BFG" 256 1
DropItem "LegendaryBossLifeEssence" 250 
DropItem "LegendaryBossArmorBonusMax" 250 
DropItem "DemonicChalice" 200
DropItem "Enraged Legendary Plasmatic Rifle" 140 1
DropItem "EnragedLegendaryAmmoSphere" 128 1
DropItem "LegDemonRune" 80 1
DropItem "EnragedLegTimeFreezeSphere" 256 1
DropItem "EnragedLegendaryRune" 128 1
DropItem "ReforcedEnragedLegendaryArmor" 180 1
DropItem "Enraged Legendary Assault Shotgun" 100 1
DamageFactor "PDTBFG", 0.05
DamageFactor "PDTBFGTracer", 0.05
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.3
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "PlayerBHole", 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 "PlayerDTRG", 0.2
DamageFactor "Railg", 0.5
DamageFactor "DemolisherEx", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "CerChainguns", 0.0
DamageFactor "CerEnergyBall", 0.0
DamageFactor "LegMind", 0.0
DamageFactor "SuperWeapon", 0.0
DamageFactor "Term", 0.0
DamageFactor "CDTBFG", 0.0
DamageFactor "DBFG10K", 0
DamageFactor "PlayerDBFG10K", 0
DamageFactor "DBFG", 0
DamageFactor "PlayerDBFG2", 0
DamageFactor "DBFG210K", 0
DamageFactor "PlayerDBFG210K", 0
DamageFactor "PlayerDBFG", 0
DamageFactor "DBFG2Splash", 0
DamageFactor "UltimateLegendary", 0.0
DamageFactor "BeheComet", 0.0
DamageFactor "Extreme", 0.0
Damagefactor "Baby15K", 0.0
DamageFactor "CacoComet", 0.0
DamageFactor "CadaverRocket", 0.0
DamageFactor "NobleCOmet", 0.0
DamageFactor "HFCyber", 0.0
DamageFactor "DBFG10K2", 0.65
DamageFactor "PlayerDBFG10K2", 0.65
DamageFactor "DBFG2", 0.65
DamageFactor "PlayerDBFG2", 0.65
DamageFactor "PyroShot", 0.0
DamageFactor "PlayerPyro", 0.0
DamageFactor "PDTPuff", 0.0
PainChance "PlayerDBFG2", 256
PainChance "PlayerDBFG210K", 256
PainChance "PlayerDBFG10K2", 256
PainChance "DBFG210K", 256
PainChance "DBFG2Splash", 256
PainChance "DBFG2", 256
PainChance "DBFG", 256
PainChance "PlayerDBFG", 256
PainChance "DBFG10K2", 256
BloodColor "Blue" //ITS RED NOT BLUE.. ARE YOU COLOUR BLIND OR SOME SHIT
SeeSound "LegCardi/Hi"
PainSound "RAGE"
DeathSound ""
ActiveSound "LegCardi/active"
+QUICKTORETALIATE
+FLOAT
+NOGRAVITY	
+NOTIMEFREEZE
+NORADIUSDMG
+PIERCEARMOR
+MISSILEEVENMORE
+NOTARGET
+BOSS
+FIRERESIST
+MISSILEMORE
-FLOORCLIP
+DONTMORPH
+DONTRIP
+BOSSDEATH
+NOICEDEATH
+DONTGIB
+CANTSEEK
+LOOKALLAROUND
+NOFEAR
+NOTELEFRAG
MinMissileChance 160
Tag "\c[m6]Enraged\c- \c[z3]Legendary Cardinal\c-"
Obituary "The Enraged Legendary Cardinal blasted %o to bits." 
var int user_LegendaryPortal;
var int user_LegendaryPortal2;
var int user_music;
var int user_script;
var int user_missile;
States 
{ 
  Spawn:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("ELegBadCardFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
    TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
    HULY A 2 Bright A_Look
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
    HULY B 2 Bright A_Look	
    Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,4)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2028)
	TNT1 A 0 ACS_NamedExecuteAlways("EnragedCardSky",0,2)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(87,"Rush")
	HULY A 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY B 2 Bright A_Chase  
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Loop
  Rush:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY B 1 Bright A_Chase  
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY B 1 Bright A_Chase 
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY B 1 Bright A_Chase  
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY B 1 Bright A_Chase  
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCardinalGhost")
	HULY B 1 Bright A_Chase  
	TNT1 A 0 A_Jump(70,"See")
	TNT1 A 0 A_Jump(10,"RandomIllusion")
	Loop
  RandomIllusion:
	HULY E 5 Bright A_faceTarget
	HULY E 4 A_SpawnItem("ReinforcementLegCardiSummoner",56,0,0)
	HULY E 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	goto see
  Missile:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIf(user_LegendaryPortal == 1,2)
	TNT1 A 0 A_JumpIfHealthLower(3499,"LegendaryPortal")
	TNT1 A 0 A_JumpIf(user_LegendaryPortal2 == 1,2)
	TNT1 A 0 A_JumpIfHealthLower(2299,"LegendaryPortal2")
	TNT1 A 0 A_Jump(128,"Seekers","Railgun","BFG10K","LegendaryTech","DTBFG10K","LegRevAttack","Devastator","LegendaryBFG","LegendaryThunder","LegendarySlash")
	TNT1 A 0 A_Jump(87,"UltimateCombo","ComboLegendaryBFG","ComboDevastator")
	TNT1 A 0 A_Jump(50,"FinalAttack")
  Normal:
	TNT1 A 0 A_SetTranslucent(1)
	HULY CCC 2 Bright A_FaceTarget     
	HULY D 3 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)  
	HULY CC 2 Bright A_FaceTarget  
	HULY D 3 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)  
	HULY CC 2 Bright A_FaceTarget	
	HULY D 3 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)	
	HULY CC 2 Bright A_FaceTarget  
	HULY D 3 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0) 
	HULY CC 2 Bright A_FaceTarget	
	HULY D 3 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0) 
	HULY CC 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY C 2 Bright A_FaceTarget	
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)  
	HULY CC 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)  
	HULY CC 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY C 2 Bright A_FaceTarget	
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)  
	HULY CC 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)  
	HULY CC 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedRocket", 56, -26, Random(-6, 6))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CCC 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(128,"Seekers","Railgun","BFG10K","LegendaryTech","DTBFG10K","LegRevAttack","LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto See
  Teleport:
	HULY AAAAAAAAAAAAA 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY AAAAAAAAAAA 1 A_FadeOut(0.1,0)
	HULY AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	HULY A 5 
	HULY A 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY AAAAAAAAAAAAA 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY AAAAAAAAAAA 1 A_FadeIn(0.1)	
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_SetShootable
	goto see 
  Seekers:
	TNT1 A 0 A_SetTranslucent(1)
	HULY CCC 2 Bright A_FaceTarget  
	HULY D 3 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CC 2 Bright A_FaceTarget
	HULY D 3 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CC 2 Bright A_FaceTarget
	HULY D 3 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CC 2 Bright A_FaceTarget	
	HULY D 3 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CC 2 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CC 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY C 2 Bright A_FaceTarget	
	HULY D 2 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CC 2 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY CC 2 Bright A_FaceTarget 
	HULY D 2 Bright A_CustomMissile("EnragedHomingRocket", 56, -26, Random(-8, 8))
	HULY D 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CCC 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)	
	TNT1 A 0 A_Jump(128,"Railgun","BFG10K","LegendaryTech","LegRevAttack","DTBFG10K","LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto See
  Railgun:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	HULY CCCCCCCCCCCCCCC 2 Bright A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY D 2 Bright A_CustomMissile("EnragedCardihilatorRail", 56, -26, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY CCCCC 2 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedCardihilatorRail", 56, -26, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY CCCCC 2 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedCardihilatorRail", 56, -26, 0)
	HULY DDDD 2 Bright A_FaceTarget
	HULY CCCCCCC 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(128,"BFG10K","LegendaryTech","DTBFG10K","LegRevAttack","LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto See	
  BFG10K:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	HULY CCCCCC 4 Bright A_FaceTarget	
	HULY C 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 3 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 3 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 2 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 2 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 2 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 2 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))  
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	HULY C 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	HULY D 1 Bright A_CustomMissile("Enraged10KProjectile", 56, -26, Random(4, -4))
	TNT1 A 0 A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	HULY CCCCC 4 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(128,"LegendaryTech","LegRevAttack","DTBFG10K","LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto See	
  DTBFG10K:
	TNT1 A 0 A_SetTranslucent(1)
   	TNT1 A 0 A_PlaySound("Cardinal/9k")
	HULY CCCCC 3 Bright A_FaceTarget
	HULY DD 3 Bright A_FaceTarget  
	HULY D 3 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 56, -26, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	HULY CCCCC 3 Bright A_FaceTarget
	HULY DD 3 Bright A_FaceTarget  
	HULY D 3 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 56, -26, 0)
	HULY DCC 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0) 
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	HULY CCCC 2 Bright A_FaceTarget
	HULY C 1 Bright A_FaceTarget
	HULY DD 1 Bright A_FaceTarget  
	HULY D 1 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 56, -26, 0)
	HULY DCC 1 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(87,"LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto See
  LegendaryTech:
    TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_SetTranslucent(1)
	HULY CCCCCC 5 Bright A_faceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 3 Bright A_PlaySoundEx("laugh1","lcarlaug")
  LegendaryTechLoop:
	TNT1 A 0 A_FaceTarget
	HULY C 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 35,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))  
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))  
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	HULY C 2 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("BlueDTRFire")
	HULY D 2 Bright A_CustomMissile("RLegendaryProjectile", 64, -26, Random(4, -4))
	TNT1 A 0 A_PlaySoundEx("Legcyber/amhalt","DECHST")
	HULY CCCCC 4 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(128,"LegRevAttack","DTBFG10K","LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto See
  LegRevAttack:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SetInvulnerable
	HULY C 0 A_FaceTarget
	HULY C 3 Bright A_PlaySoundEx("laugh1","lcarlaug")
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 0 A_FaceTarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load1")
	HULY C 0 A_FaceTarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 0 A_FaceTarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("legcardi/load2")
	HULY C 0 A_FaceTarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 0 A_FaceTarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0) 
	HULY C 0 A_FaceTarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("legcardi/load3")
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 0 A_Facetarget
	HULY C 5 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)   
	TNT1 A 0 A_UnSetInvulnerable
	HULY C 8 Bright A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26)
	HULY C 8 A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26)
	HULY C 8 A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26)
	HULY C 8 A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26)
	HULY C 8 A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26)
	HULY C 8 A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26)
	HULY C 7 Bright A_FaceTarget
	TNT1 A 0 A_Jump(128,"DTBFG10K","LegendaryBFG","LegendaryThunder","LegendarySlash")
	Goto see
  LegendaryBFG:
    TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_SetTranslucent(1)
	HULY CCCCCC 5 Bright A_faceTarget
	TNT1 A 0 A_SetInvulnerable
	HULY C 3 Bright A_PlaySoundEx("laugh2","DSTCLAU2")
	HULY C 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")	
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")
  LegendaryBFGLoop:
	TNT1 A 0 A_FaceTarget
	HULY C 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 37,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_UnsetInvulnerable
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY CCCCCCCCCCCC 5 Bright A_faceTarget
	TNT1 A 0 A_Jump(87,"UltimateCombo")
	Goto See
  UltimateCombo:
    TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_SetTranslucent(1)
	HULY CCCCCC 5 Bright A_faceTarget
	TNT1 A 0 A_SetInvulnerable
	HULY C 3 Bright A_PlaySoundEx("laugh2","DSTCLAU2")
	HULY C 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")	
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")
  UltimateComboLoop:
	TNT1 A 0 A_FaceTarget
	HULY C 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 37,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_UnsetInvulnerable
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY C 8 A_FaceTarget
	HULY C 0 A_PlayWeaponSound("lrball3/shot")
	HULY D 3 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 58, -26, Random(4, -4))
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY D 3 Bright A_CustomMissile("ELegRevBall3", 58, -26, Random(4, -4))
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	HULY CCCCC 2 Bright A_FaceTarget
	HULY DD 2 Bright A_FaceTarget  
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY D 1 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY D 1 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY D 1 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY D 1 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY D 1 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY DCC 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	HULY CC 2 Bright A_FaceTarget
	HULY C 3 Bright A_FaceTarget
	HULY CC 2 Bright A_FaceTarget
	HULY DD 2 Bright A_FaceTarget 
	HULY D 2 Bright A_CustomMissile("EnragedBabySentientDTBFG10KBall", 40, -26, 0)
	HULY DCC 2 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 3
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY CCCCC 2 Bright A_FaceTarget
	HULY D 2 Bright A_CustomMissile("EnragedCardihilatorRail",40)
	HULY C 5 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	goto see
  ComboLegendaryBFG:
	TNT1 A 0 A_SetUserVar(user_missile,0)
	TNT1 A 0 A_SetTranslucent(1)
	HULY CCCCCC 5 Bright A_faceTarget
	TNT1 A 0 A_SetInvulnerable
	HULY C 3 Bright A_PlaySoundEx("laugh2","DSTCLAU2")
	HULY C 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")	
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 3 Bright A_PlaySoundEx("Legcyber/BFG","GURUCHRG")
  ComboLegendaryBFGLoop:
	TNT1 A 0 A_FaceTarget
	HULY C 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_missile >= 37,2)
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
	TNT1 A 0 A_UnsetInvulnerable
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruFire")
  	TNT1 A 0 A_PlayWeaponSound("Weapons/GuruAddFire")
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	HULY D 5 A_CustomMissile("LegDTBFG", 58, -26, 0, 0)
	TNT1 A 0 A_Jump(87,"LegendaryThunder","FinalAttack")
	goto see
  LegendarySlash:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_PlaySoundEx("laugh1","lcarlaug")
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING AB 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("Claw/Move")
	FING CD 6 Bright A_CustomMissile("LegendaryRazorWind", 58, 26, 0, 0)
	TNT1 A 0 A_FaceTarget
	FING AB 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("Claw/Move")
	FING CD 6 Bright A_CustomMissile("LegendaryRazorWind", 58, 26, 0, 0)
	TNT1 A 0 A_FaceTarget
	FING AB 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("Claw/Move")
	FING CD 6 Bright A_CustomMissile("LegendaryRazorWind", 58, 26, 0, 0)
	TNT1 A 0 A_Jump(87,"LegendaryThunder")
	goto see
  LegendaryThunder:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_PlaySoundEx("laugh2","DSTCLAU2")
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING A 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	FING AA 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	FING A 6 Bright A_CustomMissile("LegCardinalThunder", 58, -26, 0, 0)
	goto see
 Devastator:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlaySound("devastator/charge")
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 Bright A_FaceTarget
	HULY DDDDDDDD 2 Bright A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY D 0 A_PlaySound ("devastator/fire")
	HULY D 0 A_CustomMissile("EnragedBabySentientDTBFG10KBall", 58, -26, 0)
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY D 0 A_PlaySound ("devastator/fire")
	HULY D 0 A_CustomMissile("EnragedBabySentientDTBFG10KBall", 58, -26, 0)
	HULY C 50 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(95,"ComboDevastator")
	Goto See
  ComboDevastator:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlaySound("devastator/charge")
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 Bright A_FaceTarget
	HULY DDDDDDDD 2 Bright A_FaceTarget
	TNT1 A 0 A_UnsetInvulnerable
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeOut(0.1,0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 0 A_Wander
	HULY C 5
	HULY C 1 A_PlayWeaponSound("boss/teleport")
	TNT1 A 0 A_FaceTarget
	HULY CCCCCCCCCCCCC 0 A_SpawnItemEx("EnragedLegendaryCyberFlameSpawner")
	HULY CCCCCCCCCCC 1 A_FadeIn(0.1)	
	TNT1 A 0 A_SetShootable
	HULY D 0 A_PlaySound ("devastator/fire")
	HULY D 5 A_CustomMissile("EnragedBabySentientDTBFG10KBall", 58, -26, 0, 0)
	goto see
  FinalAttack:
	TNT1 A 0 A_SetTranslucent(1)
	FINN AAAA 5 Bright A_PlaySoundEx("laugh2","DSTCLAU2")
	FINN A 0 A_ChangeFlag (INVULNERABLE, 1)
	FINN ABABAB 5 Bright A_faceTarget
	FINN A 5 BRIGHT A_SpawnItemEx("ENragedLegCardiFinalAttack", 0, 0, 300)
	FINN ABABAB 5 Bright A_faceTarget
	FINN A 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN ABABAB 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN AABABA 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN AABABA 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN ABAABA 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN AABABA 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN ABABAB 5 Bright A_faceTarget
	FINN A 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN BBABAB 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN ABABAB 5 Bright A_faceTarget
	FINN A 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN BABABA 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN ABABAB 5 Bright A_faceTarget
	FINN A 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN BABABA 5 Bright A_faceTarget
	FINN B 5 A_Playsound ("Arcradimus/BFGElectric")
	FINN ABABAB 5 Bright A_faceTarget
	FINN A 25 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	HULY C 2 Bright A_PlaySound ("pcannon/explode")
	HULY C 1 Bright A_ChangeFlag (INVULNERABLE, 0)
	HULY CDDD 2 Bright A_FaceTarget
	HULY C 5 Bright A_CustomMissile ("EnragedLegendaryCardinalFinalBall", 100, 0)
	HULY CCCCCCCCCCCCCCCCCCCCCCCC 5 Bright A_faceTarget
	Goto see 
  LegendaryPortal:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SetUserVar("user_LegendaryPortal",1)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	HULY C 152 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner", 45, 0, 120)
	HULY DC 15 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(96,-96), Random(96,-96), 0, 0, 0, 0, Random(0,359))
	HULY D 60 Bright A_SpawnItemEx("LegendaryGateSpawner", 120, 0, 120)
	TNT1 A 0 A_SpawnItemEx("FakeLegCardinalThunder", Random(320,-320), Random(320,-320), 0, 0, 0, 0, Random(0,359))
	HULY C 100 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner", 50, 0, 120)
	HULY D 100 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner2", 50, 0, 120)
	HULY DCDC 20 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(350,-192), Random(192,-192), 0, 0, 0, 0, Random(0,359))
	HULY D 100 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner3", 50, 0, 120)
	HULY CDCD 15 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(192,192), Random(192,-192), 0, 0, 0, 0, Random(0,359))
	HULY C 100 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner2", 50, 0, 120)
	HULY DCDC 25 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(190,-144), Random(144,-144), 0, 0, 0, 0, Random(0,359))
	HULY D 140 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner", 50, 0, 120)
	TNT1 A 0 A_UnsetInvulnerable
	Goto See
  LegendaryPortal2:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SetUserVar("user_LegendaryPortal2",1)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	HULY C 152 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner", 45, 0, 120)
	HULY DC 15 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(96,-96), Random(96,-96),0, 0, 0, 0, Random(0,359))
	HULY D 45 Bright A_SpawnItemEx("LegendaryGateSpawner2", 120, 0, 120)
	TNT1 A 0 A_SpawnItemEx("FakeLegCardinalThunder", Random(128,-128), Random(128,-128), 0, 0, 0, 0, Random(0,359))
	HULY C 52 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner", 50, 0, 120)
	HULY D 47 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner2", 50, 0, 120)
	HULY DCDC 20 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(192,-192), Random(192,-192), 0, 0, 0, 0, Random(0,359))
	HULY D 30 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner3", 50, 0, 120)
	HULY CDCD 15 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(192,192), Random(192,-192), 0, 0, 0, 0, Random(0,359))
	HULY C 47 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner2", 50, 0, 120)
	HULY DCDC 25 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(144,-144), Random(144,-144), 0, 0, 0, 0, Random(0,359))
	HULY D 52 Bright A_SpawnItemEx("LegendaryPortalParticleSpawner", 50, 0, 120)
	TNT1 A 0 A_UNSetInvulnerable
	goto see
  Illusion:
	HULY E 5 Bright A_faceTarget
	TNT1 A 0 A_PlaySound("Rage", CHAN_VOICE, 1.0, False, ATTN_NONE)
	HULY EEEE 4 Bright A_SpawnItem("ReinforcementLegCardi",56,0,0)
	goto see
  Pain:
	TNT1 A 0 A_Jump(30,"PainRage","Illusion")
	TNT1 A 0 A_Jump(128,"PainMissile")
	HULY E 3 Bright A_Pain
	HULY E 3 Bright
	HULY E 3 Bright
	Goto See
  Pain.PlayerDBFG10K2:
  Pain.DBFG10K2:
  Pain.DBFG:
  Pain.PlayerDBFG:
  Pain.DBFG2:
  Pain.PlayerDBFG210K:
  Pain.DBFG210K:
  Pain.DBFG2Splash:
  Pain.PlayerDBFG2:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	Goto Teleport
  PainMissile:
	HULY E 3 Bright A_Pain
	HULY E 3 Bright
	HULY E 3 Bright	
	Goto Missile
  PainRage:
	TNT1 A 0 A_JumpIfCloser(1000,1)
	Goto Pain+1
	HULY E 3 Bright A_Pain
	TNT1 A 0 A_SetUserVar(user_missile,0)
	HULY EEEE 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 Radius_Quake(10,80,0,24,0)
	TNT1 A 0 A_GiveInventory("Health",750)
	TNT1 A 0 A_PlaySound("Cardinal/Laugh")
  PainRageLoop:
	TNT1 A 0 A_SpawnItem("LegCardinalRageFlameSpawner",0,0,0,0)
	HULY E 2 Bright A_SpawnItemEx("LegRainCometSpawner",Random(1250,-1250),Random(1250,-1250),0,0,0,0,SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_JumpIf(user_missile >= 39,"PainRageEnd")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	Loop
  PainRageEnd:
	TNT1 A 0 A_UnSetInvulnerable
	HULY EE 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	Goto See
  Death: 
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	TNT1 A 0 A_StopSound(6)
	HULY E 10 Bright
	HULY F 10 Bright A_Scream
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	HULY EFGH 6 Bright
	HULY HHI 10 Bright
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	HULY J 10 Bright A_NoBlocking
	HULY KK 10 Bright
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	HULY L 30
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	HULY L 0 A_BossDeath
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	HULY M -1 A_KillMaster
	Stop
	} 
}

ACTOR EnragedLegendaryCardinalGhost
{
Scale 1.1
RENDERSTYLE Translucent
Alpha 0.75
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
+NOTIMEFREEZE
States
{
Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
    HULY A 2 A_FadeOut(0.18)
    Loop
  Toaster:
    TNT1 A 0
	Stop		
    }
}

actor ENragedLegCardiFinalAttack
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 0.75
  alpha 0.25
  PROJECTILE
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 8 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack2")
    stop
  }
}

actor ENragedLegCardiFinalAttack2
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 1.25
  alpha 0.35
  PROJECTILE
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 9 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack3",0,0,0)
    stop
  }
}

actor ENragedLegCardiFinalAttack3
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 1.75
  alpha 0.45
  PROJECTILE
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 9 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack4") 
    stop
  }
}

actor ENragedLegCardiFinalAttack4
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 2.25
  alpha 0.55
  PROJECTILE
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 9 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack5") 
    stop
  }
}

actor ENragedLegCardiFinalAttack5
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 2.75
  alpha 0.65
  PROJECTILE
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 10 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack6") 
    stop
  }
}

actor ENragedLegCardiFinalAttack6
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 3.25
  alpha 0.75
  deathsound "Gateway/Hell"
  PROJECTILE
  DamageType "Legendary"
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 11 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack7")
    stop
  }
}

actor ENragedLegCardiFinalAttack7
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 4.00
  alpha 0.85
  deathsound "Gateway/Hell"
  PROJECTILE
  DamageType "Legendary"
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 11 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack8") 
    stop
  }
}

actor ENragedLegCardiFinalAttack8
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 4.75
  alpha 0.95
  deathsound "Gateway/Hell"
  PROJECTILE
  DamageType "Legendary"
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 12 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack9")
    stop
  }
}

actor ENragedLegCardiFinalAttack9
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 5.50
  alpha 0.95
  deathsound "Gateway/Hell"
  PROJECTILE
  DamageType "Legendary"
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF BDBD 12 bright A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    goto Death
  Death:
    GNIF A 4 A_SpawnItemEx("ENragedLegCardiFinalAttack10")
    stop
  }
}

actor ENragedLegCardiFinalAttack10
{
  obituary "%o was annihilated."
  radius 0
  height 0
  speed 0
  damage 0
  renderstyle Add
  scale 5.50
  Alpha 1.0
  deathsound "Gateway/Hell"
  PROJECTILE
  DamageType "Legendary"
  +NOTIMEFREEZE
  states
  {
  Spawn:
    GNIF B 10 BRIGHT A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    GNIF BDBDBDBDBDBDBDBDBD 8 bright
    goto Death
  Death:
    GNIF B 4 BRIGHT
    stop
  }
}

ACTOR EnragedLegendaryCardinalFinalBall
{
  radius 10
  height 10
  Speed 15
  DamageType "UltimateLegendary"
  Damage 10000000
  Projectile
  RenderStyle Add
  +FORCERADIUSDMG
  +SKYEXPLODE
  +FOILINVUL
  +EXTREMEDEATH
  +RIPPER
  +BLOODLESSIMPACT
  //+DONTBLAST
  -RANDOMIZE
  +NOTIMEFREEZE
  Scale 5.50
  Alpha 1.0
  MissileType "ArcLesserProjectileTrail"
  SeeSound "Arcradimus/BFGFire"
  States
  {
  Spawn:
    // Gold
	TNT1 A 0
	TNT1 A 0 A_Explode(600,192,0,1)
	TNT1 A 0 A_SpawnItemEx("LegCardiBombTrail",5,0,0,0,0,0,0,0,0)
    TNT1 A 0 A_Jump(224, 2)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    TNT1 A 0 A_Jump(16, 2)
    TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt4",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,128)
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleGold",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF D 1 Bright
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleGold",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF D 1 Bright
    // Blue
	//TNT1 A 0 A_PlaySound("Weapons/GuruFly",5,1.0,1)
	TNT1 A 0 A_Explode(600,192,0,1)
	TNT1 A 0 A_SpawnItemEx("LegCardiBombTrail",5,0,0,0,0,0,0,0,0)
    TNT1 A 0 A_Jump(224, 2)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    TNT1 A 0 A_Jump(16, 2)
    TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt4",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,128)
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF B 1 Bright
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF B 1 Bright
    // Gold
	//TNT1 A 0 A_PlaySound("Weapons/GuruFly",5,1.0,1)
	TNT1 A 0 A_Explode(600,192,0,1)
	TNT1 A 0 A_SpawnItemEx("LegCardiBombTrail",5,0,0,0,0,0,0,0,0)
    TNT1 A 0 A_Jump(224, 2)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    TNT1 A 0 A_Jump(16, 2)
    TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt4",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,128)
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleGold",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF D 1 Bright
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleGold",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF D 1 Bright
     // Blue
	//TNT1 A 0 A_PlaySound("Weapons/GuruFly",5,1.0,1)
	TNT1 A 0 A_Explode(600,192,0,1)
	TNT1 A 0 A_SpawnItemEx("LegCardiBombTrail",5,0,0,0,0,0,0,0,0)
    TNT1 A 0 A_Jump(224, 2)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    TNT1 A 0 A_Jump(16, 2)
    TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt4",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,128)
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF B 1 Bright
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF B 1 Bright
    // Gold
	//TNT1 A 0 A_PlaySound("Weapons/GuruFly",5,1.0,1)
	TNT1 A 0 A_Explode(600,192,0,1)
	TNT1 A 0 A_SpawnItemEx("LegCardiBombTrail",5,0,0,0,0,0,0,0,0)
    TNT1 A 0 A_Jump(224, 2)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraBombFluxShockwave",0,0,0,10,0,0,0,0,0)
    TNT1 A 0 A_Jump(16, 2)
    TNT1 A 0 A_SpawnItemEx("ArcBallLightningBolt4",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,128)
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleGold",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF D 1 Bright
    TNT1 A 0 A_SpawnItemEx("LCABFGTrailParticleGold",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	GNIF D 1 Bright
	Loop
  Death:
	TNT1 A 0
	TNT1 A 0 A_StopSound(5)
	TNT1 A 0 A_SpawnItem("LegendaryNuke")
	TNT1 A 0 A_Explode(10000000,1000,0,1)
	TNT1 A 0 A_BFGSpray("ArcSpray",15,20)
	TNT1 A 0 A_SpawnItemEx("ArcStruckGlowX",0,0,10,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItemEx("ArcStruckGlowY",0,0,10,0,0,0,0,128,0)
	Stop
  }
}

ACTOR EnragedLegendaryUtraBombShockwave {Scale 7.0}


ACTOR EnragedLegendaryUltraBombFluxShockwave
{
  Scale 6.75
  Alpha 1.0
  Projectile
}

ACTOR EnragedLegendaryBombShockwave
{
  +NOTIMEFREEZE
  +CLIENTSIDEONLY
  States
  {
    Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
	JAJA A 1 Bright A_FadeOut(0.04)
	GECI B 1 Bright A_FadeOut(0.04)
	JAJA C 1 Bright A_FadeOut(0.04)
	GECI D 1 Bright A_FadeOut(0.04)
	JAJA E 1 Bright A_FadeOut(0.04)
	GECI F 1 Bright A_FadeOut(0.04)
	JAJA G 1 Bright A_FadeOut(0.04)
	GECI H 1 Bright A_FadeOut(0.04)
	JAJA I 1 Bright A_FadeOut(0.04)
	GECI J 1 Bright A_FadeOut(0.04)
	JAJA K 1 Bright A_FadeOut(0.04)
	GECI L 1 Bright A_FadeOut(0.04)
	JAJA M 1 Bright A_FadeOut(0.04)
	GECI N 1 Bright A_FadeOut(0.04)
	JAJA O 1 Bright A_FadeOut(0.04)
	GECI P 1 Bright A_FadeOut(0.04)
	JAJA Q 1 Bright A_FadeOut(0.04)
	GECI R 1 Bright A_FadeOut(0.04)
	Stop
   Toaster:
	TNT1 A 0
	Stop	
  }
}
