From 6b7e0ec8e9c688d434e50df332d4d06a5d5f1bcd Mon Sep 17 00:00:00 2001 From: Jakob MG Date: Wed, 28 Mar 2012 16:02:51 +0200 Subject: [PATCH] Make temporary cvar g_csqc_items set to 0 fully behave as old svqc items did --- qcsrc/server/t_items.qc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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; -- 2.39.2