Medical Engine - Don't skip hdbracket ever (#9738)

This commit is contained in:
Grim 2024-01-15 23:41:26 -03:00 committed by GitHub
parent 5903e561a9
commit 9eb7e83e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ private _newDamage = _damage - _oldDamage;
// Happens occasionally for vehiclehit events (see line 80 onwards)
// Just exit early to save some frametime
if (_newDamage == 0) exitWith {_oldDamage};
if (_newDamage == 0 && {_hitpoint isNotEqualTo "ace_hdbracket"}) exitWith {_oldDamage};
// Get scaled armor value of hitpoint and calculate damage before armor
// We scale using passThrough to handle explosive-resistant armor properly (#9063)