From 5222b93b170b5389e707af3e3d92f14ef2e9f57e Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 31 Jul 2011 21:42:38 +0300 Subject: [PATCH] Don't allow some vore functions when dead --- data/qcsrc/server/vore.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 27ea63de..2acff1a0 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -465,6 +465,9 @@ void Vore_Teamheal() { // apply teamheal + if(self.deadflag != DEAD_NO) + return; + if(cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable")) if(time > self.teamheal_step) { @@ -485,6 +488,9 @@ void Vore_StomachKick() { // allows prey to kick the predator's stomach and do some damage or attempt to escape + if(self.deadflag != DEAD_NO) + return; + if(time > self.stomachkick_delay && !self.kick_pressed) { float damage, vol; @@ -522,6 +528,9 @@ void Vore_StomachLeave() { // allows players to get out of their predator at will in some circumstances, such as team mates + if(self.deadflag != DEAD_NO) + return; + if(Vore_CanLeave()) Vore_Regurgitate(self); else if(time > self.complain_vore) -- 2.39.2