rg_add_ammo_registry
native rg_add_ammo_registry(const szAmmoname[]);
| Parameter |
Description |
| szAmmoname | Ammo name to create. |
Generates an ammo slot in game's logic
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.
Maximum ammo index is 31, after that every ammo instantiation will start from 1 overriding existing ones.
New ammo index. If name already exists, will return the matched index from memory.