CCSPlayer_WeaponServices (client)
Component attached to CCSPlayerPawn that manages the active weapon and weapon-switch timing for a CS2 player.
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: classSize: 5584 bytes (0x15d0)Alignment: unspecified (0xff sentinel)Module: clientBinary: client.dll
Relationships
Inherits from: CPlayer_WeaponServices
Same name in another module: CCSPlayer_WeaponServices (server)
Inheritance tree
CPlayerPawnComponent server
CPlayer_WeaponServices
- CCSPlayer_WeaponServices
Relationship diagram (3 edges)
classDiagram
CPlayerPawnComponent <|-- CPlayer_WeaponServices
CPlayer_WeaponServices <|-- CCSPlayer_WeaponServices
CCSPlayer_WeaponServices *-- GameTime_tMemory layout
11 fields, 5 declared here and 6 inherited. Offsets are absolute from the object base on windows-x86_64.
CPlayerPawnComponentCPlayer_WeaponServicesCCSPlayer_WeaponServices
| Offset | Field | Type | From | Annotations |
|---|---|---|---|---|
0x8 | __m_pChainEntity | CNetworkVarChainer | CPlayerPawnComponent | MNotSaved |
0x30 | m_pComponentGraphController | CAnimGraphControllerPtr | CPlayerPawnComponent | |
0x48 | m_hMyWeapons | C_NetworkUtlVectorBase< CHandle< C_BasePlayerWeapon > > | CPlayer_WeaponServices | |
0x60 | m_hActiveWeapon | CHandle< C_BasePlayerWeapon > | CPlayer_WeaponServices | |
0x64 | m_hLastWeapon | CHandle< C_BasePlayerWeapon > | CPlayer_WeaponServices | |
0x68 | m_iAmmo | uint16[32] | CPlayer_WeaponServices | |
0xd0 | m_flNextAttack | GameTime_t | GameTime before which no weapon switch is permitted (e.g. after throwing a grenade). | |
0xd4 | m_nOldTotalShootPositionHistoryCount | uint32 | ||
0x370 | m_nOldTotalInputHistoryCount | uint32 | ||
0x1588 | m_networkAnimTiming | C_NetworkUtlVectorBase< uint8 > | Byte array encoding animation transition timing for the active weapon, used to synchronise viewmodel animations across client and server. | |
0x15a0 | m_bBlockInspectUntilNextGraphUpdate | bool | True when the inspect animation is suppressed until the animation graph ticks again (prevents stutter). |