From efb1607a797d10b1ce14c5e5deb48d55d203293e Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 1 Aug 2011 21:33:20 +0300 Subject: [PATCH] Some tweaks to the last feature --- data/qcsrc/server/vore.qc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 097792c0..bae2c92c 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -442,7 +442,10 @@ void Vore_Digest() // apply digestion to prey if(self.predator.deadflag != DEAD_NO) // dead predators don't digest + { + self.predator.digesting = FALSE; return; + } if(self.health <= cvar("g_balance_vore_digestion_limit")) // don't digest below this amount of health return; @@ -842,10 +845,14 @@ void Vore() // do we stick around inside dead furries? x_x if(self.predator.deadflag != DEAD_NO) - if(!cvar("g_balance_vore_deadpredator") || !self.predator.modelindex) // if the predator is gibbed, we are out { - Vore_Regurgitate(self); - return; + if(!cvar("g_balance_vore_deadpredator") || !self.predator.modelindex) // if the predator is gibbed, we are out + { + Vore_Regurgitate(self); + return; + } + if(self.predator.regurgitate_prepare) // abort scheduled regurgitation + self.predator.regurgitate_prepare = 0; } if(self.predator.stomach_load > self.predator.stomach_maxload) // the predator got beyond his capacity after eating, so some prey must pop out -- 2.39.2