native
rg_add_ammo_registry
Syntax
native rg_add_ammo_registry(const szAmmoname[]);
Description
Generates an ammo slot in game's logic
Parameters
| szAmmoname | Ammo name to create. |
|---|
Note
To see a visual effect, WeaponList message should be sent using the custom ammo name,
where ammo icon HUD will be the one listed in "sprites/weapon_<name>.txt" file.
Note
Maximum ammo index is 31, after that every ammo instantiation will start from 1 overriding existing ones.
Return
New ammo index. If name already exists, will return the matched index from memory.