mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix handleSafeGear not showing eyescan as it should. (#1875)
This fix makes it so that if the player used Eye Scan it will properly show eyescan instead of the code.
This commit is contained in:
@@ -3,7 +3,7 @@ private ["_backpacks","_charID","_clientID","_dir","_holder","_lockCode","_lockC
|
|||||||
_player = _this select 0;
|
_player = _this select 0;
|
||||||
_obj = _this select 1;
|
_obj = _this select 1;
|
||||||
_status = _this select 2;
|
_status = _this select 2;
|
||||||
if (count _this > 3) then {_suppliedCode = _this select 3;};
|
|
||||||
_name = if (alive _player) then {name _player} else {"Dead Player"};
|
_name = if (alive _player) then {name _player} else {"Dead Player"};
|
||||||
|
|
||||||
_type = typeOf _obj;
|
_type = typeOf _obj;
|
||||||
@@ -16,6 +16,11 @@ _objectUID = _obj getVariable ["ObjectUID","0"];
|
|||||||
_ownerID = _obj getVariable ["ownerPUID","0"];
|
_ownerID = _obj getVariable ["ownerPUID","0"];
|
||||||
_lockCode = _charID;
|
_lockCode = _charID;
|
||||||
|
|
||||||
|
if (count _this > 3) then {
|
||||||
|
_suppliedCode = _this select 3;
|
||||||
|
_lockCode = _suppliedCode;
|
||||||
|
};
|
||||||
|
|
||||||
// Player may have disconnected or died before message send. Attempt lock/unlock/pack/save procedure anyway
|
// Player may have disconnected or died before message send. Attempt lock/unlock/pack/save procedure anyway
|
||||||
if (isNull _player) then {diag_log "ERROR: server_handleSafeGear called with Null player object";};
|
if (isNull _player) then {diag_log "ERROR: server_handleSafeGear called with Null player object";};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user