This commit is contained in:
ineed bots
2023-07-17 23:18:52 -06:00
parent 8a9aa8fdb4
commit 91d1728e41
9 changed files with 258 additions and 193 deletions

View File

@@ -80,7 +80,7 @@ Finder( eObj )
continue;
}
answer[answer.size] = self CreateFinderObjective( eObj, eObj.sName + "_" + weapon_spawns[i] GetEntityNumber(), weapon_spawns[i], self [[eObj.fpPriorty]]( eObj, weapon_spawns[i] ) );
answer[answer.size] = self CreateFinderObjectiveEZ( eObj, weapon_spawns[i] );
}
return answer;
@@ -107,7 +107,7 @@ Priority( eObj, eEnt )
base_priority = 0;
base_priority += ClampLerp( get_path_dist( self.origin, eEnt.origin ), 0, 800, 1, -2 );
if ( self HasBotObjective() && self.bot_current_objective.eEnt != eEnt )
if ( self HasBotObjective() && self GetBotObjectiveEnt() != eEnt )
{
base_priority -= 1;
}