From: MirceaKitsune Date: Sat, 19 Nov 2011 20:41:07 +0000 (+0200) Subject: No, it wasn't ok before. Hopefully it is now X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=45ae2a86dc1f76be7c5f07b73dd34b431d2987ca;p=voretournament%2Fvoretournament.git No, it wasn't ok before. Hopefully it is now --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 2e6a3f7a..00205205 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -256,7 +256,7 @@ void Item_Consumable_Think() damage_offset = 1; if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage - damage_offset *= (self.predator.stomach_load / self.predator.stomach_maxload) / cvar("g_balance_vore_digestion_distribute"); + damage_offset /= (1 - (self.predator.stomach_load / self.predator.stomach_maxload) * bound(0, cvar("g_balance_vore_digestion_distribute"), 1)); damage = cvar("g_balance_vore_digestion_damage_item") / damage_offset; self.health -= damage; diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 6c07ac13..ffe88bdc 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -459,7 +459,7 @@ void Vore_Digest() damage_offset = 1; if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage - damage_offset *= (self.predator.stomach_load / self.predator.stomach_maxload) / cvar("g_balance_vore_digestion_distribute"); + damage_offset /= (1 - (self.predator.stomach_load / self.predator.stomach_maxload) * bound(0, cvar("g_balance_vore_digestion_distribute"), 1)); if(cvar("g_healthsize") && cvar("g_balance_vore_digestion_scalediff")) // apply player scale to digestion damage damage_offset *= pow(self.scale / self.predator.scale, cvar("g_balance_vore_digestion_scalediff"));