CWeaponBox (CS)
- CBaseEntity
- CWeaponBox (weaponbox)
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