mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
This PR partially addresses #3313 by: - Tracking DCS hit events and storing the unit hit point updates in state.json - Adding logic to kill aircraft when the hit points is reduced to 1, as opposed to the DCS logic of hit points to 0. This behavior allows Liberation to track deaths to parked aircraft, which are uncontrolled and seem to have different damage logic in DCS. - Tracking damage to TheaterGroundObjects across turns and killing the unit when the unit's hitpoints reduces to 1 or lower. Intention is to build on this PR by also tracking front line objects and statics (buildings). However, larger refactoring is required and so splitting those into a separate PR.