Commit Graph

201 Commits

Author SHA1 Message Date
Raffson
8bc902fe64 Fix too many ground spawns being popped 2024-07-27 20:52:13 +02:00
tmz42
ecf11363f2 Player sixpack setting (#378) 2024-07-27 18:30:40 +02:00
MetalStormGhost
140410f1ed OH-6 Cayuse mod v1.2 support (#346)
Resolves #313

* Initial commit of OH-6 Modpack v1.2 + Vietnam Asset Pack v1 support.

* Added OH-6 Mod loadouts by @Starfire13

* Modified   pydcs_extensions/oh6_vietnamassetpack/oh6_vietnamassetpack.py
Added      resources/units/ground_units/vap_m35_truck.yaml
Added      resources/units/ground_units/vap_mule.yaml
Added      resources/units/ground_units/vap_mutt.yaml
Added      resources/units/ground_units/vap_mutt_gun.yaml
Added      resources/units/ground_units/vap_type63_mlrs.yaml
Added      resources/units/ground_units/vap_vc_bicycle_ak.yaml
Added      resources/units/ground_units/vap_vc_zis.yaml

* Modified   changelog.md
Modified   resources/factions/USA 1970 Vietnam War.json
Modified   resources/factions/USA 1971 Vietnam War.json
Modified   resources/units/ground_units/vap_mule.yaml
Added      resources/units/aircraft/OH-6A.yaml

* Added the OH-6 to factions and implemented the mod selection in the new game wizard. Added an icon an a banner.

* Modified   resources/units/aircraft/OH-6A.yaml

* Added icons for the Vietnam Asset Pack ground units. Also added an icon for the PT-76 since it was missing. Added a Viet Cong 1970s faction.

* Added      resources/units/ships/vap_us_seafloat.yaml

* Adjust tasking for OH-6A

OH-6A is only capable of Transport & Reconnaissance, but we can ignore this if the lead slot is a client. AI however will most likely not support this, but we can add Transport & Air Assault instead...

* Fix bug in configure task + client override fallback

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-07-22 20:53:14 +02:00
Raffson
a658e41c54 Use EngageTargetsInZone for SEAD Sweep instead
Seems to perform better, AI wonders less off to places it shouldn't...
2024-07-21 22:42:33 +02: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
e280763a39 Fix wrong parameter for OrbitAction
pydcs expects kph -_-
2024-07-21 22:42:31 +02:00
Raffson
da64cdbab7 Remove ROE from SEAD Sweep to avoid engaging statics 2024-07-21 12:06:03 +02:00
Raffson
f405ffdfe2 Initial support for Armed Recon flight plan 2024-07-21 02:22:14 +02:00
Raffson
c24fba0ba4 Fix OCA-Aircraft bug in mission generator 2024-07-20 15:35:23 +02:00
MetalStormGhost
07cc85f6fa Large aircraft ground spawns (#237)
* Large aircraft ground spawns

Added the ability to add separate ground spawns for C-130 and other large aircraft to campaigns. Implemented on @holyorangejuice 's request.

Large aircraft ground spawns are added to the campaign by placing a C-130 on the ramp, just like an A-10 or AJS37 previously. Note: use the stock DCS C-130, so the campaign miz can be safely opened without the C-130 mod (or any other mod) installed. Not the C-130J player-flyable transport, not the KC-130J tanker included in the UH-60L mod etc.

Large planes (wingspan more than 40 meters, such as the C-130):
- First try spawning on large ground spawns
- Then try the regular airfield ramp spawns

Below 40 meter wingspan aircraft:
- First try spawning on regular or roadbase ground spawns
- Then try the regular airfield ramp spawns
- Then, if both of the above fail, use the large ground spawns

* Specify explicit black version 23.9.1 to fix lint error.

* Update lint.yml

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-07-01 20:26:50 +00:00
Raffson
b501009285 Skip completed flights during mission generation 2024-06-01 21:17:06 +02:00
MetalStormGhost
04e60fb08d Ramon Airbase hack (#309) 2024-05-08 21:52:12 +02: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
19523e35cf Fine-tune Strike-ingress waypoint tasks 2024-04-28 21:20:59 +02: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
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
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
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
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
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
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
ade81f4548 Ability to set callsigns 2023-11-18 23:06:56 +01:00
Raffson
7d314f8ee4 Lock waypoint speed if ETA is 0 & avoid negative ETAs 2023-10-21 21:27:41 +02:00
Dan Albert
a2e98f485c Remove bingo estimates from FlightPlan.
This doesn't need to be a part of FlightPlan, and it's easier to test if
it isn't. Move it out and add the tests.

It's pretty misleading to allow this in the core of the flight plan code
anything. This is an extremely unreliable estimate for most aircraft so
it should be more clearly just for briefing purposes.
2023-10-07 23:08:25 +02:00
Dan Albert
59673e7911 Convert TOTs to datetime.
https://github.com/dcs-liberation/dcs_liberation/issues/1680
2023-10-07 21:09:25 +02:00
Dan Albert
a2630fc75f Add a real CAS ingress point.
Putting the ingress point directly on one end of the FLOT means that AI
flights won't start searching and engaging targets until they reach that
point. If the front line has advanced toward the flight's departure
airfield, it might overfly targets on its way to the IP.

Instead, place an IP for CAS the same way we place any other IP. The AI
will fly to that and start searching from there.

This also:

* Removes the midpoint waypoint, since it didn't serve any real purpose
* Names the FLOT boundary waypoints for what they actually are

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2231.
2023-10-07 18:00:07 +02:00
Dan Albert
f5f11ff3ac Add display name property for unit types.
Unlike the variant ID, this can be changed without breaking save compat.
2023-10-07 17:24:17 +02:00
Dan Albert
1760532168 Rename UnitType.name what it is: the variant ID.
This property affects safe compat because the ID is what gets preserved
in the save, but it's unfortunately also used as the display name, which
means changing the display name breaks save compat. It also prevents us
from changing display names without breaking faction definitions.

This is the first step in fixing that. The next is adding a separate
display_name property that can be updated without breaking either of
those.
2023-10-07 17:08:33 +02:00