]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Play a different sound when unable to do some vore actions. Already credited (part...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 12:10:14 +0000 (15:10 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 12:10:14 +0000 (15:10 +0300)
data/qcsrc/server/miscfunctions.qc
data/qcsrc/server/vore.qc
data/sound/misc/forbidden.wav [new file with mode: 0644]

index bf8aaedf878a837fe1b4b525e6051cc103033cb3..31ac126d472175360123f320f81ad2284fa00bff 100644 (file)
@@ -1411,6 +1411,7 @@ void precache()
     precache_sound ("misc/hit.wav");\r
        precache_sound ("misc/typehit.wav");\r
        precache_sound ("misc/unavailable.wav");\r
+       precache_sound ("misc/forbidden.wav");\r
     PrecacheGlobalSound((globalsound_fall = "misc/hitground 4"));\r
     PrecacheGlobalSound((globalsound_metalfall = "misc/metalhitground 4"));\r
     precache_sound ("misc/null.wav");\r
index d100122f819507f76c16318912a9ada4d8627ab8..d675f5d5bf8b866c7beb21f9b54d597a44693566 100644 (file)
@@ -37,7 +37,7 @@ float Swallow_condition_check(entity prey)
                {\r
                        if(time > self.complain_vore && self.BUTTON_ATCK)\r
                        {\r
-                               play2(self, "misc/unavailable.wav");\r
+                               play2(self, "misc/forbidden.wav");\r
                                sprint(self, "You cannot swallow your team mates\n");\r
                                self.complain_vore = time + complain_delay_time;\r
                        }\r
@@ -48,7 +48,7 @@ float Swallow_condition_check(entity prey)
                {\r
                        if(time > self.complain_vore && self.BUTTON_ATCK)\r
                        {\r
-                               play2(self, "misc/unavailable.wav");\r
+                               play2(self, "misc/forbidden.wav");\r
                                sprint(self, strcat("You cannot swallow more than ^2", cvar_string("g_balance_vore_swallow_limit"), "^7 players at a time\n"));\r
                                self.complain_vore = time + complain_delay_time;\r
                        }\r
@@ -60,7 +60,7 @@ float Swallow_condition_check(entity prey)
                {\r
                        if(time > self.complain_vore && self.BUTTON_ATCK)\r
                        {\r
-                               play2(self, "misc/unavailable.wav");\r
+                               play2(self, "misc/forbidden.wav");\r
                                sprint(self, "You cannot swallow someone with a bigger stomach than yours\n");\r
                                self.complain_vore = time + complain_delay_time;\r
                        }\r
@@ -405,7 +405,7 @@ void Vore_StomachLeave()
                Vore_Regurgitate(self);\r
        else if(time > self.complain_vore)\r
        {\r
-               play2(self, "misc/unavailable.wav");\r
+               play2(self, "misc/forbidden.wav");\r
                sprint(self, strcat("You cannot get out of ", self.predator.netname, "\n"));\r
                self.complain_vore = time + complain_delay_time;\r
        }\r
@@ -561,7 +561,7 @@ void Vore()
                }\r
                else if(time > self.complain_vore)\r
                {\r
-                       play2(self, "misc/unavailable.wav");\r
+                       play2(self, "misc/forbidden.wav");\r
                        sprint(self, "There is nothing to digest\n");\r
                        self.complain_vore = time + complain_delay_time;\r
                }\r
@@ -583,7 +583,7 @@ void Vore()
                }\r
                else if(time > self.complain_vore)\r
                {\r
-                       play2(self, "misc/unavailable.wav");\r
+                       play2(self, "misc/forbidden.wav");\r
                        sprint(self, "There is nothing to regurgitate\n");\r
                        self.complain_vore = time + complain_delay_time;\r
                }\r
diff --git a/data/sound/misc/forbidden.wav b/data/sound/misc/forbidden.wav
new file mode 100644 (file)
index 0000000..0ec87e5
Binary files /dev/null and b/data/sound/misc/forbidden.wav differ