rg_add_ammo_registry

Syntax

native rg_add_ammo_registry(const szAmmoname[]);

Usage

Parameter Description
szAmmoname
Ammo name to create.

Description

Generates an ammo slot in game's logic

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.
  • 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.