From 0ea2c271bb94f0f67e1b4c426f3ddd34310f8161 Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 8 Jan 2009 10:42:26 +0000 Subject: [PATCH] make ONLY taunts use ATTN_MIN (sorry) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5451 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/cl_player.qc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index b7ef19ecd..b34f8b62a 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -762,7 +762,7 @@ void UpdateSelectedPlayer() float GetVoiceMessageTeamsayType(string type) { if(type == "taunt") - return 0; + return 5; if(type == "teamshoot") return 2; return 1; @@ -928,7 +928,7 @@ void GlobalSound(string sample, float chan, float teamsay) else if(teamsay == 0) // to everyone { // broadcast the sound, but it's directional - sound(self, chan, sample, VOL_BASE, ATTN_MIN); + sound(self, chan, sample, VOL_BASE, ATTN_NORM); } else if(teamsay == 1) // to the same team { @@ -958,6 +958,11 @@ void GlobalSound(string sample, float chan, float teamsay) soundto(MSG_ONE, self, chan, sample, VOL_BASE, ATTN_MIN); } } + else if(teamsay == 5) // manual taunt + { + // broadcast the sound, but it's directional + sound(self, chan, sample, VOL_BASE, ATTN_MIN); + } } void PlayerSound(.string samplefield, float chan, float teamsay) -- 2.39.2