Revision Difference
Structures/AmmoData#516837
<cat>struct</cat>
{{Structure⤶
|Description=Table structure that describes a Source Engine ammo type.⤶
<structure>⤶
<description>⤶
Table structure that describes a Source Engine ammo type.⤶
See <page>game.AddAmmoType</page> and <page>game.GetAmmoData</page>.
|Fields={{StructureField|number|dmgtype|Damage type using <page>DMG</page>.⤶
</description>⤶
<fields>⤶
{{StructureField|number|dmgtype|Damage type using <page>DMG</page>.⤶
Related function is <page>game.GetAmmoDamageType</page>.|DMG_BULLET
}}{{StructureField|number|force|The force of the ammo.⤶
</fields>⤶
⤶
</structure>⤶
⤶
{{StructureField|number|force|The force of the ammo.⤶
Related function is <page>game.GetAmmoForce</page>.|1000
}}{{StructureField|number|maxsplash|The maximum water splash size.|0}}{{StructureField|number|minsplash|The minimum water splash size.|0}}{{StructureField|string|name|Name of the ammo.
Related functions are <page>game.GetAmmoName</page> and <page>game.GetAmmoID</page>.
}}{{StructureField|number|npcdmg|<note>Can also be a string pointing to a convar. The value will automatically update with the convar's.</note>
The damage dealt to NPCs.
Related function is <page>game.GetAmmoNPCDamage</page>.|10
}}{{StructureField|number|plydmg|<note>Can also be a string pointing to a convar. The value will automatically update with the convar's.</note>
The damage dealt to players.
Related function is <page>game.GetAmmoPlayerDamage</page>.|10
}}{{StructureField|number|tracer|Tracer type using <page>TRACER</page>.|TRACER_NONE}}{{StructureField|number|maxcarry|Maximum amount of ammo of this type the player should be able to carry in reserve.
Related function is <page>game.GetAmmoMax</page>.
<note>Can also be a string pointing to a convar. The value will automatically update with the convar's.</note>
<note>gmod_maxammo will override this value if set to above 0.</note>
|9999
}}{{StructureField|number|flags|Flags for the ammo type using <page>AMMO</page>.|0}}
}}