From b8aba38dcae6b6d5e318e97706057f29b0a71408 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 19 Oct 2016 19:53:52 -0400 Subject: [PATCH] Fix humanity hit when crashing vehicle --- 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 6a21ab729..d1369e0ce 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -33,7 +33,7 @@ _falling = (((_hit == "legs") AND {(_source==_unit)}) AND {((_ammo=="") AND {(Da }; //Lets see if the player has been struck by a moving vehicle. - if (!isNull dayz_HitBy) then { _ammo = "RunOver"; }; + if (!isNull dayz_HitBy && vehicle player == player) then { _ammo = "RunOver"; }; if ((_hit == "Legs") AND {(_ammo == "RunOver")}) then { dayz_HitBy = objNull; }; //If a vehicle is moveing faster then 15 lets register some kind of direct damage rather then relying on indirect/physics damage.