r5451 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Jan 8 05:42:26 EST 2009
Author: div0
Date: 2009-01-08 05:42:26 -0500 (Thu, 08 Jan 2009)
New Revision: 5451
Modified:
trunk/data/qcsrc/server/cl_player.qc
Log:
make ONLY taunts use ATTN_MIN (sorry)
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2009-01-08 10:33:26 UTC (rev 5450)
+++ trunk/data/qcsrc/server/cl_player.qc 2009-01-08 10:42:26 UTC (rev 5451)
@@ -762,7 +762,7 @@
float GetVoiceMessageTeamsayType(string type)
{
if(type == "taunt")
- return 0;
+ return 5;
if(type == "teamshoot")
return 2;
return 1;
@@ -928,7 +928,7 @@
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 @@
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)
More information about the nexuiz-commits
mailing list