From: MirceaKitsune Date: Fri, 15 Apr 2011 12:10:14 +0000 (+0300) Subject: Play a different sound when unable to do some vore actions. Already credited (part... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=c925be121caaef08c4f655e9bf60f615605a9d12 Play a different sound when unable to do some vore actions. Already credited (part of a sound package I already used) --- diff --git a/data/qcsrc/server/miscfunctions.qc b/data/qcsrc/server/miscfunctions.qc index bf8aaedf..31ac126d 100644 --- a/data/qcsrc/server/miscfunctions.qc +++ b/data/qcsrc/server/miscfunctions.qc @@ -1411,6 +1411,7 @@ void precache() precache_sound ("misc/hit.wav"); precache_sound ("misc/typehit.wav"); precache_sound ("misc/unavailable.wav"); + precache_sound ("misc/forbidden.wav"); 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 d100122f..d675f5d5 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -37,7 +37,7 @@ float Swallow_condition_check(entity prey) { if(time > self.complain_vore && self.BUTTON_ATCK) { - play2(self, "misc/unavailable.wav"); + play2(self, "misc/forbidden.wav"); sprint(self, "You cannot swallow your team mates\n"); self.complain_vore = time + complain_delay_time; } @@ -48,7 +48,7 @@ float Swallow_condition_check(entity prey) { if(time > self.complain_vore && self.BUTTON_ATCK) { - play2(self, "misc/unavailable.wav"); + play2(self, "misc/forbidden.wav"); sprint(self, strcat("You cannot swallow more than ^2", cvar_string("g_balance_vore_swallow_limit"), "^7 players at a time\n")); self.complain_vore = time + complain_delay_time; } @@ -60,7 +60,7 @@ float Swallow_condition_check(entity prey) { if(time > self.complain_vore && self.BUTTON_ATCK) { - play2(self, "misc/unavailable.wav"); + play2(self, "misc/forbidden.wav"); sprint(self, "You cannot swallow someone with a bigger stomach than yours\n"); self.complain_vore = time + complain_delay_time; } @@ -405,7 +405,7 @@ void Vore_StomachLeave() Vore_Regurgitate(self); else if(time > self.complain_vore) { - play2(self, "misc/unavailable.wav"); + play2(self, "misc/forbidden.wav"); sprint(self, strcat("You cannot get out of ", self.predator.netname, "\n")); self.complain_vore = time + complain_delay_time; } @@ -561,7 +561,7 @@ void Vore() } else if(time > self.complain_vore) { - play2(self, "misc/unavailable.wav"); + play2(self, "misc/forbidden.wav"); sprint(self, "There is nothing to digest\n"); self.complain_vore = time + complain_delay_time; } @@ -583,7 +583,7 @@ void Vore() } else if(time > self.complain_vore) { - play2(self, "misc/unavailable.wav"); + play2(self, "misc/forbidden.wav"); sprint(self, "There is nothing to regurgitate\n"); self.complain_vore = time + complain_delay_time; } diff --git a/data/sound/misc/forbidden.wav b/data/sound/misc/forbidden.wav new file mode 100644 index 00000000..0ec87e53 Binary files /dev/null and b/data/sound/misc/forbidden.wav differ