[nexuiz-commits] r7871 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Sep 23 02:44:35 EDT 2009
Author: div0
Date: 2009-09-23 02:44:35 -0400 (Wed, 23 Sep 2009)
New Revision: 7871
Modified:
trunk/data/qcsrc/server/w_common.qc
Log:
turn off nex whoosh for spectators who spectate the shooter
Modified: trunk/data/qcsrc/server/w_common.qc
===================================================================
--- trunk/data/qcsrc/server/w_common.qc 2009-09-23 06:26:21 UTC (rev 7870)
+++ trunk/data/qcsrc/server/w_common.qc 2009-09-23 06:44:35 UTC (rev 7871)
@@ -99,7 +99,7 @@
// Find all non-hit players the beam passed close by
if(deathtype == WEP_MINSTANEX || deathtype == WEP_NEX)
{
- FOR_EACH_REALCLIENT(msg_entity) if(msg_entity != self) if(!msg_entity.railgunhit) // we use realclient, so spectators can hear the whoosh too
+ FOR_EACH_REALCLIENT(msg_entity) if(msg_entity != self) if(!msg_entity.railgunhit) if not(msg_entity.classname == "spectator" && msg_entity.enemy == self) // we use realclient, so spectators can hear the whoosh too
{
// nearest point on the beam
beampos = start + dir * bound(0, (msg_entity.origin - start) * dir, length);
More information about the nexuiz-commits
mailing list