Skip to content

[TF2] Add tf_player_team_debug command#1982

Open
Kacey2k wants to merge 1 commit into
ValveSoftware:masterfrom
Kacey2k:feature/tf-player-team-debug
Open

[TF2] Add tf_player_team_debug command#1982
Kacey2k wants to merge 1 commit into
ValveSoftware:masterfrom
Kacey2k:feature/tf-player-team-debug

Conversation

@Kacey2k

@Kacey2k Kacey2k commented Jul 23, 2026

Copy link
Copy Markdown

Description

Adds the client console command tf_player_team_debug, which prints identifiers and current team assignments for connected players.

The output includes:

  • Session user ID
  • Steam3 ID, or BOT
  • Native team ID
  • Human-readable team name

Example Output:

# userid uniqueid           team_id team
#      2 [U:1:1511176553]         2 RED
#      3 BOT                      3 BLU

The command reads replicated C_TF_PlayerResource data and does not depend on a Game Coordinator lobby. It produces no output when no player resource is available.

Team values follow TF2's existing definitions:

  • 0 = Unassigned
  • 1 = Spectator
  • 2 = RED
  • 3 = BLU

This provides a small diagnostic command for inspecting player team assignments, which benefits countless community projects that rely on console inference to function.

Video: https://www.youtube.com/watch?v=q7uGnH_7HKo

Related: ValveSoftware/Source-1-Games#8182

@Kacey2k Kacey2k changed the title Add tf_player_team_debug command [TF2] Add tf_player_team_debug command Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant