The attached shard is for spring 94.1.

Moderators: hoijui, Moderators
Several times I have tried, the results where significantly underwhelming, and probably not what I expected due to the way the algorithm works. I currently have code that looks at the biggest footprint length and tweaks the spacing values but while thats an improvement it's far from satisfactory, and in most cases it needs fine tuning on a per building basis anyway, as a consistent spacing value isn't the most optimal situation even if it's reliablesmoth wrote:af couldn't you convert footprints to elmos?
Code: Select all
local x = ux + math.random(-searchRange,searchRange)
local z = uz + math.random(-searchRange,searchRange)
while (spTestBuildOrder(defenceDef, x, 0 ,z, 1) == 0 or not IsTargetReallyReachable(unitID, x, 0 ,z ,ux,uy,uz)) or nearMexSpot(x,z,60) or nearFactory(team,x,z,200) do
x = ux + math.random(-searchRange,searchRange)
z = uz + math.random(-searchRange,searchRange)
searchRange = searchRange + 10
if searchRange > 400 then
return
end
end