[nexuiz-commits] r8247 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 8 12:41:00 EST 2009


Author: samual
Date: 2009-11-08 12:40:59 -0500 (Sun, 08 Nov 2009)
New Revision: 8247

Modified:
   trunk/data/defaultNexuiz.cfg
   trunk/data/qcsrc/server/cl_client.qc
Log:
g_nodepthtestplayers -- Allows you to disable depth testing on players using EF_NODEPTHTESTING -- Basically, it's a server side wallhack.

Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg	2009-11-08 12:36:59 UTC (rev 8246)
+++ trunk/data/defaultNexuiz.cfg	2009-11-08 17:40:59 UTC (rev 8247)
@@ -472,6 +472,7 @@
 set g_forced_respawn 0 "if set to 1 and a player died, that player gets automatically respawned once <g_respawn_delay> seconds are over"
 set g_fullbrightplayers 0 "brightens up player models (note that the color, skin or model of the players does not change!)"
 set g_fullbrightitems 0 "brightens up items"
+set g_nodepthtestplayers 0 "disables depth testing on players"
 set g_casings 2 "specifies which casings (0: none, 1: only shotgun casings, 2: shotgun and machine gun casings) are sent to the client"
 set g_norecoil 0 "if set to 1 shooting weapons won't make you crosshair to move upwards (recoil)"
 set g_maplist_mostrecent "" "contains the name of the maps that were most recently played"

Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-11-08 12:36:59 UTC (rev 8246)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-11-08 17:40:59 UTC (rev 8247)
@@ -1744,7 +1744,7 @@
 		self.modelflags &~= MF_ROCKET;
 	}
 
-	self.effects &~= (EF_RED | EF_BLUE | EF_ADDITIVE | EF_FULLBRIGHT | EF_FLAME);
+	self.effects &~= (EF_RED | EF_BLUE | EF_ADDITIVE | EF_FULLBRIGHT | EF_FLAME | EF_NODEPTHTEST);
 
 	if(!self.modelindex || self.deadflag) // don't apply the flags if the player is gibbed
 		return;
@@ -1835,7 +1835,10 @@
 		}
 	}
 
-	if (cvar("g_fullbrightplayers"))
+	if(cvar("g_nodepthtestplayers"))
+		self.effects = self.effects | EF_NODEPTHTEST;
+
+	if(cvar("g_fullbrightplayers"))
 		self.effects = self.effects | EF_FULLBRIGHT;
 
 	// midair gamemode: damage only while in the air



More information about the nexuiz-commits mailing list