Set the proper voice types in code
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 22:52:05 +0000 (00:52 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 22:52:05 +0000 (00:52 +0200)
data/qcsrc/server/cl_client.qc
data/qcsrc/server/defs.qh

index b882260800b8afbb094f8eed12c58d27fb79c2fe..448fb8d33c525e38fecdeacf8a669eb280daa03d 100644 (file)
@@ -2639,8 +2639,11 @@ void PlayerPreThink (void)
                        case TAUNTTYPE_DEATH:\r
                                PlayerSound(self, playersound_taunt, CHAN_VOICE, VOICETYPE_AUTOTAUNT);\r
                                break;\r
-                       case TAUNTTYPE_VORE:\r
-                               PlayerSound(self, playersound_taunt, CHAN_VOICE, VOICETYPE_AUTOTAUNT); // change this properly\r
+                       case TAUNTTYPE_VOREPRED:\r
+                               PlayerSound(self, playersound_pred, CHAN_VOICE, VOICETYPE_AUTOTAUNT); // change this properly\r
+                               break;\r
+                       case TAUNTTYPE_VOREPREY:\r
+                               PlayerSound(self, playersound_prey, CHAN_VOICE, VOICETYPE_AUTOTAUNT); // change this properly\r
                                break;\r
                        default:\r
                                dprint("Incorrect autotaunt type\n");\r
index 9c80b05264e162994a21eafe1692db5974df7e66..a2636062f4c1f1cacbbafe0e8455d08470780758 100644 (file)
@@ -464,6 +464,8 @@ float next_pingtime;
                _VOICEMSG(meet) \\r
                _VOICEMSG(seenflag) \\r
                _VOICEMSG(taunt) \\r
+               _VOICEMSG(pred) \\r
+               _VOICEMSG(prey) \\r
                _VOICEMSG(teamshoot)\r
 \r
 #define _VOICEMSG(m) .string playersound_##m;\r
@@ -504,7 +506,8 @@ string globalsound_metalstep;
 #define VOICETYPE_GURGLE 16\r
 \r
 #define TAUNTTYPE_DEATH 1\r
-#define TAUNTTYPE_VORE 2\r
+#define TAUNTTYPE_VOREPRED 2\r
+#define TAUNTTYPE_VOREPREY 3\r
 \r
 void PrecachePlayerSounds(string f);\r
 void PrecacheGlobalSound(string samplestring);\r