From: Jakob MG Date: Wed, 28 Mar 2012 14:02:51 +0000 (+0200) Subject: Make temporary cvar g_csqc_items set to 0 fully behave as old svqc items did X-Git-Tag: xonotic-v0.7.0~312^2~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b7e0ec8e9c688d434e50df332d4d06a5d5f1bcd;p=xonotic%2Fxonotic-data.pk3dir.git Make temporary cvar g_csqc_items set to 0 fully behave as old svqc items did --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 1c614f26a..41fdda89b 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -207,7 +207,8 @@ void Item_Show (entity e, float mode) e.colormod = '0 0 0'; self.glowmod = self.colormod; e.alpha = 0; - //e.customizeentityforclient = func_null; + if not (cvar("g_csqc_items")) + e.customizeentityforclient = func_null; e.spawnshieldtime = 1; self.ItemStatus |= ITS_AVAILABLE; @@ -220,7 +221,8 @@ void Item_Show (entity e, float mode) e.colormod = '0 0 0'; self.glowmod = self.colormod; e.alpha = 0; - //e.customizeentityforclient = func_null; + if not (cvar("g_csqc_items")) + e.customizeentityforclient = func_null; e.spawnshieldtime = 1; self.ItemStatus &~= ITS_AVAILABLE; @@ -233,7 +235,8 @@ void Item_Show (entity e, float mode) e.colormod = '0 0 0'; self.glowmod = self.colormod; e.effects |= EF_STARDUST; - //e.customizeentityforclient = Item_Customize; + if not (cvar("g_csqc_items")) + e.customizeentityforclient = Item_Customize; e.spawnshieldtime = 0; // field indicates whether picking it up may give you anything other than the weapon self.ItemStatus |= ITS_AVAILABLE; @@ -246,7 +249,8 @@ void Item_Show (entity e, float mode) e.colormod = stov(autocvar_g_ghost_items_color); e.glowmod = e.colormod; e.alpha = g_ghost_items; - //e.customizeentityforclient = func_null; + if not (cvar("g_csqc_items")) + e.customizeentityforclient = func_null; e.spawnshieldtime = 1; self.ItemStatus &~= ITS_AVAILABLE; @@ -259,7 +263,8 @@ void Item_Show (entity e, float mode) e.colormod = '0 0 0'; e.glowmod = e.colormod; e.alpha = 0; - //e.customizeentityforclient = func_null; + if not (cvar("g_csqc_items")) + e.customizeentityforclient = func_null; e.spawnshieldtime = 1; self.ItemStatus &~= ITS_AVAILABLE;