Controls switching behavior on weapon pickup. The default value of 1 causes autoswitch to happen on every weapon pickup. 0 disables autoswitch, and 2 only switches if the player gets a weapon that wasn’t already enabled.
momentum_pickup_ammo
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>)
Amount of ammo to give the player for the specified ammo type. If the value is negative, it gives the player infinite ammo for that weapon. If the value is positive, the player is given that amount of ammo, up to the ammo limit.
momentum_weapon_spawner
This entity can be used to give the player a weapon and ammo for that weapon.
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.
Weapon Name (WeaponName<string>)
Name of the weapon to give the player. Must be one of the names listed on Weapon System.
Pickup Ammo (PickupAmmo<integer>)
Weapon and Ammo Systems
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 theSetAmmoLimitinput, where a limit of-1means 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_spawnerentity can also give ammo on pickup, controlled by thePickupAmmokey.
