From: MirceaKitsune Date: Sat, 16 Apr 2011 00:20:16 +0000 (+0300) Subject: Play beep sound when a team mate was healed to the maximum amount, to both the prey... X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=283c9901e0b84d6f4729cababf5e9f44acda6a14 Play beep sound when a team mate was healed to the maximum amount, to both the prey and the predator --- diff --git a/data/qcsrc/server/miscfunctions.qc b/data/qcsrc/server/miscfunctions.qc index 31ac126d..28d8316f 100644 --- a/data/qcsrc/server/miscfunctions.qc +++ b/data/qcsrc/server/miscfunctions.qc @@ -1412,6 +1412,7 @@ void precache() precache_sound ("misc/typehit.wav"); precache_sound ("misc/unavailable.wav"); precache_sound ("misc/forbidden.wav"); + precache_sound ("misc/beep.ogg"); PrecacheGlobalSound((globalsound_fall = "misc/hitground 4")); PrecacheGlobalSound((globalsound_metalfall = "misc/metalhitground 4")); precache_sound ("misc/null.wav"); diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index d838c0d7..2c83a711 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -376,6 +376,13 @@ void Vore_Teamheal() { self.health += cvar("g_balance_vore_teamheal"); self.teamheal_step = time + steptime; + + // play beep sound when a team mate was healed to the maximum amount, to both the prey and the predator + if(self.health >= cvar("g_balance_vore_teamheal_stable")) + { + play2(self, "misc/beep.ogg"); + play2(self.predator, "misc/beep.ogg"); + } } } diff --git a/data/sound/misc/beep.ogg b/data/sound/misc/beep.ogg new file mode 100644 index 00000000..f3a7b93e Binary files /dev/null and b/data/sound/misc/beep.ogg differ