//Boss Rank (Range 900 - 2000)
//Rank 0, except some doomguys and hackroid

//Lord Asmodeo Hellshield 901

ACTOR INFActuallyGoodLegendaryDoomguyPlusTrueForm : ActuallyGoodLegendaryDoomguyPlusTrueForm Replaces ActuallyGoodLegendaryDoomguy
{
Tag "\c[z3]Legendary\c- \c[l5]Doomguy\c-"
States
{
  10k:
	TNT1 A 0 A_PlaySound("Leg10k/Draw",7,1.0,0,0.5)
    NLD5 E 15 A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PCharge",1)
	NLD5 EEEEE 6 Fast A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SetUserVar(user_missile,random(0,10))
  10kLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 20,"10kPause")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	NLD5 E 2 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlaySound("Leg10K/PFire",1)
	NLD5 F 2 A_CustomMissile("Legendary10KProjectile",32,0,frandom(-6,6),CMF_OFFSETPITCH,frandom(-2,2))
	Loop
  10kPause:
	NLD5 A 0 A_PlaySound("Leg10K/ACool",6)
	Goto Pause
  10kAlt:
	TNT1 A 0 A_PlaySound("Leg10k/Draw",7,1.0,0,0.5)
    NLD5 E 15 A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/ACharge",1)
	NLD5 EEEEE 8 Fast A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SetUserVar(user_missile,random(0,2))
  10kAltLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 6,"10kPause")
	TNT1 A 0 A_SetUserVar(user_missile,user_missile+1)
	NLD5 E 4 Fast A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlaySound("Leg10K/AFire",1)
	NLD4 F 6 Fast A_CustomMissile("LegCyberNobleMiniDTBFG",32,0,frandom(-6,6),CMF_OFFSETPITCH,frandom(-2,2))
	Loop
  Death:
	TNT1 A 0 A_ChangeFlag("Bright",0)
	TNT1 A 0 A_SpawnItemEx("RingOfRegenerationHalf",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10k",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryBossLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryBossArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_Jump(36,"TrueLeg")
	TNT1 A 0 A_StopSound(6)
    NLD0 H 5
    NLD0 I 5 A_Scream
    NLD0 J 5 A_Fall
    NLD0 J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    NLD0 K 5
    NLD0 L 5
	NLD0 M 5
	TNT1 A 0 A_SpawnItemEx("LegDoomguySoulEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	NLD0 N 5 ACS_NamedExecuteAlways("DropDoll",0,75)
	NLD0 N 20
	TNT1 A 0 A_Jump(64,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SignetAvaliableTokensCheck") == 2,2)
	TNT1 A 0 A_JumpIfInTargetInventory("SignetActiveToken",1,"SignetResurrect")
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	NLD0 N 1 A_SpawnItemEx("INFLegendaryHeroSoul",0,0,16,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	NLD0 N -1
    Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    NLD0 N 100 A_ChangeFlag(FRIENDLY,1)
	NLD0 N 200 A_SpawnItem("SignetRessurectionFire")
	NLD0 N 40 Bright A_SpawnItem("SignetRessurectionFlame")
    NLD0 MLKJIH 15 Bright
	TNT1 A 3 A_SpawnItemEx("FriendlyLegendaryDoomguy",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	TNT1 A 1
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	NLD0 H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    NLD0 I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    NLD0 J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    NLD0 K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	NLD0 L 5
	NLD0 M 5
    NLD0 N 140
	NLD0 N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	NLD0 NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	NLD0 N 5 A_SpawnItem("BlueLightning")
	TLD0 NMLKJHG 15 Bright
	TNT1 A 0 A_SpawnItemEx("INFTrueLegendaryDoomguy",0,0,16,0,0,0,0,32)
	TNT1 A 1 A_NoBlocking
	Stop
	}
}

//Classic Legendary Doomguy 903

ACTOR INFTrueLegendaryDoomguy : TrueLegendaryDoomguy Replaces TrueLegendaryDoomguy
{
  DropItem "TrueLegendarySyringe" 120 1
  DropItem "LegAmmoSphere" 256
  DropItem "LegendaryPowerShard" 200
  DropItem "LegendaryRune" 228
  DropItem "LegendaryArmor" 200
  DropItem "ModdedBackPack" 256
  DropItem "LDemonAmmo" 256 200
  DropItem "TrueLegendaryBFGUpgrade" 100 1
  DropItem "TrueLegendaryRune" 36 1
  DropItem "TrueLegTimeFreezeSphere" 100 1
  DropItem "TrueLegAmmoSphere" 128 1
  DropItem "TrueLegendaryArmor" 120 1
  DropItem "LegendaryFusionCell" 55 1
  DropItem "Randomcontracttier4" 120 1
  DropItem "Randomcontracttier3" 120 1
  DropItem "Randomcontracttier2" 120 1
  DropItem "MysteriousBeacon" 80 1
Tag "\c[l5]True\c- \c[z3]Legendary\c- \c[l5]Doomguy\c-"
States
{
  Death:
	TNT1 A 0 A_ChangeFlag("Bright",0)
	TNT1 A 0 A_SpawnItemEx("RingOfRegenerationHalf",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("LegendarySaber",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Behemoth Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary Light Machine Gun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10k",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("LegendaryQuadShotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("True Legendary Railgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("True Legendary Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("LegendaryLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryBossLifeEssence",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TNT1 A 0 A_SpawnItemEx("LegendaryBossArmorBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,200)
	TLD0 H 5 A_Scream
	TLD0 I 5 A_NoBlocking
	TLD0 JK 5
	TLD0 L 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TLD0 M 5
	TNT1 A 0 A_SpawnItemEx("LegDoomguySoulEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	TLD0 N 5 ACS_NamedExecuteAlways("DropDoll",0,75)
	TLD0 N 20
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	TLD0 N 1 A_SpawnItemEx("INFTrueLegendaryHeroSoul",0,0,16,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TLD0 N -1
	Stop
	}
}

//TLCAEX Enraged Legendary Doomguy 905

//Enraged Legendary Doomguy 906

ACTOR EnragedLegendaryDoomguy2 : EnragedLegendaryDoomguy
{
Tag "\c[O5]Alpha \c[m6]Enraged\c- \c[z3]Legendary\c- \c[w8]Doomguy\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(80,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	NED0 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("EnragedLegDoomguySmokeSpawner")
	Loop
	}
}

ACTOR INFNemesisDoomSlayer : NemesisDoomSlayer Replaces NemesisDoomSlayer
{
Tag "\c[v9]Nemesis \c[w2]DoomSlayer\c-"
States
{
  VexedSpawn:
	NND0 G 3 Bright A_Pain
	NND0 G 0 A_PlaySoundEx("brain/spit",7,0,2)
	NND0 GGGGGGGGGGGGGGGGG 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NND0 GGGGGGGGGGGGGGGGG 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NND0 GGGGGGGGGGGGGGGGG 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NND0 GGGGGGGGGGGG 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisDoomSlayer",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 1 A_NoBlocking
    Goto Death2
	}
}

ACTOR INFNemesisDoomSlayer2 : INFNemesisDoomSlayer
{
Tag "\c[v9]Nemesis \c[w2]DoomSlayer\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	NND0 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Chaingunguy",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisDoomSlayer : VexedNemesisDoomSlayer Replaces VexedNemesisDoomSlayer
{
  DropItem "VexedNemesisArmor", 200, 1
  DropItem "VexedNemesisSphere", 100, 1
  DropItem "NemesisAmmoSphere", 256, 1
  DropItem "VexedPowerShard", 135, 1
  DropItem "LegendaryRune" 256
  DropItem "ModdedBackPack" 256
  DropItem "LDemonAmmo" 256 100
  Dropitem "HellsExpensiveContract", 200, 1
  DropItem "NemesisRuneSpawnerTier4", 128, 1
  DropItem "DivineContract", 256, 1
  DropItem "VexedNemesisRune", 100, 1
Tag "\c[w2]Vexed\c- \c[v9]Nemesis \c[w2]DoomSlayer\c-"
States
{
  Death:
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_ChangeFlag(BRIGHT,0)
	TNT1 A 0 A_SpawnItemEx("RingOfRegenerationHalf",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Nemesis Sawed-Off Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Nemesis Assault Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisDarkMachineGun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("Nemesis Rifle",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Nemesis Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Nemesis BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Zen",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("NewNemesis",0,0,12,random(0,8),random(0,8),2,random(0,360),0,224)
	TNT1 A 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisArmorBonus64",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisArmorBonus64",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisArmorBonus64",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisArmorBonus64",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	VND0 H 5 A_Scream
	VND0 I 5 A_NoBlocking
	VND0 JK 5
	VND0 L 5 A_SpawnItem("BodyCrash",0,0,0,0)
	VND0 M 5
	TNT1 A 0 A_SpawnItemEx("NemesisDoomSlayerSoulEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	VND0 N 5 ACS_NamedExecuteAlways("DropDoll",0,75)
	VND0 N 20
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VND0 N 1 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 0 A_Jump(100,"MoreStuff")
	VND0 N 100
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,192)
	VND0 N -1
	Stop
	}
}

ACTOR INFVexedNemesisDoomSlayer2 : INFVexedNemesisDoomSlayer
{
Tag "\c[w2]Vexed\c- \c[v9]Nemesis \c[w2]DoomSlayer\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(168,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	VND0 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Chaingunguy",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFHackroidZombie : HackroidZombie Replaces HackroidZombie
{
//Health 4000
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "EnragedLegendaryArmor" 140
DropItem "EnragedLegendaryAmmoSphere" 256 1
DropItem "HandGrenadeAmmo" 235 2
DropItem "MineAmmo" 235 2
DropItem "Backpack" 256 1
DropItem "Armorplate" 205 1
DropItem "Portablemedkit" 210 1
DropItem "AgilityRune" 200 1
DropItem "LegendaryRune2" 200 1
DropItem "LegendaryPowerShard" 200 1
DropItem "EnragedLegendaryPowerShard" 200 1
DropItem "HackroidRifle" 140 1
DropItem "HCKAmmoBox" 120 90
DropItem "HCKAmmo" 256 20

DropItem "1337ASG" 90       //he uses the asg
DropItem "HCKShell" 200 4
DropItem "HCKShellBox" 200
DropItem "HackroidArmor" 115 1 //20 chance to spawn in the Nexus, If it was already impossible to find a Hackroid in the Nexus, You still had a very small chance of getting a hackroid armor
DropItem "HackroidSphere" 90 1 //20 chance to spawn too
DamageFactor 0.15
DamageFactor "Legendary", 0.1
DamageFactor "LegendaryPlayer", 0.1
DamageFactor "LegendaryGuru", 0.05
DamageFactor "LegendaryGuruPlayer", 0.05
DamageFactor "PlayerNemesisPlasma", 0.13
DamageFactor "TrueLegendaryDamage", 0.2
DamageFactor "TrueLegendaryPlayer", 0.2
DamageFactor "PlayerDTRG", 0.075
Tag "\c[p7]Hackroid Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_PlaySoundEx("hack/glitch","Voice",0,2)
  Idle:
    TNT1 A 0 A_SpawnItem("RandomHellionSmoke")
    HPOS A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("RandomHellionSmoke")
	HPOS A 10 Bright A_Look
    Loop
	}
}

ACTOR INFHackroidZombie2 : INFHackroidZombie
{
Tag "\c[p7]Hackroid Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(160,"Remove")
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_PlaySoundEx("hack/glitch","Voice",0,2)
  Idle:
    TNT1 A 0 A_SpawnItem("RandomHellionSmoke")
    HPOS A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("RandomHellionSmoke")
	HPOS A 10 Bright A_Look
    Loop
	}
}

ACTOR INFHackroidAssaultCaptain : HackroidAssaultCaptain Replaces HackroidAssaultCaptain
{
//Health 4200
DropItem "LegendaryBossLifeEssence" 256
	DropItem "LegendaryBossArmorBonusMax" 256
	DropItem "LegendaryBossLifeEssence" 256
	DropItem "LegendaryBossArmorBonusMax" 256
	DropItem "HackroidRifle" 110 1 //he uses in a new attack, And if Hackroidzombie uses A Asg, why can't HackAssault use the rifle either
	DropItem "1337ASG" 140
    DropItem "HCKShell" 200 4
    DropItem "HCKShellBox" 200
	DropItem "EnragedLegendaryAmmoSphere" 256 1
	DropItem "EnragedLegendaryArmor" 140
	DropItem "HandGrenadeAmmo" 235 2
	DropItem "MineAmmo" 240 2
	DropItem "Backpack" 256 1
	DropItem "AgilityRune" 200 1
	DropItem "LegendaryRune2" 200 1
    DropItem "LegendaryPowerShard" 200 1
    DropItem "EnragedLegendaryPowerShard" 200 1
	DropItem "HackroidArmor" 115 1 //20 chance to spawn in the Nexus, If it was already impossible to find a Hackroid in the Nexus, You still had a very small chance of getting a hackroid armor
    DropItem "HackroidSphere" 90 1 //20 chance to spawn too
DamageFactor 0.15
DamageFactor "Legendary", 0.1
DamageFactor "LegendaryPlayer", 0.1
DamageFactor "LegendaryGuru", 0.05
DamageFactor "LegendaryGuruPlayer", 0.05
DamageFactor "PlayerNemesisPlasma", 0.13
DamageFactor "TrueLegendaryDamage", 0.2
DamageFactor "TrueLegendaryPlayer", 0.2
DamageFactor "PlayerDTRG", 0.075
Tag "\c[i7]Hackroid Assault Captain\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_PlaySoundEx("hack/glitch","Voice",0,2)
  Idle:
	TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
    HASG A 10 Bright A_Look
    TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
	HASG Z 10 Bright A_Look
    Loop
   Missile:
        TNT1 A 0 A_SetShootable
        TNT1 A 0 A_UnsetInvulnerable
        TNT1 A 0 A_SetTranslucent(1)
		HASG E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
		TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
        TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
        HASG E 4 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 7, 30, 4, 0, (0.1)*Random(30, 40), Random(-80, -90), 128)
		TNT1 AAAA 0 Bright A_CustomMissile("1337SGTracer",Random(28,34),0,Random(6,-6),0)
		HASG F 2 Bright A_CustomBulletAttack(22.5,18.3,4,Random(5,15)*6,"1337ModdedBulletPuff")
	    HASG E 4 Bright A_FaceTarget
		TNT1 A 0 Bright A_CPosRefire
        TNT1 A 0 A_Jump(6,"Heal")
        TNT1 A 0 A_Jump(5,"Heal2")
        TNT1 A 0 A_Jump(4,"Heal3")
		TNT1 A 0 A_Jump(10,"Grenade")
		TNT1 A 0 A_Jump(13,"HackroidSuperShotgun")
        TNT1 A 0 A_JumpIfCloser(300,"Grenade")
        Goto Missile+4
	HackroidSuperShotgun:
        TNT1 A 0 A_SetShootable
        TNT1 A 0 A_UnsetInvulnerable
        TNT1 A 0 A_SetTranslucent(1)
		HASG E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
		TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
        TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
        HASG E 4 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 7, 30, 4, 0, (0.1)*Random(30, 40), Random(-80, -90), 128)
		TNT1 AAAA 0 Bright A_CustomMissile("1337ProjZ",Random(28,34),0,Random(6,-6),0)
		HASG E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
		HASG E 6 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 7, 30, 4, 0, (0.1)*Random(30, 40), Random(-80, -90), 128)
		TNT1 AAAA 0 Bright A_CustomMissile("1337ProjZ",Random(28,34),0,Random(6,-6),0)
		HASG E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
		HASG E 6 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 7, 30, 4, 0, (0.1)*Random(30, 40), Random(-80, -90), 128)
		TNT1 AAA 0 Bright A_CustomMissile("1337ProjZ",Random(28,34),0,Random(6,-6),0)
		HASG E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
		HASG E 8 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 7, 30, 4, 0, (0.1)*Random(30, 40), Random(-80, -90), 128)
		TNT1 AAA 0 Bright A_CustomMissile("1337ProjZ",Random(28,34),0,Random(6,-6),0)
		HASG E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
		HASG E 10 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 7, 30, 4, 0, (0.1)*Random(30, 40), Random(-80, -90), 128)
		TNT1 AAA 0 Bright A_CustomMissile("1337ProjZ",Random(28,34),0,Random(6,-6),0)
		HASG E 15 Bright A_FaceTarget
		Goto See
	}
}

ACTOR INFHackroidAssaultCaptain2 : INFHackroidAssaultCaptain
{
Tag "\c[i7]Hackroid Assault Captain\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(160,"Remove")
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_PlaySoundEx("hack/glitch","Voice",0,2)
  Idle:
	TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
    HASG A 10 Bright A_Look
    TNT1 A 0 A_SpawnItem("RandomHellionSmoke",0,0,0,0)
	HASG Z 10 Bright A_Look
    Loop
	}
}

//Hackroid Beheaded Kamikaze 911

ACTOR HackroidBeheadedKamikaze2 : HackroidBeheadedKamikaze
{
Tag "\c[p7]Hackroid Beheaded Kamikaze\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(160,"Remove")
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_PlaySoundEx("hack/glitch","Voice",0,2)
  SpawnLoop:
	HKAM A 15 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("RandomHellionSmoke",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Demon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFCerebralCardihilator : CerebralCardihilator Replaces CerebralCardihilator
{
DropItem "BossLifeEssence" 225 
DropItem "BossArmorBonusMax" 225 
DropItem "GreaterDemonicEnergy" 256
DropItem "DemonicEnergy" 256
DropItem "DemonicChalice" 250 1
DropItem "SkullOfPower" 250 1
DropItem "BFG10K " 134
DropItem "NewShellBox" 128
DropItem "Explosive Shotgun" 200
DropItem "ExplosiveRailgun" 200 1
DropItem "BulletBox" 64
DropItem "Demon Tech Devastator" 180 1
DropItem "Demon Tech BFG10K" 200 1
DropItem "Explosive Minigun" 128 1
DropItem "BulletBox" 178
DropItem "EFG9000", 16
DropItem "HeavyGrenadeLauncher", 16
DropItem "HellfireUltrasphere", 128
Tag "\c[m6]Cerebral Cardihilator\c-"
}

//Cerebral Cardihilation 913

//Chaos Storm Causer 914

ACTOR INFHellfrostCardihilator : HellfrostCardihilatorNEO Replaces HellfrostCardihilator
{
  DropItem "HellFrostSphere" 256
  DropItem "DemonAmmoBox" 128 200
  DropItem "DemonicChalice" 100
  DropItem "SkullOfPower" 100
  DropItem "FreezerBFG" 256
  DropItem "Freezer Rifle" 256
  DropItem "D-BFG" 120
  Dropitem "DCellPack" 256 32
  Dropitem "DCellPack" 128 24
  Dropitem "DCell" 256 10
  Dropitem "DCell" 256 10
  Dropitem "DCell" 256 10
Tag "\c[o7]Hellfrost Cardihilator\c-"
}

ACTOR INFHellFrostCyberdemon : NewHellFrostCyberdemon Replaces NewHellFrostCyberdemon
{
DropItem "HellFrostSphere" 256 1
DropItem "D-BFG", 80
DropItem "DemonAmmoBox", 196, 200
DropItem "DemonicChalice", 90, 1
DropItem "SkullOfPower", 90, 1
DropItem "ArmorSphere", 96
DropItem "FreezerBFG" 192
Tag "\c[o7]HellFrost Cyberdemon\c-"
}

//Dark Inquisitor (Crimson) 917

//Phase Folding Fan 918

//Corrupted Fan 919

//New Dark Inquisitor 920

ACTOR INFCorruptedCardinal : CorruptedCardinal Replaces CorruptedCardinal
{
Dropitem "CorruptedSyringe", 100, 1
DropItem "BossLifeEssence", 192
DropItem "BossArmorBonusMax", 192
DropItem "CorruptedSphere", 256, 1
Dropitem "D-BFG", 256
Dropitem "DCellPack", 256, 32
Dropitem "DCellPack", 128, 24
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Dropitem "MarineDBFGBeacon", 64, 1
Tag "\c[l5]Corrupted Cardinal\c-"
States
{
  Idle:
    TNT1 A 0
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetReflectiveInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIfHealthLower(4000,2) // 3000
	TNT1 A 0 A_Jump(256,2)
	TNT1 A 0 A_JumpIf(user_disappeared < 1,"Disappear")
	//TNT1 A 0 A_Jump(16,"Teleport")
	BCRD AA 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	BCRD BB 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	BCRD AA 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	BCRD BB 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	BCRD AA 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	BCRD BB 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,-12)
	Loop
	}
}

ACTOR INFCorruptedSentient : CorruptedSentient Replaces CorruptedSentient
{
Dropitem "CorruptedSyringe", 100, 1
DropItem "BossLifeEssence", 192
  DropItem "BossArmorBonusMax", 192
  DropItem "SkullOfPower", 128, 1
  DropItem "CorruptedSphere", 256, 1
  Dropitem "D-BFG", 256
  Dropitem "DCellPack", 256, 32
  Dropitem "DCellPack", 128, 24
  Dropitem "DCell", 256, 10
  Dropitem "DCell", 256, 10
  Dropitem "DCell", 256, 10
  Dropitem "MarineDBFGBeacon", 64, 1
Tag "\c[l5]Corrupted Sentient\c-"
}

ACTOR INFHellfrostSentient : HellfrostSentient Replaces HellfrostSentient
{
DropItem "HellFrostSphere" 256 1
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "DemonicChalice" 128
DropItem "SkullOfPower" 128
DropItem "FreezerBFG" 256
DropItem "Freezer Rifle" 256
DropItem "LegendaryUltrasphere" 64
DropItem "LifeLegendaryRune" 64
DropItem "D-BFG" 256
Dropitem "GreaterCorruptedEnergy" 256 32
Dropitem "GreaterCorruptedEnergy" 128 24
Dropitem "CorruptedEnergy" 256 10
Dropitem "CorruptedEnergy" 256 10
Dropitem "CorruptedEnergy" 256 10
Tag "\c[o7]Hellfrost Sentient\c-"
}

ACTOR INFSacrosanctOverseer : SacrosanctOverseer2 Replaces SacrosanctOverseer2
{
Health 12500
DamageFactor "AllyRail", 0.5
DamageFactor "AllyDTRG", 0.5
DamageFactor "AllyDTRailgun", 0.5
DamageFactor "AllyExplosion", 0.5
DamageFactor "AllyDBFG", 0.1
Obituary "%o was shown that the Sacrosanct Overseer was not to be interfered with."
Tag "\c[q6]Sacrosanct Overseer\c-"
States
{
  Spawn:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("SacrosanctOverseerFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_Playsound("SOverseer/Loop",7,1,1)
	AOVR AB 2 A_Look
	Loop
  Teleport:
    AOVR A 1 A_UnSetShootable
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeOut(0.2,0)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeOut(0.2,0)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeOut(0.2,0)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeOut(0.2,0)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeOut(0.2,0)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeOut(0.2,0)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    TNT1 A 0 A_PlayWeaponSound("boss/teleport")
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeIn(0.2)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeIn(0.2)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeIn(0.2)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeIn(0.2)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeIn(0.2)
    TNT1 AA 0 A_CustomRailgun(0,0,NONE,NONE,RGF_SILENT|RGF_FULLBRIGHT,0,30,"OverseerRailPuff",frandom(-70,70),frandom(-70,70),random(160,360),0,2.0,0,"OverseerRailParticle2",24)
	AOVR A 1 A_FadeIn(0.2)
    AOVR A 1 A_SetShootable
    Goto See
  Evade:
 	TNT1 A 0 A_Jump(128,"Evade2")
	TNT1 A 0 ThrustThing(Angle*256/360+64,20,0,0)
	AOVR ABABABAB 2 A_Chase
	TNT1 A 0 A_Stop
	Goto See
  Evade2:
	TNT1 A 0 ThrustThing(Angle*256/360+192,20,0,0)
	AOVR ABABABAB 2 A_Chase
	TNT1 A 0 A_Stop
	Goto See
  Pain:
	AOVR A 3
	AOVR A 3 A_Pain	
	TNT1 A 0 A_Jump(32,"PainSummon")
	TNT1 A 0 A_Jump(128,"Missile")
	Goto See
  PainSummon:
	AOVR PP 3
	TNT1 A 0  A_PlaySound("SOverseer/attack20")
	AOVR PPQQ 3
	TNT1 A 0 A_Stop
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 Radius_Quake(10,80,0,24,0)
	TNT1 A 0 HealThing(400)
	TNT1 A 0 A_SetUserVar("user_missile",0)
	AOVR Q 3
	TNT1 A 0 A_PlaySound("brain/spit",7)
  SummonLoop:
	TNT1 A 0 A_Stop
	TNT1 A 0 A_JumpIf(user_missile >= 5,"SummonEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	AOVR RRRRRRRRRRRRRRRRRRRRR 3 A_SpawnItemEx("OverseerSummonSmokeSpawner",128)
	TNT1 A 0 A_SpawnItemEx("BabyOverseerMinion",128,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	Loop
  SummonEnd:
	AOVR PPPPPP 3 A_SpawnItemEx("OverseerSummonSmokeSpawner",128)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
	}
}

//El King 925

//Nifara 926

ACTOR INFLegendaryCyberdemon : NewLegendaryCyberdemon Replaces NewLegendaryCyberdemon
{
Tag "\c[z3]Legendary Cyberdemon\c-"
DamageFactor "TrueLegendaryDamage", 0.35
DamageFactor "TrueLegendaryPlayer", 0.35
States
{
  Death:
	TNT1 A 0 A_StopSound(6)
	CYBR H 10 Bright
	CYBR H 10 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("LegendaryCyberdemonDeathEffect",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	CYBR HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJJJJJJJJJJJJJJJJ 2 Bright
	CYBR KL 10 Bright
	TNT1 A 0 A_Jump(32,"LegDeath")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,4)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"LegDeath")
	//TNT1 A 0 A_Jump(26,"LegDeath2")
	TNT1 A 0 A_SpawnItem("DeathBall2")
	CYBR M 10 Bright A_NoBlocking
	CYBR NO 10 Bright
	CYBR P 30
	CYBR P -1 A_KillMaster
	Stop
  LegDeath:
	//TNT1 A 0 ACS_ExecuteAlways(5434,0,0)
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	CYBR M 10 Bright A_NoBlocking
	CYBR NO 10 Bright
	CYBR PPPP 50 
	TNT1 A 0 A_KillMaster
	TNT1 A 0 ACS_NamedExecuteAlways("SetTLCSky")
	CYBR P 30 A_CustomMissile("TrueLegPentagram")
	TNT1 A 0 A_SpawnItemEx("DingySummoner")
	TNT1 A 0 A_SpawnItemEx("INFLegendaryRevivalSummoner")
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,72,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,-72,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,-222,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,222,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,365,32)
	TNT1 A 200
	Stop
	}
}

ACTOR INFExos : Exos Replaces Exos
{
Tag "Exos"
}

//OMEGA BARNEY 929

ACTOR INFSirUndead1 : SirUndead1 Replaces SirUndead1
{
DropItem "GreaterDemonicEnergy", 256 200
DropItem "BossLifeEssence", 256
DropItem "BossArmorBonusMax", 256
DropItem "GreaterPlasmaEnergy", 256 300
DropItem "HellfireUltrasphere", 160
Tag "\cqSir\c- \crUndead\c-"
}

//New Phase Cyberdemon 931

//Hellfrost Annihilator 932

ACTOR INFInsaneWritheQueen : InsaneWritheQueen Replaces InsaneWritheQueen
{
Tag "\c[i7]Tharziran, Queen of the Writhes\c-"
}

//Actually Good Legendary Demolisher 934

ACTOR INFLegendarySentient : NewLegendarySentient Replaces NewLegendarySentient
{
Tag "\c[z3]Legendary Sentient\c-"
States
{
  Death:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,4)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"LegDeath")
	TNT1 A 0 A_Jump(32,"LegDeath")
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_Scream
	LUPR H 20 A_Fall
	TNT1 A 0 A_SpawnItemEx("LegendarySentientDeathEffect",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LUPR IIIIIIIIII 2 Bright
	LUPR JJJJJJJJJJ 2 Bright
	LUPR KKKKKKKKKK 2 Bright
	LUPR LLLLLLLLLL 2 Bright
	TNT1 A 0 A_SpawnItem("DeathBall2")
	LUPR LM 5
	TNT1 A 1 A_KillMaster
	Stop
  LegDeath:
	LUPR H 20 Bright
	TNT1 A 0 A_SpawnItemEx("LegendarySentientDeathEffect",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LUPR IIIIIIIIII 2 Bright
	LUPR JJJJJJJJJJ 2 Bright
	LUPR KKKKKKKKKK 2 Bright
	LUPR LLLLLLLLLL 2 Bright
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TNT1 A 0 ACS_NamedExecuteAlways("SetTLCSky")
	TNT1 A 0 A_SpawnItemEx("TrueLegPentagram",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LUPR LM 5 Bright
	TNT1 AAAA 50
	TNT1 A 0 A_KillMaster
	TNT1 A 0 A_SpawnItemEx("LegendaryDreadnoughtIllusion", 0, 0, 96)
	NULL A 550 Bright
	TNT1 A 0 A_SpawnItemEx("INFTrueLegendarySentient", 0, 0, 32, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	TNT1 A 200
	TNT1 A 0 A_FadeOut
	Stop
	}
}

//Prankster Legendary Sentient 936

ACTOR INFDeathLord : DeathLord Replaces DeathLord
{
Tag "\c[k7]Death Lord\c-"
}

//Blue Cardihilator 938

ACTOR INFUtsuho : Utsuho Replaces Utsuho
{
  DropItem "DarkDivineArmorItem" 110 1
  DropItem "NuclearRocket" 200 1
  DropItem "NuclearRocket" 100 1
  DropItem "NuclearRocket" 60 1
  DropItem "NuclearMissileLauncherSpawner" 20 1
  DropItem "WingsOfAscension" 50 1
  DropItem "BossLifeEssence" 255 25
  DropItem "BossArmorBonusMax" 255 1
  DropItem "RingOfRegeneration" 30 1
  DropItem "DivineContract" 160
  DropItem "TearofEternity" 256
Tag "\c[g5]Utsuho\c-"
}

ACTOR INFTheLastPlague : TheLastPlague Replaces TheLastPlague
{
Radius 40
Height 110
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 25
DropItem "GreaterPlasmaEnergy" 256
DropItem "GreaterDemonicEnergy" 256 300
DropItem "Grenade Launcher" 256
DropItem "BFG10K " 200 1
DropItem "Railgun " 200 1
DropItem "Demon Tech BFG10K" 200 1
DropItem "Explosive Minigun" 256 1
DropItem "Rocket Launcher" 256
DropItem "HomingRocketLauncher" 200
DropItem "LegendaryRune", 128, 1
DropItem "CannongunSphere" 128
DropItem "EFG9000", 96
DropItem "HellfireUltrasphere", 192
Tag "\c[j6]Zero\c-, \c[m8]The Last\c- \c[j3]Plague"
}

ACTOR INFLegendaryAnnihilator : NewLegendaryAnnihilator Replaces NewLegendaryAnnihilator
{
Health 8000
Tag "\c[z3]Legendary Annihilator\c-"
var int user_DeathLoop;
States
{
  Death:
	TNT1 A 0 A_SetUserVar(user_DeathLoop,0)
	TNT1 AAA 0 A_StopSound(6)
	TNT1 A 0 A_FaceTarget
	LANI E 3 Bright A_PlaySound("Legcyber/BFG",CHAN_WEAPON)
  DeathLoop:
	TNT1 A 0 A_JumpIf(user_DeathLoop > 56,"DeathEnd")
	TNT1 A 0 A_SetUserVar(user_DeathLoop,user_DeathLoop+1)
	LANI E 2 Bright A_SpawnItemEx("PainfulDeathKaboom",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_FaceTarget
	Loop
  DeathEnd:
	TNT1 A 0 A_PlaySound("Weapons/GuruFire",CHAN_WEAPON)
	TNT1 A 0 A_PlaySound("Weapons/GuruAddFire",6)
	TNT1 A 0 A_CustomMissile("CyberGuruball",60,-26,0)
	LANI F 5 Bright A_CustomMissile("CyberGuruball",60,26,0)
	LANI H 10 Bright
	LANI H 10 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("LegendaryCyberdemonDeathEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	LANI HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJJJJJJJJJJJJJJJJ 2 Bright
	LANI KL 10 Bright
	TNT1 A 0 A_Jump(36,"LegDeath") //32 don't tell anyone or i'll eat you
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,4)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"LegDeath")
	TNT1 A 0 A_SpawnItem("DeathBall3")
	LANI M 10 Bright A_NoBlocking
	LANI NO 10 Bright
	LANI P 30 Bright
	LANI P -1
	Stop
  LegDeath:
	//TNT1 A 0 ACS_ExecuteAlways(5434,0,0)
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LANI M 10 Bright A_NoBlocking
	LANI NO 10 Bright
	LANI PPPP 50 
	TNT1 A 0 A_KillMaster
	TNT1 A 0 ACS_NamedExecuteAlways("SetTLCSky")
	LANI P 30 A_CustomMissile("TrueLegPentagram")
	TNT1 A 0 A_SpawnItemEx("DingySummoner")
	TNT1 A 0 A_Jump(100,3)
	TNT1 A 0 A_SpawnItemEx("INFLegendaryRevivalSummoner2") //True Leg Cyberdemon
	TNT1 A 0 A_Jump(256,2)
	TNT1 A 0 A_SpawnItemEx("INFLegendaryRevivalSummoner3") //True Leg Annihilator
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,72,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,-72,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,-222,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,222,32)
	TNT1 A 0 A_SpawnItemEx("ResurrectorSummoner",0,0,0,30,0,0,365,32)
	TNT1 A 500
	Stop
	}
}

ACTOR INFLegendaryRevivalSummoner : LegendaryRevivalSummoner
{
States
{
  Spawn:
	TNT1 A 5
  Death:
	TNT1 A 0
	TNT1 A 2
	TNT1 A 0 A_SpawnItemEx("INFLegendaryRevival")
	Stop
   }
}

ACTOR INFLegendaryRevivalSummoner2 : LegendaryRevivalSummoner
{
States
{
  Spawn:
	TNT1 A 5
  Death:
	TNT1 A 0
	TNT1 A 2
	TNT1 A 0 A_SpawnItemEx("INFLegendaryRevival2")
	Stop
   }
}

ACTOR INFLegendaryRevivalSummoner3 : LegendaryRevivalSummoner
{
States
{
  Spawn:
	TNT1 A 5
  Death:
	TNT1 A 0
	TNT1 A 2
	TNT1 A 0 A_SpawnItemEx("INFLegendaryRevival3")
	Stop
   }
}

ACTOR INFLegendaryRevival : LegendaryRevival1 Replaces LegendaryRevival1 //Legal coding as long as it works, right?
{
States
{
  Spawn:
    CYBR P 20 Bright
    CYBR P 470 Bright ACS_NamedExecuteAlways("InfinityMusic",0,4500,4001)
    Goto See
  See:
    CYBR P 1 Bright
    TNT1 A 0 A_Jump(256,"Missile")
    Loop
  Missile:
    CYBR PPPPPPPPPPPPPPPPPPPPP 2 Bright
    TLCD PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 Bright
    //TLCD ONMLKJIH 30 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD IIIIIIIIIIIIIIIIIIIIIIIIIIIIII 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD HHHHHHHHHHHHHHHHHHHHH 2 Bright A_SpawnItemEx("LegCybThorStrikeSpawner",Random(1650,-1650),Random(1650,-1650),0,0,0,0,SXF_NOCHECKPOSITION,64)
    TLCD HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 5 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    //TNT1 A 0 ACS_ExecuteAlways(5433,0,0)
    //TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 A_SpawnItemEx("LegendaryNuke2")
	TNT1 A 0 A_Die
	Stop
 Death:
    TLCD H 1 Bright A_SpawnItemEx("TrueLegendaryRevivalSummoner")
	TNT1 A 0
    Stop
	}
}

ACTOR INFLegendaryRevival2 : LegendaryRevival3 Replaces LegendaryRevival3
{
States
{
  Spawn:
    CYBR P 20 Bright
    CYBR P 470 Bright ACS_NamedExecuteAlways("InfinityMusic",0,4500,4001)
    Goto See
  See:
    CYBR P 1 Bright
    TNT1 A 0 A_Jump(256,"Missile")
    Loop
  Missile:
    CYBR PPPPPPPPPPPPPPPPPPPPP 2 Bright
    TLCD PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 Bright
    //TLCD ONMLKJIH 30 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD IIIIIIIIIIIIIIIIIIIIIIIIIIIIII 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLCD HHHHHHHHHHHHHHHHHHHHH 2 Bright A_SpawnItemEx("LegCybThorStrikeSpawner",Random(1650,-1650),Random(1650,-1650),0,0,0,0,SXF_NOCHECKPOSITION,64)
    TLCD HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 5 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    //TNT1 A 0 ACS_ExecuteAlways(5433,0,0)
    //TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 A_SpawnItemEx("LegendaryNuke2")
	TNT1 A 0 A_Die
	Stop
 Death:
    TLCD H 1 Bright A_SpawnItemEx("TrueLegendaryRevivalSummoner2")
	TNT1 A 0
    Stop
	}
}

ACTOR INFLegendaryRevival3 : LegendaryRevival3
{
States
{
  Spawn:
    LANI P 20 Bright
    LANI P 470 Bright ACS_NamedExecuteAlways("InfinityMusic",0,4500,4001)
    Goto See
  See:
    LANI P 1 Bright
    TNT1 A 0 A_Jump(256,"Missile")
    Loop
  Missile:
    LANI PPPPPPPPPPPPPPPPPPPPP 2 Bright
    TLAN PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 Bright
    //TLCD ONMLKJIH 30 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN IIIIIIIIIIIIIIIIIIIIIIIIIIIIII 10 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    TLAN HHHHHHHHHHHHHHHHHHHHH 2 Bright A_SpawnItemEx("LegCybThorStrikeSpawner",Random(1650,-1650),Random(1650,-1650),0,0,0,0,SXF_NOCHECKPOSITION,64)
    TLAN HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 5 Bright A_SpawnItemEx("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    //TNT1 A 0 ACS_ExecuteAlways(5433,0,0)
    //TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 A_SpawnItemEx("LegendaryNuke2")
	TNT1 A 0 A_Die
	Stop
 Death:
    TLAN H 1 Bright A_SpawnItemEx("TrueLegendaryRevivalSummoner3")
	TNT1 A 0
    Stop
	}
}

Actor TrueLegendaryRevivalSummoner3
{
  Height 0
  Radius 0
  Speed 30
  Damage (0)
  +RIPPER
  +BLOODLESSIMPACT
  +NOTIMEFREEZE
  States
  {
  Spawn:
	TNT1 A 5
  Death:
	TNT1 A 0
	TNT1 A 2
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryAnnihilator",0,0,1,0,0,0,0,SXF_NOCHECKPOSITION)
	Stop
	}
}

//Legendary Hellsmith 942

//Rank 2 (Rank 1 is skipped in this case)

ACTOR INFEnragedLegendaryCyberdemon : NewEnragedLegendaryCyberdemon Replaces NewEnragedLegendaryCyberdemon
{
DropItem "EnragedLegendaryUltraSphere" 215
DropItem "EnragedLegendaryArmor" 256 1
DropItem "LegendaryRune" 256 1
DropItem "LegendaryRune" 256 1
DropItem "EnragedLegTimeFreezeSphere" 128 1
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnragedLegendaryBFG" 256 1
DropItem "Legendary BFG" 256 1
DropItem "LegendaryBossLifeEssence" 250 
DropItem "LegendaryBossArmorBonusMax" 250 
DropItem "DemonicChalice" 200
DropItem "Enraged Legendary Plasmatic Rifle" 200 1
DropItem "EnragedLegendaryAmmoSphere" 128 1
DropItem "LegDemonRune" 80 1
DropItem "Enraged Legendary Assault Shotgun" 200 1
DropItem "EnragedLegendaryCoachgun" 200
DropItem "TrueLegendaryRune" 10 1
DropItem "EnragedLegendaryRune" 128
DropItem "ReforcedEnragedLegendaryArmor", 180
DropItem "Enraged Legendary Pyro Cannon" 110 1
DropItem "BeastSoulSphere" 100 1
Tag "\c[m6]Enraged\c- \c[z3]Legendary CyberDemon\c-"
States
{
  Null:
    TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky",0)
	TNT1 A 1
	Stop
	}
}
ACTOR INFEnragedLegendaryCyberdemon2 : INFEnragedLegendaryCyberdemon
{
Tag "\c[m6]Enraged\c- \c[z3]Legendary CyberDemon\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"SpawnMKII")
    TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ECYB A 10 A_Look
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ECYB A 10 A_Look
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ECYB Z 10 A_Look
	TNT1 A 0 A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	ECYB Z 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Enraged Legendary Cardinal 944

ACTOR INFEnragedLegendaryCardinal2 : EnragedLegendaryCardinal
{
Tag "\c[O5]Super Bad \c[m6]Enraged\c- \c[z3]Legendary Cardinal\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    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
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFEnragedLegendarySentient : ActuallyBadEnragedLegendarySentient Replaces EnragedLegendarySentient
{
DropItem "LegendaryRune" 256
DropItem "LegendaryRune" 256
DropItem "LegendaryRune" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "Legendary BFG" 256 1
DropItem "SkullofPower" 256
DropItem "Enraged Legendary Plasmatic Rifle" 256 1
DropItem "EnragedLegendaryAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Enraged Legendary Assault Shotgun" 256 1
DropItem "EnragedLegendaryArmor" 256 1
DropItem "Enraged Legendary Plasmatic Cannon" 256 1
DropItem "EnragedLegTimeFreezeSphere" 256 1
DropItem "Enraged Legendary Light Machine Gun" 256 1
DropItem "TrueLegendaryBFGUpgrade" 256 1
DropItem "EnragedLegendaryBFG" 256 1
DropItem "TrueLegendaryRune" 10 1
DropItem "EnragedLegendaryRune" 128
DropItem "Enraged Legendary Pyro Cannon" 120 1
DropItem "ReforcedEnragedLegendaryArmor" 180
Tag "\c[m6]Enraged\c- \c[z3]Legendary Sentient\c-"
States
{
  Missile:
    TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"MissileMKII")
	TNT1 A 0 A_Jump(200,2)
	TNT1 A 0 A_JumpIfHealthLower(3000,"Upgrade")
	TNT1 A 0 ACS_NamedExecuteWithResult("ELSInvulCheck",AAPTR_TARGET)
	TNT1 A 0 A_Jump(20,"ResurrectWave","LegBFGCombo")
	ELSN A 0 A_Jump(164,"BFG10K","LegCannon","LegPlasmaCannon","BFGSpread","DTBFG","Commotion","EnragedBFG")
	Goto Normal
  PlasmaChainguns:
	TNT1 A 0 A_GiveInventory("EnragedSentientStrafe", 1)
	ELSN AA 0 A_PlaySound("EPRifle/Fire")
	TNT1 A 0 A_CustomMissile("RLegendaryProjectile",31,-20,FRandom(-8,8),0)
	TNT1 A 0 A_CustomMissile("RLegendaryProjectile",31,0,FRandom(-8,8),0)
	ELSN D 2 A_CustomMissile("RLegendaryProjectile",31,20,FRandom(-8,8),0)
	ELSN C 4 A_StopSoundEx("Weapon")
	TNT1 A 0 A_Jump(3,"See")
	TNT1 A 0 A_SpidRefire
	Loop
  PlasmaChaingunsMKII:
	TNT1 A 0 A_GiveInventory("EnragedSentientStrafe", 1)
	EL2N AA 0 A_PlaySound("EPRifle/Fire")
	TNT1 A 0 A_CustomMissile("RLegendaryProjectile",31,-20,FRandom(-8,8),0)
	TNT1 A 0 A_CustomMissile("RLegendaryProjectile",31,0,FRandom(-8,8),0)
	EL2N D 2 A_CustomMissile("RLegendaryProjectile",31,20,FRandom(-8,8),0)
	EL2N C 2 A_StopSoundEx("Weapon")
	TNT1 A 0 A_Jump(3,"SeeMKII")
	TNT1 A 0 A_Jump(16,"PlasmaChaingunsMKIITeleport")
	TNT1 A 0 A_SpidRefire
	Loop
  PlasmaChaingunsMKIITeleport:
	EL2N A 0 A_UnSetShootable
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	EL2N CC 1 A_FadeOut(0.5,0)
	EL2N AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("EnragedSentient/Teleport",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("EnragedSentientTeleportFX",0,0,60)
	EL2N CC 1 A_FadeIn(0.5)
	EL2N A 0 A_SetShootable
	Goto PlasmaChaingunsMKII
  LMGChainguns:
	TNT1 A 0 A_GiveInventory("EnragedSentientStrafe", 1)
	TNT1 A 0 A_CustomMissile("LegendaryRedTracer",31,0,Random(-12,12),0)
	TNT1 A 0 A_CustomMissile("LegendaryRedTracer",31,-20,Random(-12,12),0)
	TNT1 A 0 A_CustomMissile("LegendaryRedTracer",31,20,Random(-12,12),0)
	TNT1 AAA 0 A_SpawnItemEx("ELegRifleCasing", Random(-25,25),0,36,Random(-6, 6),0,Random(-1, -3))
	TNT1 AAA 0 A_CustomBulletAttack(42.5,14,1,Random(10,20)*3,"EnragedBulletPuff")
	TNT1 AAA 0 A_PlaySoundEx("ELMG/Fire","Weapon")
	ELSN DCC 2  
	TNT1 A 0 A_Jump(3,"See")
	TNT1 A 0 A_SpidRefire
	Loop
	}
}

ACTOR INFEnragedLegendarySentient2 : INFEnragedLegendarySentient
{
Tag "\c[m6]Enraged\c- \c[z3]Legendary Sentient\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 ACS_NamedExecuteAlways("EnragedFlameJets",0,2)
  Idle:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"IdleMKII")
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner")
	ELSN AB 2 A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Armament Armed Arm Form 1 - 2 - 3 946

ACTOR INFHellsmith : Hellsmith Replaces Hellsmith
{
Tag "\c[G2]Hellsmith\c-"
DropItem "BossLifeEssence" 204 25
DropItem "BossArmorBonusMax" 204 1
DropItem "BigGas" 256 100
DropItem "DemonicChalice" 100 1
DropItem "SkullOfPower" 100 1
DropItem "PyroCannon" 256 1 
DropItem "HellfireUltrasphere" 110 1
DropItem "HellsFurySphere", 256
DropItem "FuelCore" 256 1
DropItem "FuelCore" 256 1
DropItem "NewCellPack", 255
DropItem "NewCell", 255
DropItem "Stingray", 255
States
    { 
	Death:
	   //TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"DivineTrasform")
	   //TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"DivineTrasform")
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-72,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-144,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-216,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-288,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,0,2)
       BSMT F 0 Radius_Quake(6,250,2,64,8)
       BSMT P 250 A_CustomMissile("SmithDFSpawner",0,0,0,0)
	   TNT1 A 0 Bright A_Mushroom("HFCyberMushroomFireballs2",8)
	   TNT1 A 0 A_SpawnItemEx("HFCyberPyroBoom2")
       BSMT Q 6 A_CustomMissile("SmithHammer",128,-40,-30,0)
       BSMT Q 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT R 6 A_Scream
       BSMT R 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT STU 6
       BSMT V 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT V 6 A_NoBlocking 
       BSMT V 6 
       BSMT X 6
       BSMT X 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT Y -1 A_BossDeath 
	   Stop
	DivineTrasform:
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-72,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-144,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-216,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-288,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,0,2)
       BSMT F 0 Radius_Quake(6,250,2,64,8)
       BSMT P 250 A_CustomMissile("SmithDFSpawner",0,0,0,0)
	   TNT1 A 0 Bright A_Mushroom("HFCyberMushroomFireballs2",8)
	   TNT1 A 0 A_SpawnItemEx("HFCyberPyroBoom2")
       BSMT P 10 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   BSMT P 0 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	   BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   BSMT P 0 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	   BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   BSMT P 0 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	   DSMT A 10
	   TNT1 A 1 A_SpawnItemEx("DivineHellsmith",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	   Stop
   } 
}

ACTOR INFHellsmith2 : INFHellsmith
{
Tag "\c[G2]Hellsmith\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    BSMT A 10 A_Look 
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFNemesisCyberdemon : NemesisCyberdemon Replaces NemesisCyberdemon
{
Health 13000
BloodColor "Black"
DropItem "NemesisBulletBox" 256
DropItem "NemesisDMGBulletMag" 256
DropItem "NemesisDarkMachineGun", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisSuperSphere" 215
DropItem "NemesisAmmoSphere", 128, 1
DropItem "NemesisTimeFreezeSphere", 128, 1
DropItem "LegDemonRune", 80, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "DemonicChalice", 256, 2
DropItem "SkullOfPower", 256, 2
DropItem "NLDemonAmmo", 256
DropItem "NLDemonAmmoBox", 256
DropItem "NemesisShell", 256
DropItem "NemesisShellBox", 130
DropItem "Nemesis Rifle", 200
DropItem "Nemesis Plasmatic Cannon", 200
DropItem "Nemesis Assault Shotgun", 200
DropItem "Nemesis Sawed-Off Shotgun", 200
DropItem "Nemesis BFG", 256
DropItem "TrueLegendaryRune" 25 1
DropItem "UpgradedNemesisArmor" 180 1
Obituary "%o was shown no mercy from the Nemesis Cyberdemon!"
Tag "\c[v9]Nemesis Cyberdemon\c-"
States
{
  Spawn:
	NCYB A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
  Death:
	TNT1 A 0 A_JumpIfInTargetInventory("NewNemesis",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("Zen",1,"VexedSpawn")
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_RemoveChildren(1)
	NCYB H 10 Bright
	NCYB H 10 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("NemesisCyberdemonDeathEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	NCYB HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 2 Bright
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NCYB IIIIIIIIIIIIIIIIIIIIIIIIIIII 2 Bright
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NCYB JJJJJJJJJJJJJJJJJJJJJ 2 Bright
	NCYB KL 10 Bright
	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NCYB M 10 Bright A_NoBlocking
	NCYB NO 10
	NCYB P 100
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,128)
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillMaster	
	NCYB P -1
	Stop
  VexedSpawn:
	TNT1 A 0 A_Stopsound(7)
	TNT1 A 0 A_Stopsound(5)
	TNT1 A 0 A_RemoveChildren(1)
	NCYB H 3 Bright A_Pain
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_PlaySound("brain/spit",7)
	NCYB HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
    TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_PlaySound("NemesisCyber/Attack2",2,1.0,0,ATTN_NONE)
	NCYB GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NCYB GGGGGGGGGGGGGGGGGGGGGGG 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NCYB GGGGGGGGGGGGG 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NCYB GGGGGGGGGGGG 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("NemesisPatriarchLightning")
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	VCYB GGGGGGGGGGGGGGG 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 ACS_NamedExecuteAlways("NemesisSky",0,0)
    //TNT1 A 0 ACS_NamedExecuteAlways("SetEnragedSky",0,3)
	TNT1 A 0 A_SpawnItemEx("VexedNemesisCyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	//TNT1 A 0 A_SpawnItemEx("VexedNemesisCydestroyerClone",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG) //ob god...
	TNT1 A 1 A_NoBlocking
	Stop
	}
}

ACTOR INFNemesisCyberdemon2 : INFNemesisCyberdemon
{
Tag "\c[v9]Nemesis Cyberdemon\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	NCYB A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFCyberSmith : CyberSmith Replaces CyberSmith
{
Tag "\c[i6]Cyber hellsmith\c-"
}

ACTOR INFCyberSmith2 : INFCyberSmith
{
Tag "\c[i6]Cyber hellsmith\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto SpawnLoop
  SpawnLoop:
	CHSM AB 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Nemesis Annihilator 950

ACTOR NemesisAnnihilator2 : NemesisAnnihilator
{
Tag "\c[g3]Nemesis Annihilator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  idle:
    TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
    39PI A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	39PI A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	39IP A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	39IP A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Teleporter Fast Cyberdemon 951

ACTOR TeleporterFastBFG10kCyberDemon2 : TeleporterFastBFG10kCyberDemon
{
Tag "\c[y6]The Fastest BFG10k Cyberdemon\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    ANNI A 10 A_Look
	ANNI A 10 A_Look
	ANII A 10 A_Look
	ANII A 10 A_Look
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Clockwork banelord 952

ACTOR ClockworkBanelord2 : ClockworkBanelord
{
Tag "\c[i7]Clockwork Banelord\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    IBNE A 10 A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Rank 3

ACTOR INFNemesisSentient : NewNemesisSentient Replaces NewNemesisSentient
{
DropItem "NemesisBulletBox" 256
DropItem "NemesisDMGBulletMag" 256
DropItem "NemesisDarkMachineGun", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisSuperSphere" 215
DropItem "NemesisAmmoSphere", 128, 1
DropItem "NemesisTimeFreezeSphere", 128, 1
DropItem "LegDemonRune", 80, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "DemonicChalice", 256, 2
DropItem "SkullOfPower", 256, 2
DropItem "NLDemonAmmo", 256
DropItem "NLDemonAmmoBox", 256
DropItem "NemesisShell", 256
DropItem "NemesisShellBox", 130
DropItem "Nemesis Rifle", 200
DropItem "Nemesis Plasmatic Cannon", 200
DropItem "Nemesis Assault Shotgun", 200
DropItem "Nemesis Sawed-Off Shotgun", 200
DropItem "Nemesis BFG", 256
DropItem "TrueLegendaryRune" 25 1
DropItem "UpgradedNemesisArmor" 180 1
Tag "\c[v9]Nemesis Sentient\c-"
States
{
  Death:
	TNT1 A 0 A_JumpIfInTargetInventory("NewNemesis",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("Zen",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"VexedSpawn") //New
	TNT1 A 0 A_Stopsound(7)
	TNT1 A 0 A_Stopsound(5)
	TNT1 A 0 A_RemoveChildren(1)
	TNT1 A 0 A_Scream
	NSNT H 20 Bright A_Fall
	TNT1 A 0 A_SpawnItemEx("NemesisSentientDeathEffect")
	NSNT IIIIIIIIIIIIIIIIIIIIJJJJJJJJJJ 2 Bright
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
    NSNT JJJJJJJJJJKKKKKKKKKKKKKKKKKKKK 2 Bright
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
    NSNT LLLLLLLLLLLLLLLLLLLL 2 Bright
	TNT1 A 0 ACS_NamedExecuteAlways("ResetSky",0)
	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NSNT M 5
	TNT1 A 100
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,128)
	TNT1 A -1 A_KillMaster
	Stop
  VexedSpawn:
	TNT1 A 0 A_Stopsound(7)
	TNT1 A 0 A_Stopsound(5)
	TNT1 A 0 A_RemoveChildren(1)
	NSNT H 3 Bright A_Pain
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_PlaySound("brain/spit",7)
	TNT1 A 0 A_PlaySound("NSentient/ScriptAttack",2,1.0,0,ATTN_NONE)
	NSNT HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NSNT HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NSNT HHHHHHHHHHHHHHHHHHHHHHH 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NSNT HHHHHHHHHHHHH 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NSNT HHHHHHHHHHHH 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
    TNT1 A 0 ACS_NamedExecuteAlways("SetEnragedSky",0,3)
	TNT1 A 0 A_SpawnItemEx("NemesisPatriarchLightning")
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	VLSN HHHHHHHHHHHHHHH 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSentient",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 0 A_SpawnItemEx("VexedNemesisBabySentientClone",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 1 A_NoBlocking
	Stop
	}
}

ACTOR INFNemesisSentient2 : INFNemesisSentient
{
Tag "\c[v9]Nemesis Sentient\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("NemesisSentientFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_Playsound("NemesisSentient/Loop",7,1,1)
	NSNT AB 2 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Demolisher 954

ACTOR VexedNemesisDemolisher2 : VexedNemesisDemolisher
{
Tag "\c[w2]Vexed Nemesis Demolisher\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItemEx("APSAVexSsSCyberFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
    V3X3 A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("APSAVexSsSCyberFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Jorg 955

ACTOR Jorg2 : Jorg
{
Tag "\c[q4]Jorg\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_Jump(192,2)
	TNT1 A 0 A_PlaySound("Makron/Active",CHAN_VOICE)
	JRG0 "ABCDEFGHIJKLMNOPQRSTUVWXYZ\[]" 6 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Heavy Land Carrier 956

//Makron 957

//Maephisto 2.0 958

ACTOR INFMaephisto2 : Maephisto2
{
Tag "\c[z5]Maephisto 2.0\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    MMDR E 10 A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFEnragedLegendaryCardihilator : EnragedLegendaryCardihilator Replaces EnragedLegendaryCardihilator
{
DropItem "EnragedLegendaryRune" 128
DropItem "LegendaryRune" 64
DropItem "LegendaryRune" 32
DropItem "LegendaryRune" 16
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "EnrLegGreaterDemonicEnergy" 256
DropItem "EnrLegDemonicEnergy" 256
DropItem "Legendary BFG" 256 1
DropItem "EnragedLegendaryBFG" 256 1
DropItem "SkullofPower" 256
DropItem "Enraged Legendary Plasmatic Rifle" 256 1
DropItem "EnragedLegendaryAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Enraged Legendary Assault Shotgun" 256 1
DropItem "ReforcedEnragedLegendaryArmor" 256 1
DropItem "Enraged Legendary Plasmatic Cannon" 256 1
DropItem "EnragedLegTimeFreezeSphere" 256 1
DropItem "Enraged Legendary Light Machine Gun" 256 1
DropItem "TrueLegendaryBFGUpgrade" 256 1
DropItem "TrueLegendaryRune" 10 1
Tag "\c[m6]Enraged\c- \c[z3]Legendary Cardihilator\c-"
States
{
   Death:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"DeathMKII")
    TNT1 A 0 A_StopSound(6)
	ELRD E 10 A_Scream
	TNT1 A 0 A_GiveInventory("CDIFireFollowerDeath",1)
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
	ELRD F 10 A_NoBlocking
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EEEEE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ELRD GGGGG 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD HHHHH 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD IIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD JJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD JJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD KKKKK 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ELRD KKKKK 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_PlaySoundEx("legendary/strike","Voice",0,2)
    TNT1 A 0 A_Explode(6582,2056)
    TNT1 A 0 A_SpawnItemEx("ELegendaryStrikeN")
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky",0)
	TNT1 A 1 A_KillMaster
    Stop
   DeathMKII:
    TNT1 A 0 A_StopSound(6)
	EL2D E 10 A_Scream
	TNT1 A 0 A_GiveInventory("CDIFireFollowerDeath",1)
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
	EL2D F 10 A_NoBlocking
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EEEEE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D EFEFE 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D GFGFG 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    EL2D GGGGG 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D HHHHH 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D IIIII 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D JJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D JJJJJ 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D KKKKK 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    EL2D KKKKK 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_PlaySoundEx("legendary/strike","Voice",0,2)
    TNT1 A 0 A_Explode(6582,2056)
    TNT1 A 0 A_SpawnItemEx("ELegendaryStrikeN")
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky",0)
	TNT1 A 1 A_KillMaster
    Stop
	}
}

ACTOR INFEnragedLegendaryCardihilator2 : INFEnragedLegendaryCardihilator
{
Tag "\c[m6]Enraged\c- \c[z3]Legendary Cardihilator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("ELegCardinalFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"SpawnMKII")
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	ELRD A 2 A_Look
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	ELRD B 2 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Phase Terminator 960

ACTOR PhaseTerminator2 : PhaseTerminator
{
Tag "\ctPhase Terminator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PTRM A 10 A_Look
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PTRM A 10 A_Look
	Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Bad True Legendary Annihilator 961

ACTOR BadTrueLegendaryAnnihilator2 : BadTrueLegendaryAnnihilator
{
Tag "\c[O7]Super Bad \c[l5]True \c[z3]Legendary Annihilator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    T5AN A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	T5AN A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	T5AN A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
	T5AN A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("TrueLegendaryCyberFlameSpawner",0,0,0,0)
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//True Legendary Annihilator 962

ACTOR INFNewNemesisCardinal : NewNemesisCardinal Replaces NewNemesisCardinal
{
DropItem "NemesisSuperSphere"
DropItem "UpgradedNemesisArmor"
DropItem "NemesisAmmoSphere", 128, 1
DropItem "NemesisTimeFreezeSphere", 100, 1
DropItem "LegDemonRune", 80, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "DemonicChalice", 256, 1
DropItem "SkullOfPower", 256, 1
DropItem "NemesisDemonicEnergy", 256
DropItem "NemesisGreaterDemonicEnergy", 256
DropItem "NemesisBulletBox" 256
DropItem "NemesisDMGBulletMag" 256
DropItem "NemesisShell", 256
DropItem "NemesisShellBox", 130
DropItem "Nemesis Rifle", 200
DropItem "Nemesis Plasmatic Cannon", 200
DropItem "Nemesis Assault Shotgun", 200
DropItem "Nemesis Sawed-Off Shotgun", 200
DropItem "Nemesis BFG", 256
DropItem "NemesisDarkMachinegun", 200
DropItem "TrueLegendaryRune" 25 1
Tag "\c[v9]Nemesis Cardinal\c-"
States
{
  Death:
	TNT1 A 0 A_JumpIfInTargetInventory("NewNemesis",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("Zen",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"VexedSpawn")
	TNT1 A 0 A_StopSound(6)
	NARD E 10 Bright
	NARD E 10 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("NemesisCyberdemonDeathEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	NARD EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 2 Bright
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NARD FFFFFFFFFFFFFFFFFFFFFFFFFFFF 2 Bright
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NARD GGGGGGGGGGGGGGGGGGGGG 2 Bright
	TNT1 A 0 A_RemoveChildren(1)
	NARD HI 10 Bright
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillMaster	
	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NARD J 10 Bright A_NoBlocking
	NARD KL 10
	TNT1 A 1
    Stop
  VexedSpawn:
	TNT1 A 0 A_Stopsound(6)
	NARD E 3 Bright A_Pain
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_PlaySound("brain/spit",7)
	NARD EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NARD OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NARD OOOOOOOOOOOOOOOOOOOOOOO 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NARD OOOOOOOOOOOOO 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NARD OOOOOOOOOOOO 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 A_RemoveChildren(1)
    TNT1 A 0 ACS_NamedExecuteAlways("SetEnragedSky",0,3)
	//TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItemEx("NemesisPatriarchLightning")
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNRD XXXXXXXXXXXXXXX 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 10 A_SpawnItemEx("INFVexedNemesisCardinal",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 1 A_NoBlocking
	Stop
   Null:
    TNT1 A 0 A_RemoveChildren(1)
    TNT1 A 1
    Stop
	}
}

ACTOR INFNewNemesisCardinal2 : INFNewNemesisCardinal
{
Tag "\c[v9]Nemesis Cardinal\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_SpawnItemEx("NemesisCardinalFireSpawner",0,0,0,0,0,0,0,SXF_SETMASTER)
  Idle:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_ChangeFlag(NODAMAGE,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	//TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
  Idle2:
	NARD ABAB 2 A_Look
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFArcradimus : Arcradimus2 Replaces Arcradimus2
{
Tag "\c[z4]Demon Lord Arcradimus\c-"
}

ACTOR INFArcradimus2 : INFArcradimus
{
Tag "\c[z4]Demon Lord Arcradimus\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItem("ArcradimusFlameSpawner",0,0,0,0)
	ARCR A 14 Bright A_Look 
	TNT1 A 0 A_SpawnItem("ArcradimusFlameSpawner",0,0,0,0)
	ARCR Z 14 Bright A_Look 
	Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFHellsMinister : HellsMinister Replaces HellsMinister
{
Tag "\c[s0]Hell's Minister\c-"
}

ACTOR INFHellsMinister2 : INFHellsMinister
{
Tag "\c[s0]Hell's Minister\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	L0HS A 10 A_Look 
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFLegendaryCardinal : NewLegendaryCardinal Replaces NewLegendaryCardinal //Just deal with this guy
{
Tag "\c[z3]Legendary Cardinal\c-"
DamageFactor "TrueLegendaryDamage", 0.35
DamageFactor "TrueLegendaryPlayer", 0.35
States
{
  Death: 
	TNT1 A 0 A_ChangeFlag(float,1)
	TNT1 A 0 A_ChangeFlag(Nogravity,1)
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 ACS_NamedExecuteAlways("PlayIntroText",0,0)
	TNT1 A 0 Radius_Quake(7, 105, 0, 50, 0)
	TNT1 A 0 A_ChangeFlag(Nogravity,1)
	TNT1 A 0 A_ChangeFlag(float,1)
	LARD A 5 Bright A_PlaySound("LegCardi/Death", CHAN_AUTO|CHAN_NOPAUSE, 1.0, False, ATTN_NONE)
	LARD E 100 Bright
	TNT1 A 0 ACS_NamedExecuteAlways("SetBlueScreen",0,1,0,0)
	LARD E 5 Bright A_NoBlocking
	TNT1 AAAA 25 Bright A_SpawnItemEx("FakeLegCardinalThunder", Random(144,-144), Random(144,-144), 0, 0, 0, 0, Random(0,359))
	TNT1 A 0 ACS_NamedExecuteAlways("PlayIntroText2",0,0)
	TNT1 A 0 ACS_NamedExecuteAlways("SetTLCSky",0)
	TNT1 A 0 A_SpawnItemEx("INFTrueForm",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 0 A_SpawnItem("DeathBall2")
	TNT1 A -1 Bright A_KillMaster
	Stop
  Null:
    TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky",0)
	TNT1 A 1
	Stop
	}
}

ACTOR INFTrueForm : TrueForm
{
  States
   {
    Spawn:
	 TNT1 A 5
	Death:
	 TNT1 A 0
	 TNT1 A 2 
	 TNT1 A 0 A_SpawnItemEx("INFTrueLegendaryCardinal")
	 TNT1 AAA 0 A_AlertMonsters
	 Stop
   }
}

ACTOR INFHellFireCyberdemon : HellFireCyberdemon Replaces HellFireCyberdemon
{
Tag "\c[z4]Hellfire \c[v9]Cyberdemon\c-"
States
{
Death:
    TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"BloodGodPossession")
    TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"BloodGodPossession")
    TNT1 A 0 A_Facetarget
    TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
    HFCS A 80 A_Scream	
	TNT1 A 0 Radius_Quake(10,8,0,24,0)	
	TNT1 A 0 A_PlaySound("monsters/darkcyberstomp")
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFLavaMist",0,0,random(0,120),(Random (-8, 8)),(Random (-8, 8)),(Random (0, 8)),(Random (0, 360)))
	TNT1 A 0 A_SpawnItemEx("DemonicChalice",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("UpgradedHellArmor",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellFireRune",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ScrollOfHellfire",0,0,8,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Shotgun",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
	HFCS B 50
	HFCY G 10
	TNT1 A 0 A_PlaySound("HFCyb/laugh2")
    TNT1 A 0 Radius_Quake(10,80,0,24,0)
	HFCY G 0 A_CustomMissile("PentaLine1",0,0,-72,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,-144,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,-216,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,-288,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,0,2)
	HFCY GGGGGGGGGGGGGGGGGG 0 Bright A_SpawnItemEx("RainCometSpawner",Random(1250,-1250),Random(1250,-1250),0,0,0,0,SXF_NOCHECKPOSITION,0)
    HFCY G 50 A_NoBlocking
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	HFCY G 0 Bright A_SpawnItem("CardinalRageFlameSpawner",0,0,0,0)
	HFCY GGGGG 2 A_FadeOut
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	TNT1 A 0 ACS_ExecuteAlways(668)
    TNT1 A -1 Bright A_KillMaster
	stop
  BloodGodPossession:
    TNT1 A 0 A_Facetarget
    TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
    HFCS A 80 A_Scream	
	TNT1 A 0 Radius_Quake(10,8,0,24,0)	
	TNT1 A 0 A_PlaySound("monsters/darkcyberstomp")
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFLavaMist",0,0,random(0,120),(Random (-8, 8)),(Random (-8, 8)),(Random (0, 8)),(Random (0, 360)))
	TNT1 A 0 A_SpawnItemEx("Demon Tech Shotgun",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
	HFCS B 50
	HFCY G 10
	TNT1 A 0 A_PlaySound("HFCyb/laugh2")
    TNT1 A 0 Radius_Quake(10,80,0,24,0)
	HFCY G 0 A_CustomMissile("PentaLine1",0,0,-72,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,-144,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,-216,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,-288,2)
    HFCY G 0 A_CustomMissile("PentaLine1",0,0,0,2)
	HFCY GGGGGGGGGGGGGGGGGG 0 Bright A_SpawnItemEx("RainCometSpawner",Random(1250,-1250),Random(1250,-1250),0,0,0,0,SXF_NOCHECKPOSITION,0)
    HFCY G 50 A_NoBlocking
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	HFCY G 0 Bright A_SpawnItem("CardinalRageFlameSpawner",0,0,0,0)
	HFCY GGGGG 2 A_FadeOut
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	TNT1 A 0 ACS_ExecuteAlways(668)
    TNT1 A 0 A_SpawnItemEx ("DimensionalPortal")
	TNT1 A 340
	TNT1 A 0 A_SpawnItemEx("DarkDesNuke2")
	BLRD A 5 Bright A_FaceTarget
	TNT1 A 1 A_SpawnItemEx("BloodGodCardinal",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	stop
	NULL:
	TNT1 A 0 ACS_ExecuteAlways(668,0)
	TNT1 A 1
	Stop
	}
}

ACTOR INFHellFireCyberdemon2 : INFHellFireCyberdemon
{
Tag "\c[z4]Hellfire \c[v9]Cyberdemon\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
    TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("HFCDFireSpawner",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
    HFCY A 10 Bright A_Look
	HFCY A 10 Bright A_Look
	HFCY Z 10 Bright A_Look
	HFCY Z 10 Bright A_Look
	TNT1 A 0 A_AlertMonsters(0,AMF_EMITFROMTARGET)
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFNewHellfireSentient : NewHellfireSentient Replaces NewHellfireSentient
{
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "SkullOfPower" 256
DropItem "HellFireRune" 256
DropItem "DemonicChalice" 256
DropItem "HellfireUltrasphere" 128 1
DropItem "PhaseSphere"
DropItem "GreaterFireEnergy" 256 100
Tag "\c[z4]Hellfire \c[v9]Sentient\c-"
States
{
  DeathEX:
    TNT1 A 0 A_Facetarget
    TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	TNT1 A 0 A_PlaySound("Commander/laugh")
    HFSM H 30
	TNT1 A 0 Radius_Quake(10,240,0,24,0)
	HFSM G 0 A_CustomMissile("PentaLine1",0,0,-72,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,-144,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,-216,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,-288,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,0,2)
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	HFSM G 0 Bright A_SpawnItem("CardinalRageFlameSpawner",0,0,0,0)
	HFSM P 80 A_PlaySound("Commander/laugh")
	TNT1 A 0 A_SpawnItemEx("BoomSpinalCord",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS,0)
	HFSM G 0 A_PlaySoundEx("brain/spit",7,0,2)
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	HFSM G 0 Bright A_SpawnItem("CardinalRageFlameSpawner",0,0,0,0)
	HFSM Q 20
	TNT1 A 0 A_SpawnItemEx("BoomShockwave",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS,0)
	HFSM G 0 A_CustomMissile("PentaLine1",0,0,-72,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,-144,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,-216,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,-288,2)
    HFSM G 0 A_CustomMissile("PentaLine1",0,0,0,2)
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	HFSM G 0 Bright A_SpawnItem("CardinalRageFlameSpawner",0,0,0,0)
	HFSM R 140
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFLavaMist",0,0,random(0,120),(Random (-8, 8)),(Random (-8, 8)),(Random (0, 8)),(Random (0, 360)))
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	TNT1 AAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("HFFireSpawned2",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	HFSM R 40
	HFSM R 10 A_GiveInventory("CDIFireFollowerDeath",1)
	TNT1 A 0 A_SpawnItemEx("DisasterExplosion")
	HFSM R 10
	TNT1 A 0 A_SpawnItemEx("INFHellfireAracnorbQueen",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	TNT1 A 1 A_NoBlocking
	stop
	}
}

ACTOR INFNewHellfireSentient2 : INFNewHellfireSentient
{
Tag "\c[z4]Hellfire \c[v9]Sentient\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    //TNT1 A 0 A_JumpIf(user_script == 1,3)
	//TNT1 A 0 A_SpawnItemEx("CerebralCardihilatorFireFollower",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
    //TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("CerebralCardihilatorFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	HFSM ABAB 2 Bright A_Look
	TNT1 A 0 A_SpawnItem("HFCyberFlameSpawner",0,0,0,0)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFHellfireAracnorbQueen : HellfireAracnorbQueen Replaces HellfireAracnorbQueen
{
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "DemonicChalice" 256
DropItem "HellfireUltrasphere" 128 1
DropItem "HellfireUltrasphere" 128 1
DropItem "PhaseSphere"
DropItem "GreaterFireEnergy" 256 100
DropItem "BeastSoulSphere" 256 1
Tag "\c[z4]Hellfire \c[v9]Aracnorb Queen\c-"
}

ACTOR INFHellFireCardinal : HellFireCardinal Replaces HellFireCardinal
{
Tag "\c[z4]HellFire \c[v9]Cardinal\c-"
}

ACTOR INFCyberdemonCommander : CyberdemonCommander Replaces CyberdemonCommander
{
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "SkullOfPower" 256
DropItem "DemonicChalice" 256
DropItem "HellfireUltrasphere" 128 1
DropItem "PhaseSphere"
DropItem "GreaterFireEnergy" 256 100
DropItem "RandomCommanderitem" 256 1
Tag "\ctCyberdemon \cmCommander\c-"
States
  {
Death:
   TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"VoidPossession")
   TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VoidPossession")
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_RemoveChildren(1)
	CMCP H 10 Bright
	CMCP H 10 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("CyberdemonCommanderDeathEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	CMCP HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 2 Bright
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	CMCP IIIIIIIIIIIIIIIIIIIIIIIIIIII 2 Bright
	//TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	CMCP JJJJJJJJJJJJJJJJJJJJJ 2 Bright
	TNT1 A 0 A_PlaySound("DoomsdayCannon/Hiss",6)
	CMCP KL 10 Bright
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	CMCP M 10 Bright A_NoBlocking
	TNT1 A 0 A_PlaySound("DoomsdayCannon/Boom",1)
	TNT1 A 0 A_SpawnItemEx("Big Light Gun",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BFG3500",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NewDBFG",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CyberCommanderDoomsdayExploder",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BlackHole Generator",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Shotgun",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderExpMinigunUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderDTShotgunUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderDevUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderD-BFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(0,8),random(0,8),2,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BFG10K ",0,0,64,random(0,8),random(0,8),2,0,0,0)
	TNT1 A 0 A_SpawnItemEx("SkullOfPower",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("DemonicChalice",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(0,8),random(0,8),2,0,0,64)
	TNT1 A 0 A_SpawnItemEx("ExplosiveSSG",0,0,64,random(0,8),random(0,8),2,0,0,0)
	TNT1 A 0 A_SpawnItemEx("PainLordSoul",0,0,64,random(0,8),random(0,8),2,0,0,0)
	CMCP NO 10
	CMCP P 100
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillMaster
	TNT1 A 0 ACS_ExecuteAlways(668,0)
	CMCP P -1
	Stop  
  VoidPossession:
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_RemoveChildren(1)
	CMCP H 10 Bright
	CMCP H 10 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("CyberdemonCommanderDeathEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
	CMCP HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 2 Bright
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	CMCP IIIIIIIIIIIIIIIIIIIIIIIIIIII 2 Bright
	//TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	CMCP JJJJJJJJJJJJJJJJJJJJJ 2 Bright
	TNT1 A 0 A_PlaySound("DoomsdayCannon/Hiss",6)
	CMCP KL 10 Bright
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	CMCP M 10 Bright A_NoBlocking
	TNT1 A 0 A_PlaySound("DoomsdayCannon/Boom",1)
	TNT1 A 0 A_SpawnItemEx("Big Light Gun",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BFG3500",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NewDBFG",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CyberCommanderDoomsdayExploder",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BlackHole Generator",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Shotgun",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderExpMinigunUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderDTShotgunUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderDevUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("CommanderD-BFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(0,8),random(0,8),2,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BFG10K ",0,0,64,random(0,8),random(0,8),2,0,0,0)
	TNT1 A 0 A_SpawnItemEx("VoidCyberdemonBeaconActive",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("ExplosiveSSG",0,0,64,random(0,8),random(0,8),2,0,0,0)
	TNT1 A 0 A_SpawnItemEx("PainLordSoul",0,0,64,random(0,8),random(0,8),2,0,0,0)
	CMCP NO 10
	CMCP P 100
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillMaster
	TNT1 A 0 ACS_ExecuteAlways(668,0)
	CMCP P -1
	Stop  
	Null:
	TNT1 A 0 ACS_ExecuteAlways(668,0)
	TNT1 A 1
	Stop
	}
}

ACTOR INFCyberdemonCommander2 : INFCyberdemonCommander
{
Tag "\ctCyberdemon \cmCommander\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnSetInvulnerable
    CMCP A 10 Bright A_Look
    TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner",0,0,0,0,0,0,0,128)
	CMCP A 10 Bright A_Look
    TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner",0,0,0,0,0,0,0,128)
	CMCP Z 10 Bright A_Look
    TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner",0,0,0,0,0,0,0,128)
	CMCP Z 10 Bright A_Look
    TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner",0,0,0,0,0,0,0,128)
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFRMTerminator : NewRMTerminator Replaces RMTerminator
{
Tag "\crTerminator\c-"
var int user_CheckPower;
States
{//REIMAGINED-SOUNDS
  RedStar:
	TNT1 A 0 A_PlaySound("Terminator/Star",7,3,0,ATTN_NONE)
	TNT1 A 0 A_Jump(80,"FTwoRS")
	TNT1 A 0 A_SetInvulnerable
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load1")
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load2")
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner") 
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM E 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("star/load3")
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM E 0 A_FaceTarget
    TERM EEEE 2 Bright A_SpawnItemEx("TerminatorLineSpawner")  	   
	TNT1 A 0 A_UnSetInvulnerable
	TERM E 0 A_FaceTarget
	TERM F 0 A_PlayWeaponSound("star/fire")
	TERM F 7 Bright A_CustomMissile("TerminatorRedStar",48,17,0) 
	TERM E 8 A_FaceTarget
	TERM F 0 A_PlayWeaponSound("star/fire")
	TERM F 7 Bright A_CustomMissile("TerminatorRedStar",48,17,0) 
	TERM E 8 A_FaceTarget
	TERM F 0 A_PlayWeaponSound("star/fire")
	TERM F 7 Bright A_CustomMissile("TerminatorRedStar",48,17,0) 
	TERM E 8 A_FaceTarget
	TERM F 0 A_PlayWeaponSound("star/fire")
	TERM F 7 Bright A_CustomMissile("TerminatorRedStar",48,17,0) 
	TERM E 8 A_FaceTarget
	TERM F 0 A_PlayWeaponSound("star/fire")
	TERM F 7 Bright A_CustomMissile("TerminatorRedStar",48,17,0) 
	TERM E 8 A_FaceTarget	   
	TERM E 2 A_Jump(128,"DTDevastator")
    Goto See
  DTDevastator:
    TNT1 A 0 A_PlaySound("Terminator/Deva",7,3,0,ATTN_NONE)
	TNT1 A 0 A_Jump(80,"FTwoDV")
	TNT1 A 0 A_SetInvulnerable
    TERM E 0 A_Facetarget
	TNT1 A 0 A_SetUserVar("user_missile", 0)
	TNT1 A 0 A_SpawnItemEx("TerminatorLineSpawner")
    TERM E 0 Bright A_PlaySound ("devastator/charge")
  DevCharge:
	TNT1 A 0 A_JumpIf(user_missile > 55,"DevFire")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
    TERM E 2 A_Facetarget
	TNT1 A 0 A_SpawnItemEx("TerminatorLineSpawner")
	Loop
  DevFire:
	TNT1 A 0 A_JumpIf(user_MissileTier >= 2,"DevFireTier3")
	TNT1 A 0 A_JumpIf(user_MissileTier >= 1,"DevFireTier2")
    TERM F 0 A_PlaySound ("devastator/fire")
    TERM F 10 Bright A_CustomMissile("TerminatorDevastator",48,17,0)
    TERM E 50
	TNT1 A 0 A_UnSetInvulnerable
    goto See
  DevFireTier2:
    TERM F 0 A_PlaySound ("devastator/fire")
	TERM F 0 Bright A_CustomMissile("TerminatorDevastator",48,17,random(5,-5))
    TERM F 10 Bright A_CustomMissile("TerminatorDevastator",48,17,0)
    TERM E 50
	TNT1 A 0 A_UnSetInvulnerable
    goto See
  DevFireTier3:
    TERM F 0 A_PlaySound ("devastator/fire")
	TERM F 0 Bright A_CustomMissile("TerminatorDevastator",48,17,random(5,-5))
	TERM F 0 Bright A_CustomMissile("TerminatorDevastator",48,17,random(5,-5))
    TERM F 10 Bright A_CustomMissile("TerminatorDevastator",48,17,0)
    TERM E 50
	TNT1 A 0 A_UnSetInvulnerable
    goto See
  Healing:
	TNT1 A 0 A_PlaySound("Terminator/Heal",7,3,0,ATTN_NONE)
	TNT1 A 0 A_SetInvulnerable
	TERM L 2 HealThing(400)
    TERM LLLLLLLLLLLLLLLLLLLL 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM LLLLLLLLLLLLLLLLLLLL 2 Bright A_SpawnItemEx("TerminatorLineSpawner")
	TERM L 10 A_CustomMissile("TerminatorPulse")
	TERM L 5 A_CustomMissile("TerminatorPulse")
	TERM L 2 A_CustomMissile("TerminatorBigPulse")
	TNT1 A 0 A_UnSetInvulnerable
	TERM L 2
    Goto See
	//END OF REIMAGINED-SOUNDS
  Death:
    TNT1 A 0 A_JumpIf(user_CheckPower == 1,2)
	TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"CheckPower")
    TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VoidPossession")
	TERM M 10 A_Scream
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	TERM NNNOOO 5 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("TerminatorNukeDeath",0,0,0,0,0,0,0)
	TERM PPPQQQ 2 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))  
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	TERM SSSTTT 2 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))  
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	TERM UUUVVV 2 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))   
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,220)
	TNT1 A 0 A_SpawnItemEx("Explosive Minigun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BFG10K ",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HomingRocketLauncher",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("RapidShotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UpgradedHellArmor",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("NuclearMissileBox",0,0,64,random(1,8),0,2,random(0,360),0,164)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,192)
	TERM W 4 
	TERM X 6 A_Fall
	TERM Y 6
	TERM Z 1 A_Playsound("Terminator/terstepA")
	TERM Z 5 
	TERM [ -1 Bright A_KillMaster
	Stop
  CheckPower:
   TNT1 A 0 A_SetUserVar("user_CheckPower",1)
   TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"VoidPossession")
   Goto Death
  VoidPossession:
  	TNT1 A 0
	TERM M 10 A_Scream
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	TERM NNNOOO 5 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("TerminatorNukeDeath",0,0,0,0,0,0,0)
	TERM PPPQQQ 2 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))  
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	TERM SSSTTT 2 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))  
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	TERM UUUVVV 2 Bright A_CustomMissile("Kaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))   
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,220)
	TNT1 A 0 A_SpawnItemEx("Explosive Minigun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BFG10K ",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HomingRocketLauncher",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("RapidShotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("NuclearMissileBox",0,0,64,random(1,8),0,2,random(0,360),0,164)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,192)
	TERM W 4 
	TERM X 6 A_Fall
	TERM Y 6
	TERM Z 1 A_Playsound("Terminator/terstepA")
	TERM Z 5 
	TNT1 A 0 A_SpawnItemEx("DarkVoidTerminatorBeaconActive",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TERM [ -1 Bright A_KillMaster
	Stop
	}
}

ACTOR INFRMTerminator2 : INFRMTerminator
{
Tag "\crTerminator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    TERM A 10 A_Look 
	TRMI A 10 A_Look 
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFDementedTerminator : NewDementedTerminator Replaces DementedTerminator
{
DeathSound "DemTerm/Death"
Tag "\c[o7]Demented\c- \crTerminator\c-"
States
{//REIMAGINED-SOUNDS+TLCA
  RedStar:
	TNT1 A 0 A_PlaySound("DemTerm/Star",7,3,0,ATTN_NONE)
	TNT1 A 0 A_SetInvulnerable
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load1")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load2")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("star/load3")
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 0 A_FaceTarget
	DTRM EEEE 2 Bright A_SpawnItemEx("DTermLineSpawner")
	TNT1 A 0 A_UnSetInvulnerable
	DTRM E 0 A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_MissileTier >= 2,"RedStarLoopTier3")
	TNT1 A 0 A_JumpIf(user_MissileTier >= 1,"RedStarLoopTier2")
  RedStarLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 4,"RedStarEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	DTRM F 0 A_PlayWeaponSound("star/fire")
	DTRM F 3 Bright A_CustomMissile("DTermRedStar",78,17,0)
	DTRM FEE 3 Bright A_FaceTarget
	Loop
  PyroShot:
	TNT1 A 0 A_PlaySound("DemTerm/Pyro",7,3,0,ATTN_NONE)
	TNT1 A 0 A_SetUserVar("user_missile",0)
  PyroshotCharge:
	TNT1 A 0 A_JumpIf(user_missile >= 10,"PyroShotCharged")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	DTRM E 2 A_FaceTarget
	DTRM EEEEEE 0 Bright A_SpawnItemEx("DTermLineSpawner")
	DTRM E 2 A_FaceTarget
	loop	
  DTDevastator:
	TNT1 A 0 A_PlaySound("DemTerm/Deva",7,3,0,ATTN_NONE)
	TNT1 A 0 A_SetUserVar("user_missile",0)
	DTRM E 0 Bright A_PlaySound ("devastator/charge")
  DevastatorLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 55,"DevastatorCharged")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_SpawnItemEx("DTermLineSpawner")
	DTRM E 2 A_Facetarget
    Loop
	//END OF REIMAGINED-SOUNDS+TLCA
  Death:
	DTRM M 10 A_Scream
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	DTRM NNNOOO 5 Bright A_CustomMissile("Kaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("DTermNukeDeath",0,0,0,0,0,0,0)
	DTRM PPPQQQ 2 Bright A_CustomMissile("Kaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	DTRM SSSTTT 2 Bright A_CustomMissile("Kaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	DTRM UUUVVV 2 Bright A_CustomMissile("Kaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	DTRM W 4
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Explosive Minigun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BFG10K ",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HomingRocketLauncher",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("RapidShotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("NuclearMissileBox",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("UpgradedHellArmor",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,192)
	DTRM "X" 6 A_Fall
	DTRM "Y" 2 A_Bossdeath
	TNT1 A 0 A_KillMaster
	DTRM "Z" 63000 CanRaise
	Stop
	}
}

ACTOR INFDementedTerminator2 : INFDementedTerminator
{
Tag "\c[o7]Demented\c- \crTerminator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    TNT1 A 0 A_JumpIf(user_script == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("DementedTerminatorFireSpawner",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	DTRM A 2 A_Look
	DTRM B 2 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFAbyssalSatyr : AbyssalSatyr Replaces AbyssalSatyr
{
Tag "\c[s9]Abyssal Satyr\c-"
States
{
  Null:
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_LightOnMap",0,2,64)
	TNT1 A 1
	Stop
	}
}

ACTOR INFAbyssalSatyr2 : INFAbyssalSatyr
{
Tag "\c[s9]Abyssal Satyr\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	OSST A 1
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_SetUserVar("user_ammodh",0)
	TNT1 A 0 A_SetUserVar("user_Scounter",0)
	TNT1 A 0 A_SetUserVar("user_Icounter",0)
	TNT1 A 0 A_SetUserVar("user_Dcounter",0)
	TNT1 A 0 A_SetUserVar("user_gotoshield",0)
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_GiveInventory("IsAnAbyssalSatyr",1)
  SpawnLoop:
	OSST A 10 A_Look
	TNT1 A 0 A_JumpIf(user_currenthp > ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"),"Idle")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFMoloch : Moloch Replaces Moloch
{
DropItem "BossLifeEssence", 256, 175
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "NemesisArmorBonusMax", 256
DropItem "UltraSphere", 128, 1
DropItem "DemonicChalice", 96, 1
DropItem "SkullofPower", 96, 1
DropItem "DemonAmmoBox", 196, 200
DropItem "ProxMines", 180
DropItem "UpgradedHellArmor", 200
Tag "\crMoloch\c-"
States
{
  CheckToSpawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInTargetLOS("CybruiserSpawn",90,JLOSF_DEADNOJUMP,1500)
	TNT1 A 0
	TNT1 A 0 A_JumpIfHealthLower((ACS_NamedExecuteWithResult("Hem_SpawnHealth")*0.3),"CheckToSpawn2")
	TNT1 A 0
	TNT1 A 0 A_Jump(96,"CybruiserSpawn")
	GoTo See
  CheckToSpawn2:
	TNT1 A 0
	TNT1 A 0 A_Jump(96,"See")
	TNT1 A 0 A_JumpIfTargetInLOS("Missile3",90,JLOSF_DEADNOJUMP|JLOSF_TARGETLOS,1500)
	TNT1 A 0 A_CheckSight("CybruiserSpawn")
	TNT1 A 0
	GoTo See
  CybruiserSpawn:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("HemGoToSummon",1)
	TNT1 A 0 A_Jump(48,"DarkCybruisers")
	TNT1 A 0 A_Jump(128,"Cybruisers")
  Cydestroyers:
	MOLO H 1
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO EEEEFFFF 1 A_FaceTarget(45)
	TNT1 A 0 A_Recoil(10)
	MOLO EEEE 1 A_FaceTarget(45)
	MOLO G 1 Bright A_CustomMissile("CydestroyerSummoner",45,15,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	TNT1 A 0 A_Recoil(5)
	MOLO GGG 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("CydestroyerSummoner",45,15,-22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	TNT1 A 0 A_Recoil(5)
	MOLO GGG 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("CydestroyerSummoner",45,15,22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	TNT1 A 0 A_Recoil(5)
	MOLO GGG 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("CydestroyerSummoner",45,15,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO E 8
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO H 24
	MOLO H 1
	GoTo See
  Cybruisers:
	MOLO H 1
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO EEEEFFFF 1 A_FaceTarget(45)
	TNT1 A 0 A_Recoil(10)
	MOLO EEEE 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("CybruiserSummoner",45,15,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	TNT1 A 0 A_Recoil(5)
	MOLO GGG 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("CybruiserSummoner",45,15,-22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO GGG 1 A_FaceTarget
	TNT1 A 0 A_Recoil(5)
	MOLO G 1 Bright A_CustomMissile("CybruiserSummoner",45,15,22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO GGG 1 A_FaceTarget
	TNT1 A 0 A_Recoil(5)
	MOLO G 1 Bright A_CustomMissile("CybruiserSummoner",45,15,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO E 8	
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO H 24
	MOLO H 1
	GoTo See
  DarkCybruisers:
	MOLO H 1
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO EEEEFFFF 1 A_FaceTarget(45)
	TNT1 A 0 A_Recoil(10)
	MOLO EEEE 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("DarkCybruiserSummoner",45,15,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	TNT1 A 0 A_Recoil(5)
	MOLO GGG 1 A_FaceTarget
	MOLO G 1 Bright A_CustomMissile("DarkCybruiserSummoner",45,15,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO E 8
	TNT1 A 0 A_SpawnItemEx("MolochLineSpawner")
	MOLO H 24
	MOLO H 1
	GoTo See
   Death:
	MOLO J 14 A_ScreamAndUnblock
	MOLO K 14 A_RemoveChildren
	MOLO L 14
	MOLO MMMMMMMMMMM 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO OOOOOOOOOOO 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO MMMMMMMMMMM 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO OOOOOOOOOOO 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO MMMMMMMMMMM 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO OOOOOOOOOOO 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO MMMMMMMMMMM 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO OOOOOOOOOOO 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO MMMMMMMMMMM 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO OOOOOOOOOOO 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO NNNNNNNNNNN 1 Bright A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",random(10,100),0,random(0,360),2,random(0,360))
	MOLO PQ 5
	TNT1 AAAAAAAAAA 0 A_CustomMissile("Kaboom",random(20,100),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_KillChildren
	MOLO R 140 A_SpawnItemEx("TerminatorNukeDeath",0,0,0,0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("NemesisArmorSphere",0,0,8,random(1,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("NemesisArmor",0,0,8,random(1,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("NemesisSphere",0,0,8,random(1,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("DoomsphereDust",0,0,8,random(1,8),0,2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("TerminatorItem",0,0,8,random(1,8),0,2,random(0,360),0,252)
	TNT1 A 0 A_SpawnItemEx("GreaterFireEnergy",0,0,8,random(0,8),0,2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("ExplosiveRifle",0,0,8,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("BFG2704",0,0,8,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ProxLauncher",0,0,8,random(0,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EFG9000",0,0,8,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Explosive Revolver",0,0,64,random(1,8),0,4,random(0,360),0,128) //INFINITY
  EndDrop:
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillMaster
	MOLO R 63000 CanRaise
	"####" "#" 5 A_FadeOut(0.1,1)
	Wait
	}
}

ACTOR INFMoloch2 : INFMoloch
{
Tag "\crMoloch\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	MOLO A 1
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_SetUserVar("user_rage",0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
  SpawnLoop:
	MOLO A 10 A_Look
	TNT1 A 0 A_JumpIf(user_currenthp > ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"),"Idle")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFActuallyGoodHeresiarch : ActuallyGoodHeresiarch Replaces ActuallyGoodHeresiarch
{
Tag "\c[a0]Heresiarch\c-"
States
{
  Null:
	TNT1 A 0 ACS_NamedExecuteAlways("ResetSky",0)
    TNT1 A 0 A_RemoveChildren(1)
	TNT1 A 1
	Stop
	}
}

ACTOR INFActuallyGoodHeresiarch2 : INFActuallyGoodHeresiarch
{
Tag "\c[a0]Heresiarch\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	HIER A 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFLegendaryTerminator : NewLegendaryTerminator Replaces LegendaryTerminator //Deal with this guy too please
{
SeeSound "LegTerm/Sight"
ActiveSound "LegTerm/Active"
PainSound "LegTerm/Pain"
DeathSound "LegTerm/Death"
Tag "\c[z3]Legendary Terminator\c-"
DropItem "LegendaryTerminatorArmor" 180 1
DropItem "Legendary Pyro Cannon" 120 1
States
{
  RedStar:
	TNT1 A 0 A_PlaySound("LegTerm/Star",7,7,0,ATTN_NONE)
	TNT1 A 0 A_Jump(80,"FTwoRS")
	TNT1 A 0 A_SetInvulnerable
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load1")
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load2")
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner") 
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER E 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("star/load3")
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER E 0 A_FaceTarget
	LTER EEEE 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")  		
	TNT1 A 0 A_UnSetInvulnerable
	LTER E 0 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget
	LTER F 0 A_PlayWeaponSound("star/fire")
	LTER F 4 Bright A_CustomMissile("LegTerminatorStar",48,17,random(-10,10)) 
	LTER E 6 A_FaceTarget	
	LTER E 2 A_Jump(128,"DTDevastator")
	Goto See
  DTDevastator:
	TNT1 A 0 A_PlaySound("LegTerm/Deva",7,7,0,ATTN_NONE)
	TNT1 A 0 A_Jump(80,"FTwoDV")
	TNT1 A 0 A_SetInvulnerable
	LTER E 0 A_Facetarget
	TNT1 A 0 A_SetUserVar("user_missile", 0)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER E 0 Bright A_PlaySound ("devastator/charge")
  DevCharge:
	TNT1 A 0 A_JumpIf(user_missile > 55,"DevFire")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	LTER E 2 A_Facetarget
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryLineSpawner")
	Loop	
  Healing:
	TNT1 A 0 A_PlaySound("LegTerm/Heal",7,7,0,ATTN_NONE)
	TNT1 A 0 A_SetInvulnerable
	LTER L 2 HealThing(550)
	LTER LLLLLLLLLLLLLLLLLLLL 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER LLLLLLLLLLLLLLLLLLLL 2 Bright A_SpawnItemEx("TrueLegendaryLineSpawner")
	LTER L 10 A_CustomMissile("LegTerminatorPulse")
	LTER L 5 A_CustomMissile("LegTerminatorPulse")
	LTER L 2 A_CustomMissile("LegTerminatorBigPulse")
	TNT1 A 0 A_UnSetInvulnerable
	LTER L 2
	Goto See
  Death:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,4)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage",1,"LegDeath")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"LegDeath")
	TNT1 A 0 A_Jump(40,"LegDeath")
	TNT1 A 0
  Death2:
	TNT1 A 0
	LTER M 10 A_Scream
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER NNNOOO 5 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
	LTER PPPQQQ 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER SSSTTT 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER UUUVVV 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	LTER W 4 A_ChangeFlag("BRIGHT",0)
	TNT1 A 0 A_SpawnItemEx("BlackHole Generator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10K",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NuclearMissileBox",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,64)
	TNT1 A 0 A_DropItem("TrueLegendaryRune",1,64)
	LTER "X" 6 A_Fall
	LTER "Y" 6
	LTER "Z" 1 A_Playsound("Terminator/terstepA",CHAN_BODY)
	LTER "Z" 5 A_Bossdeath
	TNT1 A 0 A_KillMaster
	LTER "[" -1
	Stop
  LegDeath:
	TNT1 A 0
	LTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	LTER M 10 A_Scream
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER NNNOOO 5 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TNT1 A 0 ACS_NamedExecuteAlways("SetTLCSky")
	TNT1 A 0 A_SpawnItemEx("LegendaryNuke",0,0,0,0,0,0,0,SXF_SETMASTER,0)
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
    TNT1 A 0 A_CustomMissile("DingyThunderSpawner",0,0,0,0)
	LTER PPPQQQ 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER SSSTTT 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	LTER UUUVVV 2 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	LTER W 4 A_ChangeFlag("BRIGHT",0)
	TNT1 A 0 A_SpawnItemEx("BlackHole Generator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10K",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NuclearMissileBox",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,64)
	TNT1 A 0 A_DropItem("TrueLegendaryRune",1,64)
	LTER "X" 6 A_Fall
	LTER "Y" 6
	LTER "Z" 1 A_Playsound("Terminator/terstepA",CHAN_BODY)
	LTER "Z" 5 A_Bossdeath
	TNT1 A 0 A_KillMaster
	LTER "[" 400 Bright
    LTER "[[[[[[[[[[[[[[[[[[[[[" 2 Bright A_SpawnItemEx("LegCybThorStrikeSpawner",Random(1650,-1650),Random(1650,-1650),0,0,0,0,SXF_NOCHECKPOSITION,64)
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LTER "[" 5 A_SpawnItem("BlueLightning")
	TTER "[" 20 Bright
	TTER ZYXWVUTSQPONL 20 Bright
	TNT1 A 0 A_SpawnItemEx("INFTrueLegendaryTerminator",0,0,16,0,0,0,0,32)
	TNT1 A 1 A_NoBlocking
	Stop
	}
}

ACTOR INFEnragedLegendaryTerminator : EnragedLegendaryTerminator Replaces EnragedLegendaryTerminator
{
Tag "\c[m6]Enraged\c- \c[z3]Legendary Terminator\c-"
States
{
  Death:
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"DeathMKII")
	//TNT1 A 0 A_GiveInventory("CDIFireFollowerDeath",1)
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ETER QQQQQQ 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER RSRSRS 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER RSRSRS 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ETER QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
	ETER Q 10 A_Scream
    ETER QQQQQQ 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER RRRRRR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_PlaySoundEx("legendary/strike","Voice",0,2)
	TNT1 A 0 A_SpawnItemEx("ELegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
    TNT1 A 0 A_SpawnItemEx("ELegendaryStrikeN")
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
    ETER SSSSSS 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER TTTTTT 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER UUUUUU 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER VVVVVV 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ETER WWWWWW 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryBFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Plasmatic Rifle",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10K",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryAmmoSphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Plasmatic Cannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryBFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryPowerShard",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("EnragedLegTimeFreezeSphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryTerminatorArmor",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Pyro Cannon",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,64)
	TNT1 A 0 A_DropItem("TrueLegendaryRune",1,32)
	TNT1 A 0 A_DropItem("EnragedLegendaryRune",1,128)
	ETER X 6 A_Fall
	ETER Y 2
	ETER Z -1 A_KillMaster
	Stop
  DeathMKII:
	//TNT1 A 0 A_GiveInventory("CDIFireFollowerDeath",1)
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ET2R QQQQQQ 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R RSRSRS 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R RSRSRS 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
    ET2R QRQRQR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
	TNT1 AA 0 A_SpawnItemEx("EnragedSentientDeathBomb",0,0,60,Random(-12,12),Random(-12,12),Random(2,15))
	ET2R Q 10 A_Scream
    ET2R QQQQQQ 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R RRRRRR 2 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_PlaySoundEx("legendary/strike","Voice",0,2)
	TNT1 A 0 A_SpawnItemEx("ELegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
    TNT1 A 0 A_SpawnItemEx("ELegendaryStrikeN")
	TNT1 A 0 A_SpawnItem("EnragedDeathBallMedium")
    ET2R SSSSSS 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R TTTTTT 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R UUUUUU 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R VVVVVV 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    ET2R WWWWWW 1 A_CustomMissile("EKaboomLN", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("EnragedGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryBFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Plasmatic Rifle",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10K",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Plasmatic Cannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryAmmoSphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryBFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryPowerShard",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("UnbelieveabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryTerminatorArmor",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("Enraged Legendary Pyro Cannon",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,64)
	TNT1 A 0 A_DropItem("TrueLegendaryRune",1,32)
	ET2R X 6 A_Fall
	ET2R Y 2
	ET2R Z -1 A_KillMaster
	Stop
	}
}

ACTOR INFEnragedLegendaryTerminator2 : INFEnragedLegendaryTerminator
{
Tag "\c[m6]Enraged\c- \c[z3]Legendary Terminator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("ELegCardinalFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_JumpIf(user_upgrade == 1,"SpawnMKII")
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	ETER A 2 A_Look
	TNT1 A 0 A_SpawnItem("EnragedBossSmokeSpawner",0,0,0,0)
	ETER B 2 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFCorruption : CorruptionStrength Replaces CorruptionStrength
{
Tag "\c[o3]Corruption\c-"
}

ACTOR INFCorruption2 : INFCorruption
{
Tag "\c[o3]Corruption\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItemEx("CorruptionWhiteFlamSpawner")
	DCS0 A 7 Bright A_Look
	Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFLordArchon : LordArchon Replaces LordArchon
{
Tag "\c[l6]Archon Lord\c-"
States
{
Death: 
	//TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"CheckStrength1")
	PYLD R 2 A_Scream
	PYLD RRRRRRRRRRR 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD SSSSSSSSSSS 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD TTTTTTTTTTT 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD R 2 A_NoBlocking 
	PYLD UUUUUUUUUUU 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD VVVWWW 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath") 
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,250)
	TNT1 A 0 A_SpawnItemEx("UpgradedHellArmor",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NexusHighJumpRune",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryInvulnerabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	PYLD XXXYYY 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath") 
	PYLD Z -1 A_KillMaster
	Stop
	CheckStrength1: 
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"CheckStrength2")
	TNT1 A 0 A_Jump(256,"NormalDeath")
	Goto NormalDeath
	CheckStrength2: 
	TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"VoidGodPossession")
	TNT1 A 0 A_Jump(256,"NormalDeath")
	Goto NormalDeath
	NormalDeath: 
	PYLD R 2 A_Scream
	PYLD RRRRRRRRRRR 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD SSSSSSSSSSS 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD TTTTTTTTTTT 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD R 2 A_NoBlocking 
	PYLD UUUUUUUUUUU 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD VVVWWW 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath") 
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,250)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NexusHighJumpRune",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryInvulnerabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	PYLD XXXYYY 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath") 
	PYLD Z -1 A_KillMaster
	Stop
	VoidGodPossession: 
	PYLD R 2 A_Scream
	PYLD RRRRRRRRRRR 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD SSSSSSSSSSS 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD TTTTTTTTTTT 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD R 2 A_NoBlocking 
	PYLD UUUUUUUUUUU 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath")
	PYLD VVVWWW 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath") 
	PYLD XXXYYY 2 A_SpawnItemEx("LordArchonFlameSpawnerDeath") 
	TNT1 A 0 A_SpawnItemEx("VoidGodBeaconActive",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_Print("The God Of The Void Is Eager To Face You!")
	PYLD Z -1 A_KillMaster
	Stop
	} 
}

ACTOR INFLordArchon2 : INFLordArchon
{
Tag "\c[l6]Archon Lord\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	PYLD A 10 A_Look 
	Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFLordOfInsanity : LordOfInsanity Replaces LordOfInsanity
{
Tag "\c[i7]Xar'ath, Lord of Insanity\c-"
States
{
  Death:
    //TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"CheckStrength1")
	DCS3 R 8
	DCS3 R 8 A_Scream
	DCS3 R 8 A_SetTranslucent(0.9,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.8,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.7,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,250)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NexusResistanceRune",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_Playsound("BFlan/LightningExp",7)
	TNT1 AAAAAA 0 A_SpawnItemEx("RedParticleSpawner", 0, 0, random(30,100), 0, 0, 0, 0, 128)  
	TNT1 AAAAAA 0 A_CustomMissile("SmokeFX", random(30,60), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAAA 0 A_CustomMissile("Kaboom18",random(30,60),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedDTBFGEx",0,0,50)
	TNT1 A 0 Radius_Quake(20,8,0,12,0)
	DCS3 R 8 A_SetTranslucent(0.6,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.5,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.4,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.3,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.2,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.1,0)
	TNT1 A 1 A_SetTranslucent(1,0)
	TNT1 A -1 A_KillMaster
	Stop
	CheckStrength1: 
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"CheckStrength2")
	TNT1 A 0 A_Jump(256,"NormalDeath")
	Goto NormalDeath
	CheckStrength2: 
	TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"VoidGodPossession")
	TNT1 A 0 A_Jump(256,"NormalDeath")
	Goto NormalDeath
    NormalDeath:
	DCS3 R 8
	DCS3 R 8 A_Scream
	DCS3 R 8 A_SetTranslucent(0.9,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.8,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.7,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,250)
	TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("NexusResistanceRune",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("HellfireUltrasphere",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_Playsound("BFlan/LightningExp",7)
	TNT1 AAAAAA 0 A_SpawnItemEx("RedParticleSpawner", 0, 0, random(30,100), 0, 0, 0, 0, 128)  
	TNT1 AAAAAA 0 A_CustomMissile("SmokeFX", random(30,60), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAAA 0 A_CustomMissile("Kaboom18",random(30,60),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedDTBFGEx",0,0,50)
	TNT1 A 0 Radius_Quake(20,8,0,12,0)
	DCS3 R 8 A_SetTranslucent(0.6,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.5,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.4,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.3,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.2,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.1,0)
	TNT1 A 1 A_SetTranslucent(1,0)
	TNT1 A -1 A_KillMaster
	Stop
	VoidGodPossession:
	DCS3 R 8
	DCS3 R 8 A_Scream
	DCS3 R 8 A_SetTranslucent(0.9,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.8,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.7,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_NoBlocking
	TNT1 A 0 A_Playsound("BFlan/LightningExp",7)
	TNT1 AAAAAA 0 A_SpawnItemEx("RedParticleSpawner", 0, 0, random(30,100), 0, 0, 0, 0, 128)  
	TNT1 AAAAAA 0 A_CustomMissile("SmokeFX", random(30,60), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAAA 0 A_CustomMissile("Kaboom18",random(30,60),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedDTBFGEx",0,0,50)
	TNT1 A 0 Radius_Quake(20,8,0,12,0)
	DCS3 R 8 A_SetTranslucent(0.6,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.5,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.4,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.3,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("VoidGodBeaconActive",0,0,64,random(1,8),0,2,random(0,360),0,0)
	DCS3 R 8 A_SetTranslucent(0.2,0)
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 R 8 A_SetTranslucent(0.1,0)
	TNT1 A 1 A_SetTranslucent(1,0)
	TNT1 A 0 A_Print("The God Of The Void Is Eager To Face You!")
	TNT1 A -1 A_KillMaster
	Stop
	}
}

ACTOR INFLordOfInsanity2 : INFLordOfInsanity
{
Tag "\c[i7]Xar'ath, Lord of Insanity\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
	DCS3 A 10 Bright A_Look 
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Hulk 982

ACTOR Hulk2 : Hulk
{
Tag "\c[x9]HULK\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    CBEP A 10 A_Look
	CBEP A 10 A_Look
	CBEI A 10 A_Look
	CBEI A 10 A_Look
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Sandstorm 983

ACTOR Sandstorm2 : Sandstorm
{
Tag "\c[v9]SandStorm (Resurrect attack of Nemesis Sentient!!!!!)\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("NemesisSentientFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_Playsound("NemesisSentient/Loop",7,1,1)
	NSNT AB 2 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFNewOverlord : NewOverlord Replaces NewOverlord
{
Tag "\c[g6]Overlord\c-"
}

ACTOR INFNewOverlord2 : INFNewOverlord
{
Tag "\c[g6]Overlord\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	OVER A 1
	TNT1 A 0 A_GiveInventory("IsAnHEMOverlord",1)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_SetUserVar("user_healcount",0)
	TNT1 A 0 A_SetUserVar("user_RestHealCounter",0)
	TNT1 A 0 A_SetUserVar("user_ammoss",0)
	TNT1 A 0 A_SetUserVar("user_Mcounter",0)
	TNT1 A 0 A_SetUserVar("user_pcounter",0)
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
  SpawnLoop:
	OVER A 10 A_Look
	TNT1 A 0 A_JumpIfHealthLower(ACS_NamedExecuteWithResult("Hem_SpawnHealth"),"Idle")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFEvaccanniaDOOM : EvaccanniaDOOM Replaces EvaccanniaDOOM
{
Painchance 40
Tag "\c[w2]Evaccannia DOOM!!"
}

ACTOR INFNewCorruptedLegendaryCardinal : NewCorruptedLegendaryCardinal Replaces NewCorruptedLegendaryCardinal
{
  DropItem "CorruptedSyringe" 200 1
  DropItem "Randomcorrupteditem" 150 1
  DropItem "LegAmmoSphere", 128, 5
  DropItem "LegDemonRune", 80, 1
  DropItem "BossLifeEssence", 192
  DropItem "BossArmorBonusMax", 192
  DropItem "DemonicChalice", 128, 1
  DropItem "TrueLegendaryUltraSphere", 256, 1
  DropItem "CorruptedSphere" 256 1
  Dropitem "D-BFG", 256
  Dropitem "DCellPack", 256, 32
  Dropitem "DCellPack", 128, 24
  Dropitem "DCell", 256, 10
  Dropitem "DCell", 256, 10
  Dropitem "DCell", 256, 10
  DropItem "LegAmmoSphere", 128, 5
  DropItem "LegDemonRune", 80, 1
  DropItem "TrueLegendaryRune", 64, 1
  DropItem "BLG", 255
  DropItem "BFG3500", 255
  DropItem "MarineDBFGBeacon", 128, 1
  DropItem "AncientRecall", 256, 1
Tag "\c[o7]Corrupted \c[z3]Legendary Cardinal\c-"
var int user_CLLesserCardinal;
States
{
  Missile:
    TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_Jump(128,"CLCHoaming","Railgun","BFG10K","CLC10kBall","CLCDBFG","BlueStorm","CLCBFG10k2","BigLightningGun")
	TNT1 A 0 A_Jump(87,"ComboCLCBFG","EyeLasers")
	TNT1 A 0 A_Jump(30,"SummonCLegLesserCardinal")
	Goto Normal
  SummonCLegLesserCardinal:
    TNT1 A 0 A_JumpIf(user_CLLesserCardinal >= 5,"EyeLasers")	 
    TNT1 A 0 A_SetUserVar("user_CLLesserCardinal",user_CLLesserCardinal+1)
	TNT1 A 0 A_PlaySound("CLC/Rekt",2)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("BlueCardinalRagingSmokeSpawner",0,0,64)
	CLCA E 5 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardinalRagingSmokeSpawner",0,0,64)
	CLCA E 5 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardinalRagingSmokeSpawner",0,0,64)
	CLCA E 5 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardinalRagingSmokeSpawner",0,0,64)
	CLCA E 5 Bright A_FaceTarget
	TNT1 A 0 Radius_Quake(40,10,0,40,0)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SpawnItemEx("CorruptLegSentLightning2",Random(300,-300),Random(300,-300),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	CLCA E 4 A_SpawnItemEx("CorruptedLegendaryLesserCardinal",0,0,0,0,0,0,random(-300,300),SXF_SETMASTER|SXF_NOCHECKPOSITION)
    Goto See
   Death: 
    //TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"CheckStrength1")
	//TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"CheckStrength1")
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_PlaySound("CLC/death", CHAN_AUTO, 1.0, False, ATTN_NONE)
	CLCA H 10 A_Scream
	CLCA I 10 A_NoBlocking
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HHHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HHIIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JJJJJ 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA KKKKK 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA LLLLL 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA MMMMM 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA MMMMM 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA NNNNN 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA NNNNN 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("CorruptLegendaryNuke")
    TNT1 A 0 A_Explode(8000,1642,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)
    CLCA L 5
	//TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
    TNT1 A -1 Bright A_KillMaster
    Stop
	CheckStrength1: 
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"DivinePossession")
	TNT1 A 0 A_Jump(256,"NormalDeath")
	Goto NormalDeath
	DivinePossession: 
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_PlaySound("CLC/death", CHAN_AUTO, 1.0, False, ATTN_NONE)
	CLCA H 10 A_Scream
	CLCA I 10 A_NoBlocking
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HHHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HHIIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JJJJJ 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA KKKKK 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA LLLLL 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA MMMMM 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA MMMMM 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA NNNNN 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA NNNNN 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("CorruptLegendaryNuke")
    TNT1 A 0 A_Explode(8000,1642,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)
    CLCA L 5
	//TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	TNT1 A 200
	TNT1 A 10 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
    TNT1 A 10
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 A 5
	TNT1 A 0 A_SpawnItemEx("DivineGodCardinal",0,0,16,0,0,0,0,32,SXF_NOCHECKPOSITION)
    TNT1 A -1 Bright A_KillMaster
    Stop
	NormalDeath: 
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_PlaySound("CLC/death", CHAN_AUTO, 1.0, False, ATTN_NONE)
	CLCA H 10 A_Scream
	CLCA I 10 A_NoBlocking
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HHHHH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HHIIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA HIHIH 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JIJIJ 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA JJJJJ 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA KKKKK 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA LLLLL 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA MMMMM 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA MMMMM 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA NNNNN 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    CLCA NNNNN 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("CorruptLegendaryNuke")
    TNT1 A 0 A_Explode(8000,1642,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)
    CLCA L 5
	//TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
    TNT1 A -1 Bright A_KillMaster
    Stop
      } 
}

ACTOR INFNewCorruptedLegendaryCardinal2 : INFNewCorruptedLegendaryCardinal
{
Tag "\c[o7]Corrupted \c[z3]Legendary Cardinal\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("SpawnFireOnActor2",0,2) //Remember that these scrips exist
	TNT1 A 0 A_SetUserVar("user_script",1)
    CLCA A 2 Bright A_Look
    CLCA B 2 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFCorruptedLegendarySentient : CorruptedLegendarySentient Replaces CorruptedLegendarySentient
{
  DropItem "CorruptedSyringe" 200 1
  DropItem "Randomcorrupteditem" 150 1
  DropItem "LegAmmoSphere", 128, 5
  DropItem "LegDemonRune", 80, 1
  DropItem "BossLifeEssence", 192
  DropItem "BossArmorBonusMax", 192
  DropItem "DemonicChalice", 128, 1
  DropItem "TrueLegendaryUltraSphere", 256, 1
  DropItem "CorruptedSphere" 256 1
  Dropitem "D-BFG", 256
  Dropitem "DCellPack", 256, 32
  Dropitem "DCellPack", 128, 24
  Dropitem "DCell", 256, 10
  Dropitem "DCell", 256, 10
  Dropitem "DCell", 256, 10
  DropItem "LegAmmoSphere", 128, 5
  DropItem "LegDemonRune", 80, 1
  DropItem "TrueLegendaryRune", 64, 1
  DropItem "BLG", 255
  DropItem "MarineDBFGBeacon", 128, 1
  DropItem "AncientRecall", 256, 1
Tag "\c[o7]Corrupted \c[z3]Legendary Sentient\c-"
States
{
  Death:
    CL2T A 0 A_SetUserVar("user_deathloop",0)
    CL2T H 2 Bright A_Scream
	CL2T A 0 A_NoBlocking
	CL2T A 0 A_JumpIf(user_deathloop >= 65, "Death2")
	CL2T H 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	CL2T A 0 A_SetUserVar(user_deathloop, user_deathloop+1)
	Goto Death+3
  Death2:
    TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAAAAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 A 0 A_SpawnItem("T3DBFGBoltExp")
    CL2T A 0 A_SetUserVar("user_deathloop",0)
	CL2T A 0 A_JumpIf(user_deathloop >= 65,"IamDed")
	CL2T I 2 A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	CL2T A 0 A_SetUserVar(user_deathloop, user_deathloop+1)
	Goto Death2+12
  IamDed:
	CL2T JKLM 10 Bright
	TNT1 AAAAAAAA 0 A_SpawnItemEx("BlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAAAAAAAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAAAAAAAAAA 0 A_CustomMissile("SmokeFX3", random(10,60), random(30,-30), random(0,360), 2, random(0,360))	
    TNT1 A 0 A_SpawnItem("CorruptLegendaryNuke")
    TNT1 A 0 A_Explode(8000,1642,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)
	//TLSN A 0 A_Jump(254,1)
    //TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
    //TNT1 A -1 Bright A_KillMaster
	TNT1 A 1
	Stop
	}
}

ACTOR INFCorruptedLegendarySentient2 : INFCorruptedLegendarySentient
{
Tag "\c[o7]Corrupted \c[z3]Legendary Sentient\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("CorruptSentientFire",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	CL2T AB 2 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFCerebralCommander : NewCerebralCommander Replaces NewCerebralCommander
{
  DropItem "BossLifeEssence" 256 25
  DropItem "BossArmorBonusMax" 256 1
  DropItem "DemonAmmoBox" 128 200
  DropItem "CommanderArmor" 256 1
  DropItem "CommanderSuperSphere" 256 1
  DropItem "CommanderSuperSphere" 128 1
  DropItem "PhaseSphere"
  DropItem "BigGas" 256 100
  Dropitem "HellsExpensiveContract", 200, 1
Tag "\ctCerebral \cmCommander\c-"
States
{
  See:
    TNT1 A 0 A_JumpIf(user_dbfg == 1, "see2")
    TNT1 A 0 A_JumpIfHealthLower(7500,"DBFGUpgrade")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"DBFGUpgrade")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"DBFGUpgrade")
	TNT1 A 0 A_JumpIfInTargetInventory("NewDBFGButIsPurple",1,"DBFGUpgrade") //Updated
	TNT1 A 0 A_JumpIfInTargetInventory("CommanderD-BFGUpgrade",1,"DBFGUpgrade")
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("CommieSmokeSpawner",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
    TNT1 A 0 ACS_NamedExecuteAlways("CommanderSky")
	TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,605)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnSetInvulnerable
	COMM A 2 Bright A_Chase
	COMM B 2 Bright A_Chase
	TNT1 A 0 A_Jump(35,"Evade")	
	TNT1 A 0 A_Jump(20,"Teleport")
	Loop
  DBFGUpgrade:
    TNT1 A 0 A_SetInvulnerable
    TNT1 A 0 A_ChangeFlag(NOPAIN,1)
    TNT1 A 0 A_PlaySound("Commander/Laugh")
    TNT1 A 0 A_PlaySound("Weapons/dbfgfire", CHAN_AUTO)
    TNT1 A 0 A_SetUserVar("user_dbfg",1)
    TNT1 A 0 A_GiveInventory("CommanderDBFGUpgrade",1)
    TNT1 A 0 A_ChangeFlag(ALWAYSFAST,1)
    COMM A 30 Bright A_FaceTarget    
    TNT1 A 0 A_SpawnItem("CommanderBrainSFX",0,0,0,0)
    TNT1 A 0 A_PlaySound("DMBall/Impact",0,1.0,0,ATTN_NONE)
    SLAY A 25 Bright A_SpawnItemEx("BlackDeathSequence",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
    TNT1 A 0 A_ChangeFlag(NOPAIN,0)
    TNT1 A 0 A_UnSetInvulnerable
    Goto see
  Pain:
	//TNT1 A 0 A_Jump(20,"PainResurrect")
	TNT1 A 0 A_Jump(10,"Freeze")
	TNT1 A 0 A_Jump(128,"PainMissile")
	COMM A 3 Bright
	COMM A 3 Bright A_Pain	
	Goto See
  PainMissile:
	COMM A 3 Bright
	COMM A 3 Bright A_Pain
	Goto Missile
  Death:
TNT1 A 0 A_SpawnItemEx("PainLordSoul",0,0,64,random(0,8),random(0,8),2,0,0,0)
TNT1 A 0 A_SpawnItemEx("PyroCannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
TNT1 A 0 A_SpawnItemEx("BlackHole Generator",0,0,64,random(0,8),0,2,random(1,360),0,0)
TNT1 A 0 A_SpawnItemEx("Demon Tech Shotgun",0,0,64,random(0,8),0,2,random(1,360),0,0)
TNT1 A 0 A_SpawnItemEx("CommanderExpMinigunUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
TNT1 A 0 A_SpawnItemEx("CommanderDTShotgunUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(0,8),random(0,8),2,0,0,0)
TNT1 A 0 A_SpawnItemEx("CommanderDevUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
TNT1 A 0 A_SpawnItemEx("NewDBFG",0,0,64,random(0,8),0,2,random(1,360),0,0)
TNT1 A 0 A_SpawnItemEx("CommanderD-BFGUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
TNT1 A 0 A_SpawnItemEx("SkullOfPower",0,0,64,random(1,8),0,2,random(0,360),0,0)
TNT1 A 0 A_SpawnItemEx("DemonicChalice",0,0,64,random(1,8),0,2,random(0,360),0,0)
TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,64,random(1,8),0,2,random(0,360),0,64)
TNT1 A 0 A_Scream
TNT1 A 0 A_Fall
TNT1 A 0 A_ChangeFlag(Nogravity,1)
TNT1 A 0 A_ChangeFlag(float,1)
    SLAY A 40 A_FaceTarget
SLAY AAA 4 A_SpawnItemEx("CerebralCommanderIllusion",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
TNT1 A 0 A_HideThing
TNT1 A 0 A_PlaySound("DMBall/Impact",0,1.0,0,ATTN_NONE)
TNT1 A 0 A_SpawnItemEx("CommTeleportFXSpawner",0,0,62)
TNT1 A 0 A_SpawnItemEx("BlackDeathSequence",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
TNT1 A 0 ACS_ExecuteAlways(668,0)
TNT1 A -1 A_KillMaster
Stop
}
}

ACTOR INFCerebralCommander2 : INFCerebralCommander
{
Tag "\ctCerebral \cmCommander\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("CommieSmokeSpawner",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	COMM A 2 Bright A_Look
	COMM B 2 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("SpiderMastermind",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Mokou 989

ACTOR Mokou2 : Mokou
{
Tag "\c[w6]Mokou\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_SpawnItemEx("MokouAura",0,0,0,0,0,0,0,SXF_SETMASTER)
  SpawnLoop:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_Gravity
	TNT1 A 0 A_ChangeFlag("NODAMAGE",1)
	TNT1 A 0 A_ChangeFlag("FLOAT",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    ZMOK ABCDEFG 3 A_LookEx(LOF_FULLVOLSEESOUND,0,0,0,360,"See2")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Tarmidhes 990

ACTOR TarmidhesHosavo2 : TarmidhesHosavo
{
Tag "\c[g8]Tarmidhes Hosavo\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
    TRMH A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	TRMH A 10 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Nemesis Terminator 991

ACTOR NemesisTerminator2 : NemesisTerminator
{
Tag "\c[g3]Nemesis Terminator\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("NemTermFireBecauseIAmAlsoLazy",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	NTER A 10 A_Look
	TNT1 A 0 A_JumpIfHealthLower(22000,"Idle")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFNemHellsmith : NemHellsmithSpread Replaces NemHellsmithSpread
{
Health 16666 //14666 //13000 //15000 //16666 AGAIN
DamageFactor 0.45 //0.425 //0.45 //0.3
DamageFactor "TrueLegendaryDamage", 0.325
DamageFactor "TrueLegendaryPlayer", 0.325
Tag "\c[v9]Nemesis Hellsmith\c- dw I nerfed him :)"
DropItem "NemesisUnmaker", 256
	DropItem "NemesisSuperSphere" 215
	DropItem "TrueLegendaryRune" 65 1
	DropItem "NemesisHealthBonusMax", 256, 64
	DropItem "NemesisArmorBonus64", 256
	DropItem "NemesisHealthBonusMax", 256, 64
	DropItem "NemesisArmorBonus64", 256
	DropItem "NemesisSuperSphere" 215
    DropItem "NemesisAmmoSphere", 128, 1
    DropItem "LegDemonRune", 80, 1
    DropItem "LegendaryRune", 256, 1
    DropItem "LegendaryRune", 256, 1
    DropItem "DemonicChalice", 256, 1
    DropItem "SkullOfPower", 256, 1
    DropItem "NLDemonAmmo", 256
    DropItem "NLDemonAmmoBox", 256
	DropItem "Terminator", 70, 1
    DropItem "NemesisShell", 256
    DropItem "NemesisShellBox", 130
    DropItem "Nemesis Rifle", 200
	DropItem "BlurSphere", 256
    DropItem "Nemesis Plasmatic Cannon", 200
    DropItem "Nemesis Assault Shotgun", 200
    DropItem "Nemesis Sawed-Off Shotgun", 200
	DropItem "AncientRecall", 256, 1
	DropItem "FuelCore" 256 1
	DropItem "FuelCore" 256 1
	DropItem "FuelCore" 256 1
	DropItem "FuelCore" 256 1
	DropItem "UpgradedNemesisArmor", 256, 1
Tag "\c[v9]Nemesis Hellsmith\c- WHO iS NERFED NOW FOOL!?"
var int user_minions;
States
{
/*
  Spawn:
	NHTH A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
	*/
  See:
	//TNT1 A 0 ACS_NamedExecuteAlways("Hem_LightOnMap",0,1,64)
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,777)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIfInventory("RunesCheck",1,2)
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckRunes")
	TNT1 A 0 A_Jump(100,"Rush")
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	NHTH A 3 Bright A_Hoof
	NHTH A 3 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	NHTH BB 3 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	NHTH C 3 Bright A_Hoof
	NHTH C 3 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	NHTH DD 3 Bright A_Chase
	TNT1 A 0 A_Jump(50,"Teleport")
	Loop
  Rush:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Hoof
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2") //NemHellsmithGhost1
	NHTH A 2 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH A 2 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH A 2 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH B 2 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH C 2 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH C 2 Bright A_Chase
	TNT1 A 0 A_Hoof
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH D 2 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("NemesisGhost2")
	NHTH D 2 Bright A_Chase
	TNT1 A 0 A_Jump(25,"Teleport")
	TNT1 A 0 A_Jump(75,"See")	
	Loop
  Teleport:
	TNT1 A 0 A_SetInvulnerable
	NHTH A 1 Bright A_UnSetShootable
	TNT1 AAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	NHTH AAAAAAAAAA 1 Bright A_FadeOut(0.1,0)
	TNT1 A 2 Bright
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 1 Bright A_PlaySound("boss/teleport",6)
	TNT1 AAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	NHTH AAAAAAAAAA 1 Bright A_FadeIn(0.1)
	TNT1 A 0 A_UnSetInvulnerable
	NHTH A 1 Bright A_SetShootable
	Goto See
  Melee:
	NHTH B 0 A_Jump(128,"Melee2")
	NHTH E 6 A_FaceTarget
	NHTH F 1 A_Playsound ("monster/hamswg")
	NHTH F 5 A_FaceTarget
	NHTH G 10 A_CustomMeleeAttack (Random(50,75),"monster/hamhit","monster/hamflr","MinotaurDamage")
	Goto See
  Melee2:
	NHTH J 6 A_FaceTarget
	NHTH K 1 A_Playsound ("monster/hamswg")
	NHTH K 5 A_FaceTarget
	NHTH L 10 A_CustomMeleeAttack (Random(50,75),"monster/hamhit","monster/hamflr","MinotaurDamage")
	Goto See
  Missile:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_Changeflag(REFLECTIVE,0)

	TNT1 A 0 A_Jump(96,"NHSComet","NemComets","Charge","NemesisShot","MiniNemesisGuruballs")
	TNT1 A 0 A_Jump(128,"Charge","NemTracer1","NemMeteor")
	TNT1 A 0 A_Jump(256,"NemMeteorStorm","NemBFG","NemComets","LightningStorm","Charge","NemesisRain","FiendBigBall")
	goto see
  NemMeteor:
	NHTH EF 8 A_FaceTarget
	TNT1 A 0 A_CustomBulletAttack(0,0,1,0,"NemMeteorTarget")
	TNT1 A 0 A_Playsound ("monster/hamswg")
	NHTH G 7 Bright 
	NHTH JK 8 A_FaceTarget
	TNT1 A 0 A_CustomBulletAttack(0,0,1,0,"NemMeteorTarget")
	TNT1 A 0 A_Playsound ("monster/hamswg")
	NHTH L 7 Bright 
	NHTH EF 8 A_FaceTarget
	TNT1 A 0 A_CustomBulletAttack(0,0,1,0,"NemMeteorTarget")
	TNT1 A 0 A_Playsound ("monster/hamswg")
	NHTH G 7 Bright
	NHTH JK 8 A_FaceTarget
	TNT1 A 0 A_CustomBulletAttack(0,0,1,0,"NemMeteorTarget")
	TNT1 A 0 A_Playsound ("monster/hamswg")
	NHTH L 7 Bright
    Goto See
  NemMeteorStorm:
	NHTH E 10 Bright A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySound("NemesisMotaur/Attack",2)
	NHTH EEEEEEEEEEE 3 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH EEEEEEEEEEE 3 Bright A_SpawnItem("NemesisSmithFlameSpawner2",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_UnsetInvulnerable
	NHTH EF 8 A_FaceTarget
	TNT1 A 0 A_CustomBulletAttack(0,0,1,0,"NemMeteorStormTarget")
	TNT1 A 0 A_Playsound ("monster/hamswg")
	NHTH G 7 Bright 
	TNT1 A 0 A_Playsound ("monster/hamflr")
    Goto See
  NemBFG: //Since this attack is basically a one-shot, the time before he starts shooting has been extended.
    NHTH J 8 A_FaceTarget
    TNT1 A 0 A_SpawnItemEx("NemesisLightning") //Furthermore, I left a signal to show that he will use this attack.
	NHTH J 15 A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	NHTH JK 12 A_FaceTarget
	NHTH L 12 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 12 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 10 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 9 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 8 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 7 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 6 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 5 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 4 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 3 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 2 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("monster/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_Playsound ("weapons/rocklx")
	NHTH L 1 Bright A_CustomBulletAttack(5,5,10,0,"NemesisHitScanShot")
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_Jump(128,"NemComets","Charge","NemesisShot","NemTracer1")
	TNT1 A 0 A_Jump(100,"NHSComet","NemMeteorStorm","LightningStorm","NemesisRain","NemMeteor","Charge","NemComets","FiendBigBall")
	Goto See
  NemComets:
	TNT1 A 0 A_SetInvulnerable
	NHTH E 6 Bright A_FaceTarget
	NHTH H 6 A_PlaySound ("monster/hamswg")
	NHTH H 0 A_PLaySound ("weapons/crtrail")
	NHTH I 1 Bright A_CustomMissile("NemHellsmithComet",64,0,0)  
	NHTH I 0 A_CustomMissile("NemHellsmithComet",64,0,-4)
	NHTH I 1 Bright A_CustomMissile("NemHellsmithComet",64,0,4)
	NHTH I 0 A_CustomMissile("NemHellsmithComet",64,0,-8)
	NHTH I 1 Bright A_CustomMissile("NemHellsmithComet",64,0,8)
	NHTH I 0 A_CustomMissile("NemHellsmithComet",64,0,-12)
	NHTH I 7 Bright A_CustomMissile("NemHellsmithComet",64,0,12)
	TNT1 A 0 A_Jump (128,1)
    Goto NemCometsEnd
	NHTH J 6 A_FaceTarget
	NHTH M 6 A_PlaySound ("monster/hamswg")
	NHTH M 0 A_PLaySound ("weapons/crtrail")
	NHTH N 6
	NHTH N 1 Bright A_CustomMissile("NemHellsmithComet",64,0,0)
	NHTH N 0 A_CustomMissile("NemHellsmithComet",64,0,-4)
	NHTH N 1 Bright A_CustomMissile("NemHellsmithComet",64,0,4)
	NHTH N 0 A_CustomMissile("NemHellsmithComet",64,0,-8)
	NHTH N 7 Bright A_CustomMissile("NemHellsmithComet",64,0,8)   
	NHTH NM 6 Bright A_FaceTarget
	TNT1 A 0 A_UnSetInvulnerable
  NemCometsEnd:
	TNT1 A 0 A_Jump(128,1)
	TNT1 A 0 A_Jump(128,"Charge","NemesisShot","NemTracer1","MiniNemesisGuruballs")
	TNT1 A 0 A_Jump(100,"NHSComet","NemMeteorStorm","LightningStorm","NemesisRain","NemMeteor","Charge","NemBFG","NemComets","FiendBigBall")
	Goto See 
  NemTracer1:
	TNT1 A 0 A_Jump(128,"NemTracer2")
	NHTH E 6 A_FaceTarget
	NHTH F 1 A_Playsound ("monster/hamswg")
	NHTH F 5 A_FaceTarget
	NHTH G 0 A_CustomMissile("NemTracer",0,0,30,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,60,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,90,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,120,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,150,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,180,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,210,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,240,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,270,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,300,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,330,0)
	NHTH G 0 A_CustomMissile("NemTracer",0,0,0,0)
	NHTH G 10 A_Playsound("monster/hamflr")
	TNT1 A 0 A_Jump(100,"NemComets","Charge")
	Goto See
  NemTracer2:
	NHTH J 6 A_FaceTarget
	NHTH K 1 A_Playsound ("monster/hamswg")
	NHTH K 5 A_FaceTarget
	NHTH L 0 A_CustomMissile("NemTracer",0,0,30,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,60,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,90,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,120,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,150,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,180,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,210,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,240,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,270,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,300,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,330,0)
	NHTH L 0 A_CustomMissile("NemTracer",0,0,0,0)
	NHTH L 10 A_Playsound("monster/hamflr")
	TNT1 A 0 A_Jump(100,"NemComets","Charge")
	Goto See
  NemesisShot:
	TNT1 A 0 A_SetInvulnerable
	NHTH E 8 A_FaceTarget
	NHTH H 8 A_PlaySound("monster/hamswg")
	NHTH I 0 A_PLaySound("weapons/hellfi") 
	NHTH I 0 A_CustomMissile("Nemesisshot2",52,0,0)
	NHTH I 0 A_CustomMissile("Nemesisshot2",52,0,8)
	NHTH I 12 A_CustomMissile("Nemesisshot2",52,0,-8)
	NHTH I 0 A_Jump(128,1)
	Goto NemesisShotEnd
	NHTH J 8 A_FaceTarget
	NHTH M 8 A_PlaySound("monster/hamswg")
	NHTH N 0 A_PlaySound("weapons/hellfi") 
	NHTH N 0 A_CustomMissile("Nemesisshot2",52,0,0)
	NHTH N 0 A_CustomMissile("Nemesisshot2",52,0,8)
	NHTH N 12 A_CustomMissile("Nemesisshot2",52,0,-8)
  NemesisShotEnd:
    TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(128,1)
	TNT1 A 0 A_Jump(128,"NemComets","Charge","NemTracer1","MiniNemesisGuruballs")
	TNT1 A 0 A_Jump(100,"NHSComet","NemMeteorStorm","lightningStorm","NemesisRain","NemMeteor","Charge","NemBFG","NemComets","FiendBigBall")
	Goto See
  FiendBigBall:
	TNT1 A 0 A_SetInvulnerable
	NHTH E 8 A_FaceTarget
	NHTH H 8 A_PlaySound("monster/hamswg")
	NHTH I 0 A_PLaySound("weapons/hellfi") 
	NHTH I 0 A_CustomMissile("NemesisFiendBigBall",52,0,0)
	NHTH I 0 A_CustomMissile("NemesisFiendBigBall",52,0,8)
	NHTH I 12 A_CustomMissile("NemesisFiendBigBall",52,0,-8)
	NHTH J 8 A_FaceTarget
	NHTH M 8 A_PlaySound("monster/hamswg")
	NHTH N 0 A_PlaySound("weapons/hellfi") 
	NHTH N 0 A_CustomMissile("NemesisFiendBigBall",52,0,0)
	NHTH N 0 A_CustomMissile("NemesisFiendBigBall",52,0,8)
	NHTH N 12 A_CustomMissile("NemesisFiendBigBall",52,0,-8)
    TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(128,1)
	TNT1 A 0 A_Jump(128,"NemComets","Charge","NemTracer1","MiniNemesisGuruballs")
	TNT1 A 0 A_Jump(100,"NHSComet","NemMeteorStorm","lightningStorm","NemesisRain","NemMeteor","Charge","NemBFG","NemComets","FiendBigBall")
	Goto See
  LightningStorm: //Why The Lightnings are Blue?
	NHTH E 10 Bright A_FaceTarget
	//NHTH E 0 A_SetReflectiveInvulnerable
	TNT1 A 0 A_PlaySound("NemesisMotaur/Attack",2)
	NHTH EEEEEEEEEEEEEEE 3 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH EEEEEEEEEEEEEEE 3 Bright A_SpawnItem("NemesisSmithFlameSpawner2",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_missile",0)
  LightningStormLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 20,"See")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	NHTH EF 3 Bright A_FaceTarget
	TNT1 A 0 Radius_Quake(40,10,0,40,0)	
	NHTH G 2 Bright A_PlaySound("monster/hamswg")
	TNT1 A 0 A_CustomMissile("NemesisLightningBolt",30,0,random(0,360))
	TNT1 A 0 A_SpawnItemEx("NemesisLightning2",Random(1250,-1250),Random(1250,-1250),-1000,0,0,0,SXF_NOCHECKPOSITION,0)
	NHTH G 6 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLightningBolt",30,0,random(0,360))
	NHTH F 6 Bright A_FaceTarget
    Loop
  NemesisRain:
	TNT1 A 0 A_SetInvulnerable
	NHTH E 2 Bright A_FaceTarget
	NHTH EEEEEEE 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH F 2 Bright A_FaceTarget
	NHTH FFFFFFF 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH F 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("NemesisMotaur/Attack",2)
	TNT1 A 0 A_CustomMissile("NemesisHKCometRain",32,0,200)
	TNT1 A 0 A_CustomMissile("NemesisHKCometRain",32,0,90)
	TNT1 A 0 A_CustomMissile("NemesisHKCometRain",32,0,90)
	TNT1 A 0 A_CustomMissile("NemesisHKCometRain",32,0,45)
	TNT1 A 0 A_CustomMissile("NemesisHKCometRain",32,0,-90)	
	TNT1 A 0 A_CustomMissile("NemesisHKCometRain",32,0,135)
	NHTH G 8 Bright //A_CustomMissile("NemesisGuruBall",32,0,0) Why?
	TNT1 A 0 A_SetInvulnerable
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	NHTH G 2 Bright A_FaceTarget
	NHTH GGGGGGGG 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(128,"Charge","NemTracer1","MiniNemesisGuruballs")
	TNT1 A 0 A_Jump(100,"NemMeteorStorm","LightningStorm","NHSComet","Charge","NemBFG","NemComets","NemMeteor","FiendBigBall")
	Goto See
  MiniNemesisGuruballs:
	NHTH E 1 Bright A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	NHTH EEEEEEEEEEEEEEEEE 3 Bright A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	NHTH H 1 Bright A_FaceTarget
	NHTH HHHHHHHHHHHHHHHHH 3 Bright A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
	NHTH H 4 A_PlaySound("monster/hamswg")
	TNT1 A 0 A_PLaySound("weapons/hellfi") 
	NHTH IIII 1 A_FaceTarget
	NHTH I 4 A_Custommissile("MiniNemesisBFGBall",64,0,0)

	NHTH J 8 A_FaceTarget
	NHTH M 4 A_PlaySound("monster/hamswg")
	TNT1 A 0 A_PLaySound("weapons/hellfi") 
	NHTH NNNN 1 A_FaceTarget
	NHTH N 4 A_Custommissile("MiniNemesisBFGBall",64,0,0)

	NHTH E 8 A_FaceTarget
	NHTH H 4 A_PlaySound("monster/hamswg")
	TNT1 A 0 A_PLaySound("weapons/hellfi") 
	NHTH IIII 1 A_FaceTarget
	NHTH I 4 A_Custommissile("MiniNemesisBFGBall",64,0,0)

	TNT1 A 0 A_Jump(128,"Charge","NemTracer1","MiniNemesisGuruballs")
	TNT1 A 0 A_Jump(100,"NemMeteorStorm","LightningStorm","NHSComet","Charge","NemBFG","NemComets","NemMeteor","FiendBigBall")
	Goto See
  Pain:
	NHTH P 10 A_Pain
	NHTH P 0 A_Jump(64,"SelfHeal")
	NHTH P 0 A_Jump(16,"MinotaurSpawner")
	Goto See
  MinotaurSpawner:
	TNT1 A 0 A_JumpIf(user_minions >= 5,"See")	 
	TNT1 A 0 A_ChangeFlag(INVULNERABLE,1)
	NHTH E 1 A_ChangeFlag(REFLECTIVE,1)
	TNT1 A 0 A_PlaySound("monster/smithw")
	NHTH EEEEEEEEEEEEEEEEE 2 Bright A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Playsound ("brain/spit")
	TNT1 A 0 A_Jump(256,"Minotaur1","Minotaur2","Minotaur3","Minotaur4")
  Minotaur1: //Apprentice
	TNT1 A 0 A_SpawnItemEx("CubeSpawner",0,100,20,30,0,0,Random(0,360),0)
    Goto MinotaurSpawnerEnd
  Minotaur2: //Apprentice 2 (wut)
	TNT1 A 0 A_SpawnItemEx("CubeSpawner2",0,100,20,30,0,0,Random(0,360),0)
    Goto MinotaurSpawnerEnd
  Minotaur3: //Frozen Apprentice
	TNT1 A 0 A_SpawnItemEx("CubeSpawner3",0,100,20,30,0,0,Random(0,360),0)
    Goto MinotaurSpawnerEnd
  Minotaur4: //Super Apprentice
	TNT1 A 0 A_SpawnItemEx("CubeSpawner4",0,100,20,30,0,0,Random(0,360),0)
  MinotaurSpawnerEnd:
	NHTH E 25 Bright
	TNT1 A 0 A_SetUserVar("user_minions",user_minions+1)
	TNT1 AAA 0 A_SpawnItem("NemesisSmithFlameSpawner",0,0,0,0)
	TNT1 A 0 A_ChangeFlag(INVULNERABLE,0)
	TNT1 A 0 A_ChangeFlag(REFLECTIVE,0)
	Goto See
  Death:
    TNT1 A 0         //No Nerf, no price to pay
	//Goto VexedSpawn //You wanted to nerf this guy huh? I included the nerf but this is the price you have to pay
	//TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("NewNemesis",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"VexedSpawn")
	TNT1 A 0 A_JumpIfInTargetInventory("Zen",1,"VexedSpawn")
  Death2:
	NHTH F 0 A_CustomMissile("NemPentaLine3",0,0,-72,2)
    NHTH F 0 A_CustomMissile("NemPentaLine3",0,0,-144,2)
    NHTH F 0 A_CustomMissile("NemPentaLine3",0,0,-216,2)
    NHTH F 0 A_CustomMissile("NemPentaLine3",0,0,-288,2)
    NHTH F 0 A_CustomMissile("NemPentaLine3",0,0,0,2)
    NHTH F 0 Radius_Quake(6,250,2,64,8)
    NHTH P 120 A_CustomMissile("NemSmithDFSpawner",0,0,0,0)
	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	NHTH Q 6 A_CustomMissile("NemSmithHammer",128,-40,-30,0)
	NHTH R 6 A_Scream
	NHTH STU 6 
	NHTH V 6 A_NoBlocking 
	NHTH X 6 
	NHTH X 6 
	NHTH Y 100 
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,128)
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillMaster
	NHTH Y -1 
    Stop
  VexedSpawn:
	TNT1 A 0 A_Stopsound(7)
	TNT1 A 0 A_Stopsound(5)
	TNT1 A 0 A_RemoveChildren(1)
	NHTH P 3 Bright A_Pain
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	TNT1 A 0 A_PlaySound("brain/spit",7)
	NHTH PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NHTH PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NHTH PPPPPPPPPPPPPPPPPPPPPPP 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NHTH PPPPPPPPPPPPP 3 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NHTH PPPPPPPPPPPP 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("NemesisPatriarchLightning")
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 A 0 A_CustomMissile("NemSmithHammer",128,-40,-30,0)
	TNT1 A 0 A_CustomMissile("NemSmithHammer",128,40,30,0)
	VHTH SSSSSSSSSSSSSSS 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 ACS_NamedExecuteAlways("NemesisSky",0,0)
    //TNT1 A 0 ACS_NamedExecuteAlways("SetEnragedSky",0,3)
	TNT1 A 0 A_SpawnItemEx("VexedNemesisHellSmith",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
	//TNT1 A 0 A_SpawnItemEx("VexedNemesisArchonClone",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG) //emmmmmmm....
	TNT1 A 1 A_NoBlocking
	Stop
	}
}

ACTOR NemesisGhost2
{
	Radius 40
	Height 70
	Speed 1
	Damage 0
	RenderStyle Translucent
	Alpha 0.5
	PROJECTILE
	states
	{
	Spawn:
		NHTH A 35
		NHTH A 2 A_FadeOut(0.10)
		goto Spawn+1
   }
}

ACTOR INFNemHellsmith2 : INFNemHellsmith
{
Tag "\c[v9]Nemesis Hellsmith\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	NHTH AB 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	Death:
	   //TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"DivineTrasform")
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-72,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-144,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-216,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-288,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,0,2)
       BSMT F 0 Radius_Quake(6,250,2,64,8)
       BSMT P 250 A_CustomMissile("SmithDFSpawner",0,0,0,0)
	   TNT1 A 0 Bright A_Mushroom("HFCyberMushroomFireballs2",8)
	   TNT1 A 0 A_SpawnItemEx("HFCyberPyroBoom2")
       BSMT Q 6 A_CustomMissile("SmithHammer",128,-40,-30,0)
       BSMT Q 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT R 6 A_Scream
       BSMT R 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT STU 6
       BSMT V 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT V 6 A_NoBlocking 
       BSMT V 6 
       BSMT X 6
       BSMT X 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT Y -1 A_BossDeath 
	   Stop
	DivineTrasform:
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-72,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-144,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-216,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,-288,2)
       BSMT F 0 A_CustomMissile("PentaLine3",0,0,0,2)
       BSMT F 0 Radius_Quake(6,250,2,64,8)
       BSMT P 250 A_CustomMissile("SmithDFSpawner",0,0,0,0)
	   TNT1 A 0 Bright A_Mushroom("HFCyberMushroomFireballs2",8)
	   TNT1 A 0 A_SpawnItemEx("HFCyberPyroBoom2")
       BSMT P 10 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   BSMT P 0 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	   BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   BSMT P 0 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	   BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       BSMT P 10
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   BSMT P 10 
	   BSMT P 0 A_SpawnItemEx("NemesisLightning")
	   TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	   DSMT A 10
	   TNT1 A 0 A_SpawnItemEx("DivineHellsmith",0,0,64,random(1,8),0,2,random(0,360),0,0)
	   Stop
	}
}

Actor NemHellsmithComet : LegNobleComet
{
  Radius 6
  Height 12
  Speed 40
  Damage 10
  Scale 1.6
  +DONTHARMSPECIES
  +THRUGHOST
  +MTHRUSPECIES
  +NODAMAGETHRUST
  +FORCERADIUSDMG
  ExplosionDamage 80
  ExplosionRadius 128
  species "Cybers"
  DamageType "MinotaurDamage"
  DeathType "Fire"
  States
  {
  Spawn:
	NNCM AAAABBBBCCCC 1 Bright A_SpawnItemEx("NemesisLNCometTail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  Death:
    TNT1 A 0 A_Explode
    TNT1 A 0 A_SpawnItemEx("NemesisWhiteParticleSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    NNCM DE 3 Bright
    TNT1 A 1 A_SpawnItemEx("NemHellsmithCometDeath",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    Stop
	}
}

ACTOR NemHellsmithCometDeath : LNCometDeath
{
Scale 1.6
States
{
Spawn:
  TNT1 A 0
  TNT1 AAAA 0 A_SpawnItemEx("LegendaryDebris",0,0,Random(20,40),Random(4,-4),Random(4,-4),Random(4,8),0,SXF_CLIENTSIDE,0)
  TNT1 AAA 0 A_CustomMissile("WhiteNemesisKaboom",0,0,random(0,360),2,random(0,360))  
  TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX2",0,0,random(0,360),2,random(0,360))
  NNCM FFFGGGHHHIII 1 Bright A_FadeOut(0.065,1)
  Stop
}
}

//TLCAEX Vexed Nemesis Cyberdemon 993

ACTOR INFVexedNemesisSentient : NewVexedNemesisSentient Replaces NewVexedNemesisSentient
{
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "NemesisHealthBonusMax", 256, 64
DropItem "NemesisArmorBonus64", 256
DropItem "VexedNemesisUltraSphere"
DropItem "UpgradedVexedNemesisArmor"
DropItem "NemesisAmmoSphere", 256, 1
DropItem "NemesisTimeFreezeSphere", 256, 1
DropItem "LegDemonRune", 200, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "DemonicChalice", 256, 1
DropItem "SkullOfPower", 256, 1
DropItem "NemesisBulletBox" 256
DropItem "NemesisDMGBulletMag" 256
DropItem "NemesisDemonicEnergy", 256
DropItem "NemesisGreaterDemonicEnergy", 256
DropItem "NemesisShell", 256
DropItem "NemesisShellBox", 256
DropItem "NemesisDarkMachineGun", 256
DropItem "Nemesis Rifle", 200
DropItem "Nemesis Plasmatic Cannon", 200
DropItem "Nemesis Assault Shotgun", 200
DropItem "Nemesis Sawed-Off Shotgun", 200
DropItem "Zen", 100
DropItem "Nemesis BFG", 256
DropItem "Vexed Nemesis BFG", 256
DropItem "TrueLegendaryRune", 64, 1
DropItem "VexedNemesisRune", 120, 1
Tag "\c[w2]Vexed \c[v9]Nemesis \c[w2]Sentient\c-"
}

//Vexed Nemesis Hellsmith 995

ACTOR INFVexedNemesisCardinal : VexedNemesisCardinal Replaces VexedNemesisCardinal
{
DropItem "VexedNemesisUltraSphere"
DropItem "UpgradedVexedNemesisArmor"
DropItem "NemesisMegaSphere", 128
DropItem "NemesisArmorSphere", 256
DropItem "UnbelieveabilitySphere", 110
DropItem "TerminatorItem", 80, 1
DropItem "LegendaryRune2", 256, 1
DropItem "VitalityRune", 256, 1
DropItem "AgilityRune", 256, 1
DropItem "NexusNemesisRune", 256, 1
DropItem "NemesisAmmoSphere", 256, 1
DropItem "NemesisTimeFreezeSphere", 256, 1
DropItem "LegDemonRune", 200, 1
DropItem "DemonicChalice", 256, 1
DropItem "SkullOfPower", 256, 1
DropItem "NemesisBulletBox" 256
DropItem "NemesisDMGBulletMag" 256
DropItem "NemesisDemonicEnergy", 256
DropItem "NemesisGreaterDemonicEnergy", 256
DropItem "NemesisShell", 256
DropItem "NemesisShellBox", 256
DropItem "Nemesis Rifle", 256
DropItem "NemesisDarkMachinegun", 256
DropItem "Nemesis Plasmatic Cannon", 256
DropItem "Nemesis Assault Shotgun", 256
DropItem "Nemesis Sawed-Off Shotgun", 256
DropItem "Nemesis BFG", 256
DropItem "NemesisUnmaker", 128
DropItem "Nemesis", 128
DropItem "LegendarySalvationSphere", 256
DropItem "TrueLegendaryRune" 64 1
DropItem "VexedNemesisRune", 120, 1
Tag "\c[w2]Vexed \c[v9]Nemesis \c[w2]Cardinal\c-"
States
{
  Death:
    TNRD A 0 A_SetUserVar("user_deathloop",0)
    TNRD E 2 Bright A_Scream
	TNRD A 0 A_NoBlocking
	TNT1 A 0 A_RemoveChildren(1)
	TNRD EEEEE 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
  DeathLoop1:
	TNRD A 0 A_JumpIf(user_deathloop >= 5,"Death2")
	TNRD A 0 A_SetUserVar(user_deathloop, user_deathloop+1)
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNRD EFEFE 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	Loop
  Death2:
    TNRD A 0 A_SetUserVar("user_deathloop",0)
	TNRD GFGFG 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
  DeathLoop2:
	TNRD A 0 A_JumpIf(user_deathloop >= 5,"Death3")
	TNRD A 0 A_SetUserVar(user_deathloop, user_deathloop+1)
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNRD EFEFE 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	Loop
  Death3:
    TNRD A 0 A_SetUserVar("user_deathloop",0)
	TNRD GFGFG 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
  DeathLoop3:
	TNRD A 0 A_JumpIf(user_deathloop >= 8,"DeathEnd")
	TNRD A 0 A_SetUserVar(user_deathloop, user_deathloop+1)
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNRD GFGFG 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	Loop
  DeathEnd:
    TNRD A 0 A_SetUserVar("user_deathloop",0)
	TNRD GFGFG 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNRD EFEFE 2 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
    TNRD GGGGG 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNRD HHHHH 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNRD IIIII 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNRD JJJJJ 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNRD JJJJJ 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("NemesisBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNRD KKKKK 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNRD KKKKK 1 Bright A_CustomMissile("WhiteNemesisKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("NemesisGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
 	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 A 0 A_SpawnItem("VSentientDeath")
 	//TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	TNT1 A 100
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,128)
    TNT1 A 1 A_KillMaster
	Stop
	Null:
    TNT1 A 0 A_RemoveChildren(1)
    TNT1 A 1
    Stop
	}
}

//Vexed Nemesis Teminator 997

ACTOR INFTrueLegendaryCyberdemonNormal : NewTrueLegendaryCyberdemonNormal Replaces NewTrueLegendaryCyberdemonNormal
{
DropItem "LegGreaterDemonicEnergy" 256 
DropItem "LegDemonicEnergy" 256
DropItem "Legendary BFG" 256 1
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "LegendaryBossLifeEssence" 128
DropItem "LegendaryBossArmorBonusMax" 128
DropItem "DemonicChalice" 256
DropItem "Legendary Plasmatic Rifle" 256 1
DropItem "LegAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Legendary Assault Shotgun" 256 1
DropItem "LegendaryArmor" 256 1
DropItem "Legendary Plasmatic Cannon" 256 1 
DropItem "LegendarySphere" 256 1
DropItem "LegTimeFreezeSphere" 256
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 256
DropItem "LegendaryBulletBox" 256 
DropItem "LegendaryLMGBulletMag" 256 20
DropItem "Legendary Light Machine Gun" 256 1
DropItem "TrueLegendaryBFGUpgrade" 250 1
DropItem "LegendaryRune" 256 1
DropItem "LegendaryPowerSphere" 256 1
DropItem "LegendaryPowerShard" 256 1
DropItem "LegendaryCoachgun" 256 1
DropItem "LegendarySaber" 256 1
DropItem "TrueLegendaryUltraSphere" 256 1
DropItem "TrueLegendaryRune" 64 1
DropItem "LegendaryBFG10k" 256 1
DropItem "RareRandomTrueLegItems" 110 1
DropItem "TrueLegAmmoSphere" 256 1
DropItem "TrueLegTimeFreezeSphere" 256 1
DropItem "TrueLegendaryArmor" 120 1
DropItem "TrueLegendaryCell" 256 1
DropItem "TrueLegendaryCell" 128 1
DropItem "TrueLegendaryCellPack" 128 1
DropItem "LegendaryFusionCell" 128 1
DropItem "Legendary Pyro Cannon" 128 1
DropItem "True Legendary Plasmatic Cannon" 120 1
DropItem "UpgradedTrueLegendaryArmor" 150 1
Tag "\c[l5]True\c- \c[z3]Legendary Cyberdemon (Weak)\c-"
States
{
  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(4499,"LegendaryPortal")
	TNT1 A 0 A_JumpIfCloser(200,"Pain.Fists")
    TNT1 A 0 A_JumpIfCloser(300,"TrueLegendaryStomp")
	//TNT1 A 0 A_JumpIfCloser(350,"Leap")
    TNT1 A 0 A_Jump(130,"TrueLegendaryBFG10K","TrueLegendaryRailgun","LegendaryStar","Homing","StompingBarrage","LegRevBalls","LegCybComets","TrueLegPlasmaBalls","HomingTrueLegPlasmaBalls")
	TNT1 A 0 A_Jump(72,"TrueLegendaryLostSouls","TrueLegendarySoulCombo","LegendaryTech","LegendaryThunder","LegThor","TrueLegendaryBFG","TrueBFGCombo","TrueLegendaryDevastator","SpikyStomp")
	TNT1 A 0 A_Jump(32,"TrueLegendaryLaserBeam")
	TNT1 A 0 A_Jump(20,"SuperLegendaryPlasmaticBomb")
	TNT1 A 0 A_Jump(18,"LegendaryDevastation")
	TNT1 A 0 A_Jump(16,"LegendaryRage")
	//TNT1 A 0 A_Jump(256,"LegendaryDevastation")
  Normal:
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TNT1 A 0 A_Jump(128,"TrueLegendaryBFG10K","TrueLegendaryRailgun","LegendaryStar","Homing","LegRevBalls","LegCybComets","TrueLegPlasmaBalls","HomingTrueLegPlasmaBalls")
	Goto See
   Death:
      TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"DarkTransformation")
      TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"DarkTransformation")
      TNT1 A 0 A_StopSound(6)
	  TLCD G 10 Bright A_Scream
	  TLCD H 10 Bright
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGGGG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGHHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	  TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	  TNT1 A 0 A_SpawnItemEx("LegendaryNuke")
	  TLCD H 10
	  TLCD I 10
	  TLCD JKL 10
	  TLCD M 10 A_NoBlocking
	  TLCD NO 10
	  TLCD P 30
	  TLCD P -1 A_BossDeath
	  Stop
   DarkTransformation:
      TNT1 A 0 A_StopSound(6)
	  TLCD G 10 Bright
	  TLCD H 10 Bright
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGGGG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGHHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	  TLCD IHIHI 2
	  TNT1 A 0 A_SpawnItem("DarkTrueLegendaryballTransformation")
      TLCD H 360
	  DLCD A 10
	  TNT1 A 1 A_SpawnItemEx("TrueDarkLegendaryCyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	  Stop
	}
}

ACTOR INFTrueLegendaryCyberdemon : NewTrueLegendaryCyberdemon Replaces NewTrueLegendaryCyberdemon
{
DropItem "LegGreaterDemonicEnergy" 256 
DropItem "LegDemonicEnergy" 256
DropItem "Legendary BFG" 256 1
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "LegendaryBossLifeEssence" 128
DropItem "LegendaryBossArmorBonusMax" 128
DropItem "DemonicChalice" 256
DropItem "Legendary Plasmatic Rifle" 256 1
DropItem "LegAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Legendary Assault Shotgun" 256 1
DropItem "LegendaryArmor" 256 1
DropItem "Legendary Plasmatic Cannon" 256 1 
DropItem "LegendarySphere" 256 1
DropItem "LegTimeFreezeSphere" 256
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 256
DropItem "LegendaryBulletBox" 256 
DropItem "LegendaryLMGBulletMag" 256 20
DropItem "Legendary Light Machine Gun" 256 1
DropItem "TrueLegendaryBFGUpgrade" 250 1
DropItem "LegendaryRune" 256 1
DropItem "LegendaryPowerSphere" 256 1
DropItem "LegendaryPowerShard" 256 1
DropItem "LegendaryCoachgun" 256 1
DropItem "LegendarySaber" 256 1
DropItem "TrueLegendaryUltraSphere" 256 1
DropItem "TrueLegendaryRune" 64 1
DropItem "LegendaryBFG10k" 256 1
DropItem "TrueLegAmmoSphere" 256 1
DropItem "RareRandomTrueLegItems" 110 1
DropItem "TrueLegTimeFreezeSphere" 256 1
DropItem "TrueLegendaryArmor" 120 1
DropItem "TrueLegendaryCell" 256 1
DropItem "TrueLegendaryCell" 128 1
DropItem "TrueLegendaryCellPack" 128 1
DropItem "LegendaryFusionCell" 128 1
DropItem "Legendary Pyro Cannon" 128 1
DropItem "True Legendary Ion Striker" 120 1
DropItem "UpgradedTrueLegendaryArmor" 150 1
Tag "\c[l5]True\c- \c[z3]Legendary Cyberdemon\c-"
States
{
  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(4499,"LegendaryPortal")
	TNT1 A 0 A_JumpIfCloser(200,"Pain.Fists")
    TNT1 A 0 A_JumpIfCloser(300,"TrueLegendaryStomp")
	TNT1 A 0 A_JumpIfCloser(350,"Leap")
    TNT1 A 0 A_Jump(130,"TrueLegendaryBFG10K","TrueLegendaryRailgun","LegendaryStar","Homing","StompingBarrage","LegRevBalls","LegCybComets","TrueLegPlasmaBalls","HomingTrueLegPlasmaBalls")
	TNT1 A 0 A_Jump(72,"TrueLegendaryLostSouls","TrueLegendarySoulCombo","LegendaryTech","LegendaryThunder","LegThor","TrueLegendaryBFG","TrueBFGCombo","TrueLegendaryDevastator","SpikyStomp")
	TNT1 A 0 A_Jump(32,"TrueLegendaryLaserBeam")
	TNT1 A 0 A_Jump(20,"SuperLegendaryPlasmaticBomb")
	TNT1 A 0 A_Jump(18,"LegendaryDevastation")
	TNT1 A 0 A_Jump(16,"LegendaryRage")
	//TNT1 A 0 A_Jump(256,"LegendaryDevastation")
  Normal:
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
    TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TLCD E 3  Bright A_FaceTarget
    TLCD F 4 Bright A_CustomMissile("LegendaryRocket", 58, -26, Random(-2, 3))
	TNT1 A 0 A_Jump(128,"TrueLegendaryBFG10K","TrueLegendaryRailgun","LegendaryStar","Homing","LegRevBalls","LegCybComets","TrueLegPlasmaBalls","HomingTrueLegPlasmaBalls")
	Goto See
   Death:
      TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"DarkTransformation")
      TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"DarkTransformation")
      TNT1 A 0 A_StopSound(6)
	  TLCD G 10 Bright A_Scream
	  TLCD H 10 Bright
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGGGG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGHHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	  TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	  TNT1 A 0 A_SpawnItemEx("LegendaryNuke")
	  TLCD H 10
	  TLCD I 10
	  TLCD JKL 10
	  TLCD M 10 A_NoBlocking
	  TLCD NO 10
	  TLCD P 30
	  TLCD P -1 A_BossDeath
	  Stop
	  DarkTransformation:
      TNT1 A 0 A_StopSound(6)
	  TLCD G 10 Bright
	  TLCD H 10 Bright
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGGGG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GGHHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD GHGHG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("TrueDeathBall")
      TLCD IHIHI 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	  TLCD IHIHI 2
	  TNT1 A 0 A_SpawnItem("DarkTrueLegendaryballTransformation")
      TLCD H 360
	  DLCD A 10
	  TNT1 A 1 A_SpawnItemEx("TrueDarkLegendaryCyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	  Stop
	}
}

ACTOR INFTrueLegendaryCardinal : NewTrueLegendaryCardinal Replaces NewTrueLegendaryCardinal
{
DropItem "LDemonAmmoBox" 256 
DropItem "LDemonAmmo" 256
DropItem "Legendary BFG" 256 1
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "LegendaryBossLifeEssence" 128
DropItem "LegendaryBossArmorBonusMax" 128
DropItem "DemonicChalice" 256
DropItem "Legendary Plasmatic Rifle" 256 1
DropItem "LegAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Legendary Assault Shotgun" 256 1
DropItem "UpgradedTrueLegendaryArmor" 200 1
DropItem "Legendary Plasmatic Cannon" 256 1 
DropItem "LegendarySphere" 256 1
DropItem "LegTimeFreezeSphere" 256
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 256
DropItem "LegendaryBulletBox" 256 
DropItem "LegendaryLMGBulletMag" 256 20
DropItem "Legendary Light Machine Gun" 256 1
DropItem "TrueLegendaryBFGUpgrade" 250 1
DropItem "LegendaryRune" 256 1
DropItem "LegendaryPowerSphere" 256 1
DropItem "LegendaryPowerShard" 256 1
DropItem "LegendaryCoachgun" 256 1
DropItem "LegendarySaber" 256 1
DropItem "TrueLegendaryUltraSphere" 256 1
DropItem "TrueLegendaryRune" 64 1
DropItem "LegendaryBFG10k" 256 1
DropItem "TrueLegAmmoSphere" 256 1
DropItem "RareRandomTrueLegItems" 110 1
DropItem "TrueLegTimeFreezeSphere" 256 1
DropItem "TrueLegendaryCell" 256 1
DropItem "TrueLegendaryCell" 128 1
DropItem "TrueLegendaryCellPack" 128 1
DropItem "LegendaryFusionCell" 128 1
DropItem "True Legendary Ion Striker" 120 1
DropItem "Legendary Pyro Cannon" 120 1
Dropitem "Randomcontracttier4", 256, 1
Dropitem "Randomcontracttier3", 256, 1
Tag "\c[l5]True\c- \c[z3]Legendary Cardinal\c-"
States
{
  Missile:
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_JumpIf(user_SuperLegendaryPortal == 1,2)
    TNT1 A 0 A_JumpIfHealthLower(8500,"SuperLegendaryPortal")
	TNT1 A 0 A_JumpIf(user_SuperLegendaryPortal2 == 1,2)
	TNT1 A 0 A_JumpIfHealthLower(6500,"SuperLegendaryPortal2")
	TNT1 A 0 A_JumpIf(user_Enrage == 1,2)
	TNT1 A 0 A_JumpIfHealthLower(3500,"Enrage")
    TNT1 A 0 A_JumpIfHealthLower(3500,"Enraged")
    TNT1 A 0 A_Jump(128,"Railgun","BFG10K","LegendaryTech","DTBFG10K","LegRevAttack","CardinalLegendaryStorm","ThunderZone","Whirl")
	TNT1 A 0 A_Jump(87,"BlueStar","Devastator","LegendaryBFG","UltimateCombo","CardinalLegendaryBFG")
	TNT1 A 0 A_Jump(50,"FinalAttack","BFGCombo")
  Normal:
    TNT1 A 0 A_SetTranslucent(1)
    TLRD CCC 2 Bright A_FaceTarget  
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 3 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CC 2 Bright A_FaceTarget
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 3 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CC 2 Bright A_FaceTarget
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 3 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CC 2 Bright A_FaceTarget	  
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 3 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CC 2 Bright A_FaceTarget
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 2 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CC 2 Bright A_FaceTarget	  
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 2 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD C 2 Bright A_FaceTarget	  
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 2 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CC 2 Bright A_FaceTarget
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 2 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
    TLRD CC 2 Bright A_FaceTarget	  
	TLRD D 0 A_CustomMissile("LegendaryHomingRocket", 56, 26, Random(-8, 8))
    TLRD D 2 Bright A_CustomMissile("LegendaryHomingRocket", 56, -26, Random(-8, 8))
	TLRD D 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)
    TLRD CCC 2 Bright A_SpawnItem("TrueLegCardinalFireSpawner",0,0,0,0)	  
	TNT1 A 0 A_Jump(128,"Railgun","BFG10K","LegendaryTech","LegRevAttack","CardinalLegendaryStorm","ThunderZone","Whirl","DTBFG10K")
    Goto See
	Death: 
	  TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"DivineTransformation")
      TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"DivineTransformation")
      TNT1 A 0 A_StopSound(6)
	  TNT1 A 0 A_PlaySound("LegCardi/Death2", CHAN_AUTO, 1.0, False, ATTN_NONE)
	  TLRD E 10 A_Scream
	  TLRD F 10 A_NoBlocking
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EEEEE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EEFFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("DeathBall2")
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("DeathBall2")
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GGGGG 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD HHHHH 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD IIIII 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD JJJJJ 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD JJJJJ 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD KKKKK 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD KKKKK 1 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	  TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))
      TNT1 A 0 A_SpawnItem("LegendaryCardinalNuke")
      TNT1 A 0 A_Explode(8000,1642,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)
      TLRD L 5
	  TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
      TNT1 A -1 Bright A_KillMaster
      Stop
  DivineTransformation: 
      TNT1 A 0 A_StopSound(6)
	  TLRD E 10
	  TLRD F 10
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EEEEE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EEFFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))		
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD EFEFE 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
      TLRD GFGFG 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	  TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	  TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	  TLRD E 15
	  TLRD F 15
	  TNT1 A 0 A_SpawnItemEx("Bluelightning")
	  TLRD E 15
	  TLRD F 15
	  TLRD E 15
	  TNT1 A 0 A_SpawnItemEx("Bluelightning")
	  TLRD F 15
	  TLRD E 15
	  TLRD F 15
	  TNT1 A 0 A_SpawnItemEx("TrueLegCardinalThunder")
	  TLRD F 1
	  TNT1 A 0 A_SpawnItemEx("EFGFusionNukeFX",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	  TNT1 A 0 A_CustomMissile("TerminatorEFGFusionNukeExplode",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
	  ULRD A 15
	  TNT1 A 1 A_SpawnItemEx("DivineTrueLegendaryCardinal",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	  Stop
	}
}

//True Legendary Demolisher 1001

ACTOR INFTrueLegendarySentient : NewTrueLegendarySentient Replaces NewTrueLegendarySentient
{
DropItem "LegGreaterDemonicEnergy" 256 
DropItem "LegDemonicEnergy" 256
DropItem "Legendary BFG" 256 1
DropItem "Legendary Fusion Cannon" 128 1
DropItem "LegendaryFusionCell" 256
DropItem "BossLifeEssence" 256 
DropItem "BossArmorBonusMax" 256 
DropItem "SkullOfPower" 256
DropItem "Legendary Plasmatic Rifle" 256 1
DropItem "LegAmmoSphere" 256 1
DropItem "LegDemonRune" 256 1
DropItem "Legendary Assault Shotgun" 256 1
DropItem "LegendaryArmor" 256 1
DropItem "Legendary Plasmatic Cannon" 256 1 
DropItem "LegendarySphere" 256 1
DropItem "LegTimeFreezeSphere" 256
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 256
DropItem "LegendaryBulletBox" 256 
DropItem "LegendaryLMGBulletMag" 256 20
DropItem "Legendary Light Machine Gun" 256 1
DropItem "TrueLegendaryBFGUpgrade" 250 1
DropItem "DrainRune" 256
DropItem "LegendaryRune" 256 1
DropItem "LegendaryPowerSphere" 256 1
DropItem "LegendaryPowerShard" 256 1
DropItem "LegendaryCoachgun" 256 1
DropItem "LegendarySaber" 256 1
DropItem "TrueLegendaryUltraSphere" 256 1
DropItem "TrueLegendaryRune" 64 1
DropItem "LegendaryBFG10k" 256 1
DropItem "RareRandomTrueLegItems" 110 1
DropItem "TrueLegAmmoSphere" 256 1
DropItem "TrueLegTimeFreezeSphere" 256 1
DropItem "TrueLegendaryArmor" 120 1
DropItem "TrueLegendaryCell" 256 1
DropItem "TrueLegendaryCell" 128 1
DropItem "TrueLegendaryCellPack" 128 1
DropItem "LegendaryFusionCell" 128 1
DropItem "True Legendary Pulverizer" 120 1
Tag "\c[l5]True\c- \c[z3]Legendary Sentient\c-"
States
{
  Death:
    TLSN A 0 A_SetUserVar(user_tlsdelay, 0)
    TLSN H 2 Bright A_Scream
	TLSN A 0 A_NoBlocking
	TLSN A 0 A_JumpIf(user_tlsdelay >= 65, "Death2")
	TLSN H 2 Bright A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TLSN A 0 A_SetUserVar(user_tlsdelay, user_tlsdelay+1)
	Goto Death+3
  Death2:
    TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAAAAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TLSN A 0 A_SpawnItemEx("TrueDeathBall")
    TLSN A 0 A_SetUserVar(user_tlsdelay, 0)
	TLSN A 0 A_JumpIf(user_tlsdelay >= 65, "KamikazeDecide")
	TLSN I 2 A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TLSN A 0 A_SetUserVar(user_tlsdelay, user_tlsdelay+1)
	Goto Death2+12
  KamikazeDecide:
    TNT1 AAAA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)		
	TNT1 AAAAAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TLSN A 0 A_SpawnItemEx("TrueDeathBall")
    TLSN A 0 A_SetUserVar(user_tlsdelay, 0)
	TLSN A 0 A_JumpIfTargetInLOS(1)
	Goto NOKAMIKAZE4U
  KamikazeCharge:
	TLSN A 0 A_PlaySound("TrueLegSent/See", CHAN_AUTO, 1.0, False, ATTN_NONE)
	TLSN A 0 A_JumpIf(user_tlsdelay >= 40, "KamikazeGo")
    TLSN P 2 Bright A_FaceTarget
	TLSN A 0 A_CustomMissile("PainfulDeathKaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TLSN A 0 A_SpawnItemEx("LegendaryCyberFlameSpawner3",0,0,0,0,0,0,128)
	TLSN A 0 A_SpawnItemEx("TrueLegSentientFireSpawner",0,0,0,0,0,0,0,128)
	TLSN A 0 A_SetUserVar(user_tlsdelay, user_tlsdelay+1)
	Goto KamikazeCharge+1
  KamikazeGo:
    TLSN A 0 A_CustomMissile("TrueLegSentKamikaze", 48, 0, 0)
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	TNT1 A 1
	Stop
  NOKAMIKAZE4U:
	TLSN JKLM 10 Bright 
	TNT1 AAAAAAAA 0 A_SpawnItemEx("BlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAAAAAAAA 0 A_CustomMissile("BigBlueBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAAAAAAAAAA 0 A_CustomMissile("SmokeFX3", random(10,60), random(30,-30), random(0,360), 2, random(0,360))	
	TLSN A 0 A_SpawnItemEx("LegendaryNuke")
	TLSN A 0 A_Jump(254, 1)
    TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	//TLSN A 0 ACS_NamedExecuteAlways("TrueLegsentEnd")
	TNT1 A 1
	Stop
	}
}

ACTOR INFTrueLegendaryTerminator : TrueLegendaryTerminator Replaces TrueLegendaryTerminator
{
DropItem "TrueLegTimeFreezeSphere" 256 1
DropItem "TrueLegAmmoSphere" 256 1
DropItem "RareRandomTrueLegItems" 110 1
DropItem "TrueLegendaryArmor" 120 1
DropItem "TrueLegendaryCell" 256 1
DropItem "TrueLegendaryCell" 128 1
DropItem "TrueLegendaryCellPack" 128 1
DropItem "LegendaryFusionCell" 128 1
DropItem "Legendary Fusion Cannon" 128 1
DropItem "Legendary Pyro Cannon" 245 1
DropItem "TrueLegUpgradeSpawnerStrong" 256 1
DropItem "TrueLegendaryTerminatorArmor" 180 1
Tag "\c[l5]True\c- \c[z3]Legendary Terminator\c-"
States
{
  Death:
    TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"DarkTransform")
    TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"DarkTransform")
	TNT1 A 0
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TTER M 5 A_Scream
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER NNNNNNOOOOOO 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TNT1 A 0 A_SpawnItemEx("TrueLegTerminatorNukeDeath",0,0,0,0,0,0,0,SXF_SETMASTER,0)
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	TTER PPPPPPQQQQQQ 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER SSSSSSTTTTTT 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER UUUUUUVVVVVV 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TTER W 4 A_ChangeFlag("BRIGHT",0)
	TNT1 A 0 A_SpawnItemEx("BlackHole Generator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("Terminator",0,0,8,0,0,0,0,0,192)
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,64,random(0,8),0,2,random(1,360),0,192)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryBfgUpgrade",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BadLegendaryRevolver",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Assault Shotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryCoachgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryQuadShotgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Light Machine Gun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Rifle",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Railgun",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("LegendaryBFG10K",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary Plasmatic Cannon",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Legendary BFG",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(0,8),0,2,random(0,360),0,160)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(0,8),0,2,random(0,360),0,80)
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryUltraSphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("LegendaryInvulnerabilitySphere",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("True Legendary Railgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("True Legendary Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,64)
	TNT1 A 0 A_DropItem("TrueLegendaryRune",1,64)
	TTER "X" 6 A_Fall
	TTER "Y" 6
	TTER "Z" 1 A_Playsound("Terminator/terstepA",CHAN_BODY)
	TTER "Z" 5 A_Bossdeath
	TNT1 A 0 A_KillMaster
	TTER "[" -1
	Stop
  DarkTransform:
	TNT1 A 0
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TTER LLLLLLLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TTER M 5 A_Scream
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER NNNNNNLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TNT1 A 0 ACS_NamedExecuteAlways("SetDefaultSky")
	TTER NNNNNNLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER NNNNNNLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("LegBlueGibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TTER NNNNNNLLLLLL 3 Bright A_CustomMissile("PainfulDeathKaboom",random(10,60),random(30,-30),random(0,360),2,random(0,360))
	TNT1 A 0 A_Bossdeath
	TNT1 A 0 A_KillMaster
	TNT1 A 0 A_SpawnItem("DarkTrueLegendaryballTransformation")
    TTER L 360
	DTER A 10
	TNT1 A 1 A_SpawnItemEx("TrueDarkLegendaryTerminator",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	Stop
	}
}

//Terror Zombie 1004

ACTOR TerrorZombie2 : TerrorZombie
{
Tag "\c[g3]Terror Dullahan Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(175,"Remove") // 200
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_JumpIf(user_aurascript == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("TerrorAuraSpawnerZombie",0)
	TNT1 A 0 A_SetUserVar("user_aurascript",1)
	TNT1 A 0
	Goto SpawnLoop
	}
}

ACTOR TerrorZombieRing : TerrorZombie
{
Tag "\c[g3]Terror Dullahan Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(190,"Remove") //230
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SignetOfNecromancyCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_JumpIf(user_aurascript == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("TerrorAuraSpawnerZombie",0)
	TNT1 A 0 A_SetUserVar("user_aurascript",1)
	TNT1 A 0
    Goto SpawnLoop
	}
}

//Terror Shaman Imp 1005

ACTOR TerrorShamanImp2 : TerrorShamanImp //Infinity exclusive
{ //Scripted (TerrorShamanImp2 and TerrorShamanImpRing can cause them to not disappear when spawning boss minions)
Tag "\c[g3]Terror Shaman Imp\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("IsTSISpawned") == 1,"Remove")
    TNT1 A 0 A_Jump(230,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 ACS_NamedExecuteAlways("TerrorAuraSpawnerZombie",0)
	TNT1 A 0 A_SetUserVar(user_mastertid,ACS_NamedExecuteWithResult("Hem_GetTID"))
	TNT1 A 0 Thing_ChangeTid(0,user_mastertid)
	TNT1 A 0 A_SetUserVar("user_summondelay",0)
	TNT1 A 0 A_SetUserVar("user_activetimer",30)
	TNT1 A 0 A_SetUserVar("user_cooldowntimer",50)
	TNT1 A 0 A_SetUserVar("user_stage",1)
	TNT1 A 0 A_SpawnItemEx("TSIOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("TSIOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("TSIOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
  SpawnLoop:
	TNT1 A 0 A_JumpIf(user_spawnghost == 1,3)
	TNT1 A 0 A_JumpIf(user_tic >= 100,"SpawnGhost")
	TNT1 A 0 A_SetUserVar("user_tic",user_tic+Random(1,5))
    1TSI A 10 Bright A_Look
	1TSU A 10 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ImpSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR TerrorShamanImpRing : TerrorShamanImp2 //Featured in normal spawners except for Infinity
{ //Scripted (TerrorShamanImp2 and TerrorShamanImpRing can cause them to not disappear when spawning boss minions)
Tag "\c[g3]Terror Shaman Imp\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("IsTSISpawned") == 1,"Remove")
    TNT1 A 0 A_Jump(190,"Remove") //230
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SignetOfNecromancyCheck") == 2,1)
	Goto Remove
	TNT1 A 0 ACS_NamedExecuteAlways("TerrorAuraSpawnerZombie",0)
	TNT1 A 0 A_SetUserVar(user_mastertid,ACS_NamedExecuteWithResult("Hem_GetTID"))
	TNT1 A 0 Thing_ChangeTid(0,user_mastertid)
	TNT1 A 0 A_SetUserVar("user_summondelay",0)
	TNT1 A 0 A_SetUserVar("user_activetimer",30)
	TNT1 A 0 A_SetUserVar("user_cooldowntimer",50)
	TNT1 A 0 A_SetUserVar("user_stage",1)
	TNT1 A 0 A_SpawnItemEx("TSIOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("TSIOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("TSIOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
  SpawnLoop:
	TNT1 A 0 A_JumpIf(user_spawnghost == 1,3)
	TNT1 A 0 A_JumpIf(user_tic >= 100,"SpawnGhost")
	TNT1 A 0 A_SetUserVar("user_tic",user_tic+Random(1,5))
    1TSI A 10 Bright A_Look
	1TSU A 10 Bright A_Look
	Loop
	}
}

//Zamasu Cyberdemon 1006

ACTOR ZamasuCyberDemon2 : ZamasuCyberDemon
{
Tag "\c[s5]Zamasu Cyberdemon\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(140,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
    TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
    ZANI A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	ZANI A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	ZANN A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
	ZANN A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner",0,0,0,0)
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Pain 1007

ACTOR "Pain2" : "Pain"
{
Tag "\c[g3]Gatekeeper Of Pain\c-"
States
{
Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
idle:
    //TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	GATE C 10 Bright A_Look
    TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
    GATE D 10 Bright A_Look
    TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
	}
}


ACTOR INFMagaReimu : MagaReimu Replaces MagaReimu //Test this
{
Tag "\c[d7]Maga-Reimu\c-"
States
{
  See:
	TNT1 A 0 A_NoGravity
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("FLOAT",1)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	//TNT1 A 0 A_RadiusGive("MainyuHateCheck",6000,RGF_MONSTERS)
	TNT1 A 0 A_JumpIf(user_music == 1,6) //6 instead of 3
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,736)
	TNT1 A 0 A_Jump(256,2)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,711)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIf(user_rage == 1,"SeeRage")
	TNT1 A 0 A_FadeIn(1.0)
	TNT1 A 0 A_JumpIfHealthLower(3000,"StartRage")
	TNT1 A 0 A_Jump(30,"Teleport","Teleport2")
    MREI AAABBBCCCDDD 1 A_Chase
	TNT1 A 0 A_Jump(30,"Teleport","Teleport2")
	MREI EEEFFFGGGHHH 1 A_Chase
    Loop
	}
}

ACTOR INFMagaReimu2 : INFMagaReimu
{
Tag "\c[d7]Maga-Reimu\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_Gravity
	TNT1 A 0 A_ChangeFlag("NODAMAGE",1)
	TNT1 A 0 A_ChangeFlag("FLOAT",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    MREI I 1 A_LookEx(LOF_FULLVOLSEESOUND,0,0,0,360,"See2")
	Loop
	}
}

ACTOR INFHibachi : Hibachi Replaces Hibachi
{
    DropItem "DivinePowerSphere" 256
    DropItem "TrueLegendaryRune" 64 1
    Dropitem "Legendary BFG" 255
    Dropitem "LDemonAmmoBox" 255
    Dropitem "Truelegendarybfgupgrade" 128
    Dropitem "TrueLegendaryUltraSphere" 128
    Dropitem "TrueLegAmmoSphere" 128 //TXS
    Dropitem "TrueLegTimeFreezeSphere" 128 //TXS
    DropItem "BossArmorBonusMax", 256, 32
    DropItem "BossLifeEssence", 256
    DropItem "BossArmorBonusMax", 256, 32
    DropItem "BossLifeEssence", 256
    DropItem "LegendaryPowerSphere" 96
    Dropitem "LegendaryPowerShard" 96
	DropItem "RingOfRegeneration" 128
	DropItem "DivineContract" 256
	DropItem "TearofEternity" 256
tag "\c[l5]Hibachi!!"
}

ACTOR INFHibachi2 : INFHibachi
{
tag "\c[l5]Hibachi!!"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "BegoneThot")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto BegoneThot
	TNT1 A 0 ACS_NamedExecuteAlways("Kazumi_HibachiFire",0)
  SpawnLoop:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag("NODAMAGE",1)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	KF0I ABCDEFGHIJ 3 A_LookEX(LOF_FULLVOLSEESOUND,0,0,0,360,"Prepare")
	Loop
	}
}

ACTOR INFMainyu : Mainyu Replaces Mainyu
{
Tag "\c[d8]Spenta Mainyu\c-"
States
{
  Null:
    TNT1 A 0 A_RemoveChildren(1)
	TNT1 A 0 ACS_NamedExecuteAlways("ResetSky",0)
	TNT1 A 1
	Stop
	}
}

ACTOR INFMainyu2 : INFMainyu
{
Tag "\c[d8]Spenta Mainyu\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_Gravity
	TNT1 A 0 A_ChangeFlag("NODAMAGE",1)
	TNT1 A 0 A_ChangeFlag("FLOAT",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    MAIS A 1 A_LookEx(LOF_FULLVOLSEESOUND,0,0,0,360,"See2")
	Loop
	}
}

//Nemesis Remilia 1011

ACTOR NemesisRemilia2 : NemesisRemilia
{
Tag "\c[v9]Nemesis \c[p1]Remilia\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,2)
	TNT1 A 0 A_Jump(164,2)
	TNT1 A 0 A_SetUserVar("user_vexedupgrade",1)
	TNT1 A 0 ACS_NamedExecuteAlways("NMAuraSpawner",0)
	TNT1 A 0 ThrustThingZ(0,2,0,1)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SetUserVar(user_mastertid,ACS_NamedExecuteWithResult("Hem_GetTID"))
	TNT1 A 0 Thing_ChangeTid(0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube1",0,0,0,0,0,0,0,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube2",0,0,0,0,0,0,120,SXF_SETMASTER,0,user_mastertid)
	TNT1 A 0 A_SpawnItemEx("RemiliaOrbitCube3",0,0,0,0,0,0,240,SXF_SETMASTER,0,user_mastertid)
	XRE1 ABC 4 A_Look
	TNT1 A 0 A_PlaySound("wings/flap")
	XRE1 DEFGH 4 A_Look
	TNT1 A 0 A_Stop
	TNT1 A 0 A_Jump(128,"Idle")
  SpawnLoop:
    XRE1 ABC 4 A_Look //Ex(LOF_FULLVOLSEESOUND,0,0,0,360,"See")
	TNT1 A 0 A_PlaySound("wings/flap")
	XRE1 DEFGH 4 A_Look
	Loop
	}
}

//Spooky Rank (range 2000 - 3000)

//JitterSkull 2001
//HellFrostBite 2002
//Corrupt 2003
//Clowny 2004
//Bloodeye 2005
//WeaverBonnie 2006
//Exetior 2007 - 2008


//Event Rank (Range 3000 - 4501)

//Suicide Bomber Present Spawn 3001

//No Sound 3498
//Samara 3499 & 3500
//No Sound 3501

//Transformation Rank (Range 4501 - 4999)

//True Legendary Cyber/Annihilator transformation 4501