From: MirceaKitsune Date: Sun, 31 Jul 2011 13:36:32 +0000 (+0300) Subject: Wash stomach fluids faster off players that are underwater X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f14af3b8001e91b334c5cea75ebcb7d1d2bb4c80;p=voretournament%2Fvoretournament.git Wash stomach fluids faster off players that are underwater --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 6c03c297..d043c041 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -673,17 +673,21 @@ void Vore() if(self.colormod) if(self.colormod != '1 1 1') { - // wash the goo away from players once they leave the stomach + // slowly wash stomach fluids off players once they're out of the stomach if(cvar("g_vore_regurgitatecolor_fade")) if(self.deadflag == DEAD_NO) // not for dead bodies { - self.colormod_x += cvar("g_vore_regurgitatecolor_fade") * frametime; + float goo_fade; + goo_fade = cvar("g_vore_regurgitatecolor_fade") * frametime; + goo_fade *= 1 + self.waterlevel; // fade faster when underwater + + self.colormod_x += goo_fade; if(self.colormod_x > 1) self.colormod_x = 1; - self.colormod_y += cvar("g_vore_regurgitatecolor_fade") * frametime; + self.colormod_y += goo_fade; if(self.colormod_y > 1) self.colormod_y = 1; - self.colormod_z += cvar("g_vore_regurgitatecolor_fade") * frametime; + self.colormod_z += goo_fade; if(self.colormod_z > 1) self.colormod_z = 1; }