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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jun 9 09:11:10 EDT 2009


Author: div0
Date: 2009-06-09 09:11:09 -0400 (Tue, 09 Jun 2009)
New Revision: 6946

Modified:
   trunk/data/qcsrc/server/w_tuba.qc
Log:
bots now play the tuba too ;)


Modified: trunk/data/qcsrc/server/w_tuba.qc
===================================================================
--- trunk/data/qcsrc/server/w_tuba.qc	2009-06-09 13:00:34 UTC (rev 6945)
+++ trunk/data/qcsrc/server/w_tuba.qc	2009-06-09 13:11:09 UTC (rev 6946)
@@ -98,8 +98,15 @@
 {
 	if (req == WR_AIM)
 	{
-		// bots cannot play the Tuba yet
+		// bots cannot play the Tuba well yet
 		// I think they should start with the recorder first
+		if(vlen(self.origin - self.enemy.origin) < cvar("g_balance_tuba_radius"))
+		{
+			if(random() > 0.5)
+				self.BUTTON_ATCK = 1;
+			else
+				self.BUTTON_ATCK2 = 1;
+		}
 	}
 	else if (req == WR_THINK)
 	{



More information about the nexuiz-commits mailing list