mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-16 09:23:23 +03:00
Fix weapon on back dupe
This commit is contained in:
@@ -59,7 +59,7 @@ if (_characterID != "?") then {
|
||||
//if player object is alive lets sync the player and remove the body and if ghosting is active add the player id to the array
|
||||
if (alive _playerObj) then {
|
||||
// High priority. Sync must finish fast before player object isNull
|
||||
[_playerObj,nil,true,[],_inCombat] call server_playerSync;
|
||||
[_playerObj,nil,"",[],_inCombat] call server_playerSync;
|
||||
|
||||
/*
|
||||
Low priority code below this point where
|
||||
|
||||
@@ -9,6 +9,7 @@ private ["_distanceFoot","_playerPos","_lastPos","_playerGear","_medical","_curr
|
||||
|
||||
_character = _this select 0;
|
||||
_magazines = _this select 1;
|
||||
local _dayz_onBack = _this select 2;
|
||||
_characterID = _character getVariable ["characterID","0"];
|
||||
_playerUID = getPlayerUID _character;
|
||||
_charPos = getPosATL _character;
|
||||
@@ -58,10 +59,8 @@ _killsB = _statsDiff select 4;
|
||||
_charPosLen = count _charPos;
|
||||
|
||||
if (!isNil "_magazines") then {
|
||||
if (typeName _magazines == "ARRAY") then {
|
||||
_playerGear = [weapons _character,_magazines select 0,_magazines select 1];
|
||||
_character setVariable["ServerMagArray",_magazines, false];
|
||||
};
|
||||
_playerGear = [weapons _character,_magazines,_dayz_onBack];
|
||||
_character setVariable["ServerMagArray",[_magazines,_dayz_onBack], false];
|
||||
} else {
|
||||
//check Magazines everytime they aren't sent by player_forceSave
|
||||
_magTemp = (_lastMagazines select 0);
|
||||
|
||||
Reference in New Issue
Block a user