mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
This is an attempt to remove a lot of our supposedly unnecessary error handling. Every aircraft should have a price, a description, a name, etc; and none of those should require carrying around the faction's country as context. This moves all the data for aircraft into yaml files (only one converted here as an example). Most of the "extended unit info" isn't actually being read yet. To replace the renaming of units based on the county, we instead generate multiple types of each unit when necessary. The CF-18 is just as much a first-class type as the F/A-18 is. This doesn't work in its current state because it does break all the existing names for aircraft that are used in the faction and squadron files, and we no longer let those errors go as a warning. It will be an annoying one time switch, but it allows us to define the names that get used in these files instead of being sensitive to changes as they happen in pydcs, and allows faction designers to specifically choose, for example, the Su-22 instead of the Su-17. One thing not handled by this is aircraft task capability. This is because the lists in ai_flight_planner_db.py are a priority list, and to move it out to a yaml file we'd need to assign a weight to it that would be used to stack rank each aircraft. That's doable, but it makes it much more difficult to see the ordering of aircraft at a glance, and much more annoying to move aircraft around in the priority list. I don't think this is worth doing, and the priority lists will remain in their own separate lists. This includes the converted I used to convert all the old unit info and factions to the new format. This doesn't need to live long, but we may want to reuse it in the future so we want it in the version history.
39 lines
1.5 KiB
YAML
39 lines
1.5 KiB
YAML
---
|
|
variants:
|
|
- F/A-18C Hornet (Lot 20)
|
|
- CF-188 Hornet
|
|
- EF-18A+ Hornet
|
|
price: 22
|
|
carrier_capable: true
|
|
radios:
|
|
intra_flight: AN/ARC-210
|
|
inter_flight: AN/ARC-210
|
|
channels:
|
|
type: common
|
|
# DCS will clobber channel 1 of the first radio compatible with the flight's
|
|
# assigned frequency. Since the F/A-18's two radios are both AN/ARC-210s,
|
|
# radio 1 will be compatible regardless of which frequency is assigned, so
|
|
# we must use radio 1 for the intra-flight radio.
|
|
intra_flight_radio_index: 1
|
|
inter_flight_radio_index: 2
|
|
manufacturer: McDonnell Douglass
|
|
role: Carrier-based Multirole Fighter
|
|
origin: USA
|
|
introduced: 1987
|
|
description: >-
|
|
The F/A-18C Hornet is twin engine, supersonic fighter that is flown by a
|
|
single pilot in a "glass cockpit". It combines extreme maneuverability , a
|
|
deadly arsenal of weapons, and the ability to operate from an aircraft
|
|
carrier. Operated by several nations, this multi-role fighter has been
|
|
instrumental in conflicts from 1986 to today.
|
|
|
|
The Hornet is equipped with a large suite of sensors that includes a radar,
|
|
targeting pod, and a helmet mounted sight. In addition to its internal 20mm
|
|
cannon, the Hornet can be armed with a large assortment of unguided bombs and
|
|
rockets, laser and GPS-guided bombs, air-to-surface missiles of all sorts, and
|
|
both radar and infrared-guided air-to-air missiles.
|
|
|
|
The Hornet is also known for its extreme, slow-speed maneuverability in a
|
|
dogfight. Although incredibly deadly, the Hornet is also a very easy aircraft
|
|
to fly.
|