From: MirceaKitsune Date: Sun, 31 Jul 2011 18:38:21 +0000 (+0300) Subject: Don't allow prey that's still being digested to respawn X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=84570fc0e2d136e82497a45049435c7113aabb6f;p=voretournament%2Fvoretournament.git Don't allow prey that's still being digested to respawn --- 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;