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:
ebaydayz
2016-04-12 14:51:22 -04:00
parent 4a07b7cc7a
commit 27d57283a0
18 changed files with 36 additions and 25 deletions

View File

@@ -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 {