mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
MedicalSM - Tweak isPlayer checks style (#7178)
This commit is contained in:
parent
2d0c61a874
commit
03576b86b9
@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
(isPlayer _unit && {GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_NEVER}
|
(if (isPlayer _unit) then {
|
||||||
|| {!isPlayer _unit && {GVAR(fatalInjuriesAI) != FATAL_INJURIES_NEVER}})
|
GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_NEVER
|
||||||
|
} else {
|
||||||
|
GVAR(fatalInjuriesAI) != FATAL_INJURIES_NEVER
|
||||||
|
})
|
||||||
&& {!(_unit getVariable [QEGVAR(medical,deathBlocked), false])}
|
&& {!(_unit getVariable [QEGVAR(medical,deathBlocked), false])}
|
||||||
|
@ -17,4 +17,8 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
isPlayer _unit && {GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_ALWAYS} || {!isPlayer _unit && {GVAR(fatalInjuriesAI) != FATAL_INJURIES_ALWAYS}}
|
if (isPlayer _unit) then {
|
||||||
|
GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_ALWAYS
|
||||||
|
} else {
|
||||||
|
GVAR(fatalInjuriesAI) != FATAL_INJURIES_ALWAYS
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user