From 10b1cc0496cadf56208a2dce05e816bfd884c734 Mon Sep 17 00:00:00 2001 From: samual Date: Sun, 8 Nov 2009 17:40:59 +0000 Subject: [PATCH] g_nodepthtestplayers -- Allows you to disable depth testing on players using EF_NODEPTHTESTING -- Basically, it's a server side wallhack. git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8247 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/defaultNexuiz.cfg | 1 + data/qcsrc/server/cl_client.qc | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/defaultNexuiz.cfg b/data/defaultNexuiz.cfg index 34b070151..b4f524afc 100644 --- a/data/defaultNexuiz.cfg +++ b/data/defaultNexuiz.cfg @@ -472,6 +472,7 @@ set g_spawnpoints_auto_move_out_of_solid 0 "if set to 1 you will see a warning i set g_forced_respawn 0 "if set to 1 and a player died, that player gets automatically respawned once 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" diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index d82a0d520..7d9d077ee 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -1744,7 +1744,7 @@ void player_powerups (void) 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 @@ void player_powerups (void) } } - 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 -- 2.39.2