ACTOR "Pipe Ammo" : Ammo
{
    Inventory.PickupMessage "\cnPipe bomb!"
    Inventory.Amount 1
    Inventory.MaxAmount 50
    Inventory.Icon "TNT1A0"
    Ammo.BackPackAmount 5
    Ammo.BackPackMaxAmount 50
    Scale 0.17
    +INVENTORY.IGNORESKILL
    States
    {
	Spawn:
		TNT1 A 0		
		TNT1 A 1 A_Jump(256,"Spawn1","Spawn2")
		Stop
	Spawn1:	
        PBMX A -1
        Stop
	Spawn2:	
        2BMX A -1
        Stop
        }
}

ACTOR " Pipe Ammo " : CustomInventory Replaces HealthBonus 31012
{
    //$Category DN3D Weapons
	Inventory.PickupMessage "\cnPipe bomb!"
    Inventory.MaxAmount 50
    Inventory.Amount 1
	Scale 0.17
	States
    {
    Spawn:
		TNT1 A 0		
		TNT1 A 1 A_Jump(256,"Spawn1","Spawn2")
		Stop
	Spawn1:	
        PBMX A -1
        Stop
	Spawn2:	
        2BMX A -1
        Stop
	Pickup: 		
		PBMP A 0 A_JumpIfInventory("FirstPipeBombSound",1,6)
        PBMP A 0 A_PlaySound("DukeNukem/PickWeapon",15)
        PBMP A 1 A_GiveInventory("Pipe Bomb",1)
		PBMP A 0 A_GiveInventory("FirstPipeBombSound",1)
		PBMP A 0 A_SelectWeapon("Pipe Bomb")
        Stop
		PBMP A 0
        PBMP A 1 A_GiveInventory("Pipe Bomb",1)
        Stop
        }
}

ACTOR "Pipe Ammo Box" : CustomInventory Replaces RocketAmmo 31013
{
    //$Category DN3D Weapons
	Inventory.PickupMessage "\cnPipe bombs!"
    Inventory.MaxAmount 50
    Inventory.Amount 5
    Scale 0.55
    States
    {
	Spawn:
		TNT1 A 0		
		TNT1 A 1 A_Jump(256,"Spawn1","Spawn2")
		Stop
	Spawn1:	
        PBMP A -1
        Stop
	Spawn2:	
        2BMP A -1
        Stop			
	Pickup: 		
		PBMP A 0 A_JumpIfInventory("FirstPipeBombSound",1,7)
        PBMP A 0 A_PlaySound("DukeNukem/PickWeapon",15)
        PBMP A 1 A_GiveInventory("Pipe Bomb",1)
		PBMP A 1 A_GiveInventory("Pipe Ammo",4)
		PBMP A 0 A_GiveInventory("FirstPipeBombSound",1)
		PBMP A 0 A_SelectWeapon("Pipe Bomb")
        Stop
		PBMP A 0
        PBMP A 1 A_GiveInventory("Pipe Bomb",1)
		PBMP A 1 A_GiveInventory("Pipe Ammo",4)
        Stop
        }
}

ACTOR FirstPipeBombSound : Inventory
{
    Inventory.Amount 0
    Inventory.MaxAmount 1
}