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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 22 09:03:55 EDT 2009


Author: mand1nga
Date: 2009-08-22 09:03:54 -0400 (Sat, 22 Aug 2009)
New Revision: 7492

Modified:
   trunk/data/qcsrc/server/w_minstanex.qc
Log:
Make bots annoy with the laser when they run out of ammo in minstagib

Modified: trunk/data/qcsrc/server/w_minstanex.qc
===================================================================
--- trunk/data/qcsrc/server/w_minstanex.qc	2009-08-22 12:30:11 UTC (rev 7491)
+++ trunk/data/qcsrc/server/w_minstanex.qc	2009-08-22 13:03:54 UTC (rev 7492)
@@ -169,7 +169,12 @@
 float w_minstanex(float req)
 {
 	if (req == WR_AIM)
-		self.BUTTON_ATCK = bot_aim(1000000, 0, 1, FALSE);
+	{
+		if(self.ammo_cells>0)
+			self.BUTTON_ATCK = bot_aim(1000000, 0, 1, FALSE);
+		else
+			self.BUTTON_ATCK2 = bot_aim(cvar("g_balance_laser_primary_speed"), 0, cvar("g_balance_laser_primary_lifetime"), FALSE);
+	}
 	else if (req == WR_THINK)
 	{
 		if (self.BUTTON_ATCK)



More information about the nexuiz-commits mailing list