Garry's Mod Wiki

AmmoData

Description

Table structure that describes a Source Engine ammo type.

See game.AddAmmoType and game.GetAmmoData.

Parameters

dmgtype [number]

Damage type using Enums/DMG.

Related function is game.GetAmmoDamageType.

force [number]

The force of the ammo.

Related function is game.GetAmmoForce.

maxsplash [number]

The maximum water splash size.

minsplash [number]

The minimum water splash size.

name [string]

Name of the ammo.

Related functions are game.GetAmmoName and game.GetAmmoID.

npcdmg [number]

Can also be a string pointing to a convar. The value will automatically update with the convar's.

The damage dealt to NPCs.

Related function is game.GetAmmoNPCDamage.

plydmg [number]

Can also be a string pointing to a convar. The value will automatically update with the convar's.

The damage dealt to players.

Related function is game.GetAmmoPlayerDamage.

tracer [number]

Tracer type using Enums/TRACER.

maxcarry [number]

Maximum amount of ammo of this type the player should be able to carry in reserve.

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 will override this value if set to above 0.

flags [number]

Flags for the ammo type using Enums/AMMO.

Page Links


Special Pages


Wikis

?

Render Time: 51ms

Session 0
DB GetPage 4
Generate Html 26
SaveChanges 8
Render Body 0
Render Sidebar 11