Remove DZE_permanentPlot variable

There is no longer a need for the DZE_permanentPlot variable since all servers use plot management and plot for life.
This commit is contained in:
A Man
2021-09-20 10:30:32 +02:00
parent aad27e6ed7
commit 5aba5d7ddd
25 changed files with 102 additions and 222 deletions

View File

@@ -77,18 +77,13 @@ if (_isStorage) then {
_object setVectorDirAndUp _vector;
_object setPosATL _location;
_object setVariable ["memDir",_dir,true];
if (DZE_permanentPlot) then {
_ownerID = _cursorTarget getVariable["ownerPUID","0"];
_object setVariable ["ownerPUID",_ownerID,true];
_doorFriends = _cursorTarget getVariable ["doorfriends",[]];
if (isNil "_ownerID" || _ownerID == "0") then {_ownerID = dayz_playerUID;};
if (count _doorFriends == 0) then {_doorFriends = [[dayz_playerUID,toArray (name player)]];};
_object setVariable ["doorfriends",_doorFriends,true];
PVDZE_obj_Swap = [DZE_Lock_Door,_object,[_dir,_location,_ownerID,_vector],_typeOf,_cursorTarget,player,_doorFriends,dayz_authKey];
} else {
PVDZE_obj_Swap = [DZE_Lock_Door,_object,[_dir,_location,_vector],_typeOf,_cursorTarget,player,[],dayz_authKey];
};
_ownerID = _cursorTarget getVariable["ownerPUID","0"];
_object setVariable ["ownerPUID",_ownerID,true];
_doorFriends = _cursorTarget getVariable ["doorfriends",[]];
if (isNil "_ownerID" || _ownerID == "0") then {_ownerID = dayz_playerUID;};
if (count _doorFriends == 0) then {_doorFriends = [[dayz_playerUID,toArray (name player)]];};
_object setVariable ["doorfriends",_doorFriends,true];
PVDZE_obj_Swap = [DZE_Lock_Door,_object,[_dir,_location,_ownerID,_vector],_typeOf,_cursorTarget,player,_doorFriends,dayz_authKey];
publicVariableServer "PVDZE_obj_Swap";
};