Actor LegendaryBelphegor
{
//Creator: Dr. Sticky
//Origin: Nexus Infinity
//Sprite: LGHP
//Title: "Legendary Belphegor" 
Health 2500
Radius 24
Height 64
Mass 2000
Speed 10
PainChance 40
Monster
MaxStepHeight 32
MaxDropOffHeight 32
RadiusDamageFactor 0.66
Species "Nobles"
DamageFactor "NobleComet", 0.0
DamageFactor "PDTBFG", 0.25
DamageFactor "PDTBFGTracer", 0.25
DamageFactor "PlayerDevBall", 0.125
DamageFactor "PlayerDevBall2", 0.125
DamageFactor "PlayerDTBFGRailgunSlug", 0.125
DamageFactor "PlayerDTRG", 0.5
DamageFactor "PlayerDevTracer", 0.125
DamageFactor "DBFG10K2", 0.65
DamageFactor "PlayerDBFG10K2", 0.65
DamageFactor "DBFG2", 0.65
DamageFactor "PlayerDBFG2", 0.65
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "LegendaryGuruPlayer", 0.3
DamageFactor 0.65
DamageFactor "NobleComet", 0.0
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "Legendary1", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegMind", 0.0
DropItem "LegendarySphere" 192 1
DropItem "LegendaryRune" 145 1
DropItem "LegGreaterDemonicEnergy" 256
DropItem "LegDemonicEnergy" 256
DropItem "BossLifeEssence" 256
DropItem "BossArmorBonusMax" 256
DropItem "Legendary Plasmatic Cannon" 128 1
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 128
BloodColor "Blue"
SeeSound "superbaron/scream"
PainSound "superbaron/pain"
DeathSound "superbaron/death"
ActiveSound "superbaron/act"
MeleeSound "baron/melee"
Obituary "%o was slain by a Legendary Belphegor."
HitObituary "%o was slain by a Legendary Belphegor."
MeleeDamage 25
Scale 1.25
Tag "\c[z3]Legendary Belphegor\c-"
+DONTHARMSPECIES  
+MISSILEMORE
+MISSILEEVENMORE
+FASTMELEE
+QUICKTORETALIATE
+NORADIUSDMG
+BOSS
+BOSSDEATH
+FLOORCLIP  
+NOICEDEATH
+DONTGIB
+DONTHURTSPECIES
+NOTARGET
+NOTIMEFREEZE
+NOFEAR
var int user_amount;
var int user_music;
States
{
  Spawn:
    TNT1 AAA 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGHP A 10 Bright A_Look
	TNT1 AAA 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    Loop
  See:
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2103)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(100,"Rush")
	TNT1 A 0 A_SpawnItem("HoofStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,128)
	LGHP AA 3 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,128)
	LGHP BB 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("HoofStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,128)
	LGHP CC 3 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner",0,0,0,0,0,0,0,128)
	LGHP DD 3 Bright A_Chase
	Loop
  Rush:
	LGHP A 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP A 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase  
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP B 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP B 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 AAA 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP C 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP C 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase  
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP D 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	LGHP D 2 Bright A_SpawnItemEx("LBelphegorGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LGHP AAAA 0 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 AAA 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 A 0 A_Jump(75,"See")
	Loop
  Melee:
    LGHP EF 6 Bright A_FaceTarget
    LGHP G 6 Bright A_ComboAttack
    Goto See
  Missile:
    TNT1 A 0 A_Jump(188,"Spread","Floor","FastBall","Comet","BurstComet","BestAttack")
  Normal:
	LGHP EF 6 Bright A_FaceTarget 
	LGHP G 1 Bright A_CustomMissile("LegNobleBall",40,0,0)
	TNT1 A 0 A_CustomMissile("LegNobleBall",40,0,-4)
	LGHP G 3 Bright A_CustomMissile("LegNobleBall",40,0,4)	
	TNT1 A 0 A_Jump(127,"Spread")
	Goto See 
  Spread:
	LGHP E 6 Bright A_FaceTarget 
	LGHP F 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("legendarycannon/fire")
	LGHP G 1 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,0)	
	TNT1 A 0 A_CustomMissile("LegendaryCYNCannonProj",40,0,-3)
	LGHP G 1 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,3)	
	TNT1 A 0 A_CustomMissile("LegendaryCYNCannonProj",40,0,-6)
	LGHP G 1 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,6)
	TNT1 A 0 A_CustomMissile("LegendaryCYNCannonProj",40,0,-9)
	LGHP G 3 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,9)	
	LGHP E 6 Bright A_FaceTarget 
	LGHP F 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("legendarycannon/fire")
	LGHP G 1 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,0)	
	TNT1 A 0 A_CustomMissile("LegendaryCYNCannonProj",40,0,-3)
	LGHP G 1 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,3)	
	TNT1 A 0 A_CustomMissile("LegendaryCYNCannonProj",40,0,-6)
	LGHP G 1 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,6)
	TNT1 A 0 A_CustomMissile("LegendaryCYNCannonProj",40,0,-9)
	LGHP G 3 Bright A_CustomMissile("LegendaryCYNCannonProj",40,0,9)
	TNT1 A 0 A_Jump(127,"Floor")
	Goto See
  Floor:
  	LGHP GF 8 Bright A_FaceTarget 
	LGHP E 0 A_CustomMissile("LegNobleBall3",20,0,random(-2,2))	
	LGHP E 0 A_CustomMissile("LegNobleBall3",-20,0,random(-2,2))
	LGHP E 0 A_CustomMissile("LegNobleBall3",10,0,random(-2,2))	
	LGHP E 3 Bright A_CustomMissile("LegNobleBall3",-10,0,random(-2,2))	
	TNT1 A 0 A_Jump(127,"FastBall")
	Goto See
  FastBall:
    LGHP E 6 Bright A_FaceTarget
    LGHP F 4 Bright A_FaceTarget
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-40)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-35)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-30)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-25)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-20)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-15)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-10)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-5)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,0)
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,5)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,10)	
    LGHP E 6 Bright A_FaceTarget
    LGHP F 4 Bright A_FaceTarget
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,40)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,35)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,30)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,25)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,20)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,15)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,10)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,5)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,0)
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-5)	
	LGHP G 1 Bright	A_CustomMissile("LegNobleBall2",40,0,-10)
  	TNT1 A 0 A_Jump(127,"Comet")
	Goto See
  Comet:
	LGHP GF 6 Bright A_FaceTarget 
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegNobleComet",70,27,random(-1,1))
	LGHP E 5 Bright A_CustomMissile("LegNobleComet",70,-27,random(-1,1))	
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegNobleComet",70,27,random(-1,1))
	LGHP E 5 Bright A_CustomMissile("LegNobleComet",70,-27,random(-1,1))
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegNobleComet",70,27,random(-1,1))
	LGHP E 5 Bright A_CustomMissile("LegNobleComet",70,-27,random(-1,1))
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("LegNobleComet",70,27,random(-1,1))
	LGHP E 5 Bright A_CustomMissile("LegNobleComet",70,-27,random(-1,1))
	TNT1 A 0 A_Jump(127,"BurstComet")
	Goto See 
  BurstComet:
	LGHP EEFF 6 Bright A_FaceTarget 
	LGHP G 1 Bright A_CustomMissile("BigBlueComet",40,0,0)
	TNT1 A 0 A_CustomMissile("BigBlueComet",40,0,-4)
	LGHP G 1 Bright A_CustomMissile("BigBlueComet",40,0,4)	
	TNT1 A 0 A_CustomMissile("BigBlueComet",40,0,-8)
	LGHP G 5 Bright A_CustomMissile("BigBlueComet",40,0,8)	
	Goto See
  BestAttack:
    LGHP F 1 Bright A_PlaySound("lnoble/see")
    LGHP G 2 Bright A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	LGHP FFFFFFFFFFFFFFFFF 2 Bright A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGHP F 2 Bright A_FaceTarget
	LGHP GGGGGGGGGGGGGGGGG 2 Bright A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGHP G 2 Bright A_FaceTarget
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    LGHP G 8 Bright A_CustomMissile("LegNobleBall4",32,0,0)
	LGHP G 8 Bright A_CustomMissile("LegNobleBall4",32,0,-4)
    Goto See
  Pain:
    TNT1 A 0 A_Jump(88,"PainRage")
	TNT1 A 0 A_Jump(158,"PainMissile")
    LGHP H 5 Bright A_Pain
    Goto See
  PainMissile:
    LGHP H 5 Bright A_Pain
    Goto Missile
   PainRage:
    TNT1 A 0 A_JumpIf(user_amount > 3,"Missile")
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_SetUserVar("user_amount",user_amount+1)
	LGHP E 4 Bright A_PlaySound("superbaron/scream")
	LGHP FF 3 Bright A_FaceTarget
	TNT1 A 0 HealThing(350)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	TNT1 AAAAAAAAAA 0 A_CustomMissile("LegNobleBall3",0,random(-15,15),random(-20,20))
	TNT1 AAAAAAAAAA 0 A_CustomMissile("BlueRainCometNull",0,random(-15,15),random(-20,20))
	LGHP G 2 Bright A_SpawnItem("DarkAnniFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	LGHP FFEEE 4 Bright  A_FaceTarget
	Goto See	
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(40,"TrueLeg")
  Death2:
    LGHP H 10 Bright A_ScreamAndUnblock
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP H 0 A_FadeOut(0.1)
	LGHP H 0 A_SpawnItemEx("LHellionSmokeSpawner", Random(10,-10), Random(10,-10), Random(30,60), 0, 0, 0, 0, 128)
	LGHP HH 0 A_CustomMissile("SmokeFX", Random(40,80), 0, random(0,360), 2, random(0,360))
	LGHP HHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), 0, random(0,360), 2, random(0,360))
	LGHP JJJKKK 2 Bright A_CustomMissile ("PainfulDeathKaboom", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX", Random(30,60), 0, random(0,360), 2, random(0,360))	
    LGHP L 4 Bright A_BossDeath
    LGHP MN 3 Bright
    LGHP O -1
	Stop
   TrueLeg:
	LGHP G 3 A_Pain
	LGHP G 0 A_PlaySoundEx("brain/spit",7,0,2)
	LGHP GGGGGGGGGGGGGGGGG 2 A_SpawnItemEx("LegVileFireSpawner",1)
	LGHP GGGGGGGGGGGGGGGGG 2 A_SpawnItemEx("LegVileFireSpawner",1)
	LGHP GGGGGGGGGGGGGGGGG 2 A_SpawnItemEx("LegVileFireSpawner",1)
	TNT1 A 0 A_SpawnItemEx("BlueLightning")
	LGHP GGGGGGGGGGGG 2 A_SpawnItemEx("BHellionSmokeSpawner")
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryBelphegor",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
    TNT1 A 1
    Stop
  }
}

ACTOR LBelphegorGhost
{
Scale 1.2
RENDERSTYLE Translucent
Alpha 0.75
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
+NOTIMEFREEZE
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    LGHP A 2 A_FadeOut(0.09)
    Wait		
    }
}