From: MirceaKitsune Date: Sat, 26 Feb 2011 14:50:41 +0000 (+0200) Subject: Allow the green goo to slowly wash away from the player and weapon model after they... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9fab0ce5c95730d622fc283d131832fbfed6c62;p=voretournament%2Fvoretournament.git Allow the green goo to slowly wash away from the player and weapon model after they leave the stomach. By default, this takes about 40 seconds. --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 656373bd..bc25fc9f 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1524,8 +1524,9 @@ set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more p set g_vore_showhealth 1 "when enabled, a predator can see their prey's health on the stomach board, and prey can see the health of players he's joining in the stomach" set g_vore_gurglesound 1 "predators make an ambient gurgling sound" set g_vore_soundocclusion 0.25 "directional player sounds are cut to this amount of their initial volume for eaten players (simulates hearing harder from the stomach)" -set g_vore_regurgitatecolor_release "0.875 1 0.375" "the color players will have when regurgitated alive" -set g_vore_regurgitatecolor_digest "0.125 0.25 0" "the color players will have when digested" +set g_vore_regurgitatecolor_release "0.4 0.6 0.1" "the color players will have when regurgitated alive" +set g_vore_regurgitatecolor_release_fade 0.01 "how quickly the regurgitation color washes off players once they leave the stomach" +set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have when digested" set sv_weaponstats_damagefile "" "when set to a file name, per-weapon damage stats get written to that file" set sv_weaponstats_killfile "" "when set to a file name, per-weapon kill stats get written to that file" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 59228456..ed96dab3 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -330,6 +330,23 @@ void Vore() return; } + // wash the goo away from players once they leave the stomach + if(self.predator.classname != "player") + if(stov(cvar_string("g_vore_regurgitatecolor_release"))) + if(self.colormod) + if(cvar("g_vore_regurgitatecolor_release_fade")) + { + self.colormod_x += cvar("g_vore_regurgitatecolor_release_fade") * frametime; + self.colormod_y += cvar("g_vore_regurgitatecolor_release_fade") * frametime; + self.colormod_z += cvar("g_vore_regurgitatecolor_release_fade") * frametime; + if(self.colormod_x > 1) + self.colormod_x = 1; + if(self.colormod_y > 1) + self.colormod_y = 1; + if(self.colormod_z > 1) + self.colormod_z = 1; + } + // set all vore related stats if(self.predator.classname == "player") {