From a09e364ec12e9fb48dfa0b4dda217b77e9e04938 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 12 Sep 2016 14:42:18 -0400 Subject: [PATCH] Don't block damage from explosives --- SQF/dayz_code/compile/fn_damageHandler.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 622ecde90..ae7ca5d44 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -45,14 +45,14 @@ _falling = (((_hit == "legs") AND {(_source==_unit)}) AND {((_ammo=="") AND {(Da if (_ammo == "") exitwith { _end = true; }; //If _source contains no object exit. But lets not exit if the unit returns player. Maybe its his own fault. - if (isNull _source) then { + /*if (isNull _source) then { // in Epoch we can't use this block as is becasue too many servers use a variety of explosives _end = true; if !(_ammo in ["Dragged","RunOver"]) then { // Explosion with no vehicle nearby. Possible cheat. Record to block any incoming fall damage. dayz_lastDamageSourceNull = true; diag_log "dayz_lastDamageSourceNull triggered"; }; - }; + };*/ } else { if (dayz_lastDamageSourceNull) then { _end = true; }; // Block incoming fall damage. };