Commit Graph

1799 Commits

Author SHA1 Message Date
Dan Albert
bb36944a8a Remove unused config data from laser code yamls. 2023-10-07 14:13:53 +02:00
Dan Albert
dc22e0a577 Hide properties that have better controls.
The weapon laser codes can be set more easily from the weapon laser code
combo box. Setting the properties explicitly here will just cause
conflicts and annoying UI bugs. Hide those properties from the UI.
2023-10-07 14:13:52 +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
Dan Albert
a366aebbb2 Add laser code config parsing and prop generation. 2023-10-07 14:11:09 +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
Dan Albert
723e191f10 Create a checked, releasable type for laser codes.
The release behavior isn't used yet, but I'm working on pre-allocating
laser codes for front lines and flights to make it easier for players to
pick the laser codes for their weapons.
2023-10-07 14:03:36 +02:00
Raffson
cb6bffe3ec Split procurement settings for blue & red
Resolves #208
2023-10-07 13:53:29 +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
d271428f9d Implemented ground power trucks for ground spawns. Added settings to turn them off or on. 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
Raffson
227134d9c1 Fix default cargo_ship name 2023-10-02 17:42:14 +02:00
Raffson
d4eefd0b55 Streamlining 2023-10-01 21:56:30 +02:00
Dan Albert
279572ae09 Add tests for LaserCodeRegistry, clean up.
* Store a deque rather than an iterator so it can be pickled
* Remove mangling from staticmethod (and rename now that it's no longer
  a generator)
* Rename "get" to "alloc" to make the mutation clear
* Move to its own package (the changes I'm working on make this no
  longer mission generator specific)
* Remove useless exception class. It's never caught so the unique type
  isn't needed
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
Raffson
8e670e1a3c Formatting 2023-10-01 19:32:20 +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
Dan Albert
7303c8fa20 Add cheats for destroying and repairing runways. 2023-10-01 19:26:23 +02:00
Dan Albert
855fa1347b Fix canceling transfers when the airbase is full.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2955.
2023-10-01 19:26:23 +02:00
Dan Albert
a343bdef23 Allow factions to specify their cargo ship type.
https://github.com/dcs-liberation/dcs_liberation/issues/3039
2023-10-01 19:26:22 +02:00
Dan Albert
2c7e877086 Always initialize IADS coalition lua tables.
These are read unconditionally, but were only initialized when the
coalition had nodes. When a coalition had no nodes, this caused a nil
access. It's unclear if that had any symptoms, but I expect at the very
least it would break the remainder of the script (so a non-functioning
blue IADS if the red IADS had no nodes).

There's a very small chance this is the culprit behind
https://github.com/dcs-liberation/dcs_liberation/issues/3073.
2023-10-01 19:26:21 +02:00
Dan Albert
12cdb8646c Improve IP selection near threat zone centers.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2754.
2023-10-01 19:26:21 +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
30f6c14030 Fix bug in migrator 2023-10-01 17:21:57 +02:00
Raffson
8e821c50e5 Interpret integer radio_preset keys as radio_id
Allows for configuration of radios 3, 4, 5,...
2023-09-30 20:19:09 +02:00
Raffson
3024bd6479 Fix Hercules AirAssault exception 2023-09-30 19:37:16 +02:00
Raffson
105d1abba8 Try determining intra-flight modulation in squadron config 2023-09-30 18:34:55 +02:00
Raffson
3b7077e593 Use all modeled radio-bands in freq-selector 2023-09-30 17:46:28 +02:00
Raffson
d581af3b8a Remove flights with package not in ATO in migrator 2023-09-24 22:14:26 +02:00
Raffson
e8929467e0 Consolidate capture radius 2023-09-23 19:38:48 +02:00
Raffson
234dc52c7e Make AirAssault auto-plannable 2023-09-23 19:38:29 +02:00
Raffson
ea74471307 Avoid refuel waypoint if air wing can't plan refuel flight 2023-09-23 17:25:12 +02:00
Raffson
389037e6bf Don't scrub missions with unplannable escort types
The check for whether or not the escort is actually needed happens later, and thus the mission can still be scrubbed if it's too dangerous. However, missions should not be scrubbed when a particular escort type is unplannable, yet not needed. Only if the primary flight type is not plannable should the mission immediately be scrubbed
2023-09-23 16:51:26 +02:00
Raffson
167d048232 Fix bug in reserve freqs & tacan 2023-09-17 14:25:46 +02:00
Raffson
59871ac36c Only assign TACAN to compatible tankers 2023-09-17 14:25:46 +02:00
Raffson
1b000e83df Fix "no-purchase" bug at turn 0 2023-09-17 13:02:32 +02:00
Raffson
3787ec3039 Add radio config for UH-60L 2023-09-17 11:45:01 +02:00
Raffson
e341599a11 Account for parking-slot size during retreat
Fix #129
2023-09-09 13:20:56 +02:00
Raffson
e50d49d7ba Ability to disable cargo-ships
Fix #76
2023-09-09 12:09:57 +02:00
Raffson
09749bc088 Use squadron radio_preset freq as flight freq if present 2023-09-08 20:38:17 +02:00
Raffson
0b152c201d Fix rounding errors for squadron's radio presets 2023-09-08 19:22:01 +02:00
Raffson
fe470ad9c6 Migrator fix 2023-09-08 17:17:14 +02:00
Raffson
d22bfd0804 Fix 'IndexError' exception 2023-09-08 17:17:14 +02:00
Raffson
a8a37fa3e7 Add GroupTask to TGO for map filtering
Resolves #21
2023-09-03 23:41:15 +02:00
Raffson
b7bc9efb52 Remove unused variable 2023-09-03 19:00:44 +02:00
Raffson
74cd3a2627 Remove debugging code 2023-09-03 17:37:41 +02:00
Raffson
e4cb0f7c28 Release parking slots when capture occurs 2023-09-02 22:37:29 +02:00
Raffson
66d741d0b3 Allow user to add navigation waypoints where possible 2023-08-27 21:11:10 +02:00
Raffson
819bd92d9a Re-add removed FF-interrupt choice causing error
Opening the options will trigger an exception which sort of breaks save-compatibility
2023-08-27 19:10:39 +02:00