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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 23 09:54:12 EDT 2009


Author: mand1nga
Date: 2009-08-23 09:54:12 -0400 (Sun, 23 Aug 2009)
New Revision: 7497

Modified:
   trunk/data/qcsrc/server/havocbot.qc
Log:
Save some compiler time

Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc	2009-08-22 18:23:26 UTC (rev 7496)
+++ trunk/data/qcsrc/server/havocbot.qc	2009-08-23 13:54:12 UTC (rev 7497)
@@ -955,9 +955,13 @@
 				return;
 			}
 		}
-		// If now weapon was chosen by this system fall back to the previous one
 	}
 
+#ifdef 0
+	// TODO: This disabled code is not working well and got replaced by custom weapon priorities.
+	// However, this logic should be refactored and moved to weapons code so each new weapon can be
+	// evaluated dynamically by bots without updating the "ai" or config files.	--mand1nga
+
 	// Formula:
 	//	(Damage/Sec * Weapon spefic change to get that damage)
 	//	*(Time to get to target * weapon specfic hitchange bonus) / (in a time of maxdelaytime)
@@ -1074,6 +1078,7 @@
 		if ( cvar("bot_ai_weapon_combo") && bestweapon == WEP_ROCKET_LAUNCHER )
 			self.bot_chooseweapontime += (distance  / cvar("g_balance_rocketlauncher_speed"));
 	}
+#endif
 };
 
 .float nextaim;



More information about the nexuiz-commits mailing list