AmmoData
Description
Table structure that describes a Source Engine ammo type.
See game.AddAmmoType and game.GetAmmoData.
Members
number npcdmg
The damage dealt to NPCs.
Related function is game.GetAmmoNPCDamage.
Can also be a string pointing to a convar. The value will automatically update with the convar's.
Default: 10
number plydmg
The damage dealt to players.
Related function is game.GetAmmoPlayerDamage.
Can also be a string pointing to a convar. The value will automatically update with the convar's.
Default: 10
number maxcarry
Maximum amount of ammo of this type the player should be able to carry in reserve.
-2
makes this ammo type infinite.
Related function is game.GetAmmoMax.
Can also be a string pointing to a convar. The value will automatically update with the convar's.
gmod_maxammo
convar will override this value if set to above 0, which it is by default.Default: 9999