203 Commits

Author SHA1 Message Date
Raffson
9303e1cb9e
Configurable cruise & combat altitude + randomized offsets (phase 1) 2024-03-04 00:01:29 +01:00
Raffson
7158a5e60d
Don't degrade flight-plan when adding waypoints 2024-03-03 13:43:33 +01:00
Raffson
d484e133ce
Revert "Force SEAD into threat-range"
This reverts commit 61b2d7c68e5bb3e6ab5225d45a532d8ff0e415bf.
2024-03-03 01:39:27 +01:00
Raffson
61b2d7c68e
Force SEAD into threat-range 2024-03-02 23:17:46 +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
fc467b62e0
Add comment 2024-02-18 13:23:19 +01:00
Raffson
781d611f17
Fix ground-seeking AirLift 2024-02-18 01:10:30 +01:00
Raffson
d901df4fa0
Remove more dead code 2024-02-18 01:10:29 +01:00
Raffson
6e4d1e9e5c
Remove duplicate code...
Like... how did I miss this -_-
2024-02-17 17:41:56 +01:00
Raffson
47531cd9fa
Avoid heli AirAssault seeking ground after ingress 2024-02-17 01:03:05 +01:00
Raffson
e0aeabb63a
Use CTLD zones for drop-off 2024-02-16 18:54:49 +01:00
Raffson
63d05ea696
Preference option to prioritize custom Liberation payloads 2024-02-09 23:52:27 +01:00
Raffson
0edcd31367
Fix desync wrt off-map flights 2024-01-28 19:20:34 +01:00
Raffson
dad5e7c146
Fix TOT-offset issues 2024-01-28 17:39:46 +01:00
Raffson
a2494e467e
Deepcopy TOT for cloned package 2024-01-28 00:06:34 +01:00
Raffson
d6026681ee
Formatting 2024-01-20 22:29:56 +01:00
Raffson
f548b27ac5
More accurate switch-wpt index for escort split-trigger 2024-01-20 16:56:49 +01:00
Raffson
ade81f4548
Ability to set callsigns 2023-11-18 23:06:56 +01:00
Raffson
e3dcf8e547
Add new units 2023-10-21 21:27:42 +02:00
zhexu14
10aee31c7d
address issue 3175 by introducing special divide by zero handling 2023-10-21 21:27:41 +02:00
Raffson
7d347eee94
Fix traveltime & offsets 2023-10-15 13:32:11 +02:00
Raffson
bcdf2ad887
Fix wrong logic wrt hold WPT & air-assault 2023-10-15 12:57:28 +02:00
Raffson
63e2c30e44
Fix SEAD Sweep not available at campaign start 2023-10-15 12:23:18 +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
f11689f4cb
Allow flights to self-initialize.
This makes it possible to add new packages to a running sim.

https://github.com/dcs-liberation/dcs_liberation/issues/1680
2023-10-07 21:43:28 +02:00
Raffson
ea726bbf06
Streamlining 2023-10-07 21:43:27 +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
14d3e743d4
Remove useless TravelTime class.
This is only called for real in one spot. The other callers should have
been deferring to the one real caller.
2023-10-07 20:55:08 +02:00
Dan Albert
dcaee350cf
Remove dead code. 2023-10-07 19:11:40 +02:00
Raffson
62a40db9ea
Streamlining 2023-10-07 18:53:42 +02:00
Dan Albert
75498fe061
Differentiate total time and travel time.
There's an ugly special case in flight simulation to handle hold points
because we don't differentiate between the total time between two
waypoints (which can include delays from actions like holding) and
travel time. Split those up and remove the special case.
2023-10-07 18:42:59 +02:00
Raffson
03d8448def
Streamlining 2023-10-07 18:13:55 +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
Raffson
c50dcaaafb
Streamlining 2023-10-07 18:00:07 +02:00
Raffson
ee3bdf9fd7
Streamlining 2023-10-07 17:14:01 +02:00
Dan Albert
97ee6ba19f
Force dumping debug info on recreate.
We need a way to debug successful solvers that's still targeting to a
specific flight. This will do for now.
2023-10-07 17:07:57 +02:00
Dan Albert
8b04dd878d
Migrate IP placement to WaypointSolver. 2023-10-07 17:07:32 +02:00
Dan Albert
0b7acbc94e
Fix synchronization of loadouts on change.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3111.
2023-10-07 14:42:51 +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
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
Raffson
1ce8d9c2b7
Cleanup after cherry-pick 2023-10-07 14:08:53 +02:00
Dan Albert
177f357492
Pre-allocate laser codes for FLOTs and flights. 2023-10-07 14:06:12 +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
Raffson
d4eefd0b55
Streamlining 2023-10-01 21:56:30 +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
f89ac52bf3
Clean up remaining Flight.from_cp users.
The preferred API for this has been `Flight.departure` for a while.
2023-10-01 19:26:20 +02:00
Raffson
3024bd6479
Fix Hercules AirAssault exception 2023-09-30 19:37:16 +02:00
Raffson
ea74471307
Avoid refuel waypoint if air wing can't plan refuel flight 2023-09-23 17:25:12 +02:00
Raffson
66d741d0b3
Allow user to add navigation waypoints where possible 2023-08-27 21:11:10 +02:00