mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Overpressure - Don't add backblast damage if blocked (#5848)
This commit is contained in:
parent
2e9b195021
commit
eb8f5ffac3
@ -54,6 +54,8 @@ if (_distance < _backblastRange) then {
|
||||
if (isClass (configFile >> "CfgPatches" >> "ACE_Medical") && {([_unit] call EFUNC(medical,hasMedicalEnabled))}) then {
|
||||
[_unit, _damage, "body", "backblast"] call EFUNC(medical,addDamageToUnit);
|
||||
} else {
|
||||
TRACE_1("",isDamageAllowed _x);
|
||||
if (!isDamageAllowed _x) exitWith {}; // Skip damage if not allowed
|
||||
_unit setDamage (damage _unit + _damage);
|
||||
};
|
||||
};
|
||||
|
@ -59,6 +59,8 @@ TRACE_3("cache",_overpressureAngle,_overpressureRange,_overpressureDamage);
|
||||
if (isClass (configFile >> "CfgPatches" >> "ACE_Medical") && {([_x] call EFUNC(medical,hasMedicalEnabled))}) then {
|
||||
[_x, _damage, "body", "backblast"] call EFUNC(medical,addDamageToUnit);
|
||||
} else {
|
||||
TRACE_1("",isDamageAllowed _x);
|
||||
if (!isDamageAllowed _x) exitWith {}; // Skip damage if not allowed
|
||||
_x setDamage (damage _x + _damage);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user