[nexuiz-commits] r7996 - trunk/data/qcsrc/server/bot/havocbot
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Sep 30 09:29:31 EDT 2009
Author: div0
Date: 2009-09-30 09:29:31 -0400 (Wed, 30 Sep 2009)
New Revision: 7996
Modified:
trunk/data/qcsrc/server/bot/havocbot/havocbot.qc
Log:
small fix for checkpvs console spam when a bot has no goalcurrent
Modified: trunk/data/qcsrc/server/bot/havocbot/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/bot/havocbot/havocbot.qc 2009-09-30 13:11:45 UTC (rev 7995)
+++ trunk/data/qcsrc/server/bot/havocbot/havocbot.qc 2009-09-30 13:29:31 UTC (rev 7996)
@@ -143,7 +143,6 @@
//te_lightning2(world, self.origin, self.goalcurrent.origin);
bot_aimdir(v, -1);
}
- havocbot_movetogoal();
};
void havocbot_keyboard_movement(vector destorg)
@@ -382,6 +381,7 @@
maxspeed = cvar("sv_maxspeed");
// Jetpack navigation
+ if(self.goalcurrent)
if(self.navigation_jetpack_goal)
if(self.goalcurrent==self.navigation_jetpack_goal)
if(self.ammo_fuel)
@@ -806,6 +806,7 @@
// Bunnyhop!
// if(self.aistatus & AI_STATUS_ROAMING)
+ if(Self.goalcurrent)
if(skill+self.bot_moveskill >= cvar("bot_ai_bunnyhop_skilloffset"))
havocbot_bunnyhop(dir);
More information about the nexuiz-commits
mailing list