Files
dcs_liberation/resources/units/aircraft/AJS37.yaml
zhexu14 5af4e56f30 Add hit points to unit yamls.
This PR:

- Introduces a new member of UnitType, hit_points, which is an abstract
representation of the durability of a unit, and loads it in from the
YAML files in the various subclasses (Ship, Ground etc).
- Adds scripts for populating/updating the unit YAML files with hit
point data from DCS. This script also gets the data for static objects,
but I'll leave the plugging in of static object data into Liberation for
another PR.
- Updates the unit YAML files by running the above scripts.

I did toy with the idea of adding this data to the unit definitions in
pydcs via an export from DCS, but it would be a more involved change,
since the current pydcs export script runs in the Hooks Lua environment
in DCS and AFAICT the hit points (via Unit.getLife()) is run in the
mission scripting environment.
2024-01-04 00:49:33 -08:00

47 lines
1.8 KiB
YAML

description:
"The AJS-37 Viggen is a Swedish double-delta supersonic attack aircraft\
\ from the late Cold War. It was the backbone of the Swedish Air Force during the\
\ Cold war, serving as the main attack and anti-ship platform. The AJS is the 90\u2019\
s upgrade of this 70's era aircraft, adding several advanced weapons and systems\
\ functionalities. The aircraft was designed around the pilot, with an excellent\
\ man-machine interface, supporting the pilot through the smart use of autopilot\
\ systems, radar and HUD symbology in order to deliver the ordnance onto targets\
\ from treetop level with high speed attack runs.\n\nThe aircraft is armed with\
\ multiple weapon systems ranging from programmable stand-off weapons such as the\
\ RB-15F antiship missile to the BK90 Cluster munitions dispenser to various bombs,\
\ rockets and missiles for a wide range of target types. The aircraft can also carry\
\ gun pods and the Sidewinder series of infrared-guided missiles for air defence\
\ and self-protection purposes."
introduced: 1993
manufacturer: Saab
origin: Sweden
price: 15
role: Attack/Reconnaissance
variants:
AJS-37 Viggen: {}
radios:
# The AJS37 has somewhat unique radio configuration. Two backup radio
# (FR 24) can only operate simultaneously with the main radio in guard
# mode. As such, we only use the main radio for both inter- and intra-
# flight communication.
intra_flight: FR 22
inter_flight: FR 22
channels:
type: viggen
namer: viggen
kneeboard_units: "metric"
# default_overrides:
# MissionGeneratorSetting: 0
# Rb04GroupTarget: 3
# Rb04VinkelHopp: 0
# WeapSafeHeight: 1
tasks:
Anti-ship: 190
BAI: 620
CAS: 620
DEAD: 270
OCA/Aircraft: 620
OCA/Runway: 620
Strike: 630
hit_points: 18