Files
dcs_liberation/resources/units/aircraft/Ka-50.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

33 lines
984 B
YAML

class: Helicopter
always_keeps_gun: true
carrier_capable: true
description:
"The Ka-50 Black Shark (NATO reporting name: Hokum) is a unique and deadly
single-seat, Russian attack helicopter that has seen combat in the Northern Caucasus.
It combines a high performance dual rotor system with a deadly weapons payload of
guided missiles, rockets, bombs, and a 30mm cannon. The Ka-50 is also unique in
that it has an ejection seat."
introduced: 1995
lha_capable: true
cabin_size: 0 # Can not transport troops
can_carry_crates: true
manufacturer: Kamov
origin: USSR/Russia
price: 20
role: Attack
variants:
Ka-50 Hokum: {}
radios:
intra_flight: R-800L1
inter_flight: R-800L1
# The R-800L1 doesn't have preset channels, and the other radio is for
# communications with FAC and ground units, which don't currently have
# radios assigned, so no channels to configure.
kneeboard_units: "metric"
tasks:
BAI: 430
CAS: 430
DEAD: 113
OCA/Aircraft: 430
hit_points: 15