MedicalSM - Tweak isPlayer checks style (#7178)

This commit is contained in:
PabstMirror 2019-09-12 21:50:50 -05:00 committed by GitHub
parent 2d0c61a874
commit 03576b86b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -17,6 +17,9 @@
params ["_unit"];
(isPlayer _unit && {GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_NEVER}
|| {!isPlayer _unit && {GVAR(fatalInjuriesAI) != FATAL_INJURIES_NEVER}})
(if (isPlayer _unit) then {
GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_NEVER
} else {
GVAR(fatalInjuriesAI) != FATAL_INJURIES_NEVER
})
&& {!(_unit getVariable [QEGVAR(medical,deathBlocked), false])}

View File

@ -17,4 +17,8 @@
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
}