r133 - trunk/progsqc

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jan 20 09:59:43 EST 2009


Author: vermeulen
Date: 2009-01-20 09:59:42 -0500 (Tue, 20 Jan 2009)
New Revision: 133

Modified:
   trunk/progsqc/bots.qc
Log:


Modified: trunk/progsqc/bots.qc
===================================================================
--- trunk/progsqc/bots.qc	2009-01-19 13:17:12 UTC (rev 132)
+++ trunk/progsqc/bots.qc	2009-01-20 14:59:42 UTC (rev 133)
@@ -194,14 +194,19 @@
 
 void() bot_npcthink =
 {
-	self.nextthink = time + 0.02;
 	bot_ai();
 	SV_PlayerPhysics();
 	if (self.enemy)
 	{
+		self.nextthink = time + 0.02;
 		PlayerPreThink();
 		PlayerPostThink();
 	}
+	else
+	{
+		self.velocity = '0 0 0';
+		self.nextthink = time + 1;
+	}
 };
 
 
@@ -268,7 +273,6 @@
 	}
 };
 
-
 void() enemy_turret
 {
  	if (cvar("g_gametype") == 1)
@@ -309,4 +313,4 @@
 		self.spawned = 1;
 		player_spawn(ACTORTYPE_CLASS11);
 	}
-};
+};
\ No newline at end of file




More information about the zymotic-commits mailing list