Skip to content

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

NameValueUnsignedDescription
STATE_ACTIVE0In active play, controlling a pawn.
STATE_WELCOME1Just connected; showing the intro / welcome screen.
STATE_PICKINGTEAM2Choosing a team.
STATE_PICKINGCLASS3
STATE_DEATH_ANIM4Playing the death animation.
STATE_DEATH_WAIT_FOR_KEY5
STATE_OBSERVER_MODE6Spectating (dead or connected as an observer).
STATE_GUNGAME_RESPAWN7
STATE_DORMANT8Not yet fully in the game (loading / intermission).
NUM_PLAYER_STATES9