Files
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

30 lines
1.1 KiB
YAML

carrier_capable: true
description:
The Lockheed S-3 Viking is a 4-crew, twin-engine turbofan-powered jet
aircraft that was used by the U.S. Navy (USN) primarily for anti-submarine warfare.
In the late 1990s, the S-3B's mission focus shifted to surface warfare and aerial
refueling. The Viking also provided electronic warfare and surface surveillance
capabilities to a carrier battle group. A carrier-based, subsonic, all-weather,
long-range, multi-mission aircraft, it carried automated weapon systems and was
capable of extended missions with in-flight refueling. Because of its characteristic
sound, it was nicknamed the "War Hoover" after the vacuum cleaner brand. The S-3
was phased out from front-line fleet service aboard aircraft carriers in January
2009, with its missions taken over by aircraft like the P-3C Orion, P-8 Poseidon,
Sikorsky SH-60 Seahawk and Boeing F/A-18E/F Super Hornet
introduced: 1984
manufacturer: Lockheed
origin: USA
price: 10
role: Carrier-based Attack
variants:
S-3B Viking: {}
tasks:
Anti-ship: 50
BAI: 570
CAS: 570
DEAD: 200
OCA/Aircraft: 570
OCA/Runway: 370
Strike: 370
hit_points: 25