From: Mario Date: Mon, 11 Sep 2017 13:50:10 +0000 (+1000) Subject: Rename cl_allow_eloranking to cl_allow_uidranking and include it in the config file X-Git-Tag: xonotic-v0.8.5~1355^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87b26e21e64dd1ed281fbbbdfb877c083594a95a;p=xonotic%2Fxonotic-data.pk3dir.git Rename cl_allow_eloranking to cl_allow_uidranking and include it in the config file --- 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");