From 39d055630058636c68bb6a863f4af6a0bc953a20 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 31 Jul 2011 21:32:19 +0300 Subject: [PATCH] Amplify digestion damage for dead prey --- data/balanceVT.cfg | 3 ++- data/qcsrc/server/vore.qc | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 4589e01a..95fd1446 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -210,7 +210,8 @@ set g_balance_vore_regurgitate_predatorforce 450 "players are pushed back by thi set g_balance_vore_regurgitate_delay 0.5 "regurgitation delay" set g_balance_vore_regurgitate_punchangle 12 "your view gets tilted by this amount when regurgitating someone" set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion" -set g_balance_vore_digestion_limit -25 "prey can be digested down to this amount of health" +set g_balance_vore_digestion_damage_death 2 "amplify digestion damage by this amount when the prey is dead" +set g_balance_vore_digestion_limit -100 "prey can be digested down to this amount of health" set g_balance_vore_digestion_limit_regurgitate 1 "the predator automatically regurgitates prey that has reached the digestion limit" set g_balance_vore_digestion_vampire 1 "amount of health you gain from digestion" 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)" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index e2919fc9..27ea63de 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -431,20 +431,22 @@ void Vore_Digest() if(time > self.digestion_step) { // if distributed digestion is enabled, reduce digestion strength by the amount of prey in our stomach - float vore_offset; - vore_offset = 1; + float damage, damage_offset; + + damage_offset = 1; if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage - vore_offset *= self.predator.stomach_load / self.predator.stomach_maxload; + damage_offset *= self.predator.stomach_load / self.predator.stomach_maxload; if(cvar("g_healthsize") && cvar("g_balance_vore_digestion_scalediff")) // apply player scale to digestion damage - vore_offset *= pow(self.scale / self.predator.scale, cvar("g_balance_vore_digestion_scalediff")); - vore_offset = ceil(vore_offset); + damage_offset *= pow(self.scale / self.predator.scale, cvar("g_balance_vore_digestion_scalediff")); + damage_offset = ceil(damage_offset); - float damage; - damage = cvar("g_balance_vore_digestion_damage") / vore_offset; + damage = cvar("g_balance_vore_digestion_damage") / damage_offset; + if(cvar("g_balance_vore_digestion_damage_death") && self.deadflag != DEAD_NO) // amplify digestion damage for dead prey + damage *= cvar("g_balance_vore_digestion_damage_death"); Damage(self, self.predator, self.predator, damage, DEATH_DIGESTION, self.origin, '0 0 0'); if(cvar("g_balance_vore_digestion_vampire") && self.predator.health < cvar("g_balance_vore_digestion_vampire_stable")) - self.predator.health += cvar("g_balance_vore_digestion_vampire") / vore_offset; + self.predator.health += damage * cvar("g_balance_vore_digestion_vampire"); if (self.predator.digestsound_finished < time) { -- 2.39.2