r2381 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Apr 24 19:07:56 EDT 2007
Author: div0
Date: 2007-04-24 19:07:56 -0400 (Tue, 24 Apr 2007)
New Revision: 2381
Modified:
trunk/data/qcsrc/server/t_jumppads.qc
Log:
fix missing jumppad sounds for bots
Modified: trunk/data/qcsrc/server/t_jumppads.qc
===================================================================
--- trunk/data/qcsrc/server/t_jumppads.qc 2007-04-24 17:17:16 UTC (rev 2380)
+++ trunk/data/qcsrc/server/t_jumppads.qc 2007-04-24 23:07:56 UTC (rev 2381)
@@ -126,15 +126,16 @@
}
if (other.classname == "player")
+ {
+ if(self.pushltime < time) // prevent "snorring" sound when a player hits the jumppad more than once
+ {
+ sound (other, CHAN_ITEM, "misc/jumppad.ogg", 1, ATTN_NORM);
+ self.pushltime = time + 0.5;
+ }
if(clienttype(other) == CLIENTTYPE_REAL)
{
local float i;
local float found;
- if(self.pushltime < time) // prevent "snorring" sound when a player hits the jumppad more than once
- {
- sound (other, CHAN_ITEM, "misc/jumppad.ogg", 1, ATTN_NORM);
- self.pushltime = time + 0.5;
- }
found = FALSE;
for(i = 0; i < other.jumppadcount && i < NUM_JUMPPADSUSED; ++i)
if(other.(jumppadsused[i]) == self)
@@ -147,6 +148,7 @@
}
else
other.jumppadcount = TRUE;
+ }
self.movedir = trigger_push_calculatevelocity(other.origin, self.enemy, self.height);
More information about the nexuiz-commits
mailing list