Files
dcs_liberation/resources/units/aircraft/P-51D.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.7 KiB
YAML

always_keeps_gun: true
description:
The North American Aviation P-51 Mustang is an American long-range, single-seat
fighter and fighter-bomber used during World War II and the Korean War, among other
conflicts. From late 1943, P-51Bs and P-51Cs (supplemented by P-51Ds from mid-1944)
were used by the USAAF's Eighth Air Force to escort bombers in raids over Germany,
while the RAF's Second Tactical Air Force and the USAAF's Ninth Air Force used the
Merlin-powered Mustangs as fighter-bombers, roles in which the Mustang helped ensure
Allied air superiority in 1944. The P-51 was also used by Allied air forces in the
North African, Mediterranean, Italian, and Pacific theaters. During World War II,
Mustang pilots claimed to have destroyed 4,950 enemy aircraft. At the start of the
Korean War, the Mustang, by then redesignated F-51, was the main fighter of the
United States until jet fighters, including North American's F-86, took over this
role; the Mustang then became a specialized fighter-bomber. Despite the advent of
jet fighters, the Mustang remained in service with some air forces until the early
1980s. After the Korean War, Mustangs became popular civilian warbirds and air racing
aircraft.
introduced: 1944
manufacturer: North American
origin: USA
price: 4
role: Fighter
gunfighter: true
variants:
Mustang Mk.IV (Early): {}
P-51D-25-NA Mustang: {}
radios:
intra_flight: SCR522
inter_flight: SCR522
channels:
type: SCR-522
namer: SCR-522
kneeboard_units: "imperial"
tasks:
BAI: 100
BARCAP: 100
CAS: 100
DEAD: 70
Escort: 100
Fighter sweep: 100
Intercept: 100
OCA/Aircraft: 100
OCA/Runway: 60
Strike: 60
TARCAP: 100
hit_points: 18