Difference between revisions of "CBasePlayerWeapon (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(CBasePlayerWeapon)
 
(Entity Data)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:CS Offset List]]
+
[[Category:CS Class List]]
  
 +
== Basic Information ==
  
* [[CBaseEntity Offset List (Counter-Strike)|CBaseEntity]]
+
* '''Classname''': CBasePlayerWeapon. <br />
** [[CBaseDelay Offset List (Counter-Strike)|CBaseDelay]]
 
*** [[CBaseAnimating Offset List (Counter-Strike)|CBaseAnimating]]
 
**** [[CBasePlayerItem Offset List (Counter-Strike)|CBasePlayerItem]]
 
***** '''CBasePlayerWeapon'''
 
****** [[CC4 Offset List (Counter-Strike)|CC4 ''(weapon_c4)'']]
 
****** [[CSmokeGrenade Offset List (Counter-Strike)|SmokeGrenade ''(weapon_smokegrenade)'']]
 
  
  
 +
== Class Hierarchy ==
 +
 +
* [[CBaseEntity (CS)|CBaseEntity]]
 +
** [[CBaseDelay (CS)|CBaseDelay]]
 +
*** [[CBaseAnimating (CS)|CBaseAnimating]]
 +
**** [[CBasePlayerItem (CS)|CBasePlayerItem]]
 +
***** [[CBasePlayerWeapon (CS)|CBasePlayerWeapon]]
 +
****** [[CSCOUT (CS)|CSCOUT]] ''(weapon_scout)''
 +
****** [[CC4 (CS)|CC4]] ''(weapon_c4)''
 +
****** [[CAUG (CS)|CAUG]] ''(weapon_aug)''
 +
****** [[CUSP (CS)|CUSP]] ''(weapon_usp)''
 +
****** [[CAWP (CS)|CAWP]] ''(weapon_awp)''
 +
****** [[CDEAGLE (CS)|CDEAGLE]] ''(weapon_deagle)''
 +
****** [[CAK47 (CS)|CAK47]] ''(weapon_ak47)''
 +
 +
== Entity Data ==
  
 
<tt>''W = Windows'' |</tt><tt> ''L = Linux''</tt>
 
<tt>''W = Windows'' |</tt><tt> ''L = Linux''</tt>
Line 114: Line 125:
 
| style="text-align:center" | int
 
| style="text-align:center" | int
 
| Shell model index of awp, g3sg1, glock18, m3, scout, sg550, xm1014.
 
| Shell model index of awp, g3sg1, glock18, m3, scout, sg550, xm1014.
 +
|- class="t2td"
 +
| m_bDelayFire
 +
| style="text-align:center" | 59
 +
| style="text-align:center" | 63
 +
| style="text-align:center" | +4
 +
| style="text-align:center" | BOOL
 +
| None.
 +
|- class="t2td"
 +
| m_flAccuracy
 +
| style="text-align:center" | 62
 +
| style="text-align:center" | 66
 +
| style="text-align:center" | +4
 +
| style="text-align:center" | float
 +
| None.
 +
|- class="t2td"
 +
| m_iShotsFired
 +
| style="text-align:center" | 64
 +
| style="text-align:center" | 68
 +
| style="text-align:center" | +4
 +
| style="text-align:center" | int
 +
| None.
 
|- class="t2td"
 
|- class="t2td"
 
| m_iViewModel
 
| m_iViewModel
Line 122: Line 154:
 
| None.
 
| None.
 
|- class="t2td"
 
|- class="t2td"
| m_bIsSilent
+
| m_bSilencerOn
 
| style="text-align:center" | 74
 
| style="text-align:center" | 74
 
| style="text-align:center" | 78  
 
| style="text-align:center" | 78  
 
| style="text-align:center" | +4  
 
| style="text-align:center" | +4  
 
| style="text-align:center" | BOOL
 
| style="text-align:center" | BOOL
 +
| None.
 +
|- class="t2td"
 +
| m_flDecreaseShotsFired
 +
| style="text-align:center" | 76
 +
| style="text-align:center" | 80
 +
| style="text-align:center" | +4
 +
| style="text-align:center" | float
 
| None.
 
| None.
 
|- class="t2td"
 
|- class="t2td"
Line 137: Line 176:
 
|- class="t2td"
 
|- class="t2td"
 
| m_flPumpTime
 
| m_flPumpTime
| style="text-align:center" | 78
+
| style="text-align:center" | 79
 
| style="text-align:center" | 83  
 
| style="text-align:center" | 83  
 
| style="text-align:center" | +4  
 
| style="text-align:center" | +4  
Line 143: Line 182:
 
| None.
 
| None.
 
|}
 
|}
 +
 +
== Entity Information ==

Latest revision as of 17:31, 16 January 2011


Basic Information

  • Classname: CBasePlayerWeapon.


Class Hierarchy

Entity Data

W = Windows | L = Linux

Name W. Offset L. Offset L. Diff Type Description
m_iPlayEmptySound 44 49 +4 int None.
m_fFireOnEmpty 45 49 +4 int None.
m_flNextPrimaryAttack 46 50 +4 float Soonest time ItemPostFrame will call PrimaryAttack.
m_flNextSecondaryAttack 47 51 +4 float Soonest time ItemPostFrame will call SecondaryAttack.
m_flTimeWeaponIdle 48 52 +4 float Soonest time ItemPostFrame will call WeaponIdle.
m_iPrimaryAmmoType 49 53 +4 int "primary" ammo index into players m_rgAmmo[].
m_iSecondaryAmmoType 50 54 +4 int "secondary" ammo index into players m_rgAmmo[].
m_iClip 51 55 +4 int Number of shots left in the primary weapon clip, -1 it not used.
m_iClientClip 52 56 +4 int The last version of m_iClip sent to hud dll.
m_iClientWeaponState 53 57 +4 int The last version of the weapon state sent to hud dll. (is current weapon, is on target)
m_fInReload 54 58 +4 int Are we in the middle of a reload ?
m_fInSpecialReload 55 59 +4 int Are we in the middle of a reload for the shotguns.
m_iDefaultAmmo 56 60 +4 int How much ammo you get when you pick up this weapon as placed by a level designer.
m_iShell 57 61 +4 int Shell model index of awp, g3sg1, glock18, m3, scout, sg550, xm1014.
m_bDelayFire 59 63 +4 BOOL None.
m_flAccuracy 62 66 +4 float None.
m_iShotsFired 64 68 +4 int None.
m_iViewModel 68 72 +4 int None.
m_bSilencerOn 74 78 +4 BOOL None.
m_flDecreaseShotsFired 76 80 +4 float None.
m_iShell 78 82 +4 int Shell model index, gun only.
m_flPumpTime 79 83 +4 float None.

Entity Information