Play beep sound when a team mate was healed to the maximum amount, to both the prey...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Apr 2011 00:20:16 +0000 (03:20 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Apr 2011 00:20:16 +0000 (03:20 +0300)
data/qcsrc/server/miscfunctions.qc
data/qcsrc/server/vore.qc
data/sound/misc/beep.ogg [new file with mode: 0644]

index 31ac126d472175360123f320f81ad2284fa00bff..28d8316fb4f362624a3774885a1cb798550b73e8 100644 (file)
@@ -1412,6 +1412,7 @@ void precache()
        precache_sound ("misc/typehit.wav");\r
        precache_sound ("misc/unavailable.wav");\r
        precache_sound ("misc/forbidden.wav");\r
+       precache_sound ("misc/beep.ogg");\r
     PrecacheGlobalSound((globalsound_fall = "misc/hitground 4"));\r
     PrecacheGlobalSound((globalsound_metalfall = "misc/metalhitground 4"));\r
     precache_sound ("misc/null.wav");\r
index d838c0d7791c8e949cf428d3197901d54d68ea9e..2c83a711ef7ef71df258eb91646832cde296d55d 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
diff --git a/data/sound/misc/beep.ogg b/data/sound/misc/beep.ogg
new file mode 100644 (file)
index 0000000..f3a7b93
Binary files /dev/null and b/data/sound/misc/beep.ogg differ