mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Add player to plot management by default
+ Some minor private array cleanup
This commit is contained in:
@@ -544,10 +544,17 @@ if (_canBuild select 0) then {
|
|||||||
if (DZE_permanentPlot) then {
|
if (DZE_permanentPlot) then {
|
||||||
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
|
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
|
||||||
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], []];
|
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], []];
|
||||||
|
if (_canBuild select 1) then {
|
||||||
|
_tmpbuilt setVariable ["plotfriends", [[([player] call FNC_GetPlayerUID),(name player)]], true];
|
||||||
|
PVDZ_veh_Save = [_tmpbuilt,"gear"];
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location, _vector],[]];
|
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location, _vector],[]];
|
||||||
};
|
};
|
||||||
publicVariableServer "PVDZ_obj_Publish";
|
publicVariableServer "PVDZ_obj_Publish";
|
||||||
|
if (!isNil "PVDZ_veh_Save") then {
|
||||||
|
publicVariableServer "PVDZ_veh_Save";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} else { //if magazine was not removed, cancel publish
|
} else { //if magazine was not removed, cancel publish
|
||||||
|
|||||||
@@ -453,10 +453,17 @@ if (_canBuild select 0) then {
|
|||||||
if (DZE_permanentPlot) then {
|
if (DZE_permanentPlot) then {
|
||||||
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
|
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
|
||||||
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID],_classname];
|
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID],_classname];
|
||||||
|
if (_canBuild select 1) then {
|
||||||
|
_tmpbuilt setVariable ["plotfriends", [[([player] call FNC_GetPlayerUID),(name player)]], true];
|
||||||
|
PVDZ_veh_Save = [_tmpbuilt,"gear"];
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],[]];
|
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],[]];
|
||||||
};
|
};
|
||||||
publicVariableServer "PVDZ_obj_Publish";
|
publicVariableServer "PVDZ_obj_Publish";
|
||||||
|
if (!isNil "PVDZ_veh_Save") then {
|
||||||
|
publicVariableServer "PVDZ_veh_Save";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
private ["_close"];
|
private ["_closePeople","_friendUID","_friendName"];
|
||||||
lbClear 7001;
|
lbClear 7001;
|
||||||
_closePeople = player nearEntities ["CAManBase", 10];
|
if (!DZE_plotManagementMustBeClose) then {_closePeople = playableUnits;} else {_closePeople = player nearEntities ["CAManBase", 10];};
|
||||||
if (!DZE_plotManagementMustBeClose) then {_closePeople = playableUnits};
|
|
||||||
Humans = [];
|
Humans = [];
|
||||||
{
|
{
|
||||||
if (isPlayer _x) then {
|
if (isPlayer _x) then {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
private ["_list","_plots","_thePlot","_friends"];
|
private ["_pos","_plots","_thePlot","_friends","_toRemove","_newList"];
|
||||||
|
|
||||||
_pos = _this select 0;
|
_pos = _this select 0;
|
||||||
if (_pos < 0) exitWith {};
|
if (_pos < 0) exitWith {};
|
||||||
_plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
_plots = nearestObjects [[player] call FNC_getPos, ["Plastic_Pole_EP1_DZ"],15];
|
||||||
|
|||||||
Reference in New Issue
Block a user