mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +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";
|
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 = [];
|
||||||
|
|||||||
@@ -91,7 +91,11 @@ if (!_isNew) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_isInfected = _primary select 3;
|
if (DZE_PlayerZed) then {
|
||||||
|
_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");
|
||||||
|
|||||||
Reference in New Issue
Block a user