AmmoData
Description
Table structure that describes a Source Engine ammo type.
See game.AddAmmoType and game.GetAmmoData.
Parameters
number dmgtype
number force
The force of the ammo.
Related function is game.GetAmmoForce.
Default: 1000
number maxsplash
The maximum water splash size.
Default: 0
number minsplash
The minimum water splash size.
Default: 0
string name
Name of the ammo.
Related functions are game.GetAmmoName and game.GetAmmoID.
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 tracer
Tracer type using Enums/TRACER.
Default: TRACER_NONE
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
number flags
Flags for the ammo type using Enums/AMMO.
Default: 0