// Ammo Spawners

ACTOR SmallAmmoSpawner1 : RandomSpawner
{
	DropItem "IDMClip"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShell"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketAmmo"
	DropItem "IDMRocketBundle"
	DropItem "IDMCell"
	DropItem "IDMCellKit"
}

ACTOR SmallAmmoSpawner2 : RandomSpawner
{
	DropItem "IDMClip"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShell"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketAmmo"
	DropItem "IDMRocketBundle"
	DropItem "IDMCell"
	DropItem "IDMCellKit"
}

ACTOR SmallAmmoSpawner3 : RandomSpawner
{
	DropItem "IDMClip"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShell"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketAmmo"
	DropItem "IDMRocketBundle"
	DropItem "IDMCell"
	DropItem "IDMCellKit"
}

ACTOR SmallAmmoSpawner4 : RandomSpawner
{
	DropItem "IDMClip"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShell"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketAmmo"
	DropItem "IDMRocketBundle"
	DropItem "IDMCell"
	DropItem "IDMCellKit"
}

ACTOR BigAmmoSpawner1 : RandomSpawner
{
	DropItem "IDMClipBox"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShellBox"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketBox"
	DropItem "IDMRocketBundle"
	DropItem "IDMCellPack"
	DropItem "IDMCellKit"
}

ACTOR BigAmmoSpawner2 : RandomSpawner 
{
	DropItem "IDMClipBox"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShellBox"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketBox"
	DropItem "IDMRocketBundle"
	DropItem "IDMCellPack"
	DropItem "IDMCellKit"
}

ACTOR BigAmmoSpawner3 : RandomSpawner
{
	DropItem "IDMClipBox"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShellBox"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketBox"
	DropItem "IDMRocketBundle"
	DropItem "IDMCellPack"
	DropItem "IDMCellKit"
}

ACTOR BigAmmoSpawner4 : RandomSpawner
{
	DropItem "IDMClipBox"
	DropItem "IDMSmallClipBox"
	DropItem "IDMShellBox"
	DropItem "IDMShellPacket"
	DropItem "IDMRocketBox"
	DropItem "IDMRocketBundle"
	DropItem "IDMCellPack"
	DropItem "IDMCellKit"
}

ACTOR SmallPointBlankAmmoSpawner : RandomSpawner
{
	DropItem "IDMShell"
	DropItem "IDMShellPacket"
}

ACTOR SmallBulletHellAmmoSpawner : RandomSpawner
{
	DropItem "IDMClip"
	DropItem "IDMSmallClipBox"
}

ACTOR SmallBlockBusterAmmoSpawner : RandomSpawner
{
	DropItem "IDMRocketAmmo"
	DropItem "IDMRocketBundle"
}

ACTOR SmallCellShockAmmoSpawner : RandomSpawner
{
	DropItem "IDMCell"
	DropItem "IDMCellKit"
}

ACTOR BigPointBlankAmmoSpawner : RandomSpawner
{
	DropItem "IDMShellBox"
	DropItem "IDMShellPacket"
}

ACTOR BigBulletHellAmmoSpawner : RandomSpawner
{
	DropItem "IDMClipBox"
	DropItem "IDMSmallClipBox"
}

ACTOR BigBlockBusterAmmoSpawner : RandomSpawner
{
	DropItem "IDMRocketBox"
	DropItem "IDMRocketBundle"
}

ACTOR BigCellShockAmmoSpawner : RandomSpawner
{
	DropItem "IDMCellPack"
	DropItem "IDMCellKit"
}

ACTOR SmallAmmoSpawnActor1 : CustomInventory replaces Clip
{
	Tag "Small Ammo Spawner 1"
	//$Category Ammunition
	//$Sprite CLIPA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("SmallAmmoSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("SmallPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("SmallCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR SmallAmmoSpawnActor2 : CustomInventory replaces Shell
{
	Tag "Small Ammo Spawner 2"
	//$Category Ammunition
	//$Sprite SHELA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("SmallAmmoSpawner2")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("SmallPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("SmallCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR SmallAmmoSpawnActor3 : CustomInventory replaces RocketAmmo
{
	Tag "Small Ammo Spawner 3"
	//$Category Ammunition
	//$Sprite ROCKA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("SmallAmmoSpawner3")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("SmallPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("SmallCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR SmallAmmoSpawnActor4 : CustomInventory replaces Cell
{
	Tag "Small Ammo Spawner 4"
	//$Category Ammunition
	//$Sprite CELLA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("SmallAmmoSpawner4")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("SmallPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("SmallBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("SmallCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR BigAmmoSpawnActor1 : CustomInventory replaces ClipBox
{
	Tag "Big Ammo Spawner 1"
	//$Category Ammunition
	//$Sprite AMMOA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("BigAmmoSpawner1")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("BigPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("BigBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("BigBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("BigCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR BigAmmoSpawnActor2 : CustomInventory replaces ShellBox
{
	Tag "Big Ammo Spawner 2"
	//$Category Ammunition
	//$Sprite SBOXA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("BigAmmoSpawner2")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("BigPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("BigBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("BigBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("BigCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR BigAmmoSpawnActor3 : CustomInventory replaces RocketBox
{
	Tag "Big Ammo Spawner 3"
	//$Category Ammunition
	//$Sprite BROKA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("BigAmmoSpawner3")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("BigPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("BigBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("BigBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("BigCellShockAmmoSpawner")
	  Stop
	}
}

ACTOR BigAmmoSpawnActor4 : CustomInventory replaces CellPack
{
	Tag "Big Ammo Spawner 4"
	//$Category Ammunition
	//$Sprite CELPA0
	+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("WeaponGroupSpawn") == 1,"ShotGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 2,"BulletGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 3,"ExplGun")
	  TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("WeaponGroupSpawn") == 4,"PlasmaGun")
	  TNT1 A 1 A_SpawnItemEx("BigAmmoSpawner4")
	Nothing:
	  TNT1 A 1
	  TNT1 A -1
	  Stop
	ShotGun:
	  TNT1 A 1 A_SpawnItemEx("BigPointBlankAmmoSpawner")
	  Stop
	BulletGun:
	  TNT1 A 1 A_SpawnItemEx("BigBulletHellAmmoSpawner")
	  Stop
	ExplGun:
	  TNT1 A 1 A_SpawnItemEx("BigBlockBusterAmmoSpawner")
	  Stop
	PlasmaGun:
	  TNT1 A 1 A_SpawnItemEx("BigCellShockAmmoSpawner")
	  Stop
	}
}