]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
Make the vore taunt play-rate server side. There's simply no way to make it a client...
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index 29f8dbb341c626cf28d2d41beb1ef70f6f5c2a59..e9a35917fe70f559e45e6b16ce3f8ef66aed9490 100644 (file)
@@ -421,12 +421,12 @@ void Vore_AutoTaunt()
                if(self.stomach_load && !Stomach_TeamMates_check(self))\r
                {\r
                        if(!self.taunt_soundtime)\r
-                               SetAutoTaunt(self, time, TRUE, TAUNTTYPE_VOREPRED);\r
+                               SetAutoTaunt(self, time + cvar("sv_vore_autotaunt_repeat"), TAUNTTYPE_VOREPRED);\r
                }\r
                else if(self.taunt_soundtype == TAUNTTYPE_VOREPRED)\r
                {\r
                        // we have a predator taunt scheduled, but are no longer a (suitable) predator, so remove it\r
-                       SetAutoTaunt(self, 0, FALSE, 0);\r
+                       SetAutoTaunt(self, 0, 0);\r
                }\r
        }\r
        else\r
@@ -435,12 +435,12 @@ void Vore_AutoTaunt()
                if(self.predator.classname == "player" && !(teams_matter && self.team == self.predator.team))\r
                {\r
                        if(!self.taunt_soundtime)\r
-                               SetAutoTaunt(self, time, TRUE, TAUNTTYPE_VOREPREY);\r
+                               SetAutoTaunt(self, time + cvar("sv_vore_autotaunt_repeat"), TAUNTTYPE_VOREPREY);\r
                }\r
                else if(self.taunt_soundtype == TAUNTTYPE_VOREPREY)\r
                {\r
                        // we have a prey taunt scheduled, but are no longer a (suitable) prey, so remove it\r
-                       SetAutoTaunt(self, 0, FALSE, 0);\r
+                       SetAutoTaunt(self, 0, 0);\r
                }\r
        }\r
 }\r