From ded81418e6ba973d0dfedee78ff0efc0d87e4a1a Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 16 Jul 2019 13:00:28 -0500 Subject: [PATCH] Medical Engine - Report any fatal head damage (#7103) --- addons/medical_engine/functions/fnc_handleDamage.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/medical_engine/functions/fnc_handleDamage.sqf b/addons/medical_engine/functions/fnc_handleDamage.sqf index 3ff3065471..d810960f4d 100644 --- a/addons/medical_engine/functions/fnc_handleDamage.sqf +++ b/addons/medical_engine/functions/fnc_handleDamage.sqf @@ -82,6 +82,11 @@ if (_hitPoint isEqualTo "ace_hdbracket") exitWith { _allDamages sort false; (_allDamages select 0) params ["_receivedDamage", "", "_woundedHitPoint"]; + if (_damageHead >= HEAD_DAMAGE_THRESHOLD) then { + TRACE_3("reporting fatal head damage instead of max",_damageHead,_receivedDamage,_woundedHitPoint); + _receivedDamage = _damageHead; + _woundedHitPoint = "Head"; + }; // We know it's structural when no specific hitpoint is damaged if (_receivedDamage == 0) then {