From d603a8f3f4a81c32d68a4c4c034fca99bffd4255 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 27 Oct 2013 11:50:29 -0500 Subject: [PATCH] Open gear menu instantly after action completes --- SQF/dayz_code/actions/player_chopWood.sqf | 2 ++ SQF/dayz_code/actions/player_loadCrate.sqf | 2 ++ SQF/dayz_code/actions/remove.sqf | 2 ++ SQF/dayz_code/compile/player_packTent.sqf | 2 ++ SQF/dayz_code/compile/player_packVault.sqf | 2 ++ 5 files changed, 10 insertions(+) diff --git a/SQF/dayz_code/actions/player_chopWood.sqf b/SQF/dayz_code/actions/player_chopWood.sqf index a8c65ccbb..1552b7712 100644 --- a/SQF/dayz_code/actions/player_chopWood.sqf +++ b/SQF/dayz_code/actions/player_chopWood.sqf @@ -116,6 +116,8 @@ if (count(_findNearestTree) >= 1) then { cutText [format["\n\n%1 piles of wood has been successfully added in front of you.", _countOut], "PLAIN DOWN"]; + player action ["Gear", _item]; + } else { r_interrupt = false; if (vehicle player == player) then { diff --git a/SQF/dayz_code/actions/player_loadCrate.sqf b/SQF/dayz_code/actions/player_loadCrate.sqf index e9a59f020..ee77f2352 100644 --- a/SQF/dayz_code/actions/player_loadCrate.sqf +++ b/SQF/dayz_code/actions/player_loadCrate.sqf @@ -50,6 +50,8 @@ if(_type == "backpack") then { }; player reveal _box; + +player action ["Gear", _box]; cutText ["\n\nOpened supply crate.", "PLAIN DOWN"]; diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index 39aa178b0..47a6ad1d4 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -207,6 +207,8 @@ if (_proceed) then { _item addMagazineCargoGlobal [_itemOut,_countOut]; } forEach _selectedRemoveOutput; player reveal _item; + + player action ["Gear", _item]; }; } else { cutText ["Failed object not longer exists.", "PLAIN DOWN"]; diff --git a/SQF/dayz_code/compile/player_packTent.sqf b/SQF/dayz_code/compile/player_packTent.sqf index 25697c9d4..e832ce5d2 100644 --- a/SQF/dayz_code/compile/player_packTent.sqf +++ b/SQF/dayz_code/compile/player_packTent.sqf @@ -97,6 +97,8 @@ if(!isNull _obj and alive _obj) then { } forEach _objWpnTypes; cutText [localize "str_success_tent_pack", "PLAIN DOWN"]; + + player action ["Gear", _holder]; }; s_player_packtent = -1; diff --git a/SQF/dayz_code/compile/player_packVault.sqf b/SQF/dayz_code/compile/player_packVault.sqf index 888083e40..78c483102 100644 --- a/SQF/dayz_code/compile/player_packVault.sqf +++ b/SQF/dayz_code/compile/player_packVault.sqf @@ -106,6 +106,8 @@ if(!isNull _obj and alive _obj) then { } forEach _objWpnTypes; cutText [format["Your %1 has been packed",_text], "PLAIN DOWN"]; + + player action ["Gear", _holder]; }; s_player_packvault = -1; TradeInprogress = false; \ No newline at end of file