]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Don't allow some vore functions when dead
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 31 Jul 2011 18:42:38 +0000 (21:42 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 31 Jul 2011 18:42:38 +0000 (21:42 +0300)
data/qcsrc/server/vore.qc

index 27ea63de078585c531f3acabc49fcc8c9eb540de..2acff1a05ae05a9fdd376d5b74dd541c6d4618c8 100644 (file)
@@ -465,6 +465,9 @@ void Vore_Teamheal()
 {\r
        // apply teamheal\r
 \r
+       if(self.deadflag != DEAD_NO)\r
+               return;\r
+\r
        if(cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable"))\r
        if(time > self.teamheal_step)\r
        {\r
@@ -485,6 +488,9 @@ void Vore_StomachKick()
 {\r
        // allows prey to kick the predator's stomach and do some damage or attempt to escape\r
 \r
+       if(self.deadflag != DEAD_NO)\r
+               return;\r
+\r
        if(time > self.stomachkick_delay && !self.kick_pressed)\r
        {\r
                float damage, vol;\r
@@ -522,6 +528,9 @@ void Vore_StomachLeave()
 {\r
        // allows players to get out of their predator at will in some circumstances, such as team mates\r
 \r
+       if(self.deadflag != DEAD_NO)\r
+               return;\r
+\r
        if(Vore_CanLeave())\r
                Vore_Regurgitate(self);\r
        else if(time > self.complain_vore)\r