Difference between revisions of "CWeaponBox (CS)"
m (moved CWeaponBox Offset List (Counter-Strike) to CWeaponBox (CS)) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:CS | + | [[Category:CS Class List]] |
− | * [[CBaseEntity | + | == Basic Information == |
+ | |||
+ | * '''Classname''': CWeaponBox. <br /> | ||
+ | * '''Linked Entity''': weaponbox.<br /> | ||
+ | * '''Description''': Creates a canister full of specific weapon/ammo. <br /> | ||
+ | |||
+ | |||
+ | == Class Hierarchy == | ||
+ | |||
+ | * [[CBaseEntity (CS)|CBaseEntity]] | ||
** '''CWeaponBox''' ''(weaponbox)'' | ** '''CWeaponBox''' ''(weaponbox)'' | ||
+ | |||
+ | == HLSDK Reference == | ||
+ | |||
+ | * [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/weapons.h?view=markup&root=amxmodx weapons.h] ''(line 344)'' | ||
+ | * [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/weapons.cpp?view=markup&root=amxmodx weapons.cpp] ''(line 1097)'' | ||
+ | |||
+ | |||
+ | == Entity Properties == | ||
<tt>''W = Windows'' |</tt><tt> ''L = Linux''</tt> | <tt>''W = Windows'' |</tt><tt> ''L = Linux''</tt> | ||
Line 39: | Line 56: | ||
| How many ammo types packed into this box. (if packed by a level designer) | | How many ammo types packed into this box. (if packed by a level designer) | ||
|} | |} | ||
+ | |||
+ | |||
+ | == Entity Attributes == | ||
+ | |||
+ | None. | ||
Latest revision as of 12:18, 25 April 2009
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