// Powerup Spawners

ACTOR PowerupSpawner1 : RandomSpawner
{
	DropItem "IDMDoomSphere", 255, 30
	DropItem "IDMGuardSphere", 255, 30
	DropItem "IDMMegaSphere", 255, 30
	DropItem "StrengthSphere", 255, 30
	DropItem "IDMSoulSphere", 255, 20
	DropItem "ResistSphere", 255, 10
	DropItem "ResistSphere2", 255, 10
	DropItem "ResistSphere3", 255, 10
	DropItem "RegenSphere", 255, 30
	DropItem "HasteSphere", 255, 30
	DropItem "ReflectSphere", 255, 30
	DropItem "ProsperitySphere", 255, 30
	DropItem "RageSphere", 255, 30
	DropItem "SpreadSphere", 255, 30
	DropItem "DrainSphere", 255, 30
	DropItem "IDMTurboSphere", 255, 30
	DropItem "IDMInvisSphere", 255, 30
	DropItem "IDMTimeFreeze", 255, 1
	DropItem "OKSphere", 255, 1
}

ACTOR DuelPowerupSpawner : RandomSpawner
{
	DropItem "IDMMegasphere"
	DropItem "IDMSoulsphere"
	DropItem "DuelResistSphere"
	DropItem "DuelResistSphere2"
	DropItem "DuelResistSphere3"
	DropItem "RegenSphere"
	DropItem "DuelHasteSphere"
	DropItem "ProsperitySphere"
}

ACTOR PowerupSpawner2 : RandomSpawner
{
	DropItem "IDMDoomSphere"
	DropItem "IDMGuardSphere"
	DropItem "IDMMegaSphere"
	DropItem "StrengthSphere"
	DropItem "IDMSoulSphere"
	DropItem "ResistSphere"
	DropItem "ResistSphere2"
	DropItem "ResistSphere3"
	DropItem "RegenSphere"
	DropItem "HasteSphere"
	DropItem "ReflectSphere"
	DropItem "ProsperitySphere"
	DropItem "RageSphere"
	DropItem "SpreadSphere"
	DropItem "DrainSphere"
	DropItem "IDMTurboSphere"
	DropItem "IDMInvisSphere"
}

ACTOR PowerupSpawner3 : RandomSpawner
{
	DropItem "RageSphere", 255, 90
	DropItem "IDMTimeFreeze", 255, 10
}

ACTOR PowerupSpawner4 : RandomSpawner
{
	DropItem "ResistSphere"
	DropItem "ResistSphere2"
	DropItem "ResistSphere3"
}

ACTOR DuelPowerupSpawner4 : RandomSpawner
{
	DropItem "DuelResistSphere"
	DropItem "DuelResistSphere2"
	DropItem "DuelResistSphere3"
}

ACTOR PowerupSpawnActor1 : CustomInventory replaces Chainsaw
{
	Tag "Powerup Spawner 1"
    //$Category Powerups
    //$Sprite CSAWA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor2 : CustomInventory replaces Blursphere
{
	Tag "Powerup Spawner 2"
    //$Category Powerups
    //$Sprite PINSA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor3 : CustomInventory replaces Infrared
{
	Tag "Powerup Spawner 3"
    //$Category Powerups
    //$Sprite PVISA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner2")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor4 : CustomInventory replaces Soulsphere
{
	Tag "Powerup Spawner 4"
    //$Category Powerups
    //$Sprite SOULA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor5 : CustomInventory replaces Megasphere
{
	Tag "Powerup Spawner 5"
    //$Category Powerups
    //$Sprite MEGAA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor6 : CustomInventory replaces InvulnerabilitySphere
{
	Tag "Powerup Spawner 6"
    //$Category Powerups
    //$Sprite PINVA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  //TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner3")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor7 : CustomInventory replaces Berserk
{
	Tag "Powerup Spawner 7"
    //$Category Powerups
    //$Sprite PSTRA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor8 : CustomInventory replaces Allmap
{
	Tag "Powerup Spawner 8"
    //$Category Powerups
    //$Sprite PMAPA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner2")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner")
	  Stop
	}
}

ACTOR PowerupSpawnActor9 : CustomInventory replaces Radsuit
{
	Tag "Powerup Spawner 9"
    //$Category Powerups
    //$Sprite SUITA0
	+NOBLOCKMAP
	+NOGRAVITY
	States
	{
	Spawn:
	  TNT1 A 0
	  TNT1 A 1
	  TNT1 A 1 A_JumpIf(ACS_NamedExecuteWithResult("GunModifierSpawn") == 666,"Nothing")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DuelSpawn") == true,"Duel")
	  TNT1 A 1 A_SpawnItemEx("PowerupSpawner4")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	Duel:
	  TNT1 A 1 A_SpawnItemEx("DuelPowerupSpawner4")
	  Stop
	}
}