From 4570c96f7f09d3e55a8671ee0693e6bbaa5d2252 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Fri, 3 Nov 2017 18:34:14 -0400 Subject: [PATCH] Update change log --- CHANGE LOG 1.0.6.2.txt | 2 +- SQF/dayz_server/compile/server_publishVehicle3.sqf | 14 +++++++++++--- SQF/dayz_server/compile/server_swapObject.sqf | 2 +- SQF/dayz_server/compile/server_verifySender.sqf | 2 ++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index 1aa515e62..2dbe309b2 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -5,7 +5,7 @@ [NEW] Added secondary iron sight to CZ550 and bolt animations to CZ550 and LeeEnfield by @Streatman [NEW] Added some basic compatibility for falconsan's Ruegen map (beta version released February 2016) [NEW] Admins can now define what parts are returned from modular building parts, see configVariables.sqf/DZE_modularConfig @oiad @BigEgg17 -[NEW] Basic server-side authentication for DeleteObj, PublishObj, PublishVeh and SwapObj, admins and script makers should review the changes if using PVDZ_obj_Destroy/Publish, PVDZE_obj_Swap, PVDZE_veh_Publish/Upgrade or server_deleteObj and verify custom code is compliant with these changes. +[NEW] Basic server-side authentication for DeleteObj, PublishObj, PublishVeh and SwapObj, admins and script makers should review the changes if using PVDZ_obj_Destroy/Publish, PVDZE_obj_Swap, PVDZE_veh_Publish/Upgrade or server_deleteObj and verify custom code is compliant with these changes (github.com/EpochModTeam/DayZ-Epoch/commit/42e0047) [NEW] BAF_L85A2_RIS_TWS_DZ to emulate the old behavior of the now NV only BAF_L85A2_RIS_CWS. Server owners must add the weapon on their own #1983 [NEW] Admins can now define a maximum build height, see configVariables.sqf/DZE_BuildHeightLimit. @BigEgg17 diff --git a/SQF/dayz_server/compile/server_publishVehicle3.sqf b/SQF/dayz_server/compile/server_publishVehicle3.sqf index 095142ff5..1b91e8eb6 100644 --- a/SQF/dayz_server/compile/server_publishVehicle3.sqf +++ b/SQF/dayz_server/compile/server_publishVehicle3.sqf @@ -1,7 +1,11 @@ -private ["_activatingPlayer","_object","_worldspace","_location","_dir","_class","_uid","_key","_keySelected","_characterID","_donotusekey","_result","_outcome","_oid","_countr","_objectID","_objectUID","_newobject","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_clientKey","_playerUID"]; +private ["_activatingPlayer","_object","_worldspace","_location","_dir","_class","_uid","_key","_keySelected","_characterID","_donotusekey","_result","_outcome","_oid","_countr","_objectID","_objectUID","_newobject","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_clientKey","_exitReason","_playerUID"]; #include "\z\addons\dayz_server\compile\server_toggle_debug.hpp" -if (count _this < 7) exitWith {diag_log "Server_PublishVehicle3 error: Wrong parameter format";}; +if (count _this < 7) exitWith { + diag_log "Server_PublishVehicle3 error: Wrong parameter format"; + dze_waiting = "fail"; + (owner (_this select 5)) publicVariableClient "dze_waiting"; +}; _object = _this select 0; _worldspace = _this select 1; @@ -14,7 +18,11 @@ _playerUID = getPlayerUID _activatingPlayer; _characterID = _keySelected; _exitReason = [_this,"PublishVehicle3",(_worldspace select 1),_clientKey,_playerUID,_activatingPlayer] call server_verifySender; -if (_exitReason != "") exitWith {diag_log _exitReason}; +if (_exitReason != "") exitWith { + diag_log _exitReason; + dze_waiting = "fail"; + (owner _activatingPlayer) publicVariableClient "dze_waiting"; +}; if (!(isClass(configFile >> "CfgVehicles" >> _class)) || isNull _object) exitWith { diag_log ("HIVE-PublishVehicle3 Error: Vehicle does not exist: "+ str(_class)); diff --git a/SQF/dayz_server/compile/server_swapObject.sqf b/SQF/dayz_server/compile/server_swapObject.sqf index 7c505da91..5aaf9e809 100644 --- a/SQF/dayz_server/compile/server_swapObject.sqf +++ b/SQF/dayz_server/compile/server_swapObject.sqf @@ -47,7 +47,7 @@ if (!_allowed || !_proceed) exitWith { if(!isNull(_object)) then { deleteVehicle _object; }; - diag_log ("Invalid object swap by playerUID:" + (getPlayerUID _activatingplayer)); + diag_log ("Invalid object swap by playerUID:" + _playerUID); }; // Publish variables diff --git a/SQF/dayz_server/compile/server_verifySender.sqf b/SQF/dayz_server/compile/server_verifySender.sqf index 2749661f6..8e1f53bb7 100644 --- a/SQF/dayz_server/compile/server_verifySender.sqf +++ b/SQF/dayz_server/compile/server_verifySender.sqf @@ -1,6 +1,8 @@ /* PVEH does not provide any information about the sender in A2, so this is necessary to verify the sender was not spoofed. + + This is useful to hinder and identify cheaters who attempt mass deletion or creation of hive objects via PVS. */ private ["_clientKey","_exitReason","_function","_index","_object","_params","_player","_playerUID"];