From 23ece34fb895ff9d98644f56f9d5b77408ca001b Mon Sep 17 00:00:00 2001 From: Skaronator Date: Sat, 25 Jan 2014 19:38:14 +0100 Subject: [PATCH] Also use DZE_PlayerZed in player death --- SQF/dayz_code/compile/player_death.sqf | 2 +- SQF/dayz_code/init/variables.sqf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/compile/player_death.sqf b/SQF/dayz_code/compile/player_death.sqf index 440037395..6aab7d597 100644 --- a/SQF/dayz_code/compile/player_death.sqf +++ b/SQF/dayz_code/compile/player_death.sqf @@ -8,7 +8,7 @@ _body = player; _playerID = getPlayerUID player; _infected = 0; -if (r_player_infected) then { +if (r_player_infected && DZE_PlayerZed) then { _infected = 1; }; diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 32bc44202..47d3a234f 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -444,6 +444,9 @@ if(isNil "dayz_maxGlobalZombiesIncrease") then { if(isNil "dayz_maxZeds") then { dayz_maxZeds = 500; }; +if (isNil "DZE_PlayerZed") then { + DZE_PlayerZed = true; +}; if(isNil "DZEdebug") then { DZEdebug = false; }; @@ -545,9 +548,6 @@ DZE_Lock_Door = ""; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf"; if(isServer) then { - if (isNil "DZE_PlayerZed") then { - DZE_PlayerZed = true; - }; dayz_players = []; dead_bodyCleanup = []; needUpdate_objects = [];