mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Hit Reactions - Add check for disabled damage (#8474)
This commit is contained in:
parent
7bf9f3112e
commit
755c5ea50d
@ -22,6 +22,9 @@ params ["_unit", "_firer", "_damage"];
|
||||
// exit if system is disabled
|
||||
if (GVAR(minDamageToTrigger) == -1) exitWith {};
|
||||
|
||||
// exit if damage is disabled on unit
|
||||
if !(isDamageAllowed _unit && {_unit getVariable [QEGVAR(medical,allowDamage), true]}) exitWith {};
|
||||
|
||||
// don't fall after minor damage
|
||||
if (_damage < GVAR(minDamageToTrigger)) exitWith {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user