From 22b2a3a79f637a8b16f99618a5748041b8760cf8 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 11 Oct 2016 19:57:14 -0400 Subject: [PATCH] Prevent humanity hit to driver when crash damages passengers I forgot to account for this when allowing humanity hit to players in a vehicle: https://github.com/DayZMod/DayZ/commit/15e923fb19ce0f52ae0c994269b56eb3aab6249b --- 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 43ef2855f..45475c8cd 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -84,7 +84,7 @@ if (_unit == player) then { if (_hit == "") exitWith //Ignore none part dmg. Exit after processing humanity hit { - if (_source != player && _isPlayer && alive player) then + if (_source != driver (vehicle player) && _isPlayer && alive player) then { _isBandit = (player getVariable["humanity",0]) <= -5000; //_isBandit = (_model in ["Bandit1_DZ","BanditW1_DZ"]);