ACTOR ThrowableAmmo : Ammo
{
  Tag "Quick Grenades"
  Inventory.MaxAmount 5
  Ammo.BackpackAmount 2
  Ammo.BackpackMaxAmount 10 
}

ACTOR StimAmmo : Ammo
{
  Tag "Stim Shots"
  Inventory.MaxAmount 5
  Ammo.BackpackAmount 2
  Ammo.BackpackMaxAmount 5
}

ACTOR STXAmmo : Ammo
{
   +IGNORESKILL
   Tag "Semtex Bundles"
   Inventory.MaxAmount 15
   Ammo.BackpackAmount 3
   Ammo.BackpackMaxAmount 30
}

ACTOR PistolAmmo : Ammo
{
  Tag ".45 Rounds"
  Inventory.MaxAmount 200
  Ammo.BackpackAmount 10
  Ammo.BackpackMaxAmount 400
}

ACTOR MagnumAmmo : Ammo
{
  Tag ".454 Rounds"
  Inventory.MaxAmount 20
  Ammo.BackpackAmount 3
  Ammo.BackpackMaxAmount 40
}

ACTOR ShellAmmo : Ammo
{
  Tag "12g Rounds"
  Inventory.MaxAmount 30
  Ammo.BackpackAmount 3
  Ammo.BackpackMaxAmount 60
}

ACTOR ThumperAmmo : Ammo
{
  Tag "60mm Rounds"
  Inventory.MaxAmount 25
  Ammo.BackpackAmount 3
  Ammo.BackpackMaxAmount 50
}

ACTOR FlareAmmo : Ammo
{
  Tag "20mm Rounds" 
  Inventory.MaxAmount 30
  Ammo.BackpackAmount 3
  Ammo.BackpackMaxAmount 70
}

ACTOR LMGAmmo : Ammo
{
  Tag "7.62 AP Rounds"
  Inventory.MaxAmount 100
  Ammo.BackpackAmount 10
  Ammo.BackpackMaxAmount 200
}

ACTOR BigRocketAmmo : Ammo
{
  Tag "60mm K-RAD Rounds"
  Inventory.MaxAmount 2
  Ammo.BackpackAmount 1
  Ammo.BackpackMaxAmount 5
}

ACTOR PistolAmmoMag : PistolAmmo replaces Clip
{
  Inventory.PickupMessage "\c[Grey][ \c[Red].45 Pistol Magazines\c- \c[Grey]]"
  Inventory.Amount 10
  Scale 0.3
  Inventory.PickupSound "45AAMO"
  States
  {
  Spawn:
    PSAM A -1
    Stop
  }
}

ACTOR PistolAmmoBox : PistolAmmo replaces ClipBox
{
  Inventory.PickupMessage "\c[Grey][ \c[Red].45 SMG Magazines\c- \c[Grey]]"
  Inventory.Amount 20
  Scale 0.3
  Inventory.PickupSound "45ABOX"
  States
  {
  Spawn:
    PSAM B -1
    Stop
  }
}



ACTOR MagnumAmmoMag : MagnumAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[Yellow].454 Speedloader\c- \c[Grey]]"
  Inventory.Amount 3
  Scale 0.3
  Inventory.PickupSound "454AMO"
  States
  {
  Spawn:
    RVAM A -1
    stop
  }
}

ACTOR MagnumAmmoBox : MagnumAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[Yellow].454 Round Box\c- \c[Grey]]"
  Inventory.Amount 6
  Scale 0.3
  Inventory.PickupSound "454BOX"
  States
  {
  Spawn:
    RVAM B -1
    Stop
  }
}

ACTOR ShellAmmoMag : ShellAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[Orange]Loose Shotgun Shells\c- \c[Grey]]"
  Inventory.Amount 3
  Scale 0.3
  Inventory.PickupSound "12GAMO"
  States
  {
  Spawn:
    SHAM A -1
    stop
  }
}

ACTOR ShellAmmoBox : ShellAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[Orange]12g Shell Box\c- \c[Grey]]"
  Inventory.Amount 6
  Scale 0.3
  Inventory.PickupSound "12GBOX"
  States
  {
  Spawn:
    SHAM B -1
    Stop
  }
}

ACTOR ThumperAmmoMag : ThumperAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[Purple]Loose 40mm Rounds\c- \c[Grey]]"
  Inventory.Amount 2
  Scale 0.3
  Inventory.PickupSound "60MAMO"
  States
  {
  Spawn:
    GLAM A -1
    stop
  }
}

ACTOR ThumperAmmoBox : ThumperAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[Purple]40mm Round Bundle\c- \c[Grey]]"
  Inventory.Amount 5
  Scale 0.3
  Inventory.PickupSound "60MBOX"
  States
  {
  Spawn:
    GLAM B -1
    Stop
  }
}

ACTOR FlareAmmoMag : FlareAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[DJ_Pink]Loose 20mm Rounds\c- \c[Grey]]"
  Inventory.Amount 3
  Scale 0.22
  Inventory.PickupSound "20MAMO"
  States
  {
  Spawn:
    RKAM A -1
    stop
  }
}

ACTOR FlareAmmoBox : FlareAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[DJ_Pink]20mm Round Box\c- \c[Grey]]"
  Inventory.Amount 8
  Scale 0.22
  Inventory.PickupSound "20MBOX"
  States
  {
  Spawn:
    RKAM B -1
    Stop
  }
}

ACTOR LMGAmmoMag : LMGAmmo replaces Cell
{
  Inventory.PickupMessage "\c[Grey][ \c[DarkRed]7.62 Rifle Magazine\c- \c[Grey]]"
  Inventory.Amount 5
  Scale 0.40
  Inventory.PickupSound "RIFAMO"
  States
  {
  Spawn:
    RFAM A -1
    stop
  }
}

ACTOR LMGAmmoBox : LMGAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[DarkRed]7.62 LMG Box\c- \c[Grey]]"
  Inventory.Amount 10
  Scale 0.25
  Inventory.PickupSound "RIFBOX"
  States
  {
  Spawn:
    RFAM B -1
    Stop
  }
}

ACTOR BigRocketMag : BigRocketAmmo
{
  Inventory.PickupMessage "\c[Grey][ \c[DarkRed]82mm K-RAD Rocket\c- \c[Grey]]"
  Inventory.Amount 1
  Scale 0.4
  Inventory.PickupSound "RADAMO"
  +IgnoreSkill
  States
  {
  Spawn:
    NKAM A -1
    Stop
  }
}

Actor STXBundle : CustomInventory
{
	Game Doom
    Inventory.PickupSound "STXAMO"
	Scale 0.25
	Inventory.PickupMessage "\c[White][ \c[DarkGreen]Semtex Bundle\c- \c[White]]"
	+IGNORESKILL
    Tag "Semtex Bundle"
	States
	{
	Spawn:
		STAM A -1
		loop
	Pickup:
		TNT1 A 0 A_GiveInventory("HQSemtex", 1)
		stop
	}
}

Actor FragGrenadeAmmo : CustomInventory
 {
  Inventory.PickupMessage "\c[Grey][ \c[DarkGreen]Frag Grenade\c- \c[Grey]]"
  Inventory.PickupSound "GNDAMO" 
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.IGNORESKILL
  Inventory.MaxAmount 1
  Scale 0.25
  states
  {
   Spawn: 
    TNT1 A 0
	TNT1 A 0 A_Jump(256, "Spawn1", "Spawn2")
   Spawn1:
	GRAM A -1
	loop
   Spawn2:
	GRAM B -1
	loop
   Pickup:
	TNT1 A 0 A_GiveInventory("ThrowableAmmo",1)
    STOP
	}
  }
  
 Actor InjectorAmmo : CustomInventory replaces Berserk
 {
  Inventory.PickupMessage "\c[Grey][ \c[DarkGreen]Combat Stim\c- \c[Grey]]"
  Inventory.PickupSound "STIPKP" 
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.IGNORESKILL
  Inventory.MaxAmount 1
  Scale 0.25
  states
  {
  Spawn:
	INAM A 9 BRIGHT
	INAM A 9 
	loop
   Pickup:
	TNT1 A 0 A_JumpIfInventory("StimAmmo",5,"PickupFail")
	TNT1 A 0 A_GiveInventory("StimAmmo",1)
    STOP
   PickupFail:
	TNT1 A 0
	Fail
	}
  }
 