Skip to content

Commit 1d22ab3

Browse files
committed
All-In-One Command Menu v1.2.1
1 parent d729ff7 commit 1d22ab3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+57
-7
lines changed

Leopard20-All-In-One-Command-Menu-e0b04d3/.github/ISSUE_TEMPLATE/bug_report.md renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/.github/ISSUE_TEMPLATE/bug_report.md

Leopard20-All-In-One-Command-Menu-e0b04d3/.github/ISSUE_TEMPLATE/feature_request.md renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/.github/ISSUE_TEMPLATE/feature_request.md

File renamed without changes.

Leopard20-All-In-One-Command-Menu-e0b04d3/addons/AIO_AIMENU/AIMenu.sqf renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/addons/AIO_AIMENU/AIMenu.sqf

File renamed without changes.

Leopard20-All-In-One-Command-Menu-e0b04d3/addons/AIO_AIMENU/CfgSounds.hpp renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/addons/AIO_AIMENU/CfgSounds.hpp

File renamed without changes.

Leopard20-All-In-One-Command-Menu-e0b04d3/addons/AIO_AIMENU/CustomMenus.hpp renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/addons/AIO_AIMENU/CustomMenus.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AIO_stanceSubMenu {
3333
command=-5;
3434
class Params
3535
{
36-
expression = "if (AIO_copy_my_stance) then {AIO_copy_my_stance = false} else {[] spawn AIO_copy_my_stance_fnc}";
36+
expression = "if (AIO_copy_my_stance) then {AIO_copy_my_stance = false} else {[(groupSelectedUnits player)] spawn AIO_copy_my_stance_fnc}";
3737
};
3838
speechId=0;
3939
};

Leopard20-All-In-One-Command-Menu-e0b04d3/addons/AIO_AIMENU/Functions/Assemble.sqf renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/addons/AIO_AIMENU/Functions/Assemble.sqf

File renamed without changes.

Leopard20-All-In-One-Command-Menu-e0b04d3/addons/AIO_AIMENU/Functions/CopyMyStance.sqf renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/addons/AIO_AIMENU/Functions/CopyMyStance.sqf

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ AIO_copyFullStance =
2727

2828
AIO_copy_my_stance_fnc =
2929
{
30+
params ["_units"];
3031
private ["_EHArray","_pos", "_stanceArray", "_posIndex", "_units", "_posArray","_EH", "_stanceVar"];
3132
AIO_copy_my_stance = true;
32-
_units = groupSelectedUnits player;
3333
if (count _units == 0) then {_units = (units group player) - [player]};
3434
AIO_copyStanceUnits = _units select {vehicle _x == _x};
3535
_stanceArray = ["STAND", "CROUCH", "PRONE", "UNDEFINED"];
@@ -41,6 +41,19 @@ AIO_copy_my_stance_fnc =
4141
};
4242
AIO_playerStance = "";
4343
if (AIO_copyExactStance) then {
44+
_currentComm = [];
45+
for "_i" from 0 to (count AIO_copyStanceUnits - 1) do
46+
{
47+
_currentComm set [_i, [0]];
48+
if (currentCommand (AIO_copyStanceUnits select _i) == "STOP") then {_currentComm set [_i, [1]]};
49+
if (currentCommand (AIO_copyStanceUnits select _i) == "MOVE" OR currentCommand (AIO_copyStanceUnits select _i) == "") then {
50+
_dest = expectedDestination (AIO_copyStanceUnits select _i);
51+
if (_dest select 1 != "DoNotPlanFormation" OR formLeader (AIO_copyStanceUnits select _i)!= player) then {
52+
_pos = _dest select 0;
53+
_currentComm set [_i, [2, _pos]];
54+
};
55+
};
56+
};
4457
{
4558
_team = assignedTeam _x;
4659
_playerGrp = group player;
@@ -54,7 +67,12 @@ AIO_copy_my_stance_fnc =
5467
_x assignTeam _team;
5568
_playerGrp selectLeader _leader;
5669
deleteGroup _tempGrp;
57-
} forEach (units group player - [player]);
70+
} forEach AIO_copyStanceUnits;
71+
for "_i" from 0 to (count AIO_copyStanceUnits) do
72+
{
73+
if ((_currentComm select _i) select 0 == 1) then {doStop (AIO_copyStanceUnits select _i)};
74+
if ((_currentComm select _i) select 0 == 2) then {(AIO_copyStanceUnits select _i) doMove ((_currentComm select _i) select 1)};
75+
};
5876
sleep 1;
5977
_stanceVar = player getVariable "AIO_StanceAnimChangedEH";
6078
if (isNil "_stanceVar") then {

Leopard20-All-In-One-Command-Menu-e0b04d3/addons/AIO_AIMENU/Functions/Driver.sqf renamed to Leopard20-All-In-One-Command-Menu-f9a7c97/addons/AIO_AIMENU/Functions/Driver.sqf

File renamed without changes.

0 commit comments

Comments
 (0)