Statistics: Posted by Uveso — 13 Mar 2018, 06:56
--Generate the safest path between the start and destination
local path
if aiBrain.Sorian or aiBrain.Duncan then
-- Sorian & Duncans AI are using a strong modified pathfinding with path shortcuts, range checks and caching for faster performance.
path = GeneratePathSorian(aiBrain, startNode, endNode, ThreatTable[platoonLayer], optThreatWeight, destination, location, testPath)
elseif aiBrain.Uveso then
-- Uveso AI is using a optimized version of the original GeneratePath function with modified path caching.
path = GeneratePathUveso(aiBrain, startNode, endNode, ThreatTable[platoonLayer], optThreatWeight, destination, location, testPath)
else
-- The original AI is using the vanilla version of GeneratePath. No cache, ugly (AStarLoopBody) code, slow, but reacts faster.
path = GeneratePath(aiBrain, startNode, endNode, ThreatTable[platoonLayer], optThreatWeight, destination, location, testPath)
end
Statistics: Posted by Uveso — 12 Feb 2018, 07:47
Statistics: Posted by Uveso — 28 Jan 2018, 13:47
Statistics: Posted by Sprouto — 23 Jan 2018, 18:33
Statistics: Posted by Ghoustaq — 23 Jan 2018, 16:02
Statistics: Posted by Sprouto — 23 Jan 2018, 15:24
Statistics: Posted by Ghoustaq — 23 Jan 2018, 15:12
Statistics: Posted by Ghoustaq — 22 Jan 2018, 16:01