1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 23:21:51 +00:00

added prio goal

This commit is contained in:
ineed bots
2023-11-30 03:31:43 -06:00
parent e02f7d6cb2
commit 5ceeabcc2a
2 changed files with 30 additions and 2 deletions

View File

@ -141,6 +141,8 @@ resetBotVars()
self.bot.is_cur_sniper = false;
self.bot.is_cur_akimbo = false;
self.bot.prio_objective = false;
self.bot.rand = randomInt( 100 );
self BotBuiltinBotStop();
@ -1567,7 +1569,7 @@ aim_loop()
return;
}
if ( isDefined( self.bot.target ) && isDefined( self.bot.target.entity ) )
if ( isDefined( self.bot.target ) && isDefined( self.bot.target.entity ) && !( self.bot.prio_objective && isDefined( self.bot.script_aimpos ) ) )
{
no_trace_look_time = self.pers["bots"]["skill"]["no_trace_look_time"];
no_trace_time = self.bot.target.no_trace_time;
@ -1983,7 +1985,7 @@ killWalkCauseNoWaypoints()
*/
walk_loop()
{
hasTarget = ( ( isDefined( self.bot.target ) && isDefined( self.bot.target.entity ) ) || isDefined( self.bot.jav_loc ) );
hasTarget = ( ( isDefined( self.bot.target ) && isDefined( self.bot.target.entity ) && !self.bot.prio_objective ) || isDefined( self.bot.jav_loc ) );
if ( hasTarget )
{