From: Dr. Jaska Date: Tue, 24 Jan 2023 17:59:47 +0000 (+0000) Subject: Remove damage dealt, damage taken and ELO scoreinfo labels and therefore scoreboard... X-Git-Tag: xonotic-v0.8.6~204^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28dcc4ac44893e245b4e836945160645675f4476;p=xonotic%2Fxonotic-data.pk3dir.git Remove damage dealt, damage taken and ELO scoreinfo labels and therefore scoreboard panels from modes with independent players (CTS) --- diff --git a/qcsrc/server/scores_rules.qc b/qcsrc/server/scores_rules.qc index c1b7f4c56..95f8b482e 100644 --- a/qcsrc/server/scores_rules.qc +++ b/qcsrc/server/scores_rules.qc @@ -50,10 +50,14 @@ void ScoreRules_basics(int teams, float sprio, float stprio, float score_enabled if(score_enabled) ScoreInfo_SetLabel_PlayerScore(SP_SCORE, "score", sprio); - ScoreInfo_SetLabel_PlayerScore(SP_DMG, "dmg", 0); - ScoreInfo_SetLabel_PlayerScore(SP_DMGTAKEN, "dmgtaken", SFL_LOWER_IS_BETTER); + if (!INDEPENDENT_PLAYERS) + { + ScoreInfo_SetLabel_PlayerScore(SP_DMG, "dmg", 0); + ScoreInfo_SetLabel_PlayerScore(SP_DMGTAKEN, "dmgtaken", SFL_LOWER_IS_BETTER); + + ScoreInfo_SetLabel_PlayerScore(SP_ELO, "elo", SFL_NOT_SORTABLE); + } - ScoreInfo_SetLabel_PlayerScore(SP_ELO, "elo", SFL_NOT_SORTABLE); if(STAT(SHOWFPS)) ScoreInfo_SetLabel_PlayerScore(SP_FPS, "fps", SFL_NOT_SORTABLE); }