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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Apr 27 22:03:59 EDT 2009


Author: mand1nga
Date: 2009-04-27 22:03:54 -0400 (Mon, 27 Apr 2009)
New Revision: 6602

Modified:
   trunk/data/qcsrc/server/havocbot_roles.qc
Log:
Changed the probability of ctf roles assignations to 45% attacker, 30% defender, 25% middlefield.

Modified: trunk/data/qcsrc/server/havocbot_roles.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot_roles.qc	2009-04-28 01:02:04 UTC (rev 6601)
+++ trunk/data/qcsrc/server/havocbot_roles.qc	2009-04-28 02:03:54 UTC (rev 6602)
@@ -705,10 +705,10 @@
 		self.havocbot_role = havocbot_role_ctf_rogue;
 	else
 	{
-		r = random() * 3;
-		if (r < 1)
+		r = random() * 100;
+		if (r < 45)
 			self.havocbot_role = havocbot_role_ctf_offense;
-		else if (r < 2)
+		else if (r > 75)
 			self.havocbot_role = havocbot_role_ctf_middle;
 		else
 			self.havocbot_role = havocbot_role_ctf_defense;



More information about the nexuiz-commits mailing list