Skip to content

Commit

Permalink
Update NavalForceAI to use IssueAggressiveMoveAlongRoute (FAForever#4305
Browse files Browse the repository at this point in the history
)
  • Loading branch information
relent0r authored Oct 27, 2022
1 parent a4c2a8d commit f752a26
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lua/AI/aiattackutilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -694,19 +694,9 @@ function AIPlatoonNavalAttackVector(aiBrain, platoon)
end

if path then
local pathSize = table.getn(path)
-- store path
platoon.LastAttackDestination = path
-- move to new location
for wpidx,waypointPath in path do
if wpidx == pathSize then
platoon:AggressiveMoveToLocation(waypointPath)
--platoon:MoveToLocation(waypointPath, false)
else
platoon:AggressiveMoveToLocation(waypointPath)
--platoon:MoveToLocation(waypointPath, false)
end
end
platoon:IssueAggressiveMoveAlongRoute(path)
end

-- return current command queue
Expand Down

0 comments on commit f752a26

Please sign in to comment.