This entity can be used to give the player ammo.
Keyvalues
#
Reset Time (ResetTime<float>)
The amount of time in seconds before a weapon can be picked up again. If this value is negative, then the spawner will only give a weapon once.
Ammo Name (AmmoName<string>)
Name of the ammo type to give the player. Must be one of the names listed on Ammo System.
Pickup Ammo (PickupAmmo<integer>)
...
Ammo System
#
All Defrag weapons, the RJ Rocket Launcher, the Sticky Bomb Launcher, and Concs can be controlled with separate ammo types.
By default players have infinite ammo.
Additionally, an ammo limit can be set that doesn’t allow the player to have more than a certain amount.
By default, the player has a limit of 200 on the maximum amount of ammo they can carry of any type.
This can be changed with the SetAmmoLimit input, where a limit of -1 means no limit.
The ammo limit does not prevent the player from carrying infinite ammo, it only applies when the player’s ammo is finite.
Pickup Entities
#
In order to create an ammo pickup use momentum_pickup_ammo entity.
The key AmmoName controls the type of ammo. It takes a string which is one of the names in the table below.
The entity also takes a PickupAmmo key which controls how much ammo the player gets.
momentum_weapon_spawner entity can also give ammo on pickup, controlled by the PickupAmmo key.
...