mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 18:25:44 +00:00
stop move
This commit is contained in:
parent
557bdfefd1
commit
246cbd24cb
@ -120,6 +120,7 @@ resetBotVars()
|
||||
self.bot.second_next_wp = -1;
|
||||
self.bot.towards_goal = undefined;
|
||||
self.bot.astar = [];
|
||||
self.bot.stop_move = false;
|
||||
|
||||
self.bot.isfrozen = false;
|
||||
self.bot.sprintendtime = -1;
|
||||
@ -1074,7 +1075,7 @@ walk()
|
||||
|
||||
self botMoveTo(self.origin);
|
||||
|
||||
if(level.inPrematchPeriod || level.gameEnded || self.bot.isfrozen)
|
||||
if(level.inPrematchPeriod || level.gameEnded || self.bot.isfrozen || self.bot.stop_move)
|
||||
continue;
|
||||
|
||||
if(self maps\mp\_flashgrenades::isFlashbanged())
|
||||
|
@ -204,6 +204,14 @@ WeaponIsFullAuto(weap)
|
||||
return isDefined(weaptoks[0]) && isString(weaptoks[0]) && isdefined(level.bots_fullautoguns[weaptoks[0]]);
|
||||
}
|
||||
|
||||
BotStopMoving(what)
|
||||
{
|
||||
self.bot.stop_move = what;
|
||||
|
||||
if(what)
|
||||
self notify("kill_goal");
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if the bot has a script enemy.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user