r3474 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Mar 2 09:30:11 EST 2008


Author: lordhavoc
Date: 2008-03-02 09:30:10 -0500 (Sun, 02 Mar 2008)
New Revision: 3474

Modified:
   trunk/data/qcsrc/server/havocbot.qc
Log:
don't let bots fire at all when bot_nofire is on


Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc	2008-03-02 14:28:19 UTC (rev 3473)
+++ trunk/data/qcsrc/server/havocbot.qc	2008-03-02 14:30:10 UTC (rev 3474)
@@ -455,7 +455,14 @@
 	havocbot_aim();
 	lag_update();
 	if (self.bot_aimtarg)
+	{
 		weapon_action(self.weapon, WR_AIM);
+		if (cvar("bot_nofire"))
+		{
+			self.button0 = FALSE;
+			self.button3 = FALSE;
+		}
+	}
 	else if (self.goalcurrent)
 	{
 		local vector now,v,next;//,heading;




More information about the nexuiz-commits mailing list