r5431 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Jan 7 03:07:19 EST 2009
Author: div0
Date: 2009-01-07 03:07:10 -0500 (Wed, 07 Jan 2009)
New Revision: 5431
Modified:
trunk/data/qcsrc/server/cl_player.qc
trunk/data/qcsrc/server/constants.qh
Log:
play taunts directionally
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2009-01-06 22:23:06 UTC (rev 5430)
+++ trunk/data/qcsrc/server/cl_player.qc 2009-01-07 08:07:10 UTC (rev 5431)
@@ -932,7 +932,7 @@
else if(teamsay == 0) // to everyone
{
// broadcast the sound, but it's directional
- sound(self, chan, sample, VOL_BASE, ATTN_NORM);
+ sound(self, chan, sample, VOL_BASE, ATTN_MIN);
}
else if(teamsay == 1) // to the same team
{
@@ -957,7 +957,8 @@
FOR_EACH_REALCLIENT(e)
if (tauntrand < e.cvar_cl_autotaunt)
{
- soundto(MSG_ONE, self, chan, sample, VOL_BASE, ATTN_NONE);
+ msg_entity = e;
+ soundto(MSG_ONE, self, chan, sample, VOL_BASE, ATTN_MIN);
}
}
}
Modified: trunk/data/qcsrc/server/constants.qh
===================================================================
--- trunk/data/qcsrc/server/constants.qh 2009-01-06 22:23:06 UTC (rev 5430)
+++ trunk/data/qcsrc/server/constants.qh 2009-01-07 08:07:10 UTC (rev 5431)
@@ -142,6 +142,7 @@
// on entities: player sounds PLAYER
float ATTN_NONE = 0;
+float ATTN_MIN = 0.015625;
float ATTN_NORM = 0.5;
float ATTN_IDLE = 2;
float ATTN_STATIC = 3;
More information about the nexuiz-commits
mailing list