Fix multiple script errors.

Bot objective and action improvements.
This commit is contained in:
JezuzLizard
2023-05-02 04:29:34 -07:00
parent 1c835bd77b
commit b9fe21d15f
5 changed files with 301 additions and 46 deletions

View File

@@ -1538,9 +1538,11 @@ doWalk( goal, dist, isScriptGoal )
path_was_truncated = ( current + 1 ) >= 32;
//Couldn't generate path to goal
self.path_inaccessible = false;
if ( current <= -1 )
{
self notify( "bad_path_internal" );
self.path_inaccessible = true;
return;
}
@@ -1757,7 +1759,7 @@ getRandomLargestStafe( dist )
*/
initAStar( goal )
{
nodes = generatePath( self.origin, goal, self.team, false );
nodes = generatePath( self.origin, goal, self.team, level.bot_allowed_negotiation_links );
if ( !isDefined( nodes ) )
{