From: MirceaKitsune Date: Sat, 9 Jul 2011 00:33:38 +0000 (+0300) Subject: Remove radar_showennemies, so player names can show for enemies without using Xonotic... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=ade121cafbc3bc108bb983fecaeca4bc540ff273 Remove radar_showennemies, so player names can show for enemies without using Xonotic's hack. The issue is that this allows someone to hack the client and see players through walls. For Vore Tournament though, it's not THAT bad, like it would be for a game based mostly on doing damage with weapons. --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 94f5936c..7ecabb60 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -1453,8 +1453,7 @@ void ClientConnect (void) ctf_clientconnect(); }*/ - if(teams_matter || radar_showennemies) - attach_entcs(); + attach_entcs(); bot_relinkplayerlist(); diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index af3fa770..5bc4e17e 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -613,8 +613,6 @@ FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_fired); .float stat_leadlimit; -float radar_showennemies; - #ifdef PROFILING float client_cefc_accumulator; float client_cefc_accumulatortime; diff --git a/data/qcsrc/server/ent_cs.qc b/data/qcsrc/server/ent_cs.qc index ff20effe..9fc1ecb5 100644 --- a/data/qcsrc/server/ent_cs.qc +++ b/data/qcsrc/server/ent_cs.qc @@ -30,10 +30,6 @@ float entcs_customize() return FALSE; if(other == o) return FALSE; - if(other.classname == "player") - if(!teamplay || o.team != other.team) - if not (radar_showennemies) - return FALSE; return TRUE; }