Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update server_verifySender.sqf #2193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion SQF/dayz_server/compile/server_verifySender.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ local _objPos = _this select 2; //Can be object or position
local _clientKey = _this select 3;
local _playerUID = _this select 4;
local _player = _this select 5;
local _playerPos = [_player] call fnc_getPos;
local _playerPos = getPosATL _player; //Use ATL as object position always is in ATL format.

local _index = dayz_serverPUIDArray find _playerUID;

if (typeName _objPos == "OBJECT") then { //_objPos needs to be in ATL format when using distance against playerPos.
_objPos = getPosATL _objPos;
};

local _exitReason = call {
//If object or player is null distance returns 9999+
//If object or player was moved with setPos on client, position takes a second to update on server
Expand Down