344 Commits

Author SHA1 Message Date
Raffson
d2547def51
Fix bug introduced in improvements to livery-selector
This will fix the bug I missed where the squadron needs to be using the livery-set before it could take effect for flight-members.
2024-08-03 20:47:34 +02:00
Raffson
f79e96a474 Further improvements to livery-selector
Unlocking the full potential, i.e. allowing users to switch back & forth between livery-sets, livery-overrides and normal liveries, including support for overriding flight/flight-member specific liveries.
2024-08-03 19:42:45 +02:00
Raffson
d2c45c97fe
Refactor invisible FARP remover 2024-07-28 17:55:51 +02:00
Raffson
8eb30445c2
Restore hidden_on_mfd functionality 2024-07-28 16:59:21 +02:00
Raffson
1b757ec544
Fixing warehouse stuff 2024-07-28 16:53:09 +02:00
Raffson
65e529aa55
Merge branch 'dev' into pr/204 2024-07-28 15:57:38 +02:00
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
MetalStormGhost
e88a4e1c51 Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator 2024-07-20 19:21:06 +03:00
Raffson
c24fba0ba4
Fix OCA-Aircraft bug in mission generator 2024-07-20 15:35:23 +02:00
Raffson
dc2d541b50
Formatting -_- 2024-07-20 01:26:20 +02:00
Raffson
0d56c271df
Serialize warehouses & support for dynamic slots/cargo 2024-07-20 01:04:24 +02:00
MetalStormGhost
1a6d73f055 Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator 2024-07-05 12:06:53 +03: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
MetalStormGhost
7eb2c59b86 Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator 2024-06-09 20:25:55 +03:00
Raffson
b501009285
Skip completed flights during mission generation 2024-06-01 21:17:06 +02:00
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