From ec5f7e460e78bb83834bbc41b36a0e85d5358c9f Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 3 May 2011 16:34:04 +0300 Subject: [PATCH] Fix a bug with keepdeadprey being probability based. Also give it a probability of 0.75 by default (prey staying in the stomach once dead). --- data/defaultVT.cfg | 2 +- data/qcsrc/server/vore.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index d8bb5b3c..f42921f9 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -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" 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, only works when g_vore_keepdeadprey is disabled" -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" +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" set g_healthsize 100 "Players who are low on health shrink and become smaller, value specifies health at which the player has default size" set g_healthsize_movementfactor 0.5 "Amount by which player size affects jumping and running" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index f99de47b..1403779c 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -285,7 +285,7 @@ void Vore_PreyRelease(entity e, float pred_disconnect) else Vore_Regurgitate(e); } - else + else if(self.stat_eaten && !self.fakeprey) { // if the keepdeadprey feature is on, don't spit a dead prey's carcass out if(e.deadflag != DEAD_NO && random() < cvar("g_vore_keepdeadprey")) -- 2.39.2