[nexuiz-commits] r8254 - in trunk/data: . qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Nov 8 13:20:44 EST 2009
Author: samual
Date: 2009-11-08 13:20:44 -0500 (Sun, 08 Nov 2009)
New Revision: 8254
Modified:
trunk/data/defaultNexuiz.cfg
trunk/data/qcsrc/server/t_items.qc
Log:
g_nodepthtestitems -- Allows you to disable depth testing on items using EF_NODEPTHTESTING - just like g_nodepthtestplayers! :P :P :P
Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg 2009-11-08 18:08:16 UTC (rev 8253)
+++ trunk/data/defaultNexuiz.cfg 2009-11-08 18:20:44 UTC (rev 8254)
@@ -473,6 +473,7 @@
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_nodepthtestitems 0 "disables depth testing on items"
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/t_items.qc
===================================================================
--- trunk/data/qcsrc/server/t_items.qc 2009-11-08 18:08:16 UTC (rev 8253)
+++ trunk/data/qcsrc/server/t_items.qc 2009-11-08 18:20:44 UTC (rev 8254)
@@ -64,7 +64,7 @@
void Item_Show (entity e, float mode)
{
- e.effects &~= EF_ADDITIVE | EF_STARDUST | EF_FULLBRIGHT;
+ e.effects &~= EF_ADDITIVE | EF_STARDUST | EF_FULLBRIGHT | EF_NODEPTHTEST;
if (mode > 0)
{
// make the item look normal, and be touchable
@@ -124,6 +124,8 @@
if (e.strength_finished || e.invincible_finished)
e.effects |= EF_ADDITIVE | EF_FULLBRIGHT;
+ if (cvar("g_nodepthtestitems"))
+ e.effects |= EF_NODEPTHTEST;
if (cvar("g_fullbrightitems"))
e.effects |= EF_FULLBRIGHT;
More information about the nexuiz-commits
mailing list