Prevent opening the medical menu if the player is unconscious (#6915)

This commit is contained in:
Magnetar 2019-04-02 06:57:28 -07:00 committed by PabstMirror
parent db6dadb78f
commit 24a533b968

View File

@ -19,6 +19,7 @@
params ["_player", "_target"];
alive _player
&& {!IS_UNCONSCIOUS(_player)}
&& {!isNull _target}
&& {_player distance _target < GVAR(maxDistance) || {vehicle _player == vehicle _target}}
&& {GVAR(enableMedicalMenu) == 1 || {GVAR(enableMedicalMenu) == 2 && {vehicle _player != _player || {vehicle _target != _target}}}}