Ammo entities #
Ammo entities share the ammo_ prefix in their name and same parameters.
The list of ammo entities #
ammo_9mmclipammo_9mmARammo_9mmboxammo_ARgrenadesammo_buckshotammo_357ammo_rpgclipammo_gaussclipammo_crossbowammo_556ammo_762ammo_45acpammo_57mm
There’s also the ammo_spore but despite sharing the classname prefix, it technically is not a pickup item.
ammo_45acp and ammo_57mm provide 45acp and 57mm ammo types which are not used by any weapon by default. The weapon can be made to use one of these ammo types via ammo_name property in the weapon template.
The entities use the same model as ammo_9mmAR. You can set custom model via Entity templates.
Example:
{
"ammo_45acp": {
"own_visual": {
"model": "models/w_45acp.mdl"
}
},
"ammo_57mm": {
"own_visual": {
"model": "models/w_57mm.mdl"
}
}
}
Parameters #
Custom Model- custom model for the entity instance.Custom amount- custom ammo amount provided for the player on picking up.Gravity Setting- Unmoveable
- Fall to the ground (default)
- Hover in the air
- Hover in the air, ignore brush collision
Master- block picking up until master is activated.
Spawnflags #
TOUCH Only- can be picked up only by touching.USE Only- can be picked up only by pressing +use on it.
Server cvars #
- mp_ammo_respawndelay - delay before ammo entity respawns in multiplayer game. -2 means default (which is 20 seconds in Half-Life). -1 means never respawn.