mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-13 19:52:57 +03:00
Fix server position sync after knockout
All DayZ Mod Development commits since 1.8.7 release (Jan. 24) have now been applied.
This commit is contained in:
@@ -25,7 +25,7 @@ if (_inVehicle) then {
|
||||
};
|
||||
if (!r_player_unconscious && !r_action2) then {
|
||||
r_player_lastSeat = _assignedRole;
|
||||
if ((_vehicle isKindOf "helicopter") || (_inVehicle && ({(isPlayer _x) && (alive _x)} count (crew _vehicle) > 1))) then {
|
||||
if (_vehicle isKindOf "helicopter" || (_inVehicle && ({(isPlayer _x) && (alive _x)} count (crew _vehicle) > 1))) then {
|
||||
//allow switch to pilot
|
||||
if (((_assignedRole select 0) != "driver") && ((!alive _driver) or ((_vehicle emptyPositions "Driver") > 0))) then {
|
||||
if (_vehicle isKindOf "helicopter") then {
|
||||
|
||||
@@ -992,6 +992,8 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
||||
player removeAction s_player_repair_crtl;
|
||||
s_player_repair_crtl = -1;
|
||||
dayz_myCursorTarget = objNull;
|
||||
//player removeAction s_player_forceSave;
|
||||
//s_player_forceSave = -1;
|
||||
player removeAction s_player_flipveh;
|
||||
s_player_flipveh = -1;
|
||||
player removeAction s_player_sleep;
|
||||
|
||||
@@ -77,6 +77,8 @@ r_player_unconsciousInputDisabled = false;
|
||||
|
||||
[nil, player, rSWITCHMOVE, "AinjPpneMstpSnonWnonDnon"] call RE;
|
||||
player SWITCHMOVE "AinjPpneMstpSnonWnonDnon";
|
||||
PVDZ_plr_SwitchMove = [player,"AinjPpneMstpSnonWnonDnon"];
|
||||
publicVariableServer "PVDZ_plr_SwitchMove"; //Needed to execute switchMove on server machine. rSwitchMove only executes on other clients
|
||||
|
||||
player playMoveNow "AmovPpneMstpSnonWnonDnon_healed";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user