game_weapon_manager
Jump to navigation
Jump to search
Code classes:
CGameWeaponManager
CBaseEntity
(all ents)
game_weapon_manager
is a point entity present in all Source games. It counts how many dropped weapons are in the map. If it finds too many weapons of one kind, it will delete ones that the player cannot currently see.
Note: This entity was designed for singleplayer only. It won't work correctly or possibly at all in multiplayer games.
Keyvalues[edit | edit source]
- Weapon Classname
(weaponname)
<string>
- Classname of the weapon to monitor. Must be a
CBaseCombatWeapon
. - Max Allowed in Level
(maxpieces)
<integer>
- How many weapons of the specified type may be in the map at once. The entity will not count held weapons or weapons placed in Hammer which haven't been picked up.
- Ammo modifier
(ammomod)
<float>
- Multiplies the amount of ammo inside dropped weapons. The weapons will also have their ammo increased or decreased by up to 2 rounds.
Inputs[edit | edit source]
- SetMaxPieces (Not in FGD)
<integer>
- Sets Max Allowed in Level.
- SetAmmoModifier
<float>
- Sets Ammo modifier.