r1862 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Aug 28 10:02:12 EDT 2006


Author: div0
Date: 2006-08-28 10:02:12 -0400 (Mon, 28 Aug 2006)
New Revision: 1862

Modified:
   trunk/data/default.cfg
   trunk/data/qcsrc/server/cl_player.qc
Log:
added cvar sv_allow_shownames: can disable the cl_shownames feature just in case


Modified: trunk/data/default.cfg
===================================================================
--- trunk/data/default.cfg	2006-08-27 11:14:23 UTC (rev 1861)
+++ trunk/data/default.cfg	2006-08-28 14:02:12 UTC (rev 1862)
@@ -741,5 +741,6 @@
 set sv_motd ""
 
 seta cl_shownames 1 // show player names pointed to (0: never, 1: teamplay only, 2: always)
+set sv_allow_shownames 1
 
 alias teamstatus "set _scoreboard 1"

Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc	2006-08-27 11:14:23 UTC (rev 1861)
+++ trunk/data/qcsrc/server/cl_player.qc	2006-08-28 14:02:12 UTC (rev 1862)
@@ -410,6 +410,9 @@
 	selected = world;
 	selected_score = 0.95; // 18 degrees
 
+	if(!cvar("sv_allow_shownames"))
+		return;
+
 	if(clienttype(self) != CLIENTTYPE_REAL)
 		return;
 




More information about the nexuiz-commits mailing list