//Rank 0 = No (Red-Green-Yellow) runes in player's possession
//Rank 1 = One RGY rune in player's possession
//Rank 2 = Two RGY runes in player's possession
//Rank 3 = Three RGY runes in player's possession
//Rank 4 = True legenary rune in player's possession (meant to also work outside of simple progression)


//Rank 0 Low Tier (priority 1 - 100)

ACTOR INFLegendaryImp : NewLegendaryImp Replaces NewLegendaryImp
{
Tag "\c[z3]Legendary Imp\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg") //40
  Death2:
    TNT1 A 0 A_StopSound(6)
	LEGN I 8
    LEGN J 8 A_Scream
    LEGN K 6
    LEGN L 6 A_NoBlocking
    LEGN M 1
	TNT1 A 0 A_Jump(64,3) //TNT1 A 0 A_Jump(164,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SignetAvaliableTokensCheck") == 2,2)
	TNT1 A 0 A_JumpIfInTargetInventory("SignetActiveToken",1,"SignetResurrect")
    LEGN N -1
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LEGN G 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGN I 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGN J 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGN K 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGN L 5 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGN M 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGN N 140
	LEGN N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LEGN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LEGN N 5 A_SpawnItem("BlueLightning")
	TEGN NMLKJIG 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryImp",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LEGN N 100 A_ChangeFlag(FRIENDLY,1)
	LEGN N 200 A_SpawnItem("SignetRessurectionFire")
	LEGN N 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LEGN NMLKJIG 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryImp",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

ACTOR INFLegendaryPhaseImp : NewLegendaryPhaseImp Replaces NewLegendaryPhaseImp
{
Tag "\c[z3]Legendary Phase Imp\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	LPHA I 8 A_SetTranslucent(1)
	LPHA J 8 A_Scream
	LPHA K 6
	LPHA L 6 A_Fall
	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")
	LPHA M -1
	Stop
  TrueLeg:
    LPHA J 4 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LPHA I 4 A_SetTranslucent(1)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPHA J 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPHA J 4 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPHA K 6 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPHA L 6 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPHA M 140
	LPHA M 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LPHA MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LPHA M 5 A_SpawnItem("BlueLightning")
	TPHA MLKJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryPhaseImp",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LPHA M 100 A_ChangeFlag(FRIENDLY,1)
	LPHA M 200 A_SpawnItem("SignetRessurectionFire")
	LPHA M 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LPHA MLKJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryPhaseImp",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

//Legendary Catharsi 3

//Legendary Soul 4

ACTOR INFLegendaryRevolverZombie : NewLegendaryRevolverZombie Replaces NewLegendaryRevolverZombie
{
Tag "\c[z3]Legendary Revolver Zombie\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	TNT1 A 0 A_StopSound(6)
    LRZD U 5 
    LRZD V 5 A_Scream
    LRZD W 5 A_Fall
	LRZD "X" 5 
    LRZD "Y" 5 A_SpawnItem("BodyCrash",0,0,0,0)
	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")
    LRZD "Z" -1
    Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LRZD U 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LRZD V 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LRZD W 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LRZD "X" 5 
    LRZD "Y" 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LRZD "Z" 140
	LRZD "Z" 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LRZD ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LRZD "Z" 5 A_SpawnItem("BlueLightning")
	TRZD ZYXWVU 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryRevolverZombie",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LRZD "Z" 100 A_ChangeFlag(FRIENDLY,1)
	LRZD "Z" 200 A_SpawnItem("SignetRessurectionFire")
	LRZD "Z" 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LRZD ZYXWVU 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryRevolverZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

Actor INFNewLegendaryRevolverZombie3 : INFLegendaryRevolverZombie Replaces NewLegendaryRevolverZombie3
{
Tag "\c[z3]Legendary Revolver Zombie\c-"
States
{
  Spawn:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LGRZ A 10 Bright A_Look
    TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LGRI A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    Loop
	}
}

ACTOR INFLegendaryCowboy : NewLegendaryCowboy Replaces NewLegendaryCowboy
{
Tag "\c[z3]Legendary Cowboy\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
	LWGU H 5 A_Scream
    LWGU I 5 A_Fall
    LWGU J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LWGU K 5
	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")
    LWGU L -1 
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LWGU H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LWGU I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LWGU J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LWGU K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LWGU L 140
	LWGU L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LWGU LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LWGU L 5 A_SpawnItem("BlueLightning")
	TWGU LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryCowboy",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LWGU L 100 A_ChangeFlag(FRIENDLY,1)
	LWGU L 200 A_SpawnItem("SignetRessurectionFire")
	LWGU L 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LWGU LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryCowboy",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

ACTOR INFLegendaryAssaultCaptain : NewLegendaryAssaultCaptain Replaces NewLegendaryAssaultCaptain
{
Tag "\c[z3]Legendary Assault Captain\c-"
States
{	
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	TNT1 A 0 A_StopSound(6)
    LASG H 5
    LASG I 5 A_Scream
    LASG J 5 A_Fall
    LASG J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LASG K 5
	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")
    LASG L -1
    Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LASG H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LASG I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LASG J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LASG K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LASG L 140
	LASG L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LASG LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LASG L 5 A_SpawnItem("BlueLightning")
	TASG LKJHG 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryAssaultCaptain",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LASG L 100 A_ChangeFlag(FRIENDLY,1)
	LASG L 200 A_SpawnItem("SignetRessurectionFire")
	LASG L 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LASG LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryAssaultCaptain",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

ACTOR INFLegendaryLieutenant : NewLegendaryLieutenant Replaces NewLegendaryLieutenant
{
Tag "\c[z3]Legendary Lieutenant\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	TNT1 A 0 A_StopSound(6)
	LSZX H 6 A_Scream
	LSZX I 6 A_ChangeFlag("BRIGHT",0)
	LSZX J 6 A_Fall
	LSZX K 6 A_SpawnItem("BodyCrash",0,0,0,0)
	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")
	LSZX L -1
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSZX H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LSZX I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LSZX J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LSZX K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LSZX L 140
	LSZX L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LSZX LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSZX L 5 A_SpawnItem("BlueLightning")
	TSSZ LKJHG 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryLieutenant",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LSZX L 100 A_ChangeFlag(FRIENDLY,1)
	LSZX L 200 A_SpawnItem("SignetRessurectionFire")
	LSZX L 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LSZX LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryLieutenant",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

Actor INFNewLegendaryLieutenant3 : INFLegendaryLieutenant replaces NewLegendaryLieutenant3
{
Tag "\c[z3]Legendary Lieutenant\c-"
States
{
  Spawn:
	LSZX A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("LHellionSmokeSpawner")
	Loop
	}
}

//Legendary Annihilator Imp 9

ACTOR INFLegendarySuperShotgunZombie : NewLegendarySuperShotgunZombie Replaces NewLegendarySuperShotgunZombie
{
Tag "\c[z3]Legendary Super Shotgun Zombie\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
	LES2 H 5 A_Scream
    LES2 I 5 A_Fall
    LES2 J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LES2 K 5
	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")
    LES2 L -1 
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LES2 H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LES2 I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LES2 J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LES2 K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LES2 L 140
	LES2 L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LES2 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LES2 L 5 A_SpawnItem("BlueLightning")
	TES2 LKJHG 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendarySuperShotgunZombie",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LES2 L 100 A_ChangeFlag(FRIENDLY,1)
	LES2 L 200 A_SpawnItem("SignetRessurectionFire")
	LES2 L 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LES2 LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendarySuperShotgunZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

ACTOR INFLegendaryZombie : NewLegendaryZombie Replaces NewLegendaryZombie
{
Tag "\c[z3]Legendary Zombie\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DisableTLegZomb") == 1, "Death2")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
	LPOS H 5 A_Scream
    LPOS I 5 A_Fall
    LPOS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LPOS K 5
	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")
    LPOS L -1 
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LPOS H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPOS I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPOS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPOS K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LPOS L 140
	LPOS L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LPOS LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LPOS L 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
	TLZO LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryZombie",0,0,16,0,0,0,0,32)
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LPOS L 100 A_ChangeFlag(FRIENDLY,1)
	LPOS L 200 A_SpawnItem("SignetRessurectionFire")
	LPOS L 40 Bright A_SpawnItem("SignetRessurectionFlame")
    LPOS L 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LPOS LKJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

//Legendary Jetpack Zombie 12

//Legendary Leader 13

//Legendary Pro Shotgunner 14

//Legendary Plasma Gunner 15

//Legendary Segway 16

//Epic Legendary Zombie 17

ACTOR EpicLegendaryZombie2 : EpicLegendaryZombie
{
Tag "\c[m5]Epic \c[z3]Legendary Zombie\c-"
States
{
Spawn:
    TNT1 A 0 NoDelay A_Jump(130,"Remove")
Idle:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(user_thruster == 1,4)
	TNT1 A 0 ThrustThingZ(0,13,0,1)
	TNT1 A 0 ACS_NamedExecuteAlways("SpawnFireOnActor3", 0, 1)
	TNT1 A 0 A_SetUserVar("user_thruster",1)
    LPOS A 10 Bright A_Look
    LPOS Q 10 Bright A_Look
    Loop
	}
}

ACTOR INFLegendaryQuadShotgunZombie : LegendaryQuadShotgunZombie Replaces LegendaryQuadShotgunZombie
{
Tag "\c[z3]Legendary Quad-Shotgun Zombie\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	LQSZ H 6 A_Scream
	LQSZ I 6 A_ChangeFlag("BRIGHT",0)
	LQSZ J 6 A_Fall
	LQSZ K 6 A_SpawnItem("BodyCrash",0,0,0,0)
	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")
	LQSZ L -1
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LQSZ H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LQSZ I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LQSZ J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LQSZ K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LQSZ L 140
	LQSZ L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LQSZ LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LQSZ L 5 A_SpawnItem("BlueLightning")
	TQSZ LKJHG 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryQuadShotgunZombie",0,0,16,0,0,0,0,32)
	Stop
  XDeath:
	TNT1 A 0 A_ChangeFlag("BRIGHT",0)
	LQSZ O 5 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
	LQSZ P 5 A_XScream
	LQSZ Q 5 A_Fall
	LQSZ RSTUV 5
	LQSZ W -1
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LQSZ L 100 A_ChangeFlag(FRIENDLY,1)
	LQSZ L 200 A_SpawnItem("SignetRessurectionFire")
	LQSZ L 40 Bright A_SpawnItem("SignetRessurectionFlame")
    LQSZ L 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    LQSZ LKJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryQuadShotgunZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
	}
}

//Legendary Railgun Zombie 19

//Legendary Devastator Zombie 20

ACTOR INFLegendaryChainsawZombie : LegendaryChainsawZombie Replaces LegendaryChainsawZombie
{
Tag "\c[z3]Legendary Chainsaw Zombie\c-"
  DropItem "LegendarySyringe" 100 1
  DropItem "Legendary Chainsaw", 200, 1
  DropItem "LegendaryCell", 250
  DropItem "LegendaryCellPack", 125
  DropItem "LegendaryArmor" 90 1
  DropItem "LegAmmoSphere" 93 1
  DropItem "HandGrenadeAmmo" 235 2
  DropItem "MineAmmo" 240 2
  DropItem "Backpack" 200 1
  DropItem "Armorplate" 210 1
  DropItem "Portablemedkit" 215 1
  DropItem "StimKit" 220 3
  DropItem "HealthFlask" 225 5
  DropItem "LegendaryRune", 50, 1
  DropItem "LegendaryPowerShard" 35 1
  DropItem "LegendaryPowerSphere" 35 1
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 AAA 0
	TNT1 AAA 0 A_StopSound(CHAN_WEAPON)
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	LCSZ H 5 A_Scream
	LCSZ I 5 A_Fall
	LCSZ J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	LCSZ KL 5
	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")
	LCSZ M 63000 CanRaise
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LCSZ M 100 A_ChangeFlag(FRIENDLY,1)
	LCSZ M 200 A_SpawnItem("SignetRessurectionFire")
	LCSZ M 40 Bright A_SpawnItem("SignetRessurectionFlame")
    LCSZ LKJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryChainsawZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
  TrueLeg:
	TNT1 AAA 0 A_StopSound(CHAN_WEAPON)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LCSZ H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCSZ I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCSZ J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCSZ K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCSZ L 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCSZ M 140
	LCSZ M 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LCSZ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LCSZ M 5 A_SpawnItem("BlueLightning")
	TCSZ MLKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryChainsawZombie",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryStealthTrooper : NewLegendaryStealthTrooper Replaces NewLegendaryStealthTrooper
{
Tag "\c[z3]Legendary Stealth Trooper\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_Jump(36,"LegendarySoul") 
	TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_StopSound(6)
	LCMD H 5 A_Scream
    LCMD I 5 A_Fall
    LCMD J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LCMD K 5
	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")
    LCMD L -1 
	Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LCSZ L 100 A_ChangeFlag(FRIENDLY,1)
	LCSZ L 200 A_SpawnItem("SignetRessurectionFire")
	LCSZ L 40 Bright A_SpawnItem("SignetRessurectionFlame")
    LCSZ KJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryStealthTrooper",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LCMD H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCMD I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCMD J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCMD K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCMD L 140
	LCMD L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LCMD LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LCMD L 5 A_SpawnItem("BlueLightning")
	TCMD LKJHG 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryStealthTrooper",0,0,16,0,0,0,0,32)
	Stop
	}
}

//HEM Legendary Stealth Trooper 23

Actor NewNewLegendaryCommando : NewLegendaryCommando replaces NewLegendaryCommando //50/50 chance to spawn VSM tleg commando if Agony is enabled
{
Tag "\c[z3]Legendary Commando\c-"
States
{
  Death:
TNT1 A 0
TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
LCOS H 5 A_Scream
    LCOS I 5 A_Fall
    LCOS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LCOS KLM 5
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")
    LCOS U -1 
Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LCOS U 100 A_ChangeFlag(FRIENDLY,1)
LCOS U 200 A_SpawnItem("SignetRessurectionFire")
LCOS U 40 Bright A_SpawnItem("SignetRessurectionFlame")
    LCOS MLKJIH 15 Bright
TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryCommando",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
TNT1 A 0 A_Jump(128,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("MonsterSelection") == 2,"FakeTrueLeg")
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
LCOS H 5 A_Scream
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS I 5 A_Fall
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS K 5
    LCOS LM 5 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS U 140
LCOS U 0 A_PlaySoundEx("brain/spit","Voice",0,2)
LCOS UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
LCOS U 5 A_SpawnItem("BlueLightning")
TCOS NMLKJHG 15 Bright
TNT1 A 1 A_SpawnItemEx("INFNewTrueLegendaryCommando",0,0,16,0,0,0,0,32)
Stop
  FakeTrueLeg:
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
LCOS O 5 A_Scream
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS P 5 A_Fall
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS R 5 A_SpawnItem("BodyCrash",0,0,0,0)
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS S 5
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
LCOS T 5
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
LCOS T 5
TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LCOS T 140
LCOS T 0 A_PlaySoundEx("brain/spit","Voice",0,2)
LCOS TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
TNT1 A 0 A_PlaySound("tlcmdo/resurr")
TLCO TSRQPO 15 Bright
    TLCO H 20 Bright A_SpawnItemEx("TrueLegendaryCommando", 0, 0, 32, 2, 3, 1, 0, SXF_NOCHECKPOSITION)
TLCO H 20 Bright A_SpawnItemEx("TrueLegendaryCommando", 0, 0, 32, 2, 3, 1, 0, SXF_NOCHECKPOSITION)
TNT1 A 1
Stop
    }
}

//Stone Legendary Commando 25

ACTOR INFLegendaryGeneral : NewLegendaryGeneral Replaces NewLegendaryGeneral //RCFSNXCOM Tweaks
{
Tag "\c[z3]Legendary General\c-"
States
{
  Spawn:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE A 10 Bright A_Look
	TNT1 A 0 A_PlayWeaponSound("Leg10K/Idle")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE Z 10 Bright A_Look
    Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,3007)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TNT1 A 0 A_PlayWeaponSound("Leg10K/Idle")
	LEGE A 0 A_JumpIfTargetInLOS("Strafing")
	LEGE AABB 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
    TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE A 0 A_JumpIfTargetInLOS("Strafing")
    LEGE CCDD 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE A 0 A_Jump(80,"Rush")
    TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    Loop
  Strafing:
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LEGE AA 3 Bright A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LEGE BB 3 Bright A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
    LEGE CC 3 Bright A_GiveInventory("LegZombieStrafing",1)	
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	LEGE DD 3 Bright A_GiveInventory("LegZombieStrafing",1)
	Goto See
  Missile:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_Jump(100,"BFG10K")
	TNT1 A 0 A_JumpIfCloser(200,"LegNade")
  Normal:
	TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/ACharge")
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	LEGE E 6 Bright A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/AFire")
	TNT1 A 0 A_CustomMissile("LGeneral15KProjectile",30,0,random(-4,4),0)
	LEGE F 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/AFire")
	TNT1 A 0 A_CustomMissile("LGeneral15KProjectile",30,0,random(-4,4),0)
	LEGE F 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/AFire")
	TNT1 A 0 A_CustomMissile("LGeneral15KProjectile",30,0,random(-4,4),0)
	LEGE F 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	//TNT1 A 0 A_Jump(40,"Pause")
	TNT1 A 0 A_SpidRefire
	Goto Pause
  BFG10K:
	TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	LEGE EEE 3 Bright A_GiveInventory("LegZombieStrafing2",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/PCharge")
	LEGE E 25 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
    LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
    LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
    LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
    LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
    LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	TNT1 A 0 A_Jump(24,"Pause")
	LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	LEGE E 3 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	LEGE F 3 Bright A_CustomMissile("LGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafing2",1)
	LEGE E 20 A_PlaySound("Leg10K/PCool")     
	Goto See
  Pause:
	TNT1 A 0 A_PlayWeaponSound("Leg10K/ACool")
	LEGE EEEEE 3 Bright A_GiveInventory("LegZombieStrafing2",1)
	TNT1 A 0 A_Jump(81,"BFG10K")
	Goto See
  LegNade:
    LEGE E 1 Bright A_JumpIfCloser(1000,1)
	Goto Missile
	LEGE E 0 A_JumpIfCloser(400,"Missile")
    LEGE E 12 Bright A_GiveInventory("LegZombieStrafing",1)
    LEGE EEE 6 Bright A_GiveInventory("LegZombieStrafing",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafing",1)
    LEGE E 6 Bright A_CustomMissile("LegThrownGrenade",32,0,0,2,10)
	LEGE EE 15 Bright
	Goto See
  Pain:
	TNT1 A 0 A_Jump(25,"Protection")
	TNT1 A 0 A_Jump(192,"PainMissile")
	LEGE G 3 Bright
	LEGE G 3 Bright A_Pain
	Goto See
  PainMissile:
	LEGE G 3 Bright
	LEGE G 3 Bright A_Pain
	Goto Missile	
  Protection:
	TNT1 A 0 A_JumpIf(user_protection >= 3,"Pain")
	TNT1 A 0 A_JumpIf(user_protected == 1,"Pain")
	TNT1 A 0 A_PlaySound("legendary/defense")
	TNT1 A 0 A_FaceTarget
	LEGE E 2 Bright ACS_NamedExecuteAlways("LegendaryProtection",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	Goto See
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
    LEGE H 5 A_Scream
    LEGE I 5 A_Fall
    LEGE J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LEGE K 5
	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")
    LEGE L -1
    Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    LEGE L 100 A_ChangeFlag(FRIENDLY,1)
	LEGE L 200 A_SpawnItem("SignetRessurectionFire")
	LEGE L 40 Bright A_SpawnItem("SignetRessurectionFlame")
    LEGE KJIH 15 Bright
	TNT1 A 1 A_SpawnItemEx("FriendlyLegendaryGeneral",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LEGE H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGE I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGE J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGE K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEGE L 140
	LEGE L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LEGE LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LEGE L 5 A_SpawnItem("BlueLightning")
	TEGE LKJGH 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryGeneral",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Legendary Colonel 27

//Legendary Pyro Zombie 28

ACTOR INFGeneralRoasterock : GeneralRoasterock2 Replaces GeneralRoasterock2
{
DropItem "LegendarySyringe" 130 1
DropItem "Demon Tech Devastator", 105, 1
DropItem "Demon Tech BFG10K", 96, 1
DropItem "PyroCannon", 64, 1
DropItem "Rocket Launcher", 120, 1
DropItem "Grenade Launcher", 120, 1
DropItem "HomingRocketLauncher", 120, 1
DropItem "RapidShotgun", 120, 1
DropItem "Beacon", 120, 1
DropItem "ArmorCharge", 150, 2
DropItem "Armorplate", 186, 2
DropItem "Portablemedkit", 159, 2
DropItem "Backpack", 190, 1
DropItem "AmpGoggles", 190, 1
DropItem "SkullOfPower", 72, 1
DropItem "DemonicChalice", 72, 1
DropItem "LegendaryRune", 72, 1
DropItem "HellsExpensivecontract", 128, 1
DropItem "HellsMediumcontract", 256, 1
States
{
  Death:
    TNT1 A 0 A_Jump(10,"RNGESUS")
    TNT1 A 0 A_Jump(50,"GoodDeath")
	ROST A 0 A_NoBlocking
    ROST A 0 A_Scream
	ROST OPQRSTU 6 A_SpawnItemEx("GreenGibbedGenerator",0,0,0,0,0,0,0,128,0)
	ZCGN E 0 A_PlaySoundEx("roaster/stop","SoundSlot6")
	TNT1 A 0 A_SpawnItem("BodyCrash",0,0,0,0)
	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")
	ROST U -1
    Stop
  GoodDeath:
	ROST A 0 A_NoBlocking
    ROST A 0 A_Scream
	TNT1 A 0 A_SpawnItemEx("DemonAmmoBox",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("DemonAmmoBox",0,0,64,random(1,8),0,2,random(0,360),0,64)
    TNT1 A 0 A_SpawnItemEx("DemonicChalice",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("Backpack",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech BFG10K",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("JetPack",0,0,64,random(1,8),0,2,random(0,360),0,150)
	ROST OPQRSTU 6 A_SpawnItemEx("GreenGibbedGenerator",0,0,0,0,0,0,0,128,0)
	ZCGN E 0 A_PlaySoundEx("roaster/stop","SoundSlot6")
	TNT1 A 0 A_SpawnItem("BodyCrash",0,0,0,0)
	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")
	ROST U -1
    Stop
  RNGESUS:
	ROST A 0 A_NoBlocking
    ROST A 0 A_Scream
	TNT1 A 0 A_SpawnItemEx("DemonAmmoBox",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("DemonAmmoBox",0,0,64,random(1,8),0,2,random(0,360),0,64)
    TNT1 A 0 A_SpawnItemEx("DemonicChalice",0,0,64,random(1,8),0,2,random(0,360),0,64)
	TNT1 A 0 A_SpawnItemEx("Backpack",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech BFG10K",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("Pyrocannon",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,0)
	TNT1 A 0 A_SpawnItemEx("Jetpack",0,0,64,random(1,8),0,2,random(0,360),0,150)
	TNT1 A 0 A_SpawnItemEx("ArmorRegenerator",0,0,64,random(1,8),0,2,random(0,360),0,200)
	ROST OPQRSTU 6 A_SpawnItemEx("GreenGibbedGenerator",0,0,0,0,0,0,0,128,0)
	ZCGN E 0 A_PlaySoundEx("roaster/stop","SoundSlot6")
	TNT1 A 0 A_SpawnItem("BodyCrash",0,0,0,0)
	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")
	ROST U -1
    Stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID")+699)
    ROST U 100 A_ChangeFlag(FRIENDLY,1)
	ROST U 200 A_SpawnItem("SignetRessurectionFire")
	ROST U 40 Bright A_SpawnItem("SignetRessurectionFlame")
    ROST U 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    ROST TSRQPO 15 Bright
	TNT1 A 3 A_SpawnItemEx("FriendlyGeneralRoasterock",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2-699)
	TNT1 A 1
	Stop
	}
}

//Legendary Admiral 30

//Corrupted Assault Captain 31

ACTOR INFLegendaryFiend : NewLegendaryFiend Replaces NewLegendaryFiend
{
Tag "\c[z3]Legendary Fiend\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
  	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
    LFND I 8 A_StopSound(6)
	LFND J 0 A_PlaySound("Gore/Splat")
    LFND J 0 A_SpawnItemEx("LFGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LFND J 8 A_Scream
    LFND K 4 
    LFND L 4 A_NoBlocking
    LFND M 4 
    LFND N -1
	Stop
  TrueLeg:
  	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND I 4 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND I 4
	LFND J 0 A_PlaySound("Gore/Splat")
    LFND J 0 A_SpawnItemEx("LFGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND J 4 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND J 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND K 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND L 4 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LFND M 4 
    LFND N 140
	LFND N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LFND NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LFND N 5 A_SpawnItem("BlueLightning")
	TFND NMLKJI 18 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryFiend",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Corrupted Commando 33

//Phase Commando 34

//Hellfire Commando 35

//Epic Corrupted Assault Captain 36

//Sacrosanct Commando 37

//Corrupted Fiend 38

//Legendary General Roasterock 39

//legendary Uber Commando 40


//Rank 0 Mid Tier (priority 100 - 200)

ACTOR INFLegendaryApparition : NewLegendaryApparition Replaces LegendaryApparition
{
SeeSound "LegAppar/Sight"
PainSound "LegAppar/Pain"
DeathSound "LegAppar/Death"
ActiveSound "LegAppar/Active"
AttackSound "LegAppar/Attack"
Tag "\c[z3]Legendary Apparition\c-"
States
{
  Lunge:
    TNT1 A 0 A_SetUserVar("user_inviswait",0)
	TNT1 A 0 A_SetUserVar("user_invisdone",0)
	TNT1 A 0 A_PlaySound("LegAppar/Attack")
	LARP E 7 A_FaceTarget
	TNT1 A 0 A_SetTranslucent(0.8)
	LARP F 7 A_FaceTarget
	TNT1 A 0 A_SetTranslucent(0.9)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 ThrustThingZ(0,20,0,1)
    LARP F 2 A_Recoil(-26)
	LARP F 3 A_CustomMissile("LFLunge",18,0,0,CMF_AIMDIRECTION)
	LARP G 6 
	TNT1 A 0 A_SetTranslucent(0.8)
	LARP G 2 A_ScaleVelocity(0.2)
	TNT1 A 0 A_SetTranslucent(0.7)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	LARP G 1 A_ScaleVelocity(0)
	Goto See
  Rage:	
    LARP G 1 A_JumpIfCloser(1500,1)
    Goto Normal
    LARP G 1 A_PlaySound("LegAppar/Rage",7,3,0,ATTN_NONE)
	LARP G 0 A_SetInvulnerable
	LARP G 1 A_FaceTarget
  RageWait:
    TNT1 A 0 A_JumpIf(user_ragewait >= 16,"RageGo")
	TNT1 A 0 A_SetUserVar("user_ragewait",user_ragewait+1)
    LARP G 0 A_JumpIfTargetInLos(2)
	LARP G 0 A_Jump(256,2)
	LARP G 0 A_FaceTarget
	LARP G 2 A_SpawnItem("LFiendFlameSpawner")
	Loop
  InvisRageGo:
    TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_SetUserVar("user_inviswait",0)
	TNT1 A 0 A_SetUserVar("user_invisdone",0)
    LARP EEEEE 3 A_FadeIn(0.2)
	TNT1 A 0 A_JumpIfCloser(200,"Lunge")
  RageGo:
    TNT1 A 0 A_SetUserVar("user_ragewait",0) 
	LARP G 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag(NONSHOOTABLE,1)
	TNT1 A 0 ThrustThingZ(0,25,0,1)
    TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	LARP G 9 
	LARP G 0 A_JumpIfTargetInLos(2)
	LARP G 0 A_Jump(256,2)
	LARP G 0 A_FaceTarget
	LARP G 3 
	TNT1 A 0 ThrustThingZ(0,10,0,1)
    LARP F 2 A_Recoil(-90)
	TNT1 A 0 A_PlaySound("LegAppar/Attack")
  RageLoop:
    TNT1 A 0 A_JumpIf(user_ragewait >= 11,"RageEnd")
	LARP G 0 A_SpawnItemEx("LAGhost",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_JumpIfCloser(120,"LungeWarp")
	LARP G 2 A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_ragewait",user_ragewait+1)
	Loop
  RageEnd:
    TNT1 A 0 A_SetUserVar("user_ragewait",0)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	Goto See
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
  	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_ChangeFlag(BRIGHT,0)
	TNT1 A 0 A_KillChildren
    LARP I 8 A_StopSound(6)
    LARP J 0 A_PlaySound("Gore/Splat")
    LARP J 0 A_SpawnItemEx("LFGibbedGenerator")
    LARP J 8 A_Scream
    LARP K 4 
    LARP L 4 A_NoBlocking
    LARP M 4 
    LARP N -1
	Stop
  TrueLeg:
  	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP I 4 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP I 4
	LARP J 0 A_PlaySound("Gore/Splat")
    LARP J 0 A_SpawnItemEx("LFGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP J 4 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP J 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP K 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP L 4 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LARP M 4 
    LARP N 140
	LARP N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LARP NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LARP N 5 A_SpawnItem("BlueLightning")
	TARP NMLKJI 18 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryApparition",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryLurker : LegendaryLurker Replaces LegendaryLurker
{
DropItem "BossLifeEssence", 256
DropItem "BossArmorBonusMax", 256
DropItem "LegTimeFreezeSphere", 35
DropItem "LegendaryInvisibilitySphere", 45
DropItem "LegendaryRune", 25, 1
DropItem "LegendaryArmor", 90, 1
DropItem "Legendary Behemoth Cannon", 90, 1
DropItem "LegDemonicEnergy", 256
Tag "\c[z3]Legendary Lurker\c-"
States
{
  Death:
  XDeath:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_SetTranslucent(0.75)
	OLFD I 8 A_StopSound(6)
	TNT1 A 0 A_PlaySound("Gore/Splat")
	TNT1 A 0 A_SpawnItemEx("LFGibbedGenerator",0,0,0,0,0,0,0,128,0)
	OLFD J 8 A_Scream
	OLFD K 4 
	OLFD L 4 A_Fall
	OLFD M 4
	OLFD N 63000 CanRaise
	Stop
  TrueLeg:
  	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	TNT1 A 0 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD I 4 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD I 4
	OLFD J 0 A_PlaySound("Gore/Splat")
    OLFD J 0 A_SpawnItemEx("LFGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD J 4 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD J 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD K 4
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD L 4 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    OLFD M 4 
    OLFD N 140
	OLFD N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	OLFD NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	OLFD N 5 A_SpawnItem("BlueLightning")
	OTFD NMLKJI 18 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryLurker",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Legendary Nightmare 103

//Legendary Desert Hornet 104

ACTOR INFLegendarySuicideBomber : NewLegendarySuicideBomber Replaces NewLegendarySuicideBomber
{
Tag "\c[z3]Legendary Suicide Bomber\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 AAA 0 A_StopSound(CHAN_VOICE)
	TNT1 A 0 A_TakeInventory("Tic",999999)
	TNT1 A 0 A_CustomMissile("SuicideBomb",24,0,0,CMF_AIMDIRECTION)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,24,0,0,0,0,128) 
	TNT1 AAA 2 A_CustomMissile("Kaboom3",24,0,random(0,360),2,random(0,360))
	TNT1 AAA  2 A_CustomMissile("SmokeFX2",24,0,random(0,360),2,random(0,360))
	TNT1 AAAA 2 A_SpawnItemEx("Debris",0,0,24,Random(4,-4),Random(4,-4),Random(4,8),0,128)
	TNT1 A 0 A_SpawnItem("RocketEx",0,24)
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("weapons/rocklx",CHAN_BODY)
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	TNT1 A 0 A_Jump(12,"OHNO")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"OHNO")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"OHNO")
	LSBM M 5 Bright
	LSBM N 5 Bright A_Scream
	LSBM O 5 A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("LegendaryArmor",0,0,8,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_DropItem("LegendaryRune",1,64)
	LSBM PQRST 5
	TNT1 A 0 ACS_NamedExecuteAlways("DropDoll",0,15)
	LSBM U 63000 CanRaise
	Stop
  XDeath:
	TNT1 A 0
	TNT1 AAA 0 A_StopSound(CHAN_VOICE)
	TNT1 A 0 A_TakeInventory("Tic",999999)
	TNT1 A 0 A_Stop
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"OHNO")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"OHNO")
	TNT1 A 0 A_Jump(12,"OHNO")
	LSBM M 5 Bright
	LSBM N 5 Bright A_XScream
	LSBM O 5 A_NoBlocking
	LSBM PQRST 5
	TNT1 A 0 ACS_NamedExecuteAlways("DropDoll",0,15)
	LSBM U 63000 CanRaise
	Stop
	}
}

ACTOR INFLegendaryBeheadedKamikaze : NewLegendaryBeheadedKamikaze Replaces NewLegendaryBeheadedKamikaze
{
Tag "\c[z3]Legendary Beheaded Kamikaze\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 AAA 0 A_StopSound(CHAN_VOICE)
	TNT1 A 0 A_TakeInventory("Tic",999999)
	TNT1 A 0 A_CustomMissile("SuicideBomb",24,0,0,CMF_AIMDIRECTION)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,24,0,0,0,0,128) 
	TNT1 AAA 0 A_CustomMissile("Kaboom3",24,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("SmokeFX2",24,0,random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,24,Random(4,-4),Random(4,-4),Random(4,8),0,128)
	TNT1 A 0 A_SpawnItem("RocketEx",0,24)
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("weapons/rocklx",CHAN_BODY)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"OHNO")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"OHNO")
    TNT1 A 0 A_Jump(36,"OHNO")
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	LKBM A 5 Bright
	LKBM B 5 Bright A_Scream
	LKBM C 5 A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("LegendaryArmor",0,0,8,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,8,random(0,8),random(0,8),2,random(0,360),0,252)
	LKBM DEFGH 5
	LKBM I -1
	Stop
  XDeath:
	TNT1 A 0
	TNT1 AAA 0 A_StopSound(CHAN_VOICE)
	TNT1 A 0 A_TakeInventory("Tic",999999)
	TNT1 A 0 A_Stop
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"OHNO")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"OHNO")
	TNT1 A 0 A_Jump(12,"OHNO")
	LKBM A 5 Bright
	LKBM B 5 Bright A_XScream
	LKBM C 5 A_NoBlocking
	LKBM DEFGH 5
	LKBM I -1
	Stop
	}
}

ACTOR INFLegendaryRedeemer : NewLegendaryRedeemer Replaces NewLegendaryRedeemer
{
Tag "\c[z3]Legendary Redeemer\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    LRED I 5 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LRED JJKKLL 2 Bright A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LRED M 0 A_NoBlocking
	LRED M 0 A_KillChildren
    LRED MMNNOOPP 2 Bright A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LRED QQRRSSTTUU 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS) 
	LRED V 50
	LRED VVVVVVVVVVVVVVVVVVVVVVVV 3 A_SpawnItemEx("LegTrapSpawners",0,0,0,0,0,0,0,32,128)
    LRED V -1 A_BossDeath
    Stop
  TrueLeg:
    LRED I 5 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LRED JJKKLL 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_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LRED M 0 A_NoBlocking
	LRED M 0 A_KillChildren
    LRED MMNNOOPP 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_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LRED QQRRSSTTUU 2 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS) 
	LRED V 40
	LRED VVVVVVVVVVVVVVVVVVVV 2 A_SpawnItemEX("TrueLegRedStormBoltSpawner",Random(-180,180),Random(-180,180))
    LRED V 100
	LRED V 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LRED VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LRED V 5 A_SpawnItem("BlueLightning")
	TR3D UTSRQPONMLKJI 7 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryRedeemer",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryNecromancer : NewLegendaryNecromancer Replaces NewLegendaryNecromancer
{
Tag "\c[z3]Legendary Necromancer\c-"
States
{ 
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	LMGE C 2 Bright
	LMGE C 2 Bright A_Scream 
	LMGE CCCCCCCCCCCCCCCCCCCCCC 6 A_SpawnItemEx("BlueKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("BlueLightning")
	TNT1 A 0 A_Explode(100,200,1)
	TNT1 A 0 Radius_Quake(5,15,0,20,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LMGE G 8 Bright A_PlaySound("LegMage/Death2",7,1.0,0,ATTN_NONE) 
	LMGE H 5 Bright
	LMGE I 5 Bright
	LMGE J 5 Bright A_NoBlocking 
	LMGE KLM 5 Bright
	LMGE NO 5
	LMGE P -1
    Stop
  TrueLeg:
	LMGE C 2 Bright
	LMGE C 2 Bright A_Scream 
	LMGE CCCCCCCCCCCCCCCCCCCCCC 6 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_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("BlueDTech10KShockwave",0,0,15,0,0,0,0,128)
    TNT1 A 0 A_SpawnItem("BlueDTBFGEx",0,-10)
	TNT1 A 0 A_Explode(100,200,1)
	TNT1 A 0 Radius_Quake(5,15,0,20,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LMGE G 8 Bright A_PlaySound("LegMage/Death2",7,1.0,0,ATTN_NONE) 
	LMGE HHH 3 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	LMGE III 3 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	LMGE JJ 3 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	LMGE J 3 Bright A_NoBlocking 
	LMGE KLM 5 Bright
	LMGE NO 5
    LMGE P 140
	LMGE P 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LMGE PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LMGE P 5 A_SpawnItem("BlueLightning")
	TMGE PONMLKJIHGC 7 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryNecromancer",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Bloody Flandre, Lamia, Uroboros

//9 112
//SawCacodemon 113

ACTOR INFLegendaryTormentor : NewLegendaryTormentor Replaces NewLegendaryTormentor
{
Tag "\c[z3]Legendary Tormentor\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    LPAI M 5 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LPAI NNNNNNNNNNNNN 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI OOOOOOOOOOOOO 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	LPAI P 0 A_KillChildren
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI PPPPPPP 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI QQQQQQQ 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI RRRRRRR 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI SSSSSSS 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI TTTTTTT 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 A 0 A_Jump(100,"LegendarySoul")
	TNT1 A 0 A_SpawnItem("MiniDeathBall")
	LPAI UUUUU 0 A_CustomMissile("LegBanFlesh1",random(0,90),random(0,40),random(-180,180),2,random(-15,15)) 
	LPAI UUUUU 0 A_CustomMissile("LegBanFlesh2",random(0,90),random(0,40),random(-180,180),2,random(-15,15)) 
    LPAI UUUUUUUUUU 0 A_CustomMissile("LegBanFlesh3",random(0,90),random(0,40),random(-180,180),2,random(-15,15)) 
    LPAI UUUUUUUUUU 0 A_CustomMissile("LegBanFlesh4",random(0,90),random(0,40),random(-180,180),2,random(-15,15)) 
    LPAI UUUUUUUUUU 0 A_CustomMissile("LegBanFlesh5",random(0,90),random(0,40),random(-180,180),2,random(-15,15)) 
    LPAI UUUUUUUUUU 0 A_CustomMissile("LegBanFlesh6",random(0,90),random(0,40),random(-180,180),2,random(-15,15)) 
    LPAI U 0 A_CustomMissile("LegBanBigArm1",40,-40,-90,2,random(-1,1)) 
    LPAI U 0 A_CustomMissile("LegBanBigArm2",40,40,90,2,random(-1,1))
    LPAI U 0 A_CustomMissile("LegBanSmallArm1",100,-30,-90,2,random(-15,15))
    LPAI U 0 A_CustomMissile("LegBanSmallArm1",100,30,90,2,random(-15,15))
    LPAI U 0 A_CustomMissile("LegBanSmallArm2",100,-30,-90,2,random(-15,15))
    LPAI U 0 A_CustomMissile("LegBanSmallArm2",100,30,90,2,random(-15,15))
    LPAI U 0 A_CustomMissile("LegBanHorn1",110,-16,-90,2,random(-15,15))
    LPAI U 0 A_CustomMissile("LegBanHorn2",110,16,90,2,random(-15,15))
	LPAI U 0 A_NoBlocking
	TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX",Random(30,60),0,random(0,360),2,random(0,360))	
	LPAI UV 4 bright
	TNT1 AA 35
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAA 3 A_SpawnItemEx("LegBanSpawners",0,0,0,0,0,0,0,32,64)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAA 3 A_SpawnItemEx("LegBanSpawners",0,0,0,0,0,0,0,32,64)
	TNT1 A 1
    Stop
  TrueLeg:
    LPAI M 5 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LPAI NNNNNNNNNNNNN 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI OOOOOOOOOOOOO 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	LPAI P 0 A_KillChildren
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI PPPPPPP 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI QQQQQQQ 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI RRRRRRR 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI SSSSSSS 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LPAI TTTTTTT 2 Bright A_GiveInventory("LegBanishedDeathEffect",1)
	TNT1 AAA 0 A_SpawnItem("LRedeBSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LPAI U 0 A_NoBlocking
	TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX",Random(30,60),0,random(0,360),2,random(0,360))	
	LPAI UV 4 bright
	TNT1 A 140
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LPAI V 5 A_SpawnItem("BlueLightning")
	TPAI VUTSRQPONML 6 bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryTormentor",0,0,16,0,0,0,0,32)
    Stop
	}
}

ACTOR INFLegendaryBabyDemolisher : NewLegendaryBabyDemolisher Replaces NewLegendaryBabyDemolisher
{
Tag "\c[z3]Legendary Baby Demolisher\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0
	LBDS I 2 A_Scream
	LBDS IIIIIIIII 3 A_CustomMissile("BlueKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
	LBDS J 6 A_SetUserVar("user_music",0)
	TNT1 AAA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
	LBDS KKKKK 2 Bright A_CustomMissile("BlueKaboom3",random(20,40),random(10,-10),random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2",random(20,40),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_SpawnItem("DeathBall2")
	LBDS L 6 A_Fall
	LBDS MN 6
	LBDS O 6 A_KillMaster
	LBDS P 63000 CanRaise
	Stop
  TrueLeg:
	LBDS I 2 Bright A_Scream
    LBBS AA 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LBDS II 3 Bright A_CustomMissile("PainfulDeathKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
    LBBS AA 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LBDS II 3 Bright A_CustomMissile("PainfulDeathKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
    LBBS AA 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LBDS II 3 Bright A_CustomMissile("PainfulDeathKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
    LBBS AA 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LBDS II 3 Bright A_CustomMissile("PainfulDeathKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
    LBBS AA 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LBDS II 3 Bright A_CustomMissile("PainfulDeathKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
	LBDS J 6 A_SetUserVar("user_music",0)
	TNT1 AAA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
	LBDS KKKKK 2 Bright A_CustomMissile("BlueKaboom3",random(20,40),random(10,-10),random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2",random(20,40),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LBDS L 6 A_Fall
	LBDS MN 6
	LBDS O 6 A_KillMaster
	LBDS P 140
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LBDS PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LBDS P 5 A_SpawnItem("BlueLightning")
	TBDS ONMLKJI 10 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryBabyDemolisher",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryBabySentient : NewLegendaryBabySentient Replaces NewLegendaryBabySentient
{
Tag "\c[z3]Legendary Baby Sentient\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    LBBS A 20 Bright A_Scream
    LBBS E 6 Bright A_Fall
	LBBS F 6 Bright
	TNT1 AAA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LBBS GGGGG 2 Bright A_CustomMissile("BlueKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX2", random(20,40), 0, random(0,360), 2, random(0,360))
    LBBS H 6 Bright
    LBBS I 4
	LBBS J 2
    TNT1 A -1 A_KillMaster
    Stop
  TrueLeg:
    LBBS A 10 Bright A_Scream
    LBBS AAAAA 2 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LBBS EEEE 2 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LBBS E 2 Bright A_Fall
	LBBS FFFF 2 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 AAA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	LBBS GGGGG 2 Bright A_CustomMissile("BlueKaboom", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX2", random(20,40), 0, random(0,360), 2, random(0,360))
    LBBS H 6 Bright
    LBBS I 4
	LBBS J 2
    TNT1 A 100
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 5 A_SpawnItem("BlueLightning")
	TBBS JIH 8 Bright
    TBB2 GFE 8 Bright
	TNT1 A 1 A_SpawnItemEx("INFAltTrueLegendaryBabySentient",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Epic Legendary Baby Demolisher 117

ACTOR INFLegendaryBehemoth : NewLegendaryBehemoth Replaces NewLegendaryBehemoth
{
Tag "\c[z3]Legendary Behemoth\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	LEG2 K 6 A_StopSound(6)
	TNT1 A 0 A_Explode(24,64,0)
    LEG2 L 6 A_Scream
    TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LEG2 M 6 A_NoBlocking
    TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LEG2 NOPQR 6
    LEG2 S 6
    LEG2 T -1 A_KillMaster
    Stop
  TrueLeg:
	LEG2 K 3 A_StopSound(6)
	LEG2 K 3 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(24,64,0)
    LEG2 L 3 A_Scream
	LEG2 L 3 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LEG2 M 3 A_NoBlocking
	LEG2 M 3 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TNT1 A 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LEG2 NOPQR 6 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEG2 S 6 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LEG2 T 100
	LEG2 T 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LEG2 TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LEG2 T 5 A_SpawnItem("BlueLightning")
	TEG2 TSRQPONMLK 8 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryBehemoth",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryRevenant : NewLegendaryRevenant Replaces NewLegendaryRevenant
{
Tag "\c[z3]Legendary Revenant\c-"
States
{
  Fake:
  	TNT1 A 0 A_JumpIf(user_fake >= 2,"See")	 
    TNT1 A 0 A_SetUserVar("user_fake",user_fake+1)
	TNT1 A 0 A_ChangeFlag("SHOOTABLE",0)
    TNT1 A 0 A_ChangeFlag("SOLID",0)
	LREV LM 7
	TNT1 A 0 A_StopSound(6)
	//TNT1 A 0 ACS_ExecuteAlways(5433,0,7)
	TNT1 A 0 A_SetUserVar("user_music",0)
	LREV N 7 A_PlaySoundEx("legendaryrevenant/death","body",0,1)
    LREV O 7
	LREV P 0 A_SpawnItemEx("BossArmorBonusMax",0,0,0,0,0,0,0,0,64)
	LREV P 7 A_SpawnItemEx("BossLifeEssence",0,0,0,0,0,0,0,0,64)
    LREV Q 17
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))	
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))
	LREV Q 175
	LREV Q 0 A_PlaySound("misc/gibbed")
  	LREV Q 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	LREV Q 0 A_ChangeFlag("SHOOTABLE",1)
    LREV Q 5 A_ChangeFlag("SOLID",1)
	LREV P 0 A_PlaySoundEx("legendaryrevenant/see","body",0,1)
    LREV PONML 5
    Goto See
  Death:
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("CheckForAltLegRevDeath") == 1, "Death2")
	TNT1 A 0 A_StopSound(6)
	LREV LM 7
	LREV N 7 A_Scream
	LREV O 7 A_NoBlocking
	LREV P 7
	LREV Q 17
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128),-9999)
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))	
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128),-9999)
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))
	LREV QQQQQQQQQQQQQ 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128),-9999)
	LREV Q -1
	Stop
  Death2:
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
	TNT1 A 0 A_StopSound(6)
	LREV LLLLL 3 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_Scream
	LREX AAABBBCCCDDDEEE 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_NoBlocking
	LREX FFGGHH 3 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	LREX IJ 8
	LREX K 17
	LREX KKKKKKKKKKKKK 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128),-9999)
	LREX KKKKKKKKKKKKK 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))	
	LREX KKKKKKKKKKKKK 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128),-9999)
	LREX KKKKKKKKKKKKK 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128))
	LREX KKKKKKKKKKKKK 2 A_SpawnItemEx("LRUndeadHand",random(-128,128),random(-128,128),-9999)
	LREX K -1
	Stop
  TrueLeg:
	TNT1 A 0 A_StopSound(6)
	LREV LL 3  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_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREV LL 3 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_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREV LL 3 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_Scream
	LREX AAA 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREX BBB 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREX CCC 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREX DDD 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREX EEE 2 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_NoBlocking
	LREX FFGGHH 3 Bright A_SpawnItemEx("PainfulDeathKaboom",random(-32,32),random(-40,40),random(16,48),random(-10,10),random(-10,10),random(0,10),0,SXF_TRANSFERPOINTERS)
	LREX IIJJ 4 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREX K 17
    LREX K 140
	LREX K 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LREX KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LREX K 5 A_SpawnItem("BlueLightning")
	TR3V KJIHGFEDCBA 10 Bright
	TREV L 10 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryRevenant",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Sanae

ACTOR INFLegendaryHellKnight : LegendaryHellKnight2 Replaces NewLegendaryHellKnight
{
Tag "\c[z3]Legendary Hell Knight\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_StopSound(6)
	LNBL R 8
    LNBL S 8 A_Scream
    LNBL T 8
    LNBL U 8 A_NoBlocking
    LNBL VW 8
    LNBL "X" -1 A_BossDeath
    Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LNBL R 8
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LNBL S 8 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LNBL T 8
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LNBL U 8 A_NoBlocking
    LNBL VW 8 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LNBL "X" 140
	LNBL "X" 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LNBL XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LNBL "X" 5 A_SpawnItem("BlueLightning")
	TNBL NMLKJI 18 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryHellKnight",0,0,16,0,0,0,0,32)
    Stop
	}
}

ACTOR INFLegendaryAfrit : NewLegendaryAfrit Replaces NewLegendaryAfrit
{
Tag "\c[z3]Legendary Afrit\c-"
States
{
  XDeath:
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_Playsound("LegAfrit/Death2",7,1,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
    LGAF I 6 Bright A_Scream
	TNT1 A 0 A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
    LGAF J 6 Bright A_NoBlocking
    LGAF KLMNOPQR 6 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 1 A_KillMaster
    Stop	
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_Playsound("LegAfrit/Death2",7,1,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
    LGAF I 6 Bright A_Scream
	TNT1 A 0 A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
    LGAF J 6 Bright A_NoBlocking
    LGAF K 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF II 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)
    LGAF L 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF LL 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)
    LGAF M 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF MM 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)
    LGAF N 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF NN 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)
    LGAF O 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF OO 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)
    LGAF P 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF PP 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)
    LGAF Q 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGAF RR 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)
    LGAF R 2 Bright A_SpawnItem("LegAfritDeathFireSpawner",0,0,0,0)
	TNT1 A 1 A_KillMaster
	TNT1 A 139
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 5 A_SpawnItem("BlueLightning")
	TGAF NMLKJI 18 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryAfrit",0,0,16,0,0,0,0,32)
    Stop
	}
}

ACTOR INFLegendaryArchon : NewLegendaryArchon Replaces NewLegendaryArchon
{
DamageFactor 0.5 //0.65
DropItem "ReforcedLegendaryArmor" 120 1
DropItem "LegendarySphere" 132 1
DropItem "LegendaryRune" 145 1
DropItem "LDemonAmmoBox" 256 
DropItem "LDemonAmmo" 256 
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "Legendary Plasmatic Rifle" 105 1 
Tag "\c[z3]Legendary Archon\c-"
States
{
  XDeath:
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	LGRC Q 4 Bright
	LGRC Q 4 Bright A_Scream
	LGRC QQQQQQQQQQQQQQQQQQQQQQQQQQQQQ 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)
	LGRC R 8 Bright
	LGRC S 7 Bright
	TNT1 A 0 A_SpawnItem("MiniDeathBall")
	TNT1 AAA 0 Bright A_SpawnItemEx("LegendaryBlueParticleSpawner",0,0,40,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE) 
	LGRC U 5 Bright A_NoBlocking 
	LGRC VW 5 Bright
	TNT1 AAAA 0 A_CustomMissile("SmokeFX",Random(30,60),0,random(0,360),2,random(0,360))
	LGRC X 4 Bright A_CustomMissile("LegArchonSoul",86,0,0,2,90)
	LGRC Z 4 Bright
	TNT1 A 1 A_KillMaster
    Stop
  TrueLeg:
	LGRC QQQQ 2 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGRC Q 2 Bright A_Scream
	LGRC QQQQQQQQQQQQQQQQQQQQQQQQQQQQQ 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)
	LGRC RRRR 2 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGRC SSSS 2 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	TNT1 AAAAA 0 Bright A_SpawnItemEx("LegendaryBlueParticleSpawner",0,0,40,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE) 
	LGRC U 5 Bright A_NoBlocking 
	LGRC VW 5 Bright
	TNT1 AAAA 0 A_CustomMissile("SmokeFX",Random(30,60),0,random(0,360),2,random(0,360))
	LGRC X 4 Bright
	LGRC Z 4 Bright
	TNT1 A 0 A_KillMaster
    TNT1 A 140
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 O 5 A_SpawnItem("BlueLightning")
	TGRC ZXWVUSRQ 18 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryArchon",0,0,16,0,0,0,0,32)
    Stop
	}
}

ACTOR INFLegendaryCybruiser : NewLegendaryCybruiser Replaces NewLegendaryCybruiser
{
DamageFactor 0.5 //0.65
 DropItem "ReforcedLegendaryArmor" 137 1
  DropItem "LegendarySphere" 100 1
  DropItem "LegendaryRune" 150 1
  DropItem "LDemonAmmoBox" 256
  DropItem "LDemonAmmo" 256
  DropItem "BossLifeEssence" 256
  DropItem "BossArmorBonusMax" 256
  DropItem "Legendary Plasmatic Cannon" 128 
  DropItem "Legendary Assault Shotgun" 128
  DropItem "LegendaryBFG10K" 64
  DropItem "LegendaryShell" 256 4
  DropItem "LegendaryShellBox" 128
  DropItem "LegendaryCell" 256
  DropItem "LegendaryCellPack" 128
Tag "\c[z3]Legendary Cybruiser\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0
    LCBR K 0 A_Scream
	LCBR KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 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 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128)	
	TNT1 A 0 A_SpawnItem("MiniDeathBall")
	LCBR LLLMMM 2 Bright A_CustomMissile ("PainfulDeathKaboom", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128)
    TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX", Random(30,60), 0, random(0,360), 2, random(0,360))	
    LCBR N 4 Bright A_NoBlocking
    LCBR OPQRS 3 Bright
    LCBR T -1
    Stop
  TrueLeg:
    TNT1 A 0
    LCBR K 0 A_Scream
	LCBR KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK 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 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128)	
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LCBR LLLMMM 2 Bright A_CustomMissile ("PainfulDeathKaboom", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128)
    TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX", Random(30,60), 0, random(0,360), 2, random(0,360))	
    LCBR N 4 Bright A_NoBlocking
    LCBR OPQRS 3 Bright
    LCBR T 140
	LCBR T 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LCBR TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TRUS T 5 A_SpawnItem("BlueLightning")
	TRUS SRQPONMLKJ 10 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryCybruiser",0,0,16,0,0,0,0,32)
    Stop
	}
}

ACTOR INFLegendaryCyberNoble : NewLegendaryCyberNoble Replaces NewLegendaryCyberNoble
{
Tag "\c[z3]Legendary Cyber Noble\c-"
States
{
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    LCBS I 0 A_Scream
	LCBS IIIIIIIIIIIIIIIIIIIIIIIIIII 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)
	LCBS IIIIIIIIIIIIIIIIIIIIIIIIIII 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 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)	
	TNT1 A 0 A_SpawnItem("MiniDeathBall")
	LCBS JJJKKK 2 Bright A_CustomMissile ("PainfulDeathKaboom", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX", Random(30,60), 0, random(0,360), 2, random(0,360))	
    LCBS L 4 Bright A_NoBlocking
    LCBS MN 3 Bright
    LCBS O -1 A_KillMaster
    Stop
  TrueLeg:
    LCBS I 0 A_Scream
	LCBS IIIIIIIIIIIIIIIIIIIIIIIIIII 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)
	LCBS IIIIIIIIIIIIIIIIIIIIIIIIIII 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 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)	
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	LCBS JJJKKK 2 Bright A_CustomMissile ("PainfulDeathKaboom", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    TNT1 AAAA 0 A_CustomMissile("LegendarySmokeFX", Random(30,60), 0, random(0,360), 2, random(0,360))	
    LCBS L 4 Bright A_NoBlocking
    LCBS MN 3 Bright
    LCBS O 140
	LCBS O 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LCBS OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LCBS O 5 A_SpawnItem("BlueLightning")
	TCBS NMLKJI 18 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryCyberNoble",0,0,16,0,0,0,0,32)
    Stop
	}
}

//Legendary Belphegor 126

ACTOR INFLegendaryArchVile : LegendaryArchVile Replaces LegendaryArchVile
{
Tag "\c[z3]Legendary Archvile\c-"
States
{ 
  Death:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    LVLL Q 6 Bright A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
    LVLL R 5 Bright A_Scream
    LVLL S 5 Bright A_Fall
    LVLL TUV 5 Bright
	LVLL W 4 Bright A_SpawnItem("BodyCrash",0,0,0,0)
    LVLL XY 4 Bright
	LVLL Z 100
	TNT1 A 0 A_SpawnItemEx("LegVileSpawners",0,0,20,30,0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LegVileSpawners",0,0,20,30,0,0,180,0)
	TNT1 A 0 A_SpawnItemEx("LegVileSpawners",0,0,20,30,0,0,225,0)
	TNT1 A 0 A_SpawnItemEx("LegVileSpawners",0,0,20,30,0,0,305,0)
    LVLL Z -1
    Stop
  TrueLeg:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LVLL Q 5 Bright A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LVLL R 5 Bright A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LVLL S 5 Bright A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LVLL TUV 5 Bright
	LVLL W 4 Bright A_SpawnItem("BodyCrash",0,0,0,0)
    LVLL XY 4 Bright
    LVLL Z 150
	LVLL Z 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LVLL ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LVLL Z 5 A_SpawnItem("BlueLightning")
	TVLL XYWVUTSRQ 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryArchVile",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Corrupted Legendary Lesser Cardinal 128 (Located in DECORATE)

//Corrupted Legendary Baby Sentient 129

ACTOR INFLegendaryCrusader : NewLegendaryCrusader Replaces LegendaryCrusader
{
SeeSound "LegendaryCrusader/Sight"
ActiveSound "LegendaryCrusader/Active" 
PainSound "LegendaryCrusader/Pain" 
DeathSound "LegendaryCrusader/Death" 
Tag "\c[z3]Legendary Crusader\c-"
States
{
  Soulless:
	TNT1 A 0 A_JumpIf(user_faminelimit >= 5,"MissileContinue")
	TNT1 A 0 A_SetUserVar("user_faminelimit",user_faminelimit+1)
  SoullessSummon:
	TNT1 A 0 A_SetInvulnerable
	LGCR EE 3 Bright A_FaceTarget 
	LGCR E 8 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("LegendarySoulless",50,50,20,0,0,0,random(0,360),SXF_SETMASTER,0)
	TNT1 A 0 A_PlaySound("LegendaryCrusader/Summon")
	TNT1 A 0 A_SpawnItemEx("LegCrusaderHealEffect",0,0,80,0,0,0,0,SXF_NOCHECKPOSITION)
	LGCR E 25 Bright 
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(80,"AOEHeal")
	Goto See
  AoeHeal:
	TNT1 A 0 A_Radiusgive("CrusaderBuffHealth",1000,RGF_MONSTERS)
	TNT1 A 0 A_SpawnItemEx("LegCrusaderHealEffect",0,0,80,0,0,0,0,SXF_NOCHECKPOSITION)
	LGCR E 20 Bright A_PlaySound("LegendaryCrusader/AOE",0,1000)
	Goto see
  RaiseChildren:
	LGCR E 20 Bright A_PlaySound("LegendaryCrusader/Raise",0,1000)
	TNT1 A 0 A_RaiseChildren
	Goto see
  Heal:
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,0,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,20,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,40,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,60,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,80,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,100,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,120,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,140,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,160,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,180,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,200,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,220,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,240,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,260,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,280,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,300,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,320,0)
	TNT1 A 0 A_CustomMissile("CrusaderResRadius",10,0,340,0)
	TNT1 A 0 A_SpawnItemEx("LegCrusaderHealEffect",0,0,80,0,0,0,0,SXF_NOCHECKPOSITION)
	LGCR E 20 Bright A_PlaySound("LegendaryCrusader/Heal",2)
	TNT1 A 0 A_RadiusGive("CrusaderBuffLegResistance",1000,RGF_MONSTERS)
	TNT1 A 0 A_Jump(64,"BuffResurrected","AOEHeal")
	Goto see
  BuffResurrected:
	LGCR A 10 Bright
	TNT1 A 0 A_RadiusGive("CrusaderBuffAlwaysFast",2000,RGF_MONSTERS)
	TNT1 A 0 A_SpawnItemEx("LegCrusaderHealEffect",0,0,80,0,0,0,0,SXF_NOCHECKPOSITION)
	LGCR E 20 Bright A_PlaySound("LegendaryCrusader/Attack",0,1.0,0,ATTN_NONE)
	Goto See
  XDeath:
  Death:
	TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	LGCR I 0 Bright A_CustomMissile("CrusaderDeathSword",44,32,-90,0)
	LGCR I 8 Bright A_CustomMissile("CrusaderDeathShield",44,-32,90,0)
	TNT1 AAA 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",random(-10,10),random(-10,10),random(30,60),random(0,5),random(0,5),random(0,5))
	TNT1 AAA 0 A_CustomMissile("LegBlueKaboomNoEffect",40,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4",40,0,random(0,360),2,random(0,360))
	LGCR J 8 Bright A_Scream 
	TNT1 AAA 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",random(-10,10),random(-10,10),random(30,60),random(0,5),random(0,5),random(0,5))
	TNT1 AAA 0 A_CustomMissile("LegBlueKaboomNoEffect",40,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4",40,0,random(0,360),2,random(0,360))
	LGCR K 8 Bright
	TNT1 AAA 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",random(-10,10),random(-10,10),random(30,60),random(0,5),random(0,5),random(0,5))
	TNT1 AAA 0 A_CustomMissile("LegBlueKaboomNoEffect",40,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4",40,0,random(0,360),2,random(0,360))
	LGCR L 8 Bright A_NoBlocking 
	LGCR MN 8 Bright A_KillChildren
    LGCR O -1
    Stop
  TrueLeg:
	LGCR I 4 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGCR I 0 Bright A_CustomMissile("CrusaderDeathSword",44,32,-90,0)
	LGCR I 4 Bright A_CustomMissile("CrusaderDeathShield",44,-32,90,0)
	TNT1 AAA 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",random(-10,10),random(-10,10),random(30,60),random(0,5),random(0,5),random(0,5))
	TNT1 AAA 0 A_CustomMissile("LegBlueKaboomNoEffect",40,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4",40,0,random(0,360),2,random(0,360))
	LGCR J 4 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGCR J 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGCR J 4 Bright A_Scream 
	TNT1 AAA 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",random(-10,10),random(-10,10),random(30,60),random(0,5),random(0,5),random(0,5))
	TNT1 AAA 0 A_CustomMissile("LegBlueKaboomNoEffect",40,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4",40,0,random(0,360),2,random(0,360))
	LGCR K 4 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGCR K 4 Bright A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 AAA 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",random(-10,10),random(-10,10),random(30,60),random(0,5),random(0,5),random(0,5))
	TNT1 AAA 0 A_CustomMissile("LegBlueKaboomNoEffect",40,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4",40,0,random(0,360),2,random(0,360))
	LGCR L 8 Bright A_NoBlocking 
	LGCR MN 8 Bright A_KillChildren
    LGCR O 150
	LGCR O 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LGCR OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LGCR O 5 A_SpawnItem("BlueLightning")
	TGCR NMLKJI 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryCrusader",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryVessel : NewLegendaryVessel Replaces NewLegendaryVessel
{
Tag "\c[z3]Legendary Vessel\c-"
States
{
  Death:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
    TNT1 A 0 A_SpawnItem("LCVGhost2")
    TNT1 A 0 A_SpawnItemEx("LVDeathEffects",0,0,0,0,0,0,0,SXF_SETMASTER)
    LVSS I 95
    LVSS I 20
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom",Random(-20,20),Random(-20,20),Random(0,18))
    LVSS I 1 A_SpawnItemEx("LegBlueGibbedGenerator",0,0,4)
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom",Random(-20,20),Random(-20,20),Random(12,30))
    LVSS I 1 A_SpawnItemEx("LegBlueGibbedGenerator",0,0,16)
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom3",Random(-20,20),Random(-20,20),Random(24,42))
    LVSS I 1 A_SpawnItemEx("LegBlueGibbedGenerator",0,0,28)
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom3",Random(-20,20),Random(-20,20),Random(36,54))
    TNT1 A 0 A_NoBlocking
    TNT1 A 0 A_Scream
    LVSS I 1 A_ChangeFlag(BRIGHT,0)
    LVSS JKLM 4
    LVSS NO 3
    LVSS P -1
    Stop
  TrueLeg:
    TNT1 A 0 A_SpawnItem("TrueVesselLegCyberdemonGhost2")
    TNT1 A 0 A_SpawnItemEx("LVDeathEffects",0,0,0,0,0,0,0,SXF_SETMASTER)
    LVSS I 95
    LVSS I 20
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom",Random(-20,20),Random(-20,20),Random(0,18))
    LVSS I 1 A_SpawnItemEx("LegBlueGibbedGenerator",0,0,4)
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom",Random(-20,20),Random(-20,20),Random(12,30))
    LVSS I 1 A_SpawnItemEx("LegBlueGibbedGenerator",0,0,16)
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom3",Random(-20,20),Random(-20,20),Random(24,42))
    LVSS I 1 A_SpawnItemEx("LegBlueGibbedGenerator",0,0,28)
    TNT1 AAA 0 A_SpawnItemEx("BlueKaboom3",Random(-20,20),Random(-20,20),Random(36,54))
    TNT1 A 0 A_NoBlocking
    TNT1 A 0 A_Scream
    LVSS I 1
    LVSS JKLM 4
    LVSS NO 3
    LVSS P 150
	LVSS P 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LVSS PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TVSS P 5 A_SpawnItem("BlueLightning")
	TVSS PONMLKJI 15 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryVessel",0,0,16,0,0,0,0,32)
	Stop
	}
}

ACTOR INFLegendaryKrieger : NewLegendaryKrieger Replaces NewLegendaryKrieger
{
Tag "\c[z3]Legendary Krieger\c-"
-LOOKALLAROUND
States
{
  Death:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegMode") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"TrueLeg")
	TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"TrueLeg")
    TNT1 A 0 A_Jump(36,"TrueLeg")
  Death2:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("Tic",999999)
	HIML A 35 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_PlaySound("DeathKnight/step",5,1.0,0)
	HIML E 105 A_Scream
	HIML E 4 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	HIML K 4 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_PlaySound("DeathKnight/step",6,1.0,0)
	HIML L 4 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	HIML M 4 A_Fall
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_RemoveChildren
	TNT1 A 0 A_SpawnItemEx("AmmoSphere",0,0,8,random(0,8),random(0,8),2,random(0,360),0,32)
	HIML N -1
	Stop
  TrueLeg:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("Tic",999999)
	HIML A 2 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	HIML AAAAAAAAAA 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("DeathKnight/step",5,1.0,0)
	HIML E 105 A_Scream
	HIML E 4 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	HIML K 4 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_PlaySound("DeathKnight/step",6,1.0,0)
	HIML L 4 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	HIML M 4 A_Fall
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_RemoveChildren
	TNT1 A 0 A_SpawnItemEx("AmmoSphere",0,0,8,random(0,8),random(0,8),2,random(0,360),0,32)
    HIML N 150
	HIML N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	HIML NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 2 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	HIMT N 5 A_SpawnItem("BlueLightning")
	HIMT NMLKE 10 Bright
	TNT1 A 1 A_SpawnItemEx("INFTrueLegendaryKrieger",0,0,16,0,0,0,0,32)
	Stop
	}
}

//Legendary Hero Soul NEO

ACTOR INFLegendarySoul : RandomSpawner Replaces LegendarySoul
{
DropItem "LegendarySoul2", 256, 80
DropItem "LegendaryHeroSoulNEO", 256, 20
}

Actor INFLegendaryHeroSoul : RandomSpawner
{
DropItem "LegendaryHeroSoulNEO", 256, 20
}