Commit Graph

322 Commits

Author SHA1 Message Date
MetalStormGhost
9775d3b97c Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator 2024-05-26 22:06:19 +03:00
Raffson
b3f9cdfa74 Fix SunTime exceptions if sun doesn't rise of set 2024-05-25 23:42:57 +02:00
MetalStormGhost
48861c53da Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator 2024-05-09 21:16:32 +03:00
MetalStormGhost
04e60fb08d Ramon Airbase hack (#309) 2024-05-08 21:52:12 +02:00
MetalStormGhost
c795ed01a0 Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator 2024-05-03 11:19:48 +03:00
Raffson
79d79645b0 Make sure escort task is added if flight has passed IP 2024-05-01 17:06:25 +02:00
Raffson
4b75913420 Insert orientation waypoint at/after IP
As a result of using fast-forward, AI flights are already oriented towards SPLIT, which slows things down during mission start. The escorts tend to go all over the place because of this...
2024-05-01 17:06:25 +02:00
Raffson
0ffe2f11bc Add guard before custom kneeboard injection 2024-05-01 14:12:23 +02:00
Raffson
4043e2452f Custom kneeboard injection
Drop custom kneeboards in SavedGames/DCS/Retribution/Kneeboards as you would normally do, i.e. using the necessary folders if kneeboards are aircraft-specific
2024-04-28 21:21:01 +02:00
Raffson
71965e7183 Fix exception after suntime update 2024-04-28 21:21:00 +02:00
Raffson
19523e35cf Fine-tune Strike-ingress waypoint tasks 2024-04-28 21:20:59 +02:00
MetalStormGhost
64b1410de8 Implemented support for player controllable carriers in Pretense campaigns. This functionality can be enabled or disabled in settings, because the controllable carriers in Pretense do not build and deploy AI missions autonomously, so the old functionality is retained.
Added new options in settings:
- Carriers steam into wind
- Navmesh to use for Pretense carrier zones
- Remove ground spawn statics, including invisible FARPs, at airbases.
- Percentage of randomly selected aircraft types (only for generated squadrons)
intended to allow the user to increase aircraft variety.

Will now store the ICLS channel and Link4 frequency in missiondata.py CarrierInfo.

Implemented artillery groups as Pretense garrisons. Artillery groups are spawned by the Artillery Bunker. Will now also ensure that the logistics units spawned as part of Pretense garrisons are actually capable of ammo resupply.

Fixed the Pretense generator generating a bit too many missions per squadron. Ground spawns: Also hot start aircraft which require ground crew support (ground air or chock removal) which might not be available at roadbases. Also, pretensetgogenerator.py will now correctly handle air defence units in ground_unit_of_class(). Added Roland groups in the Pretense generator.
2024-04-06 15:46:11 +03:00
Raffson
185911942a Fine-tune Herc's AirAssault 2024-04-01 19:14:42 +02:00
Raffson
52b25821af Introduce livery-sets on squadron level
Randomly chooses one of the liveries defined if present in the squadron's yaml, overrides entry for "livery" or whatever is chosen in the UI except liveries on flight-member level
2024-03-23 21:29:01 +01:00
Raffson
ab32c44b9d Ability to configure liveries on flight/flight-member level 2024-03-22 20:41:28 +01:00
Raffson
19daa1737e Drop single bombs on statics again 2024-03-10 22:55:00 +01:00
Raffson
0b40f872bf And now formatting -_- 2024-03-10 15:51:14 +01:00
Raffson
733e31c35a Fix mypy issue -_- 2024-03-10 15:49:27 +01:00
Raffson
fc9a1ad145 Use original trigger zone type for scenery targets 2024-03-10 14:52:28 +01:00
Raffson
94801f859a Formatting 2024-03-10 01:23:48 +01:00
Raffson
3cd1b2f80a Fine-tune target waypoints for Strike Eagle 2024-03-10 00:51:09 +01:00
Raffson
9303e1cb9e Configurable cruise & combat altitude + randomized offsets (phase 1) 2024-03-04 00:01:29 +01:00
Raffson
0591f74a11 Fine-tune DEAD ingress wpt-tasks 2024-03-03 02:23:42 +01:00
Raffson
aab8454fe6 Change formations at HOLD & SPLIT 2024-03-02 23:17:45 +01:00
Raffson
9e1a642eb2 Add option to force air-starts at Nevatim 2024-02-25 16:15:09 +01:00
MetalStormGhost
f4e8e30cb1 Implemented new options in settings:
- Pretense: Extra friendly zone connections - Add connections from each zone to this many closest friendly zones, which don't have an existing supply route defined in the campaign.
- Number of cargo planes per side
- Number of AI SEAD flights per control point / zone
- Number of AI CAS flights per control point / zone
- Number of AI BAI flights per control point / zone
- Number of AI Strike flights per control point / zone
- Number of AI BARCAP flights per control point / zone
- Number of AI aircraft per flight
- Number of player flights per aircraft type at each base
- Number of AI cargo planes per side

Implemented CAS helo mission handling for Pretense. Implemented separate pretense_air_groups container for storing/referencing Flight objects. Tweaked the supply costs of SAM sites and Command centers. Will no longer generate player air starts at roadbases either. Restored the missing DEAD flights to Pretense. Removed spawning of frontline units and moved the JTAC spawning to pretensemissiongenerator.py
2024-02-25 12:40:44 +02:00
MetalStormGhost
6fd60d150e Raise NoParkingSlotError instead of RuntimeError when running out of ground spawns. 2024-02-25 12:39:43 +02:00
Raffson
4ff31ea86d Blast through errors 2024-02-25 12:39:41 +02:00
Raffson
9cb7617352 Optionally jettison empty fuel tanks for AI 2024-02-25 00:57:15 +01:00
Raffson
68a09ea81b Fix horrible bug 2024-02-23 23:43:27 +01:00
Raffson
e4b67ffb8a ROE optimisations 2024-02-19 19:18:21 +01:00
Raffson
b9230b6fb6 Improve travel-speeds for helicopters 2024-02-18 23:31:53 +01:00
Raffson
dbd9776aff Fix friendly AI shooting at fires at front-line 2024-02-18 23:29:10 +01:00
Raffson
e5d199f20b Use ingress/arrival for helicopter join/split wpts 2024-02-18 15:56:05 +01:00
Raffson
08c007b7bf Callsign not used when flight starts mid-mission 2024-02-16 20:47:31 +01:00
Raffson
35f6cd8f17 Plan Anti-Ship against all ship-groups of TGO 2024-02-11 16:56:10 +01:00
Raffson
89aa0985bc Multi-task fallback during configuration 2024-02-11 14:54:56 +01:00
Raffson
8ae63796cf Increase buffer around landing-zone
This aims to specifically tackle the issue where AI helicopters tend to crash into the depot of the pickup-zone
Resolves #138
2024-01-21 22:36:00 +01:00
Raffson
6a002a7d43 Finish up kneeboard improvements
Resolve #106
2024-01-21 20:37:47 +01:00
Raffson
0b060d3110 De-spawn AI flights on RTB if start-type was set to In-Flight
Resolve #73
2024-01-21 18:40:33 +01:00
Raffson
bc26eb3f5e Fix naval aircraft not always returning to carrier 2024-01-21 13:36:38 +01:00
Raffson
d6026681ee Formatting 2024-01-20 22:29:56 +01:00
Raffson
febc901518 Refactor 2024-01-20 17:25:40 +01:00
Raffson
26066ef8f4 Adjust parameters for delaying ground-forces 2024-01-20 17:21:46 +01:00
Raffson
f548b27ac5 More accurate switch-wpt index for escort split-trigger 2024-01-20 16:56:49 +01:00
Raffson
181f8583d5 Despawn aircraft returning to off-map CPs 2024-01-20 16:56:48 +01:00
Raffson
e6e557c18a Fix some edge-cases wrt SetUnlimitedFuel 2024-01-20 16:56:35 +01:00
tmz42
d07cb46741 Waypoint changes (F15E Strike Targets and Tomcat IP) (#236)
* Change indentation of register_special_waypoints (put out of loop)

* Added Strike Targets as F-15E Mission Target points (Set/Mission 1)

* Set up check for ASM : only if non-human flight lead. Add targets to the kneeboard.

* Generate multiple sets (i-e M2.1) for situations where the number of points is more than 8.

Added check condition to kneeboard (otherwise, may result in multiple writes).

* Change name of register_special_waypoints to register_special_strike_points

Add register_special_ingress_points method for special IPs and add to the appropriate classes

* Add changelog entry for Tomcat's IP wpt

* Avoid depending on client slots for special wpts injection

---------

Co-authored-by: tmz42 <thomas.monnzie@gmail.com>
Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-01-20 15:54:37 +00:00
Raffson
93ec459460 Fix bug introduced by AI unlimited fuel option
Since the unlimited fuel option would add the option before the threat-reaction option, this result into a false assertion when using EWJ
2024-01-07 15:04:50 +01:00
tmz42
79b1d949ce AI unlimited fuel initial implementation (#227)
* Unlimited fuel for AI flights. For player flights, included at startup, for AI flights with join/split, applied at join/split.

* Unlimited fuel for AI flights. For player flights, included at startup, for AI flights with join/split, applied at join/split.

* Corrected default value of ai_unlimited_fuel to False in configure_behavior

* ai_unlimited_fuel : set argument based on setting and simplify activation section

* AI Unlimited Fuel : enable at start, disable at racetrack start/join, enable at racetrack end/split

* Correct typing : bool to Optional[bool]

---------

Co-authored-by: tmz42 <thomas.monnzie@gmail.com>
2024-01-06 21:04:57 +01:00