mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Fix issue with tag friendlies #1807
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private ["_exit","_nearestObjects","_friendlies","_rID","_display","_cTarget","_dis"];
|
||||
private ["_exit","_nearestObjects","_rID","_display","_cTarget","_dis","_friendlyTo","_lastSave","_startTime"];
|
||||
|
||||
// players inside vehicle can always access its gear
|
||||
if ((vehicle player) == player) then {
|
||||
@@ -29,9 +29,9 @@ if ((vehicle player) == player) then {
|
||||
};
|
||||
};
|
||||
if (DZE_BackpackAntiTheft) then {
|
||||
_friendlies = player getVariable ["friendlies",[]];
|
||||
_friendlyTo = player getvariable ["friendlyTo",[]];
|
||||
_rID = if (DZE_permanentPlot) then { getPlayerUID _cTarget } else { _cTarget getVariable ["CharacterID","0"] };
|
||||
if ((!canbuild or isInTraderCity) && {alive _cTarget} && {isPlayer _cTarget} && {!(_rID in _friendlies)} && {(player distance _cTarget) < 12}) then {
|
||||
if ((!canbuild or isInTraderCity) && {alive _cTarget} && {isPlayer _cTarget} && {!(_rID in _friendlyTo) && !(_cTarget in (units group player))} && {(player distance _cTarget) < 12}) then {
|
||||
localize "STR_EPOCH_PLAYER_316" call dayz_rollingMessages;
|
||||
_display closeDisplay 2;
|
||||
};
|
||||
@@ -59,4 +59,4 @@ if ((vehicle player) == player) then {
|
||||
} else {
|
||||
DZE_GearCheckBypass = false; //exit will always be false the when the above code opens a new gear menu, this will reset the variable
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user