From 87b26e21e64dd1ed281fbbbdfb877c083594a95a Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 11 Sep 2017 23:50:10 +1000 Subject: [PATCH] Rename cl_allow_eloranking to cl_allow_uidranking and include it in the config file --- defaultClient.cfg | 1 + qcsrc/common/playerstats.qc | 2 +- qcsrc/server/defs.qh | 2 +- qcsrc/server/miscfunctions.qc | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/defaultClient.cfg b/defaultClient.cfg index e4904ff58..cf78985ae 100644 --- a/defaultClient.cfg +++ b/defaultClient.cfg @@ -791,6 +791,7 @@ set cl_db_saveasdump 0 "write client.db in dump format (loads slower, easier to // uid2name seta cl_allow_uid2name -1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid2name (allows showing your name in race rankings for instance)" seta cl_allow_uidtracking 1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid tracking (allows associating your data with your player ID)" +seta cl_allow_uidranking 1 "0 = disable, 1 = enable uid ranking (allows statistics like elo to rank you in leaderboards)" // FIXME set to -1 before release, once we have a dialog for this! // polygonoffset for submodel SUCKS SUCKS SUCKS (only a hack for quake1, we don't need that) diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 01805627f..d8de259e5 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -152,7 +152,7 @@ void PlayerStats_GameReport_FinalizePlayer(entity p) if(latency) { PS_GR_P_ADDVAL(p, PLAYERSTATS_AVGLATENCY, latency); } } - db_put(PS_GR_OUT_DB, sprintf("%s:_elo", p.playerstats_id), ftos(CS(p).cvar_cl_allow_eloranking)); + db_put(PS_GR_OUT_DB, sprintf("%s:_elo", p.playerstats_id), ftos(CS(p).cvar_cl_allow_uidranking)); } strunzone(p.playerstats_id); diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 9c1270d59..b2a486845 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -174,7 +174,7 @@ float default_weapon_alpha; .float cvar_cl_allow_uid2name; .float cvar_cl_allow_uidtracking; -.bool cvar_cl_allow_eloranking; +.bool cvar_cl_allow_uidranking; .string stored_netname; string gamemode_name; diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index e350bafb7..8af17231b 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -379,7 +379,7 @@ REPLICATE(autoswitch, bool, "cl_autoswitch"); REPLICATE(cvar_cl_allow_uid2name, bool, "cl_allow_uid2name"); -REPLICATE(cvar_cl_allow_eloranking, bool, "cl_allow_eloranking"); +REPLICATE(cvar_cl_allow_uidranking, bool, "cl_allow_uidranking"); REPLICATE(cvar_cl_autoscreenshot, int, "cl_autoscreenshot"); -- 2.39.2