From 9f5a89214fd790798250181f637bed61555270c9 Mon Sep 17 00:00:00 2001 From: rtxa Date: Fri, 26 Sep 2025 17:40:05 -0300 Subject: [PATCH] Exclude specs from team count in scoreboard --- src/game/client/vgui/score_panel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/client/vgui/score_panel.cpp b/src/game/client/vgui/score_panel.cpp index f1335409..dfd2721f 100644 --- a/src/game/client/vgui/score_panel.cpp +++ b/src/game/client/vgui/score_panel.cpp @@ -720,7 +720,9 @@ void CScorePanel::UpdateScoresAndCounts() TeamData &td = m_TeamData[pi->GetTeamNumber()]; td.iFrags += pi->GetFrags(); td.iDeaths += pi->GetDeaths(); - td.iPlayerCount++; + + if (GetPlayerTeam(pi) != TEAM_SPECTATOR) + td.iPlayerCount++; iPlayerCount++; }