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.

Default: DMG_BULLET

force [number]

The force of the ammo.

Related function is game.GetAmmoForce.

Default: 1000

maxsplash [number]

The maximum water splash size.

Default: 0

minsplash [number]

The minimum water splash size.

Default: 0

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.

Default: 10

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.

Default: 10

tracer [number]

Tracer type using Enums/TRACER.

Default: TRACER_NONE

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.

Default: 9999

flags [number]

Flags for the ammo type using Enums/AMMO.

Default: 0

Page Links


Special Pages


Wikis

?

Render Time: 86ms

DB GetPage 39
Generate Html 19
SaveChanges (1) 9
Render Body 0
Render Sidebar 12