1515*/
1616menuItemFormatter = {
1717 format [
18- " [" " %1" " , [0 ], " " " " , -5, [[" " expression" " , " " %2 " " ]], " " 1" " , " " %3 " " ]" ,
18+ " [" " %1" " , [%2 ], " " " " , -5, [[" " expression" " , " " %3 " " ]], " " 1" " , " " %4 " " ]" ,
1919 _this select 0 ,
2020 _this select 1 ,
21- _this select 2
21+ _this select 2 ,
22+ _this select 3
2223 ];
2324};
2425
@@ -35,34 +36,34 @@ _transportItems = [];
3536
3637// Offensive Submenu checks
3738if (support_mortar_available) then {
38- _text = [" Mortar (2 CP)" , ' _null = [8, 50, 5, 3, 2, 2, ""grenade""] execVM ""support\mapclickarty.sqf""' , 1 ] call menuItemFormatter;
39+ _text = [" Mortar (2 CP)" , 2 , ' _null = [8, 50, 5, 3, 2, 2, ""grenade""] execVM ""support\mapclickarty.sqf""' , 1 ] call menuItemFormatter;
3940 _offensiveItems pushBack _text ;
4041} else {
41- _text = [" Mortar (N/A)" , " " , 0 ] call menuItemFormatter;
42+ _text = [" Mortar (N/A)" , 2 , " " , 0 ] call menuItemFormatter;
4243 _offensiveItems pushBack _text ;
4344};
4445
4546if (support_arty_available) then {
46- _text = [" Artillery Strike (4 CP)" , ' _null = [6, 100, 8, 3, 1, 4, ""R_80mm_HE""] execVM ""support\mapclickarty.sqf""' , 1 ] call menuItemFormatter;
47+ _text = [" Artillery Strike (4 CP)" , 3 , ' _null = [6, 100, 8, 3, 1, 4, ""R_80mm_HE""] execVM ""support\mapclickarty.sqf""' , 1 ] call menuItemFormatter;
4748 _offensiveItems pushBack _text ;
4849} else {
49- _text = [" Artillery Strike (N/A)" , " " , 0 ] call menuItemFormatter;
50+ _text = [" Artillery Strike (N/A)" , 3 , " " , 0 ] call menuItemFormatter;
5051 _offensiveItems pushBack _text ;
5152};
5253
5354if (support_cluster_available) then {
54- _text = [" Cluster Bomb (6 CP)" , ' _null = [1, 250, 1, 90, 1, 6, ""grenade""] execVM ""support\cluster\mapclickcluster.sqf""' , 1 ] call menuItemFormatter;
55+ _text = [" Cluster Bomb (6 CP)" , 4 , ' _null = [1, 250, 1, 90, 1, 6, ""grenade""] execVM ""support\cluster\mapclickcluster.sqf""' , 1 ] call menuItemFormatter;
5556 _offensiveItems pushBack _text ;
5657} else {
57- _text = [" Cluster Bomb (N/A)" , " " , 0 ] call menuItemFormatter;
58+ _text = [" Cluster Bomb (N/A)" , 4 , " " , 0 ] call menuItemFormatter;
5859 _offensiveItems pushBack _text ;
5960};
6061
6162if (support_jdam_available) then {
62- _text = [" JDAM Strike (1 CP)" , ' _null = [1, 2, 1, 1, 3, 1, ""Bo_Mk82""] execVM ""support\mapclickarty.sqf""' , 1 ] call menuItemFormatter;
63+ _text = [" JDAM Strike (1 CP)" , 5 , ' _null = [1, 2, 1, 1, 3, 1, ""Bo_Mk82""] execVM ""support\mapclickarty.sqf""' , 1 ] call menuItemFormatter;
6364 _offensiveItems pushBack _text ;
6465} else {
65- _text = [" JDAM (N/A)" , " " , 0 ] call menuItemFormatter;
66+ _text = [" JDAM (N/A)" , 5 , " " , 0 ] call menuItemFormatter;
6667 _offensiveItems pushBack _text ;
6768};
6869
@@ -78,42 +79,42 @@ call _myCode;
7879
7980// Logistics Submenu Checks
8081if (support_supplydrop_available) then {
81- _text = [" Supply Drop (2 CP)" , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
82+ _text = [" Supply Drop (2 CP)" , 2 , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
8283 _logisticsItems pushBack _text ;
8384} else {
84- _text = [" Supply Drop ((N/A)" , ' ' , 0 ] call menuItemFormatter;
85+ _text = [" Supply Drop ((N/A)" , 2 , ' ' , 0 ] call menuItemFormatter;
8586 _logisticsItems pushBack _text ;
8687};
8788
8889if (support_paradrop_available) then {
89- _text = [" Airborne troops (25 CP)" , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
90+ _text = [" Airborne troops (25 CP)" , 3 , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
9091 _logisticsItems pushBack _text ;
9192} else {
92- _text = [" Airborne troops (N/A)" , ' ' , 0 ] call menuItemFormatter;
93+ _text = [" Airborne troops (N/A)" , 3 , ' ' , 0 ] call menuItemFormatter;
9394 _logisticsItems pushBack _text ;
9495};
9596
9697if (support_pFLIR_available) then {
97- _text = [" Supply Drop (2 CP)" , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
98+ _text = [" Supply Drop (2 CP)" , 4 , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
9899 _logisticsItems pushBack _text ;
99100} else {
100- _text = [" Supply Drop (N/A)" , ' ' , 0 ] call menuItemFormatter;
101+ _text = [" Supply Drop (N/A)" , 4 , ' ' , 0 ] call menuItemFormatter;
101102 _logisticsItems pushBack _text ;
102103};
103104
104105if (support_uav_recon_available) then {
105- _text = [" UAV Recon (3 CP)" , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
106+ _text = [" UAV Recon (3 CP)" , 5 , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
106107 _logisticsItems pushBack _text ;
107108} else {
108- _text = [" UAV Recon (N/A)" , ' ' , 0 ] call menuItemFormatter;
109+ _text = [" UAV Recon (N/A)" , 5 , ' ' , 0 ] call menuItemFormatter;
109110 _logisticsItems pushBack _text ;
110111};
111112
112113if (support_veh_refit_available) then {
113- _text = [" Vehicle Refit (2 CP)" , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
114+ _text = [" Vehicle Refit (2 CP)" , 6 , ' _null = [player] execVM ""support\ammobox.sqf""' , 1 ] call menuItemFormatter;
114115 _logisticsItems pushBack _text ;
115116} else {
116- _text = [" Vehicle Refit (N/A)" , ' ' , 0 ] call menuItemFormatter;
117+ _text = [" Vehicle Refit (N/A)" , 6 , ' ' , 0 ] call menuItemFormatter;
117118 _logisticsItems pushBack _text ;
118119};
119120
@@ -129,18 +130,18 @@ call _myCode;
129130
130131// Transport Submenu check
131132if (support_helotaxi_available) then {
132- _text = [" Helicopter taxi(1 CP)" , ' _nill = [getpos player,50] execVM ""support\taxi\helotaxi.sqf""' , 1 ] call menuItemFormatter;
133+ _text = [" Helicopter taxi(1 CP)" , 2 , ' _nill = [getpos player,50] execVM ""support\taxi\helotaxi.sqf""' , 1 ] call menuItemFormatter;
133134 _transportItems pushBack _text ;
134135} else {
135- _text = [" Helicopter taxi(N/A)" , ' ' , 0 ] call menuItemFormatter;
136+ _text = [" Helicopter taxi(N/A)" , 2 , ' ' , 0 ] call menuItemFormatter;
136137 _transportItems pushBack _text ;
137138};
138139
139140if (support_boattaxi_available) then {
140- _text = [" Boat taxi (1 CP)" , ' _null = [getpos player,10] execVM ""support\taxi\boattaxi.sqf""' , 1 ] call menuItemFormatter;
141+ _text = [" Boat taxi (1 CP)" , 3 , ' _null = [getpos player,10] execVM ""support\taxi\boattaxi.sqf""' , 1 ] call menuItemFormatter;
141142 _transportItems pushBack _text ;
142143} else {
143- _text = [" Boat taxi (N/A)" , ' ' , 0 ] call menuItemFormatter;
144+ _text = [" Boat taxi (N/A)" , 3 , ' ' , 0 ] call menuItemFormatter;
144145 _transportItems pushBack _text ;
145146};
146147
0 commit comments