|
|
The distance that matters is the distance from the airbase. After a certain point it will not return. Also of note is that if one FPSes a failed aircraft back within this range, it will then return to the airbase. This bug existed before 0.74b2
|
|
|
Kloot
2006-12-30 02:17
developer
~0000492
Last edited: 2006-12-30 02:20
|
This happens because the various calls to FindAirBase() all pass a magic value of 8000 for the search radius, which means that aircraft that travel further than that distance (as is possible on larger maps) are stranded unless you FPS-move them back far enough or you build a platform that lies within 8000 units distance from the plane's position. However, a true fix for this requires deciding when planes should actually return, which is not trivial from a gameplay perspective (do they turn back if they've expended 50, or 70, or 90 percent of their fuel? what happens if they don't have enough left to actually reach a base anymore? etc). Any suggestions would be welcome.
|
|
|
|
It would seem to me that the current system is best because it doesn't require lots of taxing calculations or input from the user; the search radius just needs to be big enough to handle a 40x40 corner to corner. 40x40 is the largest map we have, and will probably stay that way.
|
|
|
|
Bumped max distance to 1,000,000 (AKA infinite... a 1381x1381 map :))
Kloot, what you describe is simply solved by allowing planes to still allow planes to fly to their pad once they're out of fuel. It's not that they crash or anything...
Also the refuel code honors the repair percentage button, e.g. if it's at 30% the planes will return when they have 30% fuel or health left. |
|