Fixed near range issue for carriers. now the infantry disappearance range for boarding is calculated by the carrier bounding range, which is derived from the bounding rectangle on the Y-axis. The near range parameter can still be provided and will be interpreted as the loading range for static cargo objects!
- AI Cargo Dispatcher works with cargo bay limits for carrier. (i still need to add options to set the parameters for this).
- Carriers load now multiple cargo.
- Added weight and volume attached to cargo objects for units. I reworked the respawning of cargo units, so that these volumes and weights are collected from the unit Descriptor properties!
- There are still bugs, which I need to resolve, but it is going in the right direction.
ARTY
* Groups can now be transported as cargo via ARTY:NewFromCargoGroup() function.
* If immobile units are defined as cargo, targets out of range are not deleted from the queue.
AI_CARGO_APC
* Adjusted function documentation.
AI_CARGO_DISPATCHER
* Adjusted function documentation.
AI_CARGO_HELICOPTER
* Adjusted function documentation.
CARGOG_ROUP
* Ajusted function documentation.
MESSAGE
* Adjusted function documentation.
* Added missing Settings parameter to some functions.
DCS
* Improved documentation.
MISSION:
* Adusted function documentatoin.
Generate new documentation with markdown _ change avoiding wrong italics in the documentation. This is an important change improving the documentation quality!
This effectivally reverts the change made in commit
ea96a5e0a38b ("Planes remaining at airfield fixed") to declutter
airbases of aircraft which land at incorrect bases.
The problem with the logic is an RTB command will not be issued until
the fuel threshold is reached. Therefore the check will always be true
resulting the the unit always being deleted.
Bug: 875
Signed-off-by: Jonathan Toppins <jtoppins@users.sourceforge.net>
This fixes the problem of planes owned by gcicap would immediately
despawn when shot causing their engine to quit.
While not ultimately satisfying as planes shot while taxiing will still
immediately despawn. One is now able to see their air victories in all
their glory, including the fiery crash into the ground.
Bug: 932
Signed-off-by: Jonathan Toppins <jtoppins@users.sourceforge.net>
AI_A2A and AI_Patrol:
Changed average fuel for controllable to new min fuel function. Hopefully provides better RTB behavior.
CONTROLLABLE:
Added GetFuelMin and GetFuelAve functions to ensure polymorphic behavior.
UNIT:
Added GetFuelMin and GetFuelAve functions for completeness and potential polymorphism.