if(self.colormod)\r
if(self.colormod != '1 1 1')\r
{\r
- // wash the goo away from players once they leave the stomach\r
+ // slowly wash stomach fluids off players once they're out of the stomach\r
if(cvar("g_vore_regurgitatecolor_fade"))\r
if(self.deadflag == DEAD_NO) // not for dead bodies\r
{\r
- self.colormod_x += cvar("g_vore_regurgitatecolor_fade") * frametime;\r
+ float goo_fade;\r
+ goo_fade = cvar("g_vore_regurgitatecolor_fade") * frametime;\r
+ goo_fade *= 1 + self.waterlevel; // fade faster when underwater\r
+\r
+ self.colormod_x += goo_fade;\r
if(self.colormod_x > 1)\r
self.colormod_x = 1;\r
- self.colormod_y += cvar("g_vore_regurgitatecolor_fade") * frametime;\r
+ self.colormod_y += goo_fade;\r
if(self.colormod_y > 1)\r
self.colormod_y = 1;\r
- self.colormod_z += cvar("g_vore_regurgitatecolor_fade") * frametime;\r
+ self.colormod_z += goo_fade;\r
if(self.colormod_z > 1)\r
self.colormod_z = 1;\r
}\r