r5699 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jan 30 15:27:12 EST 2009


Author: div0
Date: 2009-01-30 15:27:12 -0500 (Fri, 30 Jan 2009)
New Revision: 5699

Modified:
   trunk/data/qcsrc/server/cl_weaponsystem.qc
Log:
make spawnshield automatically disable when you shoot


Modified: trunk/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weaponsystem.qc	2009-01-30 19:24:39 UTC (rev 5698)
+++ trunk/data/qcsrc/server/cl_weaponsystem.qc	2009-01-30 20:27:12 UTC (rev 5699)
@@ -528,6 +528,9 @@
 	if (self.weaponentity.state != WS_READY)
 		return FALSE;
 	self.weaponentity.state = WS_INUSE;
+
+	self.spawnshieldtime = min(self.spawnshieldtime, time); // kill spawn shield when you fire
+
 	// if the weapon hasn't been firing continuously, reset the timer
 	if(attacktime >= 0)
 	{




More information about the nexuiz-commits mailing list