[nexuiz-commits] r7151 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jul 7 06:54:35 EDT 2009


Author: div0
Date: 2009-07-07 06:54:35 -0400 (Tue, 07 Jul 2009)
New Revision: 7151

Modified:
   trunk/data/qcsrc/server/w_campingrifle.qc
Log:
fix reload-switch away-reload bug


Modified: trunk/data/qcsrc/server/w_campingrifle.qc
===================================================================
--- trunk/data/qcsrc/server/w_campingrifle.qc	2009-07-07 05:15:32 UTC (rev 7150)
+++ trunk/data/qcsrc/server/w_campingrifle.qc	2009-07-07 10:54:35 UTC (rev 7151)
@@ -1,4 +1,4 @@
-//Camping rifle Primary mode: manually operated bolt*, Secondary: full automatic** --MikeeUSA--
+//Camping rifle Primary mode: manually operated bolt*, Secondary: full automatic**
 //* Manually operating the bolt means that all the power of the gas is used to propell the bullet. In this mode the bolt is prevented from moving backwards in response to the firing of the bullet.
 //** In fully automatic mode some of the gas is used to extract and reload the next cartrige, thus there is less power and range.
 
@@ -35,6 +35,8 @@
 	ATTACK_FINISHED(self) = t;
 
 	weapon_thinkf(WFRAME_RELOAD, cvar("g_balance_campingrifle_reloadtime"), W_Campingrifle_ReloadedAndReady);
+
+	self.campingrifle_bulletcounter = -1;
 }
 
 void W_Campingrifle_CheckReloadAndReady()



More information about the nexuiz-commits mailing list