#997 Optional Disable PZed

This commit is contained in:
Skaronator
2014-01-19 19:45:49 +01:00
parent 97311b4928
commit dc64a90841
2 changed files with 9 additions and 1 deletions

View File

@@ -529,6 +529,9 @@ DZE_Lock_Door = "";
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf";
if(isServer) then { if(isServer) then {
if (isNil "DZE_PlayerZed") then {
DZE_PlayerZed = true;
};
dayz_players = []; dayz_players = [];
DZEMaintainCache = []; DZEMaintainCache = [];
dead_bodyCleanup = []; dead_bodyCleanup = [];

View File

@@ -91,7 +91,11 @@ if (!_isNew) then {
}; };
} else { } else {
if (DZE_PlayerZed) then {
_isInfected = _primary select 3; _isInfected = _primary select 3;
} else {
_isInfected = 0;
};
_model = _primary select 4; _model = _primary select 4;
_hiveVer = _primary select 5; _hiveVer = _primary select 5;
@@ -103,6 +107,7 @@ if (!_isNew) then {
}; };
}; };
//Record initial inventory only if not player zombie //Record initial inventory only if not player zombie
if(_isInfected != 1) then { if(_isInfected != 1) then {
_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default"); _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");