From 4f2b68ad25bb44bbfad6954811cbcaf02c78cf10 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 2 Aug 2011 15:58:29 +0300 Subject: [PATCH] Change how scaling of dead prey is applied --- data/balanceVT.cfg | 2 +- data/qcsrc/server/cl_client.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 93ad3759..f8f5f927 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -218,7 +218,7 @@ set g_balance_vore_digestion_vampire 0.2 "amount of health you gain from digesti set g_balance_vore_digestion_vampire_stable 150 "maximum amount of health you can gain from digestion (best kept equal or less than g_balance_health_rotstable)" set g_balance_vore_digestion_distribute 1 "if enabled, digestion is reduced by the amount of prey you have. eg: having 2 prey will reduce digestion strength by 2" set g_balance_vore_digestion_scalediff 0.5 "if enabled, digestion damage is affected by the size of the predator compared to the size of the prey by this amount" -set g_balance_vore_digestion_shrinkdeadprey 0.5 "if g_balance_vore_digestion_limit is smaller than 0, dead prey will be shrunken the closer it gets to the digestion limit, by this scale" +set g_balance_vore_digestion_shrinkdeadprey 0.5 "dead prey will be shrunken by this amount, the closer it gets to the digestion limit" set g_balance_vore_teamheal 1 "when enabled, having a team mate in your stomach will keep healing them by this amount" set g_balance_vore_teamheal_stable 150 "maximum amount of health you can gain from a teamheal (best kept equal or less than g_balance_health_rotstable)" set g_balance_vore_kick_damage 30 "amount of damage you can do during stomach kick" diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index fee876de..674cce3c 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2344,7 +2344,7 @@ void SetPlayerSize() if(self.deadflag != DEAD_NO && self.stat_eaten) { // dead prey must shrink toward zero as they digest, until they reach digestion limit - self.scale *= 1 - bound(0, self.health / cvar("g_balance_vore_digestion_limit"), cvar("g_balance_vore_digestion_shrinkdeadprey")); + self.scale *= 1 - bound(0, (self.health / cvar("g_balance_vore_digestion_limit")) * cvar("g_balance_vore_digestion_shrinkdeadprey"), 1); } if(self.scale < 0.1) -- 2.39.2