mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add better logging for server_deleteObj
This commit is contained in:
@@ -28,7 +28,7 @@ if(!isNull(_obj)) then {
|
||||
};
|
||||
// Remove old object
|
||||
deleteVehicle _obj;
|
||||
|
||||
|
||||
_proceed = true;
|
||||
};
|
||||
|
||||
@@ -36,23 +36,23 @@ if(isNull(_object)) then {
|
||||
_proceed = false;
|
||||
};
|
||||
|
||||
if(_objectID == "0" && _objectUID == "0") then {
|
||||
if(_objectID == "0" && {_objectUID == "0"}) then {
|
||||
_proceed = false;
|
||||
} else {
|
||||
[_objectID,_objectUID] call server_deleteObjDirect;
|
||||
[_objectID,_objectUID,_obj] call server_deleteObjDirect;
|
||||
};
|
||||
|
||||
_allowed = [_object, "Server"] call check_publishobject;
|
||||
if (!_allowed || !_proceed) exitWith {
|
||||
if (!_allowed || !_proceed) exitWith {
|
||||
if(!isNull(_object)) then {
|
||||
deleteVehicle _object;
|
||||
deleteVehicle _object;
|
||||
};
|
||||
diag_log ("Invalid object swap by playerUID:" + _playerUID);
|
||||
};
|
||||
|
||||
// Publish variables
|
||||
_object setVariable ["CharacterID",_charID,true];
|
||||
|
||||
|
||||
//_object setVariable ["ObjectUID",_objectUID,true];
|
||||
_object setVariable ["OEMPos",(_worldspace select 1),true];
|
||||
|
||||
@@ -81,4 +81,4 @@ _object enableSimulation false;
|
||||
|
||||
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
|
||||
|
||||
diag_log format["PUBLISH: Player %1(%2) upgraded or downgraded object to %3 with UID:%4 @%5",(_activatingPlayer call fa_plr2str),_playerUID,_class,_uid,((_worldspace select 1) call fa_coor2str)];
|
||||
diag_log format["PUBLISH: Player %1(%2) upgraded or downgraded object to %3 with UID:%4 @%5",(_activatingPlayer call fa_plr2str),_playerUID,_class,_uid,((_worldspace select 1) call fa_coor2str)];
|
||||
|
||||
Reference in New Issue
Block a user