mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-10-29 08:56:56 +00:00
some stuff
This commit is contained in:
@@ -1138,20 +1138,20 @@ isWeaponPrimary( weap )
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
Generates the path
|
||||
*/
|
||||
GenerateThePath( from, to, team, best_effort )
|
||||
{
|
||||
return generatePath( from, to, team, level.bot_allowed_negotiation_links, best_effort, level.bot_ignore_links );
|
||||
}
|
||||
|
||||
/*
|
||||
Checks whether the path generated by the ASTAR path finding is inaccessible
|
||||
*/
|
||||
GetPathIsInaccessible( from, to, team, best_effort )
|
||||
{
|
||||
if ( isDefined( best_effort ) )
|
||||
{
|
||||
path = generatePath( from, to, team, level.bot_allowed_negotiation_links, best_effort );
|
||||
}
|
||||
else
|
||||
{
|
||||
path = generatePath( from, to, team, level.bot_allowed_negotiation_links );
|
||||
}
|
||||
|
||||
path = GenerateThePath( from, to, team, best_effort );
|
||||
return ( !isDefined( path ) || ( path.size <= 0 ) );
|
||||
}
|
||||
|
||||
@@ -1160,7 +1160,7 @@ GetPathIsInaccessible( from, to, team, best_effort )
|
||||
*/
|
||||
get_path_dist( start, end, team )
|
||||
{
|
||||
path = generatePath( start, end, team, level.bot_allowed_negotiation_links, 192.0 );
|
||||
path = GenerateThePath( start, end, team, 192.0 );
|
||||
|
||||
if ( !isDefined( path ) || path.size <= 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user