CWeaponBox (CS)
(Redirected from CWeaponBox Offset List (Counter-Strike))
Contents
Basic Information
- Classname: CWeaponBox.
- Linked Entity: weaponbox.
- Description: Creates a canister full of specific weapon/ammo.
Class Hierarchy
- CBaseEntity
- CWeaponBox (weaponbox)
HLSDK Reference
- weapons.h (line 344)
- weapons.cpp (line 1097)
Entity Properties
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) |
Entity Attributes
None.
Constants
#define MAX_ITEM_TYPES 6 // hud item selection slots #define MAX_AMMO_SLOTS 32 // not really slots