Difference between revisions of "CWeaponBox (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(CWeaponBox offset list)
 
(No difference)

Revision as of 08:51, 17 April 2009



W = Windows | L = Linux

Name W. Offset L. Offset L. Diff Type Description
m_rgpPlayerItems 34 38 +4 CBasePlayerItem*[MAX_ITEM_TYPES] One slot for each. Use get_pdata_cbase().
m_rgiszAmmo 41 45 +4 int[MAX_AMMO_SLOTS] Ammo names.
m_rgAmmo 73 77 +4 int[MAX_AMMO_SLOTS] Ammo quantities.
m_cAmmoTypes 104 108 +4 int How many ammo types packed into this box. (if packed by a level designer)


Constants

#define MAX_ITEM_TYPES	6  // hud item selection slots
#define MAX_AMMO_SLOTS  32 // not really slots