Difference between revisions of "CWeaponBox (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(CWeaponBox offset list)
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:CS Offset List]]
+
[[Category:CS Class List]]
  
  
* [[CBaseEntity Offset List (Counter-Strike)|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


Basic Information

  • Classname: CWeaponBox.
  • Linked Entity: weaponbox.
  • Description: Creates a canister full of specific weapon/ammo.


Class Hierarchy


HLSDK Reference


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