- Created a new AI_AIR class. AI_A2A and AI_A2G inherit from AI_AIR.
- Created a new AI_A2G_DISPATCHER class.
- Created a new AI_A2G_ENGAGE class, that implements the SEAD, CAS and BAI actions.
- The AI_A2G_DISPATCHER implements now:
* SEAD, CAS and BAI attacks from airbases.
* AddDefenseCoordinate() to set a defense coordinate.
* RemoveDefenseCoordinate() to remove a defense coordinate.
* SetDefenseReactivenessHigh() for high reactiveness.
* SetDefenseReactivenessMedium() for medium reactiveness.
* SetDefenseReactivenessLow() for low reactiveness.
* Overhead for ground attacks.
* Grouping for ground attacks.
* Evaluates task type based on enemy group composition.
- Tested AI_A2A_DISPATCHER for backward compatibility.
- Implemented spawning of airplanes in AI_A2A_DISPATCHER:
* SetSquadronVisible() method to make the squadron visible at the airport.
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.
ARTY:
Fixed CTD bug. Caused by group:ClearTasks() when no task is assigned (group arrived).
Many other improvements
Cleared up function location.
MESSAGES:
Added optional clear screen parameter.
RANGE:
-Optimized performance. Bombs are now only tracked if the player is within a certain distance of the range.
CONTROLLABLE:
- Added speed unit to @param description. Sometimes it was unclear if speed needs to be given in m/s or km/h.
- Fixed some default speed and conversions.
COORDINATE:
- Cleaned up some speed unit stuff.
- Reintroduced PathOnRoad function to contain the full path. Useful as interface to DCS API function.
- Fixed some default speed and conversions.
AI_CARGO_APC:
Speed is not fixed any more but set to 50% of the max speed a given unit can move at.