Support for DCS 2.7.12.23362 (#2196)

- Add link4 and acls
- Allocate Link4 frequency
-  new unit yamls
This commit is contained in:
RndName 2022-05-02 19:08:44 +02:00 committed by GitHub
parent e4f91fd3ba
commit 799e01c7b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 71 additions and 4 deletions

View File

@ -4,6 +4,7 @@ Saves from 5.x are not compatible with 6.0.
## Features/Improvements
* **[Engine]** Support for DCS 2.7.12.23362 with the new units (technicals & EWR) and the ACLS & Link4
* **[Mission Generation]** Added an option to fast-forward mission generation until the point of first contact (WIP).
* **[Mission Generation]** Added performance option to not cull IADS when culling would effect how mission is played at target area.
* **[Mission Generation]** Reworked the ground object generation which now uses a new layout system

View File

@ -18,11 +18,19 @@ from dcs.action import DoScript, SceneryDestructionZone
from dcs.condition import MapObjectIsDead
from dcs.country import Country
from dcs.point import StaticPoint
from dcs.ships import (
CVN_71,
CVN_72,
CVN_73,
CVN_75,
Stennis,
)
from dcs.statics import Fortification
from dcs.task import (
ActivateBeaconCommand,
ActivateICLSCommand,
ActivateLink4Command,
ActivateACLSCommand,
EPLRS,
FireAtPoint,
OptAlarmState,
@ -385,7 +393,10 @@ class GenericCarrierGenerator(GroundObjectGenerator):
)
tacan_callsign = self.tacan_callsign()
icls = next(self.icls_alloc)
self.activate_beacons(ship_group, tacan, tacan_callsign, icls)
link4 = None
if carrier_type in [Stennis, CVN_71, CVN_72, CVN_73, CVN_75]:
link4 = self.radio_registry.alloc_uhf()
self.activate_beacons(ship_group, tacan, tacan_callsign, icls, link4)
self.add_runway_data(
brc or Heading.from_degrees(0), atc, tacan, tacan_callsign, icls
)
@ -414,7 +425,11 @@ class GenericCarrierGenerator(GroundObjectGenerator):
@staticmethod
def activate_beacons(
group: ShipGroup, tacan: TacanChannel, callsign: str, icls: int
group: ShipGroup,
tacan: TacanChannel,
callsign: str,
icls: int,
link4: Optional[RadioFrequency] = None,
) -> None:
group.points[0].tasks.append(
ActivateBeaconCommand(
@ -428,6 +443,11 @@ class GenericCarrierGenerator(GroundObjectGenerator):
group.points[0].tasks.append(
ActivateICLSCommand(icls, unit_id=group.units[0].id)
)
if link4 is not None:
group.points[0].tasks.append(
ActivateLink4Command(int(link4.mhz), group.units[0].id)
)
group.points[0].tasks.append(ActivateACLSCommand(unit_id=group.units[0].id))
def add_runway_data(
self,

View File

@ -32,7 +32,7 @@ pluggy==1.0.0
pre-commit==2.17.0
py==1.11.0
pydantic==1.9.0
-e git+https://github.com/pydcs/dcs@04248fa93573029ee76db6c30f62140dfa4a58c8#egg=pydcs
-e git+https://github.com/pydcs/dcs@f5ac226def0b327a742347177bcb800a60fb11f8#egg=pydcs
pyinstaller==4.9
pyinstaller-hooks-contrib==2022.1
pyparsing==3.0.7

View File

@ -0,0 +1,4 @@
class: EarlyWarningRadar
price: 30
variants:
EWR AN/FPS-117 Radar (domed): null

View File

@ -0,0 +1,4 @@
class: EarlyWarningRadar
price: 30
variants:
EWR AN/FPS-117 Radar: null

View File

@ -0,0 +1,5 @@
class: Artillery
price: 10
role: Multiple-Launch Rocket System
variants:
MLRS HL with B8M1 80mm: {}

View File

@ -0,0 +1,5 @@
class: Recon
price: 4
role: Recon
variants:
Scout HL with DSHK 12.7mm: {}

View File

@ -0,0 +1,5 @@
class: Recon
price: 4
role: Recon
variants:
Scout HL with KORD 12.7mm: {}

View File

@ -0,0 +1,4 @@
class: AAA
price: 6
variants:
SPAAA HL with ZU-23: null

View File

@ -0,0 +1,5 @@
class: Artillery
price: 10
role: Multiple-Launch Rocket System
variants:
MLRS LC with B8M1 80mm: {}

View File

@ -0,0 +1,5 @@
class: Recon
price: 4
role: Recon
variants:
Scout LC with DSHK 12.7mm: {}

View File

@ -0,0 +1,5 @@
class: Recon
price: 4
role: Recon
variants:
Scout LC with KORD 12.7mm: {}

View File

@ -0,0 +1,4 @@
class: AAA
price: 6
variants:
SPAAA LC with ZU-2: null