Actor NemesisAmmoSphere : CustomInventory
{
//$Sprite DNEM
//$Title "Nemesis Ammo Sphere"
+INVBAR
+FLOATBOB
+COUNTITEM
+NOTIMEFREEZE
+INVENTORY.BIGPOWERUP
Inventory.MaxAmount 1
Inventory.Icon "DNEMC0"
Inventory.UseSound "legammo/use"
Inventory.PickupSound "legammo/pickup"
Inventory.PickupMessage "Nemesis Ammo Sphere! Do you like big guns, dont you?"
Tag "Nemesis Ammo Sphere"
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	DNEM AAAA 10 Bright A_CustomMissile("NemesisHellionSmokeSpawner",-20,0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	Loop	
  Use:
	TNT1 A 0
	TNT1 AAAAAAAAAA 0 A_GiveInventory("ModdedBackpack",1)
	TNT1 A 0 A_GiveInventory("SpringMine",1)
	TNT1 A 1 A_GiveInventory("NemInfiniteAmmo",1)
	TNT1 A 0 A_GiveInventory("Backpack")
	Stop
	}
}

Actor NemInfiniteAmmo : PowerupGiver
{
Inventory.MaxAmount 0
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
Powerup.Duration -85
Powerup.Color Black 0.2
Powerup.Type "PowerInfiniteAmmo"
}