24 Commits

Author SHA1 Message Date
Drexyl
d2aa615133 Update EW Script and refine logic (#555) 2025-08-27 19:20:27 +02:00
Raffson
09617adc56 Passive defense for non-air-to-air flights in package with jammer 2025-05-01 19:57:01 +02:00
Raffson
30ad71f93b Refactor & improve EW-jamming setup in mission-generator 2025-05-01 17:22:46 +02:00
Drexyl
af4bba7396 EW Script 2.0 - Enable for AI (#491)
* EW Script 2.0 - Enable for AI

* Refactor

* Remove unnecessary code + refactor

* Fix test -_-

* Cleanup

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
Co-authored-by: Starfire13 <72491792+Starfire13@users.noreply.github.com>
2025-03-23 20:32:51 +01:00
Raffson
9cca4e8244 Revert helicopter escort aggressiveness hack
AI got a little better, at least that's what tests in AFG showed. The main issue is that helicopters tended to attack static objects, which we obviously don't want...
2024-07-21 22:42:31 +02:00
Raffson
b9230b6fb6 Improve travel-speeds for helicopters 2024-02-18 23:31:53 +01:00
Raffson
e6e557c18a Fix some edge-cases wrt SetUnlimitedFuel 2024-01-20 16:56:35 +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
Raffson
9b9905c5a3 Tweaking helicopter stuff 2023-08-19 21:10:26 +02:00
Raffson
789806637c Improve escort logic for helicopters
Babysteps #88
2023-08-15 21:50:20 +02:00
Raffson
763dbebf13 Increase random horizontal separation for escort flights 2023-02-04 17:06:40 +01:00
Raffson
d410f9d3c4 Formatting... 2023-02-02 21:41:01 +01:00
Raffson
07d0e555e5 Limit spacing 2022-11-27 21:09:51 +01:00
Raffson
547f1aed75 Use flag to indicate end of escort task 2022-11-19 22:47:33 +01:00
Raffson
004a99e080 Cleanup 2022-11-13 22:38:24 +01:00
Raffson
7e51061582 Formatting 2022-11-13 22:38:23 +01:00
Raffson
e71ff17a23 Fix mypy errors 2022-11-13 22:38:23 +01:00
Raffson
322a6a700a Reconfigure escort task 2022-11-13 22:38:22 +01:00
Raffson
395969a371 Initial attempt at fixing escorts 2022-11-13 22:38:20 +01:00
MetalStormGhost
07de598aec Enabled SEAD Escort missions to be tasked on Naval targets and OCA/Aircraft missions on FARPs. When SEAD Escorts are tasked on Naval groups, they will also target ships. 2022-10-25 19:16:21 +02:00
SnappyComebacks
bf034e18eb Add preset formations to different flights and waypoints. (#1948)
* Update pydcs version.
* Add formation presets for various flight types.
2022-01-16 14:49:17 -07:00
SnappyComebacks
a013d27d17 Add ECM behavior to not Air to Air flights (#1879)
* If a plane has a jammer, and it is not an air to air flight it will jam between join and split.
2022-01-01 16:49:04 -07:00
Dan Albert
5db1b94ac4 Add option to fast forward to first contact.
This is the first step in a larger project to add play/pause buttons to
the Liberation UI so the mission can be generated at any point.
docs/design/turnless.md describes the plan.

This adds an option to fast forward the turn to first contact before
generating the mission. None of that is reflected in the UI (for now),
but the miz will be generated with many flights in the air.

For now "first contact" means as soon as any flight reaches its IP. I'll
follow up to add threat checking so that air-to-air combat also triggers
this, as will entering a SAM's threat zone.

This also includes an option to halt fast-forward whenever a player
flight reaches a certain mission-prep phase. This can be used to avoid
fast forwarding past the player's startup time, taxi time, or takeoff
time. By default this option is disabled so player aircraft may start in
the air (possibly even at their IP if they're the first mission to reach
IP).

Fuel states do not currently account for distance traveled during fast
forward. That will come later.

https://github.com/dcs-liberation/dcs_liberation/issues/1681
2021-10-24 17:40:45 -07:00
Dan Albert
88b4039e47 Clean up AircraftGenerator.
This class does far too many things and the file is huge. Split it up
into a few more classes.
2021-10-23 20:18:40 -07:00