From 1acea96af850e06f9d52a568f1f0d8f394f1e36a Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 26 Mar 2021 18:15:08 +0100 Subject: [PATCH] Update/improve sv_eventlog* descriptions --- qcsrc/server/scores_rules.qc | 18 ++++++++++-------- xonotic-server.cfg | 6 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/qcsrc/server/scores_rules.qc b/qcsrc/server/scores_rules.qc index c7c9c3e8d..ac060dab5 100644 --- a/qcsrc/server/scores_rules.qc +++ b/qcsrc/server/scores_rules.qc @@ -25,28 +25,28 @@ void ScoreRules_basics(int teams, float sprio, float stprio, float score_enabled { FOREACH(Scores, true, { ScoreInfo_SetLabel_PlayerScore(it, "", 0); - }); + }); for(int i = 0; i < MAX_TEAMSCORE; ++i) ScoreInfo_SetLabel_TeamScore(i, "", 0); ScoreRules_teams = teams; if(score_enabled) - ScoreInfo_SetLabel_TeamScore (ST_SCORE, "score", stprio); + ScoreInfo_SetLabel_TeamScore(ST_SCORE, "score", stprio); if (!INDEPENDENT_PLAYERS) - ScoreInfo_SetLabel_PlayerScore(SP_KILLS, "kills", 0); + ScoreInfo_SetLabel_PlayerScore(SP_KILLS, "kills", 0); - ScoreInfo_SetLabel_PlayerScore(SP_DEATHS, "deaths", SFL_LOWER_IS_BETTER); + ScoreInfo_SetLabel_PlayerScore(SP_DEATHS, "deaths", SFL_LOWER_IS_BETTER); if (!INDEPENDENT_PLAYERS) { - ScoreInfo_SetLabel_PlayerScore(SP_SUICIDES, "suicides", SFL_LOWER_IS_BETTER); - ScoreInfo_SetLabel_PlayerScore(SP_TEAMKILLS, "teamkills", SFL_LOWER_IS_BETTER); + ScoreInfo_SetLabel_PlayerScore(SP_SUICIDES, "suicides", SFL_LOWER_IS_BETTER); + ScoreInfo_SetLabel_PlayerScore(SP_TEAMKILLS, "teamkills", SFL_LOWER_IS_BETTER); } if(score_enabled) - ScoreInfo_SetLabel_PlayerScore(SP_SCORE, "score", sprio); + ScoreInfo_SetLabel_PlayerScore(SP_SCORE, "score", sprio); ScoreInfo_SetLabel_PlayerScore(SP_DMG, "dmg", 0); ScoreInfo_SetLabel_PlayerScore(SP_DMGTAKEN, "dmgtaken", SFL_LOWER_IS_BETTER); @@ -55,13 +55,15 @@ void ScoreRules_basics(int teams, float sprio, float stprio, float score_enabled if(STAT(SHOWFPS)) ScoreInfo_SetLabel_PlayerScore(SP_FPS, "fps", 0); } + void ScoreRules_basics_end() { ScoreInfo_Init(ScoreRules_teams); } + void ScoreRules_generic() { - int teams = 0; + int teams = 0; if (teamplay) { entity balance = TeamBalance_CheckAllowedTeams(NULL); diff --git a/xonotic-server.cfg b/xonotic-server.cfg index ad32666c6..5399e4096 100644 --- a/xonotic-server.cfg +++ b/xonotic-server.cfg @@ -311,9 +311,9 @@ set sv_logscores_filename scores.log "filename" set sv_logscores_bots 0 "exclude bots by default" // spam (frag/capture) log -set sv_eventlog 0 "the master switch for efficiency reasons" -set sv_eventlog_console 1 "print event log entries to the console as well" -set sv_eventlog_files 0 "save the event log to individual files instead of the main server log" +set sv_eventlog 0 "enable event logging" +set sv_eventlog_console 1 "print event log entries to the dedicated console as well" +set sv_eventlog_files 0 "save the event log to individual files" set sv_eventlog_files_timestamps 1 "include timestamps in the log file names" set sv_eventlog_files_counter 0 "internal counter cvar, do not modify" set sv_eventlog_files_nameprefix xonotic "prefix of individual log file names" -- 2.39.2