]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
Put the regurgitate_prepare sound on a different channel than the regurgitate sound...
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index b1b13558a9bd5fb1c077e22d58a67b7f84aa96f8..00d21e15624af1e2a73d9cb33aed2f72b42a8d1c 100644 (file)
@@ -332,7 +332,7 @@ void Vore()
                        if(time > self.regurgitate_button_delay)\r
                        {\r
                                self.regurgitate_prepare = time + cvar("g_balance_vore_regurgitate_delay");\r
-                               PlayerSound(self, playersound_regurgitate_prepare, CHAN_PAIN, VOICETYPE_PLAYERSOUND);\r
+                               PlayerSound(self, playersound_regurgitate_prepare, CHAN_VOICE, VOICETYPE_PLAYERSOUND);\r
                                self.regurgitate_button_delay = time + button_delay;\r
                        }\r
                }\r
@@ -362,7 +362,7 @@ void Vore()
                targeteater = self.eater.eater;\r
 \r
                Vore_Regurgitate(self);\r
-               if(1 == 1) //cvar!!!!!!!!!!!!!!!!\r
+               if(random() < cvar("g_vore_stealprey"))\r
                if(Swallow_condition_check(self))\r
                {\r
                        oldself = self;\r