mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
parent
2d15db1932
commit
f3ed25b5b2
@ -5,6 +5,7 @@
|
|||||||
* **[Plugins]** Improvements to AI support for EW Script 2.0
|
* **[Plugins]** Improvements to AI support for EW Script 2.0
|
||||||
* **[Config]** New preference setting to trigger the first-start window on every start (could help in scenarios multiple Retribution instances need to run concurrently)
|
* **[Config]** New preference setting to trigger the first-start window on every start (could help in scenarios multiple Retribution instances need to run concurrently)
|
||||||
* **[Modding]** Update Grinelli Designs F-22A Mod to 2.0.0 (May 2025)
|
* **[Modding]** Update Grinelli Designs F-22A Mod to 2.0.0 (May 2025)
|
||||||
|
* **[Options]** New option to control EPLRS-task injection in mission generator
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
* **[Flight Plans]** Fixed a bug when a package was created with only escort flights
|
* **[Flight Plans]** Fixed a bug when a package was created with only escort flights
|
||||||
|
|||||||
@ -192,7 +192,8 @@ class AircraftBehavior:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def configure_eplrs(group: FlyingGroup[Any], flight: Flight) -> None:
|
def configure_eplrs(group: FlyingGroup[Any], flight: Flight) -> None:
|
||||||
if flight.unit_type.eplrs_capable:
|
eplrs_enabled = flight.coalition.game.settings.eplrs_enabled
|
||||||
|
if eplrs_enabled and flight.unit_type.eplrs_capable:
|
||||||
group.points[0].tasks.append(EPLRS(group.id))
|
group.points[0].tasks.append(EPLRS(group.id))
|
||||||
|
|
||||||
def configure_cap(self, group: FlyingGroup[Any], flight: Flight) -> None:
|
def configure_cap(self, group: FlyingGroup[Any], flight: Flight) -> None:
|
||||||
|
|||||||
@ -386,9 +386,9 @@ class GroundObjectGenerator:
|
|||||||
)
|
)
|
||||||
self._register_theater_unit(unit, static_group.units[0])
|
self._register_theater_unit(unit, static_group.units[0])
|
||||||
|
|
||||||
@staticmethod
|
def enable_eplrs(self, group: VehicleGroup, unit_type: Type[VehicleType]) -> None:
|
||||||
def enable_eplrs(group: VehicleGroup, unit_type: Type[VehicleType]) -> None:
|
eplrs_enabled = self.game.settings.eplrs_enabled
|
||||||
if unit_type.eplrs:
|
if eplrs_enabled and unit_type.eplrs:
|
||||||
group.points[0].tasks.append(EPLRS(group.id))
|
group.points[0].tasks.append(EPLRS(group.id))
|
||||||
|
|
||||||
def set_alarm_state(self, group: MovingGroup[Any]) -> None:
|
def set_alarm_state(self, group: MovingGroup[Any]) -> None:
|
||||||
|
|||||||
@ -816,6 +816,12 @@ class Settings:
|
|||||||
GAMEPLAY_SECTION,
|
GAMEPLAY_SECTION,
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
|
eplrs_enabled: bool = boolean_option(
|
||||||
|
"Enable EPLRS",
|
||||||
|
MISSION_GENERATOR_PAGE,
|
||||||
|
GAMEPLAY_SECTION,
|
||||||
|
default=True,
|
||||||
|
)
|
||||||
generate_dark_kneeboard: bool = boolean_option(
|
generate_dark_kneeboard: bool = boolean_option(
|
||||||
"Generate dark kneeboard",
|
"Generate dark kneeboard",
|
||||||
MISSION_GENERATOR_PAGE,
|
MISSION_GENERATOR_PAGE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user