Page 1 of 1

pickStructLocation() -- limits to wheeled droids?

Posted: 03 Dec 2012, 01:21
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?