pickStructLocation() -- limits to wheeled droids?

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

pickStructLocation() -- limits to wheeled droids?

Post by aubergine »

I was looking through the source code to see if pickStructLocation() checked whether droidCanReach() the possible location, and noticed this:

https://github.com/Warzone2100/warzone2 ... .cpp#L1659

Form that comment, it appears that LOC_OK() always uses wheeled propulsion when doing the path checking? If that's the case, how would AI's for example, build on an island if their hover-truck was not already on that island when pickStructLocation() is invoked?

Also, what's the plans for the undocumented "maxBlockingTiles" parameter? From what I can make out it sets the maximum allowable number of tiles immediately adjacent to the building that can't be accessed -- if more than that many tiles can't be accessed by droids, the structure location is rejected?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Post Reply