// Rifle ammo box --------------------------------------------------------------

ACTOR RealismClip2 : ClipBox2 replaces Clipbox2
{
	Inventory.Amount 30
}

// Rocket box ------------------------------------------------------------------

ACTOR RealismRocketBox : AmmoRocketBox
{
	Inventory.Amount 2
}

// Cell pack -------------------------------------------------------------------

ACTOR RealismCellPack : AmmoCellPack replaces AmmoCellPack
{
	Inventory.Amount 50
}

// Shell box -------------------------------------------------------------------

ACTOR RealismShellBox : AmmoShellBox replaces AmmoShellBox
{
	Inventory.Amount 6
}

// Grenade Box -----------------------------------------------------------------

ACTOR GrenadeBoxNew : CustomInventory
{
	Game Doom
	// SpawnID 139
	Inventory.PickupMessage "$GOTGRENADEBOX"
	States
	{
	Spawn:
		GRBX A 0
		GRBX A -1
		
	Pickup:
		TNT1 A 0 A_GiveInventory("GrenadeAmmo", 2)
		Stop
	}
}

// Grenade spawners ------------------------------------------------------------

Actor RocketBoxSpawner: RandomSpawner replaces RocketBox //allows grenade boxes to spawn
{
	DropItem "RealismRocketBox", 256, 9
	DropItem "GrenadeBoxNew", 256, 1
}

Actor RocketSpawner: RandomSpawner replaces RocketAmmo //allows grenades to spawn
{
	DropItem "AmmoRocket", 256, 6
	DropItem "GrenadeAmmo", 256, 1
}

// Grenade Flare Warning -------------------------------------------------------

Actor GrenadeFlare : RocketFlare
{
	States
	{
	Spawn:
	    LEYS O 2 BRIGHT
		TNT1 A 0 A_CustomMissile ("DoxGrenadeSmokeTrail", 2, 0, random (70, 110), 2, random (0, 360))
		Stop
	}
}
