Difference between revisions of "CBasePlayerWeapon (CS)"
Line 174: | Line 174: | ||
| None. | | None. | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
+ | == Entity Information == |
Revision as of 15:32, 9 April 2010
Basic Information
- Classname: CBasePlayerWeapon.
Class Hierarchy
- CBaseEntity
- CBaseDelay
- CBaseAnimating
- CBasePlayerItem
- CBasePlayerWeapon
- CC4 (weapon_c4)
- CAUG (weapon_aug)
- CSmokeGrenade (weapon_smokegrenade)
- CAWP (weapon_awp)
- CAK47 (weapon_ak47)
- CBasePlayerWeapon
- CBasePlayerItem
- CBaseAnimating
- CBaseDelay
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_iShell | 78 | 82 | +4 | int | Shell model index, gun only. |
m_flPumpTime | 79 | 83 | +4 | float | None. |