Only do vore complaints if the player is holding down the fire button (fixes a small...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 11:45:28 +0000 (14:45 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 11:45:28 +0000 (14:45 +0300)
data/qcsrc/server/vore.qc

index e5452e6..d100122 100644 (file)
@@ -35,7 +35,7 @@ float Swallow_condition_check(entity prey)
        {\r
                if(teams_matter && prey.team == self.team && !cvar("g_vore_teamvore"))\r
                {\r
-                       if(time > self.complain_vore)\r
+                       if(time > self.complain_vore && self.BUTTON_ATCK)\r
                        {\r
                                play2(self, "misc/unavailable.wav");\r
                                sprint(self, "You cannot swallow your team mates\n");\r
@@ -46,7 +46,7 @@ float Swallow_condition_check(entity prey)
 \r
                if(self.stomach_load >= cvar("g_balance_vore_swallow_limit"))\r
                {\r
-                       if(time > self.complain_vore)\r
+                       if(time > self.complain_vore && self.BUTTON_ATCK)\r
                        {\r
                                play2(self, "misc/unavailable.wav");\r
                                sprint(self, strcat("You cannot swallow more than ^2", cvar_string("g_balance_vore_swallow_limit"), "^7 players at a time\n"));\r
@@ -58,7 +58,7 @@ float Swallow_condition_check(entity prey)
                if(cvar("g_vore_biggergut"))\r
                if(prey.stomach_load > self.stomach_load)\r
                {\r
-                       if(time > self.complain_vore)\r
+                       if(time > self.complain_vore && self.BUTTON_ATCK)\r
                        {\r
                                play2(self, "misc/unavailable.wav");\r
                                sprint(self, "You cannot swallow someone with a bigger stomach than yours\n");\r