CCSPlayer_WeaponServices (server)
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: 6272 bytes (0x1880)Alignment: unspecified (0xff sentinel)Module: serverBinary: server.dll
Relationships
Inherits from: CPlayer_WeaponServices
Same name in another module: CCSPlayer_WeaponServices (client)
Inheritance tree
CPlayerPawnComponent
CPlayer_WeaponServices
- CCSPlayer_WeaponServices
Relationship diagram (4 edges)
classDiagram
CPlayerPawnComponent <|-- CPlayer_WeaponServices
CPlayer_WeaponServices <|-- CCSPlayer_WeaponServices
CCSPlayer_WeaponServices *-- GameTime_t
CCSPlayer_WeaponServices --> CBasePlayerWeaponMemory layout
20 fields, 13 declared here and 7 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 | CNetworkUtlVectorBase< CHandle< CBasePlayerWeapon > > | CPlayer_WeaponServices | |
0x60 | m_hActiveWeapon | CHandle< CBasePlayerWeapon > | CPlayer_WeaponServices | |
0x64 | m_hLastWeapon | CHandle< CBasePlayerWeapon > | CPlayer_WeaponServices | |
0x68 | m_iAmmo | uint16[32] | CPlayer_WeaponServices | |
0xa8 | m_bPreventWeaponPickup | bool | CPlayer_WeaponServices | |
0xc0 | m_flNextAttack | GameTime_t | GameTime before which no weapon switch is permitted (e.g. after throwing a grenade). | |
0xc4 | m_hSavedWeapon | CHandle< CBasePlayerWeapon > | ||
0xc8 | m_nTimeToMelee | int32 | ||
0xcc | m_nTimeToSecondary | int32 | ||
0xd0 | m_nTimeToPrimary | int32 | ||
0xd4 | m_nTimeToSniperRifle | int32 | ||
0xd8 | m_bIsBeingGivenItem | bool | ||
0xd9 | m_bIsPickingUpItemWithUse | bool | ||
0xda | m_bPickedUpWeapon | bool | ||
0xdb | m_bDisableAutoDeploy | bool | ||
0xdc | m_bIsPickingUpGroundWeapon | bool | ||
0x1860 | m_networkAnimTiming | CNetworkUtlVectorBase< uint8 > | Byte array encoding animation transition timing for the active weapon, used to synchronise viewmodel animations across client and server. | |
0x1878 | m_bBlockInspectUntilNextGraphUpdate | bool | True when the inspect animation is suppressed until the animation graph ticks again (prevents stutter). |