mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-09-23 07:06:39 +00:00
add goal prio
This commit is contained in:
@@ -468,6 +468,32 @@ HasThreat()
|
||||
return ( isDefined( self GetThreat() ) );
|
||||
}
|
||||
|
||||
/*
|
||||
Returns whether the bot has a priority objective
|
||||
*/
|
||||
HasPriorityObjective()
|
||||
{
|
||||
return self.bot.prio_objective;
|
||||
}
|
||||
|
||||
/*
|
||||
Sets the bot to prioritize the objective over targeting enemies
|
||||
*/
|
||||
SetPriorityObjective()
|
||||
{
|
||||
self.bot.prio_objective = true;
|
||||
self notify( "kill_goal" );
|
||||
}
|
||||
|
||||
/*
|
||||
Clears the bot's priority objective to allow the bot to target enemies automatically again
|
||||
*/
|
||||
ClearPriorityObjective()
|
||||
{
|
||||
self.bot.prio_objective = false;
|
||||
self notify( "kill_goal" );
|
||||
}
|
||||
|
||||
/*
|
||||
If the player is defusing
|
||||
*/
|
||||
|
Reference in New Issue
Block a user