From b0da67272bd2bd029d9318cb481ae9f44d36de5c Mon Sep 17 00:00:00 2001 From: vbawol Date: Thu, 21 Mar 2013 16:40:11 -0500 Subject: [PATCH] Fixed damage handler humanity hit / freetarget and removed unused !_isbandit --- dayz_code/compile/fn_damageHandler.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dayz_code/compile/fn_damageHandler.sqf b/dayz_code/compile/fn_damageHandler.sqf index dc69971f7..ebcd36137 100644 --- a/dayz_code/compile/fn_damageHandler.sqf +++ b/dayz_code/compile/fn_damageHandler.sqf @@ -52,13 +52,13 @@ if (_unitIsPlayer) then { _source setVariable["startcombattimer",1]; }; _canHitFree = player getVariable ["freeTarget",false]; - _isBandit = (typeOf player) == "Bandit1_DZ"; - if (!_canHitFree and !_isBandit) then { + + if (!_canHitFree) then { _myKills = 200 - (((player getVariable ["humanKills",0]) / 30) * 100); //Process Morality Hit _humanityHit = -(_myKills * _damage); //["dayzHumanity",[_source,_humanityHit,30]] call broadcastRpcCallAll; - dayzHumanity = [_this select 0,_this select 1,30]; + dayzHumanity = [_source,_humanityHit,30]; publicVariable "dayzHumanity"; }; };