From 6fa3365b709b03da3a0e81491513ab5c94ee2483 Mon Sep 17 00:00:00 2001 From: icomrade Date: Fri, 29 Apr 2016 17:19:48 -0400 Subject: [PATCH] check if player is alive for humanity change --- SQF/dayz_code/compile/fn_damageHandler.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index cbeddd6fb..3cb4e9958 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -31,7 +31,7 @@ if (_unit == player) then { if (_hit == "") then { - if ((_source != player) and _isPlayer) then + if ((_source != player) and _isPlayer && alive player) then { _isBandit = (player getVariable["humanity",0]) <= -5000; //_isBandit = (_model in ["Bandit1_DZ","BanditW1_DZ"]);