mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
#997 Optional Disable PZed
This commit is contained in:
@@ -529,6 +529,9 @@ 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 = [];
|
||||
DZEMaintainCache = [];
|
||||
dead_bodyCleanup = [];
|
||||
|
||||
@@ -91,7 +91,11 @@ if (!_isNew) then {
|
||||
};
|
||||
|
||||
} else {
|
||||
_isInfected = _primary select 3;
|
||||
if (DZE_PlayerZed) then {
|
||||
_isInfected = _primary select 3;
|
||||
} else {
|
||||
_isInfected = 0;
|
||||
};
|
||||
_model = _primary select 4;
|
||||
_hiveVer = _primary select 5;
|
||||
|
||||
@@ -103,6 +107,7 @@ if (!_isNew) then {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
//Record initial inventory only if not player zombie
|
||||
if(_isInfected != 1) then {
|
||||
_config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
|
||||
|
||||
Reference in New Issue
Block a user