CSPlayerState
Connection / spawn state machine for a CS2 player (m_iPlayerState).
CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json
Kind: enumSize: 4 bytes (0x4)Underlying type: uint32_tModule: serverBinary: !GlobalTypes
Relationships
Used by (2) as a field type
Values
| Name | Value | Unsigned | Description |
|---|---|---|---|
STATE_ACTIVE | 0 | In active play, controlling a pawn. | |
STATE_WELCOME | 1 | Just connected; showing the intro / welcome screen. | |
STATE_PICKINGTEAM | 2 | Choosing a team. | |
STATE_PICKINGCLASS | 3 | ||
STATE_DEATH_ANIM | 4 | Playing the death animation. | |
STATE_DEATH_WAIT_FOR_KEY | 5 | ||
STATE_OBSERVER_MODE | 6 | Spectating (dead or connected as an observer). | |
STATE_GUNGAME_RESPAWN | 7 | ||
STATE_DORMANT | 8 | Not yet fully in the game (loading / intermission). | |
NUM_PLAYER_STATES | 9 |