Page 1 of 1

A question about ammo

Posted: Wed Dec 20, 2017 11:40 pm
by gabgabgab
Can you have an ammo pickup that gives out 2 ammo types?

Re: A question about ammo

Posted: Wed Dec 20, 2017 11:48 pm
by wildweasel
For this sort of thing, I tend to create a CustomInventory pickup that gives the ammo types in its Pickup state.

Code: Select all

ACTOR DoubleAmmoThing : CustomInventory
{
	Inventory.PickupMessage "Two! TWO! Two ammos in one!"
	Inventory.PickupSound "pickups/cheesyjingle"
	States
	{
	Spawn:
		BPAK A -1
		Stop
	Pickup:
		TNT1 A 0 A_GiveInventory("SomeBeefyAmmoType", 4)
		TNT1 A 0 A_GiveInventory("ABunchaLittleBoolits", 50)
		Stop
	}
}

Re: A question about ammo

Posted: Thu Dec 21, 2017 12:05 am
by gabgabgab
Thanks