mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Engine - Report any fatal head damage (#7103)
This commit is contained in:
parent
a8580d0298
commit
ded81418e6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user