From a371a6ba67c04fbd077023f8d593533a22cbe2d0 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 19 Nov 2011 15:13:59 +0200 Subject: [PATCH] Set colormod properly on consumable items --- data/qcsrc/server/t_items.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 5f5b99f9..dc7c0f4a 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -243,6 +243,12 @@ void Item_Consumable_Think() return; } + if(self.predator.digesting) + { + if(stov(cvar_string("g_vore_regurgitatecolor_color_digest"))) + self.colormod = stov(cvar_string("g_vore_regurgitatecolor_color_digest")); + } + dprint("!!!!!!!!\n"); self.nextthink = time; } @@ -303,6 +309,9 @@ void Item_Consumable_Spawn(entity e, entity pl) item.think = Item_Consumable_Think; item.nextthink = time; + if(stov(cvar_string("g_vore_regurgitatecolor_color_normal"))) + item.colormod = stov(cvar_string("g_vore_regurgitatecolor_color_normal")); + // predator effects, some common to those in Vore_Swallow PlayerSound(pl, playersound_swallow, CHAN_VOICE, VOICETYPE_PLAYERSOUND); setanim(pl, pl.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing / regurgitating -- 2.39.2