660 Commits

Author SHA1 Message Date
Dan Albert
005bbcb812
Send flight plan paths to the back of the map.
This fixes the unusual case where the `interactive: false` property had
no effect, which would make it impossible to plan missions against UI
elements that were overflown by many flights (such as the front line).

As an added bonus, it looks a bit nicer.

This impacts the test in an odd way, but the cure for that is probably
rewriting the test to not use a mock now that we've figured out how to
do that.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3295.
2024-03-09 21:58:06 +01:00
Raffson
9303e1cb9e
Configurable cruise & combat altitude + randomized offsets (phase 1) 2024-03-04 00:01:29 +01:00
Raffson
b4ba200f95
Buy/Replace TGOs for free at turn 0 2024-03-01 23:46:56 +01:00
Raffson
32f8d8d0b7
New cheat option: manage REDFOR's TGOs 2024-03-01 23:06:46 +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
0d1c292b23
Add note to changelog 2024-02-24 14:21:27 +01:00
Raffson
7e620acb4f
Update changelog 2024-02-23 23:43:27 +01:00
Raffson
dbd9776aff
Fix friendly AI shooting at fires at front-line 2024-02-18 23:29:10 +01:00
Raffson
781d611f17
Fix ground-seeking AirLift 2024-02-18 01:10:30 +01:00
Raffson
4ba5fa4766
Addition to existing changelog entry 2024-02-16 21:15:01 +01:00
Raffson
caad080b01
Update changelog 2024-02-11 17:17:30 +01:00
Raffson
cb68ff0df3
Configurable back-end port 2024-02-10 18:39:42 +01:00
MetalStormGhost
ca98183e94
IDF Assets Pack support v1.1 (#233)
* Updated Irondome support to IDF Assets Pack V1.1, which includes the David's Sling.

* Added an Israel 2017 faction with the David's Sling.

* IDF Assets Pack air defence presets and assets are now correctly removed from the faction when the mod is disabled.

* Removed the Iron Dome mod rocket launchers:
- "9M22U - 122mm Grad"
- "9M27F - 229mm Uragan"
- "9M55F - 300mm Smerch"

These were added to the Iron Dome Mod V1.2 in order for the radar to recognize them and be able to intercept them (these are limitations of DCS), so new rockets were added. However, they don't exist in the IDF Assets Pack.

* IronDome to IDF-Assets migration

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-01-28 17:35:24 +00: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
181f8583d5
Despawn aircraft returning to off-map CPs 2024-01-20 16:56:48 +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
MetalStormGhost
5ca12373d8
Improvements to disabled aircraft mod handling in Faction (#234) 2023-12-30 18:13:38 +01:00
MetalStormGhost
7e0125725c Swedish Military Assets Pack air defence presets are now correctly removed from the faction when the mod is disabled. 2023-12-30 10:51:38 +01:00
Raffson
9ff9fa5b69
Add AWCD mid-game cheat 2023-12-29 13:16:30 +01:00
ingax01
e63520265c
added missing weapon classes after SU-30 2.7.3b update (#225) 2023-12-29 11:55:00 +01:00
MetalStormGhost
4d4f4d1930
F-4B/C mod support v2.8.7.204 (#217)
* Rename     pydcs_extensions/f4/__init__.py (from pydcs_extensions/f4b/__init__.py)
Rename     pydcs_extensions/f4/f4b.py (from pydcs_extensions/f4b/f4b.py)

* Rename     pydcs_extensions/f4/f4.py (from pydcs_extensions/f4/f4b.py)

* Support for the updated F-4B/C mod

Updated the F4.py pydcs extension to match the updated F-4B/C mod and
reworked the standard payloads to add "clean" to new F-4B pylons 11 and
12.

This includes a workaround to allow Liberation to use the new VSN F-4B
weapons with combined 2x Aim-9js on pylons 3 and 9 underslung with bombs
on ters on new pylons 11 and 12. In mission editor the combined weapons
are selected in pylons 3 and 9 and their under-slung counterparts are
forced onto 11 and 12 using "required" arguments in the mod's lua. All
other pylon 3 and 9 weapons use "required clean" arguments. Liberation
doesn't have a way to force these linkages onto pylons 11 and 12 and
without them, even without clean, no weapons will load on 3 and 9 or 11
and 12.

The workaround for normal weapons on the F-4B is to set the standard
load-outs to "clean" on pylons 11 and 12. This allows all normal weapons
to work on pylons 3 and 9 so long as pylons 11 and 12 are left as Clean.
It also allows Clean into the Liberation dropdown so it can be selected
later if necessary.

The workaround for the 4 new weapons that combines pylons 3 with 11 and
9 with 12 is that the user has to use the matching pair on each set of
pylons. For example - if F4B_LAU105_AIM9J_2_BRU42A_MK82_3 is selected
for pylon 3, BRU 42A MK823 LAU105 AIM9J2 must be selected for pylon 11.
Failure to do this correctly doesn't crash liberation or DCS, the result
will just be either no weapons at all on either pylon or the underslung
weapons on 11 and 12 floating without a pylon attaching it to the plane.

When updating f4.py in the future, note that running the pydcs database
export doesn't pull any data for Pylons 11 and 12. Those matching
weapons / classes have to be manually defined in those pylons for the
F-4B. This is noted in f4.py.

* F-4 mod support update to 2.8.7.201

* Updated QGeneratorSettings.py and the changelog.

* Updated F-4B and F-4C loadouts.

* Added the Phantom to some additional factions.

* Changelog updated: Updated support for F-4B/C Phantom mod to 2.8.7.204

The pydcs export for the latest patch was identical, which means it's also supported.

* Migrator change for renamed F-4B/C folder

---------

Co-authored-by: Nosajthedevil <78634843+Nosajthedevil@users.noreply.github.com>
Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-12-28 12:50:24 +01:00
MetalStormGhost
60859d39c1 Fixed the Channel landmap. 2023-12-01 21:14:36 +01:00
MetalStormGhost
8740df65c4
F/A-18E/F Super Hornet AI Tanker mod support (#220)
* Added F/A-18E/F Super Hornet AI Tanker mod support (Chiller Juice Studios SuperBug Tanker AI version 1.1).

* Updated F/A-18E/F Super Hornet AI Tanker mod support (Chiller Juice Studios SuperBug Tanker AI) to version 1.2.

* F/A-18E/F Super Hornet AI Tanker (version 1.2) support merged to Retribution.

* Updated the pydcs extension to version 1.4.
2023-11-26 20:16:11 +01:00
Raffson
ade81f4548
Ability to set callsigns 2023-11-18 23:06:56 +01:00
MetalStormGhost
26f83cf269
Splash Damage with Clusters and Ship Radar effects (#206)
* Splash Damage with Clusters and Ship Radar effects
Based on the Splash Damage 2.0 by wheelyjoe, FrozenDroid and spencershepard/GRIMM (21 December 2021 version)

New features:
 -damage boost for parked aircraft since they are hard to kill (DCS: Retribution OCA/Aircraft mission improvement)
 -cluster weapons support
 -helicopter gunship autocannon fragmentation effect support
 -napalm will now spawn fire on impact
 -ship radars might turn off when hit with anti-radiation missiles
 -BDA messages for splash damage

New features can be tweaked, turned on or off in the Retribution settings and/or in the script options.

* Updated changelog.md

* Added missing changelog entry from 29 May 2022 to Weapons_Damage_Updated.lua

* Integrate splashdamageclusters into original

* Fix 'nil' exceptions

* Remove Ghosti's original implementation

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-11-12 11:36:17 +00:00
MetalStormGhost
f648add735 Update A-4E-C mod support to version 2.2.0.
Updated Community A-4E-C mod version pydcs extension to 2.2.0 release.
2023-11-06 20:30:10 +01:00
Raffson
bc861380f0
Allow hiding IADS TGOs on MFD 2023-10-22 00:23:00 +02:00
zhexu14
10aee31c7d
address issue 3175 by introducing special divide by zero handling 2023-10-21 21:27:41 +02:00
Dan Albert
5ca344e87b
Show the real front line bounds on the map.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1067.
2023-10-07 18:35:17 +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
3499ba5ffa
Mark the AI-only F-15E more clearly. 2023-10-07 17:24:40 +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
0ec375ad89
Fix unit variants to actually allow variance.
This was always the intent, but apparently it wasn't implemented
correctly. All properties of the unit type can now be overridden per
variant.
2023-10-07 17:23:34 +02:00
Dan Albert
181ac27299
Note the ARA Veinticinco de Mayo in the changelog. 2023-10-07 15:52:15 +02:00
Dan Albert
6ef3bd5095
Stop gap fix for AI speed to nav points.
This isn't a great fix for the reason I mention in the comment, but it's
quick and actually is accurate since it looks like we don't actually
handle formation speeds correctly in most cases...

This is probably as "fixed" as this is going to get for now since most
of the flight planning code is in the process of being rewritten.

https://github.com/dcs-liberation/dcs_liberation/issues/3113
2023-10-07 14:43:19 +02:00
Dan Albert
014ae5faf5
Configure target points for F-15E S4+.
We don't need explicit configuration of initial points. The plane
automatically configures any steerpoint immediately before a target
point as an initial point.

Target offset points and aim points have not been implemented because I
can't find any information the describes their intent.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3088.
2023-10-07 14:34:30 +02:00
Dan Albert
e25aac774f
Handle TOT offsets for patrolling flight plans.
https://github.com/dcs-liberation/dcs_liberation/issues/3107
2023-10-07 14:33:04 +02:00
Dan Albert
c11b4149a0
Fix negative starts when changing TOT offsets. 2023-10-07 14:31:08 +02:00
Dan Albert
091d523516
Fix altering negative TOT offsets.
https://github.com/dcs-liberation/dcs_liberation/issues/3107
2023-10-07 14:31:04 +02:00
Dan Albert
2ab456b9c1
Add laser code support for the viper. 2023-10-07 14:14:34 +02:00
Dan Albert
51f578b9e3
Add UI for selecting weapon laser codes.
This makes it possible to have the right laser code set for hot start
aircraft that (typically) do not allow changing laser codes when the
engine is on.
2023-10-07 14:13:51 +02:00
MetalStormGhost
1ebc289fb7 Added support for ground power truck types in farp_truck_types_for_country(). Aircraft which require ground power to start, when ground power trucks have been disabled for performance reasons, will now be warm started automatically. 2023-10-06 07:58:06 +02:00
MetalStormGhost
54777a9045
Helicopter waypoint altitude configurable (#207)
* Helicopter waypoint altitude configurable

Added a new option in Settings: Helicopter waypoint altitude (feet AGL).
It sets the waypoint altitude for helicopters in feet AGL. In campaigns in more mountainous areas, you might want to increase this setting to avoid the AI flying into the terrain.

* black?

* Distinguish cruise/combat altitudes for helicopters

Also includes a refactor for WaypointBuilder so it doesn't need a coalition. It can already reference the coalition from the flight.

* Update changelog.md

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-10-02 18:54:21 +02:00
Dan Albert
110866cd34
Add missing LANTIRN clsid. 2023-10-01 20:11:37 +02:00
Dan Albert
485229b92f
Allow per pilot loadouts and properties.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3092.
2023-10-01 20:10:16 +02:00
Dan Albert
bce6a170b8
Improve UI for flight properties.
Use the new data from pydcs to improve the properties UI:

* Use human readable names
* Use appropriate control types
* Limit min and max values as appropriate for each property
* Show labels

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3090.
2023-10-01 19:28:52 +02:00
zhexu14
a0fdfa11e2
Fix anti-runway task generation for LGBs. 2023-10-01 19:26:24 +02:00