From 1a047eb80be5d7a8488ff759f9e51f95ad166e99 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 15 Dec 2010 16:16:52 +0100 Subject: [PATCH] add more stats directives: "S" = server hostname, "C" = cvar pure changes count (0 on pure server) --- qcsrc/server/playerstats.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 47e1a7ecd..7904e30ef 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -85,6 +85,7 @@ void PlayerStats_Sent_URI_Get_Callback(float id, float status, string data) playerstats_waitforme = TRUE; } +//#NO AUTOCVARS START void PlayerStats_Shutdown() { string p, pn; @@ -109,6 +110,8 @@ void PlayerStats_Shutdown() bufstr_set(b, i++, sprintf("T %s.%06d", strftime(FALSE, "%s"), floor(random() * 1000000))); bufstr_set(b, i++, sprintf("G %s", GetGametype())); bufstr_set(b, i++, sprintf("M %s", GetMapname())); + bufstr_set(b, i++, sprintf("S %s", cvar_string("hostname"))); + bufstr_set(b, i++, sprintf("C %d", cvar_purechanges_count)); for(p = playerstats_last; (pn = db_get(playerstats_db, sprintf("%s:*", p))) != ""; p = pn) { bufstr_set(b, i++, sprintf("P %s", p)); @@ -137,6 +140,7 @@ void PlayerStats_Shutdown() db_close(playerstats_db); playerstats_db = -1; } +//#NO AUTOCVARS END void PlayerStats_AddGlobalInfo(entity p) { -- 2.39.2