From: MirceaKitsune Date: Sun, 31 Jul 2011 18:50:05 +0000 (+0300) Subject: Make sure health doesn't go below the limit X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f83e5b14bff4f95ee704f1e4fbdf38b37cac026d;p=voretournament%2Fvoretournament.git Make sure health doesn't go below the limit --- 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"))