]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Allow the green goo to slowly wash away from the player and weapon model after they...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 26 Feb 2011 14:50:41 +0000 (16:50 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 26 Feb 2011 14:50:41 +0000 (16:50 +0200)
data/defaultVoretournament.cfg
data/qcsrc/server/vore.qc

index 656373bda3632c660d6cb8d1a13592aeba45b553..bc25fc9faecd76e7d0c1e71fee912d561ea45966 100644 (file)
@@ -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"\r
 set g_vore_gurglesound 1 "predators make an ambient gurgling sound"\r
 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)"\r
-set g_vore_regurgitatecolor_release "0.875 1 0.375" "the color players will have when regurgitated alive"\r
-set g_vore_regurgitatecolor_digest "0.125 0.25 0" "the color players will have when digested"\r
+set g_vore_regurgitatecolor_release "0.4 0.6 0.1" "the color players will have when regurgitated alive"\r
+set g_vore_regurgitatecolor_release_fade 0.01 "how quickly the regurgitation color washes off players once they leave the stomach"\r
+set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have when digested"\r
 \r
 set sv_weaponstats_damagefile "" "when set to a file name, per-weapon damage stats get written to that file"\r
 set sv_weaponstats_killfile "" "when set to a file name, per-weapon kill stats get written to that file"\r
index 592284562cca0be1cbba34e8c0f3d063263b7a2b..ed96dab3f8ca437c1de4d8885ff6d1b09f4b6f7e 100644 (file)
@@ -330,6 +330,23 @@ void Vore()
                return;\r
        }\r
 \r
+       // wash the goo away from players once they leave the stomach\r
+       if(self.predator.classname != "player")\r
+       if(stov(cvar_string("g_vore_regurgitatecolor_release")))\r
+       if(self.colormod)\r
+       if(cvar("g_vore_regurgitatecolor_release_fade"))\r
+       {\r
+               self.colormod_x += cvar("g_vore_regurgitatecolor_release_fade") * frametime;\r
+               self.colormod_y += cvar("g_vore_regurgitatecolor_release_fade") * frametime;\r
+               self.colormod_z += cvar("g_vore_regurgitatecolor_release_fade") * frametime;\r
+               if(self.colormod_x > 1)\r
+                       self.colormod_x = 1;\r
+               if(self.colormod_y > 1)\r
+                       self.colormod_y = 1;\r
+               if(self.colormod_z > 1)\r
+                       self.colormod_z = 1;\r
+       }\r
+\r
        // set all vore related stats\r
        if(self.predator.classname == "player")\r
        {\r