mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 02:46:29 +03:00
stop animation fixes while in vehicle
This commit is contained in:
@@ -68,12 +68,12 @@ _cookedmeat = meatcooked;
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
|
|
||||||
cutText [format["Canceled cooking %1",_textraw], "PLAIN DOWN"];
|
cutText [format["Canceled cooking %1",_textraw], "PLAIN DOWN"];
|
||||||
|
|
||||||
// player addMagazine "ItemBandage";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach _rawmeat;
|
} forEach _rawmeat;
|
||||||
|
|||||||
@@ -66,8 +66,11 @@ if(_IsNearVehicle >= 1) then {
|
|||||||
|
|
||||||
if(!_finished) then {
|
if(!_finished) then {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
_abort = true;
|
_abort = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -41,8 +41,10 @@ r_doLoop = false;
|
|||||||
|
|
||||||
if(!_finished) then {
|
if(!_finished) then {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled." , "PLAIN DOWN"]
|
cutText ["Canceled." , "PLAIN DOWN"]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,10 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled gutting." , "PLAIN DOWN"];
|
cutText ["Canceled gutting." , "PLAIN DOWN"];
|
||||||
//_abort = true;
|
//_abort = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -50,8 +50,10 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled gutting." , "PLAIN DOWN"];
|
cutText ["Canceled gutting." , "PLAIN DOWN"];
|
||||||
//_abort = true;
|
//_abort = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -55,8 +55,10 @@ for "_x" from 1 to _qty do {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled siphon." , "PLAIN DOWN"];
|
cutText ["Canceled siphon." , "PLAIN DOWN"];
|
||||||
_abort = true;
|
_abort = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -69,8 +69,10 @@ if(_finished) then {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled Key Crafting." , "PLAIN DOWN"];
|
cutText ["Canceled Key Crafting." , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
TradeInprogress = false;
|
||||||
|
|||||||
@@ -183,8 +183,10 @@ if (_canDo) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -183,8 +183,10 @@ if (_canDo) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -183,8 +183,10 @@ if (_canDo) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -183,8 +183,10 @@ if (_canDo) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -183,8 +183,10 @@ if (_canDo) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
cutText ["Canceled crafting.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -67,15 +67,20 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
|
|||||||
if (r_interrupt) then {
|
if (r_interrupt) then {
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
};
|
};
|
||||||
|
if (vehicle player == player) then {
|
||||||
|
r_doLoop = false;
|
||||||
|
};
|
||||||
sleep 0.1;
|
sleep 0.1;
|
||||||
};
|
};
|
||||||
r_doLoop = false;
|
r_doLoop = false;
|
||||||
|
|
||||||
if(!_finished) then {
|
if(!_finished) then {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Alternate method in water make sure player stays in one spot for 6 seconds
|
// Alternate method in water make sure player stays in one spot for 6 seconds
|
||||||
|
|||||||
@@ -160,7 +160,9 @@ if (_proceed) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
TradeInprogress = false;
|
||||||
@@ -87,8 +87,10 @@ if (_section and _hasToolbox) then {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled Repair.", "PLAIN DOWN"];
|
cutText ["Canceled Repair.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -82,9 +82,11 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
|
|||||||
|
|
||||||
if(!_finished) then {
|
if(!_finished) then {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Alternate method in water make sure player stays in one spot for 6 seconds
|
// Alternate method in water make sure player stays in one spot for 6 seconds
|
||||||
|
|||||||
@@ -41,8 +41,10 @@ r_doLoop = false;
|
|||||||
|
|
||||||
if(!_finished) then {
|
if(!_finished) then {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled." , "PLAIN DOWN"]
|
cutText ["Canceled." , "PLAIN DOWN"]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -60,8 +60,10 @@ if (_qty >= _qty_in) then {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -83,8 +83,10 @@ for "_x" from 1 to _total_trades do {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -69,8 +69,10 @@ for "_x" from 1 to _total_trades do {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -61,8 +61,10 @@ if (_qty >= _qty_in) then {
|
|||||||
|
|
||||||
if (!_finished) exitWith {
|
if (!_finished) exitWith {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
cutText ["Canceled Trade." , "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ if (_finished) then {
|
|||||||
_unit setVariable ["USEC_injured",false,true];
|
_unit setVariable ["USEC_injured",false,true];
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
player addMagazine "ItemBandage";
|
player addMagazine "ItemBandage";
|
||||||
};
|
};
|
||||||
@@ -50,6 +50,8 @@ if (_finished) then {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
if (vehicle player == player) then {
|
||||||
[objNull, player, rSwitchMove,""] call RE;
|
[objNull, player, rSwitchMove,""] call RE;
|
||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user