//Rank 2 - 3 Very High Tier: Vexed Nemesis (priority 750 - 900)
//NO 830

//Rank 2

ACTOR INFVexedNemesisImp : VexedNemesisImp Replaces VexedNemesisImp
{
Tag "\c[w2]Vexed Nemesis Imp\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisSphere", 100, 1
  DropItem "LegAmmoSphere", 88, 1
  DropItem "NemesisorVexedPowerShard", 50, 1
  DropItem "HandGrenadeAmmo", 235, 2
  DropItem "MineAmmo", 235, 2
  DropItem "Backpack", 198, 1
  DropItem "Armorplate", 205, 1
  DropItem "Portablemedkit", 210, 1
  DropItem "NLDemonAmmoBox", 200 
  DropItem "NLDemonAmmo", 250 
  DropItem "NemesisRuneSpawnerTier1", 80, 1
  DropItem "Nemesis Plasmatic Cannon", 128, 1
  DropItem "WingsOfAscension" 100 1
}

Actor INFVexedNemesisImp2 : INFVexedNemesisImp
{
Tag "\c[w2]Vexed Nemesis Imp\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
    TNT1 A 0 A_JumpIf(user_phase2 == 1,"Idle2")
	VSIN A 10 A_Look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	Goto Idle+1
  Idle2:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VSI2 A 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ImpSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisSoul : VexedNemesisSoul Replaces VexedNemesisSoul
{
Tag "\c[w2]Vexed Nemesis Soul\c-"
}

Actor INFVexedNemesisSoul2 : INFVexedNemesisSoul
{
Tag "\c[w2]Vexed Nemesis Soul\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Possession")
    VSOL ABCD 4 A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("LostSoul",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Revolver Zombie

Actor INFVexedNemesisRevolverZombie2 : VexedNemesisRevolverZombie
{
Tag "\c[W2]Vexed Nemesis Revolver Zombie\c-"
DropItem "NemesisHealthBonusMax", 256, 32
DropItem "NemesisArmorBonus32", 256
DropItem "NemesisHealthBonusMax", 256, 32
DropItem "NemesisArmorBonus32", 256
DropItem "VexedNemesisArmor", 115, 1
DropItem "LegAmmoSphere", 60, 1
DropItem "NemesisorVexedPowerShard", 150, 1
DropItem "HellsExpensiveContract",50, 1
DropItem "HandGrenadeAmmo", 235, 6
DropItem "MineAmmo", 235, 2
DropItem "Backpack", 256, 1
DropItem "Armorplate", 205, 1
DropItem "Portablemedkit", 210, 1
DropItem "NLDemonAmmoBox", 256
DropItem "NLDemonAmmo", 256 
DropItem "NemesisShellBox", 256
DropItem "NemesisShell", 256 
DropItem "NemesisRuneSpawnerTier1", 120, 1
DropItem "Nemesis Rifle", 256
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VGRZ A 10 Bright A_Look
    TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VGRI A 10 Bright A_Look
    TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ZombieSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Cowboy

Actor INFVexedNemesisCowboy2 : VexedNemesisCowboy
{
Tag "\c[w2]Vexed Nemesis Cowboy\c-"
DropItem "NemesisHealthBonusMax", 256, 32
DropItem "NemesisArmorBonus32", 256
DropItem "NemesisHealthBonusMax", 256, 32
DropItem "NemesisArmorBonus32", 256
DropItem "VexedNemesisArmor", 115, 1
DropItem "LegAmmoSphere", 60, 1
DropItem "NemesisorVexedPowerShard", 150, 1
DropItem "NemesisMarineBeacon",50, 1
DropItem "HandGrenadeAmmo", 235, 6
DropItem "MineAmmo", 235, 2
DropItem "Backpack", 256, 1
DropItem "Armorplate", 205, 1
DropItem "Portablemedkit", 210, 1
DropItem "NLDemonAmmoBox", 256
DropItem "VexNemDemonAmmo", 120
DropItem "VexNemDemonAmmo", 120
DropItem "NLDemonAmmo", 256 
DropItem "NemesisShellBox", 256
DropItem "NemesisShell", 256 
DropItem "NemesisRuneSpawnerTier1", 120, 1
DropItem "Nemesis Rifle", 256
DropItem "MysteriousBeacon" 80 1
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    V6NC A 10 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ZombieSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisZombie : VexedNemesisZombie Replaces VexedNemesisZombie
{
Tag "\c[w2]Vexed Nemesis Zombie\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisArmor", 85, 1
  DropItem "LegAmmoSphere", 88, 1
  DropItem "NemesisorVexedPowerShard", 35, 1
  DropItem "HandGrenadeAmmo", 235, 2
  DropItem "MineAmmo", 235, 2
  DropItem "Backpack", 198, 1
  DropItem "Armorplate", 205, 1
  DropItem "Portablemedkit", 210, 1
  DropItem "NLDemonAmmoBox", 200 
  DropItem "NLDemonAmmo", 250 
  DropItem "NemesisRuneSpawnerTier1", 60, 1
  DropItem "Nemesis Rifle", 128, 1
  DropItem "MysteriousBeacon" 80 1
States
{
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNZO H 5 A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNZO I 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNZO J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNZO K 5 
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNZO L 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNZO L 140
	VNZO L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VNZO LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VNZO LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VNZO LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VNZO L -1
	Stop
	}
}

Actor INFVexedNemesisZombie2 : INFVexedNemesisZombie
{
Tag "\c[w2]Vexed Nemesis Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	VNZO A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	VNZI A 10 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ZombieSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisAssaultCaptain : VexedNemesisAssaultCaptain Replaces VexedNemesisAssaultCaptain
{
Tag "\c[w2]Vexed Nemesis Assault Captain\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "StimKit", 222, 3
  DropItem "HealthFlask", 227, 5
  DropItem "Armorplate", 212, 1
  DropItem "LegAmmoSphere", 95, 1
  DropItem "Portablemedkit", 217, 1
  DropItem "NemesisRuneSpawnerTier1", 70, 1
  DropItem "VexedNemesisArmor", 92, 1
  DropItem "NemesisorVexedPowerShard", 35, 1
  DropItem "HandGrenadeAmmo", 237, 2
  DropItem "MineAmmo", 242, 2
  DropItem "ModdedBackPack", 202, 1
  DropItem "NemesisShell", 256
  DropItem "NemesisShellBox", 130
  DropItem "Nemesis Assault Shotgun", 128, 1
  PainChance "Explosion", 128
  DropItem "MysteriousBeacon" 80 1
States
{
  LegendarySoul:
	TNT1 A 0 A_StopSound(6)
	TNT1 AAAAA 0 A_SpawnItemEx("NemesisGrenade",0,0,32,random(0,8),0,random(0,12),random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisSpringMineSet",32,0,random(0,360),2,15)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNAS H 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNAS I 5 A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNAS J 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNAS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNAS K 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNAS L 140
	VNAS L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VNAS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VNAS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VNAS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VNAS L -1
	Stop
	}
}

Actor INFVexedNemesisAssaultCaptain2 : INFVexedNemesisAssaultCaptain
{
Tag "\c[w2]Vexed Nemesis Assault Captain\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	VNAS A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	VNAS Z 10 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ShotgunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Lieutenant

Actor VexedNemesisLieutenant2 : VexedNemesisLieutenant
{
Tag "\c[w2]Vexed Nemesis Lieutenant\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
    VSZX A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	VSZX A 10 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ShotgunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Phase Imp

Actor INFVexedNemesisPhaseImp2 : VexedNemesisPhaseImp
{
Tag "\c[w2]Vexed Nemesis Phase Imp\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VPHA A 10 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ImpSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisSuperShotgunZombie : VexedNemesisSuperShotgunZombie Replaces VexedNemesisSuperShotgunZombie
{
Tag "\c[w2]Vexed Nemesis Super Shotgun Zombie\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "StimKit", 222, 3
  DropItem "HealthFlask", 227, 5
  DropItem "Armorplate", 212, 1
  DropItem "LegAmmoSphere", 95, 1
  DropItem "Portablemedkit", 217, 1
  DropItem "NemesisRuneSpawnerTier1", 70, 1
  DropItem "VexedNemesisArmor", 128, 1
  DropItem "NemesisorVexedPowerShard", 35, 1
  DropItem "HandGrenadeAmmo", 237, 2
  DropItem "MineAmmo", 242, 2
  DropItem "ModdedBackPack", 202, 1
  DropItem "NemesisShell", 256
  DropItem "NemesisShellBox", 130
  DropItem "Nemesis Sawed-Off Shotgun", 128, 1
  DropItem "MysteriousBeacon" 80 1
States
{
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNSG H 5 A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNSG I 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNSG J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNSG K 5 
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VNSG L 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VNSG L 140
	VNSG L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VNSG LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VNSG LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VNSG LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VNSG L -1
	Stop
	}
}

Actor INFVexedNemesisSuperShotgunZombie2 : INFVexedNemesisSuperShotgunZombie
{
Tag "\c[w2]Vexed Nemesis Super Shotgun Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(180,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
    VNSG A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
    VNSG Z 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ShotgunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisCommando : VexedNemesisCommando Replaces VexedNemesisCommando
{
Tag "\c[w2]Vexed Nemesis Commando\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisArmor", 100, 1
  DropItem "LegAmmoSphere", 88, 1
  DropItem "NemesisorVexedPowerShard", 50, 1
  DropItem "HandGrenadeAmmo", 235, 2
  DropItem "MineAmmo", 235, 2
  DropItem "Backpack", 198, 1
  DropItem "Armorplate", 205, 1
  DropItem "Portablemedkit", 210, 1
  DropItem "NLDemonAmmoBox", 200 
  DropItem "NLDemonAmmo", 250 
  DropItem "NemesisRuneSpawnerTier1", 80, 1
  DropItem "Nemesis Plasmatic Cannon", 128, 1
  DropItem "Randomcontracttier4" 160 1
  DropItem "MysteriousBeacon" 80 1
States
{
  XDeath:
  Death:
    TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisCommandoBeacon")
	VCOM H 5 A_Scream
    VCOM I 5 A_Fall
    VCOM J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    VCOM KLM 5 
	TNT1 A 0 A_Jump(100,"MoreStuff")
	VCOM N 100
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,192)
    VCOM N -1 
	Stop
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCOM H 5 A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCOM I 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCOM J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCOM K 5 
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCOM L 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCOM M 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCOM N 140
	VCOM N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VCOM NNNNNNNNNNNNNNNNN 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VCOM NNNNNNNNNNNNNNNNN 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VCOM NNNNNNNNNNNNNNNNN 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VCOM N -1
	Stop	
	}
}

Actor INFVexedNemesisCommando2 : INFVexedNemesisCommando
{
Tag "\c[w2]Vexed Nemesis Commando\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(100,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCOM A 10 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

Actor INFVexedNemesisCommandoBeacon : VexedNemesisCommandoBeacon
{
  States
  {
  Spawn:
    NBEC A 105
    TNT1 A 0 A_SpawnItemEx("TeleportFog")
    TNT1 A 0 A_SpawnItemEx("PGNZombie",0,0,8,0,0,0,0,1)
    NBEC A 105
    TNT1 A 0 A_SpawnItemEx("TeleportFog")
    TNT1 A 0 A_SpawnItemEx("EmpoweredProShotgunCommando",0,0,8,0,0,0,0,1)
    NBEC A 105
    TNT1 A 0 A_SpawnItemEx("TeleportFog")
    TNT1 A 0 A_SpawnItemEx("CorruptedGeneral",0,0,8,0,0,0,0,1)
    NBEC A 105
    TNT1 A 1 A_SpawnItemEx("TeleportFog")
	TNT1 A 0 A_SpawnItemEx("EFGLunatic",0,0,8,0,0,0,0,1) //Just an idea I had, have fun
    NBEC A 105
    TNT1 A 1 A_SpawnItemEx("TeleportFog")
    stop
  }
}

//Marauder

ACTOR INFMarauder2 : Marauder
{
Tag "\c[W8]Marauder\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
    TNT1 A 0 A_JumpIfTargetInLOS("StrafingShield")
	MARD A 3 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisStealthTrooper : VexedNemesisStealthTrooper Replaces VexedNemesisStealthTrooper
{
Tag "\c[w2]Vexed Nemesis Stealth Trooper\c-"
 DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisArmor", 115, 1
  DropItem "LegAmmoSphere", 60, 1
  DropItem "NemesisorVexedPowerShard", 150, 1
  DropItem "HandGrenadeAmmo", 235, 6
  DropItem "MineAmmo", 235, 2
  DropItem "Backpack", 256, 1
  DropItem "Armorplate", 205, 1
  DropItem "Portablemedkit", 210, 1
  DropItem "NLDemonAmmoBox", 256 
  DropItem "NLDemonAmmo", 256 
  DropItem "NemesisShellBox", 256
  DropItem "NemesisShell", 256 
  DropItem "NemesisRuneSpawnerTier1", 120, 1
  DropItem "Nemesis Rifle", 256
  DropItem "Nemesis Sawed-Off Shotgun", 256
  DropItem "Nemesis Plasmatic Cannon" 256 1
States
{
  LegendarySoul:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_StopSound(6)
	//delete this later
	VMST H 5 A_Scream
	//delete this later
	VMST I 5 A_Fall
	//delete this later
	VMST J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	//delete this later
	VMST L 140
	VMST L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VMST LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VMST LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VMST LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VMST L -1
	Stop	
	}
}

Actor INFVexedNemesisStealthTrooper2 : INFVexedNemesisStealthTrooper
{
Tag "\c[w2]Vexed Nemesis Stealth Trooper\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(100,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
 	TNT1 A 0 A_JumpIf(user_aurascript == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("VexedAuraSpawnerZombie",0)
	TNT1 A 0 A_SetUserVar("user_aurascript",1)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VMST A 10 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis General

Actor INFVexedNemesisGeneral2 : VexedNemesisGeneral
{
Tag "\c[W2]Vexed Nemesis General\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(100,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VEGE A 10 Bright A_Look
	TNT1 A 0 A_PlayWeaponSound("weapons/bfg15kidle")
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VEGE Z 10 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisRebelSoldier : VexedNemesisRebelSoldier Replaces VexedNemesisRebelSoldier
{
Tag "\c[w2]Vexed Nemesis Rebel Soldier\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisArmor", 115, 1
  DropItem "LegAmmoSphere", 60, 1
  DropItem "NemesisorVexedPowerShard", 150, 1
  DropItem "HandGrenadeAmmo", 235, 6
  DropItem "MineAmmo", 235, 2
  DropItem "Backpack", 256, 1
  DropItem "Armorplate", 205, 1
  DropItem "Portablemedkit", 210, 1
  DropItem "NemesisBulletBox" 256 2
  DropItem "NemesisDMGBulletMag" 256 30
  DropItem "NemesisRuneSpawnerTier1", 120, 1
  DropItem "NemesisDarkMachineGun", 200
  DropItem "Randomcontracttier4" 200 1
  DropItem "MysteriousBeacon" 80 1
States
{
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCMS H 5 A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCMS I 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCMS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCMS K 5 
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCMS L 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCMS L 140
	VCMS L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VCMS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VCMS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VCMS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VCMS L -1
	Stop	
	}
}

Actor INFVexedNemesisRebelSoldier2 : INFVexedNemesisRebelSoldier
{
Tag "\c[w2]Vexed Nemesis Rebel Soldier\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(100,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCMS A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCMS Z 10 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisFiend : VexedNemesisFiend Replaces VexedNemesisFiend
{
Tag "\c[w2]Vexed Nemesis Archfiend\c-"
}

Actor INFVexedNemesisFiend2 : INFVexedNemesisFiend
{
Tag "\c[w2]Vexed Nemesis Archfiend\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(140,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
    TNT1 A 0 A_SetTranslucent (0.3)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VFND A 12 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("DemonSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Uber Commando

Actor INFVexedNemesisUberCommando2 : VexedNemesisUberCommando
{
Tag "\c[w2] Vexed Nemesis Uber Commando\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(140,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TRCG AA 1 A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis General Roasterock

Actor INFVexedNemesisGeneralRoasterock2 : VexedNemesisGeneralRoasterock
{
Tag "\c[w2]Vexed Nemesis General Roasterock\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(140,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VGRR A 10 A_look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VGRR "Z" 10 A_look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("ChaingunSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Rank 3

ACTOR INFVexedNemesisSuicideBomber : VexedNemesisSuicideBomber Replaces VexedNemesisSuicideBomber
{
Tag "\c[w2]Vexed Nemesis Suicide Bomber\c-"
States
{
  LegendarySoul:
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VSBM M 5 Bright
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VSBM N 5 Bright A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VSBM O 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VSBM P 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VSBM QRST 5
	TNT1 A 0 A_PlaySoundEx("Coomer","Voice",0,2)
	VSBM U 140
    TNT1 A 0 A_SpawnItem("NemesisDeathBall",0,0,0,0)
	VSBM U 20
	TNT1 A 0 A_SpawnItem("NemesisDeathBall",0,0,0,0)
	VSBM UUUUUUUUUUUUUUUUU 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VSBM UUUUUUUUUUUUUUUUU 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VSBM UUUUUUUUUUUUUUUUU 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VSBM U -1
	Stop
	}
}

Actor INFVexedNemesisSuicideBomber2 : INFVexedNemesisSuicideBomber
{
Tag "\c[w2]Vexed Nemesis Suicide Bomber\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(140,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	VSBM A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	VSBI A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,64)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("DemonSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisChainsawZombie : VexedNemesisChainsawZombie Replaces VexedNemesisChainsawZombie
{
Tag "\c[w2]vexed Nemesis Chainsaw Zombie\c-"
DropItem "NemesisHealthBonusMax", 256, 32
DropItem "NemesisArmorBonus32", 256
DropItem "NemesisHealthBonusMax", 256, 32
DropItem "NemesisArmorBonus32", 256
DropItem "SemiNemesisArmor", 140, 1
DropItem "LegAmmoSphere", 200, 3
DropItem "HandGrenadeAmmo", 256, 2
DropItem "MineAmmo", 256, 2
DropItem "Backpack", 256, 1
DropItem "Armorplate", 205, 1
DropItem "Portablemedkit", 210, 1
DropItem "NemesisShellBox", 200 
DropItem "NemesisShell", 256 
DropItem "NemesisRuneSpawnerTier2", 200, 1
DropItem "Nemesis Assault Shotgun", 200, 1
DropItem "VexedNemesisPowerShard", 256, 1
States
{
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCSZ H 5 A_Scream
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCSZ I 5 A_Fall
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCSZ J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCSZ KL 5 
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
    VCSZ M 5
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	VCSZ M 140
	VCSZ M 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	VCSZ MMMMMMMMMMMMMMMMM 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VCSZ MMMMMMMMMMMMMMMMM 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	VCSZ MMMMMMMMMMMMMMMMM 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	VCSZ M -1
	Stop	
	}
}

Actor INFVexedNemesisChainsawZombie2 : INFVexedNemesisChainsawZombie
{
Tag "\c[w2]vexed Nemesis Chainsaw Zombie\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(140,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	VCSZ AX 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("DemonSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisRedeemer : VexedNemesisRedeemer Replaces VexedNemesisRedeemer
{
Tag "\c[w2]Vexed Nemesis Redeemer\c-"
}

Actor INFVexedNemesisRedeemer2 : INFVexedNemesisRedeemer
{
Tag "\c[w2]Vexed Nemesis Redeemer\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
    TNT1 AAA 0 A_SpawnItemEx("NDefilerWhiteSmokeSpawner")
    VMDF A 10 Bright A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("DemonSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisTormentor : VexedNemesisTormentor Replaces VexedNemesisTormentor
{
Tag "\c[w2]Vexed Nemesis Tormentor\c-"
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisSphere", 150, 1
  DropItem "NemesisRuneSpawnerTier3", 128, 1
  DropItem "NLDemonAmmo", 256
  DropItem "NLDemonAmmoBox", 256
  DropItem "Nemesis Plasmatic Cannon" 175 1
  DropItem "Nemesis Rifle" 175 1
  DropItem "NemesisPowerSphere" 120
States
{
  Death:
    VPAI M 5 A_Scream
	VNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
    VPAI NNNNNNNNNNNNN 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	VPAI OOOOOOOOOOOOO 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	//VPAI P 0 A_KillChildren
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	VPAI PPPPPPP 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	VPAI QQQQQQQ 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	VPAI RRRRRRR 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	VPAI SSSSSSS 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	VPAI TTTTTTT 2 A_CustomMissile("NemesisTormentorDeathEffect",0,0,0,CMF_TRACKOWNER)
	TNT1 AAAAAAAA 0 A_CustomMissile("NemesisCyberBouncyBFG",0,0,random(0,360),2,random(-5,30))
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 A 1
	TNT1 AAAAAA 0 A_SpawnItemEx("VexedNemesisUmbra",0,0,16,random(-20,20),random(-20,20),random(0,30))
	TNT1 A 0 A_SpawnItemEx("INFVexedNemesisSoul",0,0,16,0,0,0,0,32,64)
	TNT1 A 0 A_NoBlocking
	VPAI UV 4
	TNT1 A 100
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,3)
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,128)
	TNT1 A 0 A_Jump(100,"MoreStuff")	
	TNT1 A 1
    Stop
	}
}

Actor INFVexedNemesisTormentor2 : INFVexedNemesisTormentor
{
Tag "\c[w2]Vexed Nemesis Tormentor\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	//TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
    TNT1 AAA 0 A_SpawnItemEx("NDefilerWhiteSmokeSpawner")
    VPAI A 10 A_Look
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("PainElemental",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisBabySentient : VexedNemesisBabySentient Replaces VexedNemesisBabySentient
{
Tag "\c[w2]Vexed Nemesis Baby Sentient\c-"
}

Actor INFVexedNemesisBabySentient2 : INFVexedNemesisBabySentient
{
Tag "\c[w2]Vexed Nemesis Baby Sentient\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
    TNT1 A 0 A_JumpIf(user_script == 1,4)
	TNT1 A 0 ACS_NamedExecuteAlways("NemesisBabySentientFire")
	TNT1 A 0 A_PlaySound("NemesisBabySentient/Loop",7,1.0,1)
    TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	VBBS A 3 A_Look
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	VBBS B 3 A_Look	
    Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Arachnotron",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisGoliath : VexedNemesisGoliath Replaces VexedNemesisGoliath
{
Tag "\c[w2]Vexed Nemesis Goliath\c-"
}

Actor INFVexedNemesisGoliath2 : INFVexedNemesisGoliath
{
Tag "\c[w2]Vexed Nemesis Goliath\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	VEMB B 8 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Fatso",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisRevenant : VexedNemesisRevenant Replaces VexedNemesisRevenant
{
Tag "\c[w2]Vexed Nemesis Revenant\c-"
}

Actor INFVexedNemesisRevenant2 : INFVexedNemesisRevenant
{
Tag "\c[w2]Vexed Nemesis Revenant\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_SpawnItemEx("VexedRevenantFireSpawner",0,0,0,0,0,0,0,SXF_SETMASTER)
	TNT1 A 0 A_PlaySound("VexedRevenant/Active",7,1.0,1)
	Goto Idle
  Idle:
	VNRV A 5 A_Look
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Revenant",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisArchon : VexedNemesisArchon Replaces VexedNemesisArchon
{
Tag "\c[w2]Vexed Nemesis Archon\c-"
Health 5000 //3500
  DamageFactor 0.3 //0.5
  DamageFactor "TrueLegendaryDamage", 0.2
  DamageFactor "TrueLegendaryPlayer", 0.2
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisSphere", 140, 1
  DropItem "VexedNemesisUltraSphere", 100, 1
  DropItem "NemesisDemonHeart" 64 1
  DropItem "NemesisRuneSpawnerTier2", 128, 1
  DropItem "BeastSoulSphere", 80, 1
  DropItem "VexedNemesisRune", 50, 1
}

Actor INFVexedNemesisArchon2 : INFVexedNemesisArchon
{
Tag "\c[w2]Vexed Nemesis Archon\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	TNT1 A 0 A_JumpIf(user_aurascript == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("VexedAuraSpawnerBruiser",0)
	TNT1 A 0 A_SetUserVar("user_aurascript",1)
	VNBL A 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("HellKnight",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

ACTOR INFVexedNemesisCydestroyer : VexedNemesisCydestroyer Replaces VexedNemesisCydestroyer
{
Tag "\c[w2]Vexed Nemesis Cydestroyer\c-"
  Health 4750 // 3500
  DamageFactor 0.35 //0.5
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "VexedNemesisSphere", 90, 1
  DropItem "VexedNemesisArmor", 170, 1
  DropItem "NemesisRuneSpawnerTier3", 128, 1
  DropItem "NLDemonAmmo", 256
  DropItem "NLDemonAmmoBox", 256
  DropItem "NemesisShell", 256
  DropItem "NemesisShellBox", 130
  DropItem "Nemesis Rifle", 100
  DropItem "Nemesis Plasmatic Cannon", 100
  DropItem "Nemesis Assault Shotgun", 100
  DropItem "Nemesis Sawed-Off Shotgun", 100
  DropItem "HellsMediumContract" 150 1
  DropItem "MysteriousBeacon" 80 1
  DropItem "VexedNemesisRune", 50, 1
}

Actor INFVexedNemesisCydestroyer2 : INFVexedNemesisCydestroyer
{
Tag "\c[w2]Vexed Nemesis Cydestroyer\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
    TNT1 AA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
    VC2S A 7 A_Look
    Loop 
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Baronofhell",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Assault Destroyer

ACTOR INFVexedNemesisExileEvent : VexedNemesisExileEvent Replaces VexedNemesisExileEvent
{
Tag "\c[w2]The Vexed Exiled\c-"
}

Actor INFVexedNemesisExileEvent2 : INFVexedNemesisExileEvent
{
Tag "\c[w2]The Vexed Exiled\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_SetUserVar(user_summondelay,800)
  Idle:
	TNT1 A 0 A_Wander
	TNT1 A 1 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Archvile",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Nazi

Actor INFVexedNemesisKrieger2 : VexedNemesisKrieger
{
Tag "\c[w2]Vexed Nemesis Krieger\c-"
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "LegendaryBossLifeEssence" 128
DropItem "LegendaryBossArmorBonusMax" 128
DropItem "EnragedLegendaryLMGBulletMag", 250, 6
DropItem "EnragedLegendaryBulletBox", 125
DropItem "NemesisSuperSphere", 90
//DropItem "EnragedLegendaryChaingun", 256, 1
DropItem "LegAmmoSphere", 93
DropItem "SpringMine", 50, 1
DropItem "SpringMine", 50, 1
DropItem "SpringMine", 50, 1
DropItem "SpringMine", 50, 1
DropItem "NemesisRuneSpawnerTier4", 110, 1
DropItem "PortableMedCell", 256, 1
DropItem "PortableMedCellPack", 256, 1
DropItem "ArmorPlate" 256
DropItem "AmmoPack", 256, 5
DropItem "ArmorCharge", 256, 5
DropItem "VexedNemesisSphere", 90, 1
DropItem "VexedNemesisArmor", 150, 1
DropItem "VexedNemesisRune", 50, 1
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0
	Goto Idle
  Idle:
	VNKG A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	VNKG A 10 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("WolfensteinSS",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Hitler

Actor INFVexedNemesisHitler2 : VexedNemesisHitler
{
Tag "\c[w2]Der Prototyp Vexed Nemesis Fuhrer Klon\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(128,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	V1ML A 3 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("WolfensteinSS",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

//Vexed Nemesis Hitler No Armor

//Vex Terminated Krieger

ACTOR VexTerminatedKrieger2 : VexTerminatedKrieger
{
Tag "\c[w2]VexTerminated Krieger\c-"
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "LegendaryBossLifeEssence" 128
DropItem "LegendaryBossArmorBonusMax" 128
DropItem "EnragedLegendaryLMGBulletMag", 250, 6
DropItem "EnragedLegendaryBulletBox", 125
DropItem "NemesisSuperSphere", 90
//DropItem "EnragedLegendaryChaingun", 256, 1
DropItem "LegAmmoSphere", 93
DropItem "SpringMine", 50, 1
DropItem "SpringMine", 50, 1
DropItem "SpringMine", 50, 1
DropItem "SpringMine", 50, 1
DropItem "NemesisRuneSpawnerTier4", 256, 1
DropItem "NemesisRuneSpawnerTier4", 110, 1
DropItem "NemesisRuneSpawnerTier4", 110, 1
DropItem "PortableMedCell", 256, 1
DropItem "PortableMedCellPack", 256, 1
DropItem "ArmorPlate" 256
DropItem "AmmoPack", 256, 5
DropItem "ArmorCharge", 256, 5
DropItem "VexedNemesisSphere", 90, 1
DropItem "UpgradedVexedNemesisArmor", 150, 1
DropItem "VexedNemesisRune", 50, 1
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
	VTKG A 10 Bright A_Chase
	TNT1 AA 0 A_SpawnItemEx("LHellionSmokeSpawner")
  Idle:
	VTKG A 10 Bright A_Look
	TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	VTKG A 10 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("LHellionSmokeSpawner")
	Loop
	}
}

//Nazi Poltergeist

ACTOR NaziPoltergeist2 : NaziPoltergeist
{
Tag "\c[b7]Poltergeist\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  SpawnLoop:
	SP8C A 3 Bright A_Look
	Loop
	}
}