Commit Graph

1880 Commits

Author SHA1 Message Date
Dan Albert
855fa1347b Fix canceling transfers when the airbase is full.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2955.
2023-10-01 19:26:23 +02:00
Dan Albert
a343bdef23 Allow factions to specify their cargo ship type.
https://github.com/dcs-liberation/dcs_liberation/issues/3039
2023-10-01 19:26:22 +02:00
Dan Albert
2c7e877086 Always initialize IADS coalition lua tables.
These are read unconditionally, but were only initialized when the
coalition had nodes. When a coalition had no nodes, this caused a nil
access. It's unclear if that had any symptoms, but I expect at the very
least it would break the remainder of the script (so a non-functioning
blue IADS if the red IADS had no nodes).

There's a very small chance this is the culprit behind
https://github.com/dcs-liberation/dcs_liberation/issues/3073.
2023-10-01 19:26:21 +02:00
Dan Albert
12cdb8646c Improve IP selection near threat zone centers.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2754.
2023-10-01 19:26:21 +02:00
Dan Albert
f89ac52bf3 Clean up remaining Flight.from_cp users.
The preferred API for this has been `Flight.departure` for a while.
2023-10-01 19:26:20 +02:00
Raffson
30f6c14030 Fix bug in migrator 2023-10-01 17:21:57 +02:00
Raffson
8e821c50e5 Interpret integer radio_preset keys as radio_id
Allows for configuration of radios 3, 4, 5,...
2023-09-30 20:19:09 +02:00
Raffson
3024bd6479 Fix Hercules AirAssault exception 2023-09-30 19:37:16 +02:00
Raffson
105d1abba8 Try determining intra-flight modulation in squadron config 2023-09-30 18:34:55 +02:00
Raffson
3b7077e593 Use all modeled radio-bands in freq-selector 2023-09-30 17:46:28 +02:00
Raffson
d581af3b8a Remove flights with package not in ATO in migrator 2023-09-24 22:14:26 +02:00
Raffson
e8929467e0 Consolidate capture radius 2023-09-23 19:38:48 +02:00
Raffson
234dc52c7e Make AirAssault auto-plannable 2023-09-23 19:38:29 +02:00
Raffson
ea74471307 Avoid refuel waypoint if air wing can't plan refuel flight 2023-09-23 17:25:12 +02:00
Raffson
389037e6bf Don't scrub missions with unplannable escort types
The check for whether or not the escort is actually needed happens later, and thus the mission can still be scrubbed if it's too dangerous. However, missions should not be scrubbed when a particular escort type is unplannable, yet not needed. Only if the primary flight type is not plannable should the mission immediately be scrubbed
2023-09-23 16:51:26 +02:00
Raffson
167d048232 Fix bug in reserve freqs & tacan 2023-09-17 14:25:46 +02:00
Raffson
59871ac36c Only assign TACAN to compatible tankers 2023-09-17 14:25:46 +02:00
Raffson
1b000e83df Fix "no-purchase" bug at turn 0 2023-09-17 13:02:32 +02:00
Raffson
3787ec3039 Add radio config for UH-60L 2023-09-17 11:45:01 +02:00
Raffson
e341599a11 Account for parking-slot size during retreat
Fix #129
2023-09-09 13:20:56 +02:00
Raffson
e50d49d7ba Ability to disable cargo-ships
Fix #76
2023-09-09 12:09:57 +02:00
Raffson
09749bc088 Use squadron radio_preset freq as flight freq if present 2023-09-08 20:38:17 +02:00
Raffson
0b152c201d Fix rounding errors for squadron's radio presets 2023-09-08 19:22:01 +02:00
Raffson
fe470ad9c6 Migrator fix 2023-09-08 17:17:14 +02:00
Raffson
d22bfd0804 Fix 'IndexError' exception 2023-09-08 17:17:14 +02:00
Raffson
a8a37fa3e7 Add GroupTask to TGO for map filtering
Resolves #21
2023-09-03 23:41:15 +02:00
Raffson
b7bc9efb52 Remove unused variable 2023-09-03 19:00:44 +02:00
Raffson
74cd3a2627 Remove debugging code 2023-09-03 17:37:41 +02:00
Raffson
e4cb0f7c28 Release parking slots when capture occurs 2023-09-02 22:37:29 +02:00
Raffson
66d741d0b3 Allow user to add navigation waypoints where possible 2023-08-27 21:11:10 +02:00
Raffson
819bd92d9a Re-add removed FF-interrupt choice causing error
Opening the options will trigger an exception which sort of breaks save-compatibility
2023-08-27 19:10:39 +02:00
Raffson
9b9905c5a3 Tweaking helicopter stuff 2023-08-19 21:10:26 +02:00
Raffson
8a6b7b172c Fix #199
Adjust 'should_halt_sim' conditions for taxi & takeoff flight-states, fixing an infinite loop that would occur if the FF-interrupt setting would not match with the start-type of the flight
2023-08-19 15:14:23 +02:00
Raffson
4901443b7a Avoid zero-division exception 2023-08-16 19:08:04 +02:00
Raffson
789806637c Improve escort logic for helicopters
Babysteps #88
2023-08-15 21:50:20 +02:00
Raffson
270301958a Fix helicopters oscillating due to over-speeding 2023-08-14 20:25:35 +02:00
Raffson
1157d264ee Migrator update for SEAD-Sweep 2023-08-14 20:25:35 +02:00
Raffson
87399c9ada Update transit-network costs
Fix #169
2023-08-13 19:19:01 +02:00
Raffson
77b88de40e Migrator adjustment for 'radio_presets' 2023-08-13 18:31:57 +02:00
Raffson
7baba78bca Allow radio-presets to be defined in squadron files 2023-08-13 13:16:43 +02:00
Raffson
95f169bb58 Add HF-FM band to ARC-222 2023-08-13 13:16:42 +02:00
MetalStormGhost
7a9a8e1b4b Auto-ato AWACS & Tankers settings (#198)
* Auto-ato AWACS & Tankers settings

Split off the **Automatic AWACS package planning** and **Automatic Theater tanker package planning** settings from **Automatic package planning behavior** so players can choose to have AWACS and theater tankers auto-planned, while managing everything else themselves.

* Drop logic to child-classes

* Enable AWACS auto-planning by default

* Switch order of preconditions

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-08-12 19:09:19 +00:00
MetalStormGhost
115bd8b22a Convert OPFOR untasked flights into Client slots
Added a new option in settings: Convert untasked OPFOR aircraft into client slots. This option will essentially convert the campaign into a sort of team vs. team engagement. There is still no way to plan the OPFOR missions, and there are no guarantees that there even will be any untasked aircraft available for players.

Split the Disable idle aircraft at airfields setting into Disable untasked BLUFOR aircraft at airfields and Disable untasked OPFOR aircraft at airfields.
2023-08-06 12:43:34 +02:00
MetalStormGhost
c51fa5c1df CAS engagement range
New option in Settings: CAS engagement range (nmi)
2023-08-02 19:22:15 +02:00
Raffson
0bc645edeb Have DEAD flights fire all their HARMs first 2023-07-23 00:06:35 +02:00
Raffson
1e5cb94feb Fix mypy complaints 2023-07-23 00:06:35 +02:00
Raffson
53122ff149 Allow user-made custom injected weapons setup 2023-07-22 23:41:42 +02:00
Raffson
da75f41b01 Refactor payloads folder logic 2023-07-22 23:26:32 +02:00
Raffson
64f6a10ced Attempt to fix index-out-of-range
Injecting pylons in the F-100 seems to go out of bounds here
2023-07-21 22:21:44 +02:00
Raffson
d095732a4e Bump version 2023-07-21 13:29:48 +02:00