]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
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 e5452e6a739c3775376955e8438afe1241da7d68..d100122f819507f76c16318912a9ada4d8627ab8 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
        {\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
                        {\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
 \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
                        {\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(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
                        {\r
                                play2(self, "misc/unavailable.wav");\r
                                sprint(self, "You cannot swallow someone with a bigger stomach than yours\n");\r