From fbb8cc645c6b5efdd16904a4eb0bb2c85ba8f3e3 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 11 Oct 2016 13:06:57 -0400 Subject: [PATCH] Prevent automatic humanity morph when in vehicles Vanilla commit: https://github.com/DayZMod/DayZ/commit/6326f1186d5fdd2ce8d39116cc30fe726126b70b --- SQF/dayz_code/compile/player_humanityChange.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SQF/dayz_code/compile/player_humanityChange.sqf b/SQF/dayz_code/compile/player_humanityChange.sqf index 92f9d8d4b..6f5c730e1 100644 --- a/SQF/dayz_code/compile/player_humanityChange.sqf +++ b/SQF/dayz_code/compile/player_humanityChange.sqf @@ -31,6 +31,8 @@ _model = typeOf player; //if model will not be changed by humanity if !(_model in ["Survivor1_DZ","Survivor2_DZ","Survivor3_DZ","SurvivorW2_DZ","SurvivorW3_DZ","Bandit1_DZ","BanditW1_DZ"]) exitWith {}; +//don't switch model when in a vehicle (ejects player) +if (vehicle player != player) exitWith {}; //Not sure if this will work needs testing _isMen = _model == "Survivor1_DZ" || _model == "Survivor2_DZ";