From f83e5b14bff4f95ee704f1e4fbdf38b37cac026d Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 31 Jul 2011 21:50:05 +0300 Subject: [PATCH] Make sure health doesn't go below the limit --- data/qcsrc/server/vore.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 2acff1a0..afe74a06 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -811,6 +811,9 @@ void Vore() if(!self.stat_eaten) return; + if(self.deadflag != DEAD_NO && self.health < cvar("g_balance_vore_digestion_limit")) // make sure health doesn't go below the limit + self.health = cvar("g_balance_vore_digestion_limit"); + // automatically regurgitate prey that has reached their digestion limit if(cvar("g_balance_vore_digestion_limit_regurgitate")) if(self.health <= cvar("g_balance_vore_digestion_limit")) -- 2.39.2