r2719 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon May 28 18:16:27 EDT 2007


Author: div0
Date: 2007-05-28 18:16:27 -0400 (Mon, 28 May 2007)
New Revision: 2719

Modified:
   trunk/data/qcsrc/server/t_jumppads.qc
Log:
reduce sound minimum time for jumppads from 0.5 to 0.2s;
make light effect consistent with sound (only for actual players, and at least 0.2s between them)


Modified: trunk/data/qcsrc/server/t_jumppads.qc
===================================================================
--- trunk/data/qcsrc/server/t_jumppads.qc	2007-05-28 22:04:50 UTC (rev 2718)
+++ trunk/data/qcsrc/server/t_jumppads.qc	2007-05-28 22:16:27 UTC (rev 2719)
@@ -129,8 +129,10 @@
 	{
 		if(self.pushltime < time)  // prevent "snorring" sound when a player hits the jumppad more than once
 		{
+			// flash when activated
+			te_smallflash(other.origin);
 			sound (other, CHAN_ITEM, "misc/jumppad.wav", 1, ATTN_NORM);
-			self.pushltime = time + 0.5;
+			self.pushltime = time + 0.2;
 		}
 		if(clienttype(other) == CLIENTTYPE_REAL)
 		{
@@ -167,8 +169,6 @@
 		self.think = SUB_Remove;
 		self.nextthink = time;
 	}
-	// flash when activated
-	te_smallflash(other.origin);
 };
 
 .vector dest;




More information about the nexuiz-commits mailing list