Play beep sound when a team mate was healed to the maximum amount, to both the prey...
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index d838c0d..2c83a71 100644 (file)
@@ -376,6 +376,13 @@ void Vore_Teamheal()
        {\r
                self.health += cvar("g_balance_vore_teamheal");\r
                self.teamheal_step = time + steptime;\r
+\r
+               // play beep sound when a team mate was healed to the maximum amount, to both the prey and the predator\r
+               if(self.health >= cvar("g_balance_vore_teamheal_stable"))\r
+               {\r
+                       play2(self, "misc/beep.ogg");\r
+                       play2(self.predator, "misc/beep.ogg");\r
+               }\r
        }\r
 }\r
 \r