]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix a bug with keepdeadprey being probability based. Also give it a probability of...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 13:34:04 +0000 (16:34 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 13:34:04 +0000 (16:34 +0300)
data/defaultVT.cfg
data/qcsrc/server/vore.qc

index d8bb5b3c28661729c538acdf93b9443f1b9452f2..f42921f9c67180663c4c5c6582213fefd2dd6851 100644 (file)
@@ -1552,7 +1552,7 @@ set g_vore_soundocclusion 0.25 "directional player sounds are cut to this amount
 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, only works when g_vore_keepdeadprey is disabled"\r
-set g_vore_keepdeadprey 1 "If enabled, prey remains in the stomach after dying, else the predator throws up their dead body. 0 = disabled, 1 = enabled, anything between = probability"\r
+set g_vore_keepdeadprey 0.75 "If enabled, prey remains in the stomach after dying, else the predator throws up their dead body. 0 = disabled, 1 = enabled, anything between = probability"\r
 \r
 set g_healthsize 100 "Players who are low on health shrink and become smaller, value specifies health at which the player has default size"\r
 set g_healthsize_movementfactor 0.5 "Amount by which player size affects jumping and running"\r
index f99de47bd7447339b49e206cb989c4957e7e2243..1403779ce2827312846c40d86ca6f34f9ea82d35 100644 (file)
@@ -285,7 +285,7 @@ void Vore_PreyRelease(entity e, float pred_disconnect)
                else\r
                        Vore_Regurgitate(e);\r
        }\r
-       else\r
+       else if(self.stat_eaten && !self.fakeprey)\r
        {\r
                // if the keepdeadprey feature is on, don't spit a dead prey's carcass out\r
                if(e.deadflag != DEAD_NO && random() < cvar("g_vore_keepdeadprey"))\r