From: MirceaKitsune Date: Sat, 19 Nov 2011 13:13:59 +0000 (+0200) Subject: Set colormod properly on consumable items X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a371a6ba67c04fbd077023f8d593533a22cbe2d0;p=voretournament%2Fvoretournament.git Set colormod properly on consumable items --- 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