From 84570fc0e2d136e82497a45049435c7113aabb6f Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 31 Jul 2011 21:38:21 +0300 Subject: [PATCH] Don't allow prey that's still being digested to respawn --- data/balanceVT.cfg | 1 + data/qcsrc/server/cl_client.qc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index 95fd1446..0270dafb 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -213,6 +213,7 @@ set g_balance_vore_digestion_damage 4 "amount of damage applied to victims durin 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_limit_blockrespawn 1 "dead prey cannot respawn if it's still being digested" 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)" 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" diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index d735eb09..8a503053 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -1742,6 +1742,11 @@ void UpdateChatBubble() .float oldcolormap; void respawn(void) { + // don't allow respawing if the prey is still digesting + if(cvar("g_balance_vore_digestion_limit_blockrespawn")) + if(self.predator.digesting && self.health > cvar("g_balance_vore_digestion_limit")) + return; + if(self.alpha >= 0 && self.modelindex != 0 && cvar("g_respawn_ghosts")) { self.solid = SOLID_NOT; -- 2.39.2