Skip to content

Commit 5c5d1a5

Browse files
committed
Merge pull request #102 from fritogotlayed/DUWSR-73
Update to vehicle list
2 parents 15d7c9b + f3ff603 commit 5c5d1a5

File tree

2 files changed

+213
-47
lines changed

2 files changed

+213
-47
lines changed

source/dialog/request.sqf

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,37 @@ _index0 = lbAdd [2101, "Motorized scouts(28CP)"]; // 10
3636
_index0 = lbAdd [2101, "Mechanized squad(46CP)"]; // 11
3737
lbSetCurSel [2101, 0];
3838

39-
// VEHICLES
40-
_index1 = lbAdd [2102, "Hunter Unarmed(5CP)"]; // 0
41-
_index1 = lbAdd [2102, "Hunter HMG(18CP)"]; // 1
42-
_index1 = lbAdd [2102, "Hunter GMG(25CP)"]; // 2
43-
_index1 = lbAdd [2102, "AMV-7 Marshall(35CP)"]; // 3
44-
_index1 = lbAdd [2102, "HEMTT(2CP)"]; // 4
45-
_index1 = lbAdd [2102, "AH-9 Pawnee (40CP)"]; // 5
46-
_index1 = lbAdd [2102, "AH-99 Blackfoot(75CP)"]; // 6
47-
_index1 = lbAdd [2102, "MH-9 Hummingbird(15CP)"]; // 7
48-
_index1 = lbAdd [2102, "MH-80 Ghosthawk(22CP)"]; // 8
49-
_index1 = lbAdd [2102, "IFV-6c Panther(35CP)"]; // 9
50-
_index1 = lbAdd [2102, "ATV(1CP)"]; // 10
51-
_index1 = lbAdd [2102, "IFV-6c Cheetah(30CP)"]; // 11
52-
_index1 = lbAdd [2102, "M2A1 Slammer(55CP)"]; // 12
53-
_index1 = lbAdd [2102, "CRV-6e Bobcat(28CP)"]; // 13
54-
_index1 = lbAdd [2102, "SF SUV(2CP)"]; // 14
55-
39+
// VEHICLES
40+
_index1 = lbAdd [2102, "Small Transport Truck 1 (seats 6 - 4CP)"]; // 0
41+
_index1 = lbAdd [2102, "Small Transport Truck 2 (seats 9 - 6CP)"]; // 1
42+
_index1 = lbAdd [2102, "Hunter Unarmed(5CP)"]; // 2
43+
_index1 = lbAdd [2102, "Hunter HMG(18CP)"]; // 3
44+
_index1 = lbAdd [2102, "Hunter GMG(25CP)"]; // 4
45+
_index1 = lbAdd [2102, "AMV-7 Marshall(35CP)"]; // 5
46+
_index1 = lbAdd [2102, "HEMTT Transport Covered(8CP)"]; // 6
47+
_index1 = lbAdd [2102, "AH-9 Pawnee (25CP)"]; // 7
48+
_index1 = lbAdd [2102, "AH-99 Blackfoot(45CP)"]; // 8
49+
_index1 = lbAdd [2102, "MH-9 Hummingbird(15CP)"]; // 9
50+
_index1 = lbAdd [2102, "M-900 Civilian Copter(12CP)"]; // 10
51+
_index1 = lbAdd [2102, "Mi-290Black Taru Sling(18CP)"]; // 11
52+
_index1 = lbAdd [2102, "UH-80 Ghosthawk(22CP)"]; // 12
53+
_index1 = lbAdd [2102, "CH-67 Huron(26CP)"]; // 13
54+
_index1 = lbAdd [2102, "IFV-6c Panther(25CP)"]; // 14
55+
_index1 = lbAdd [2102, "ATV(1CP)"]; // 15
56+
_index1 = lbAdd [2102, "IFV-6c Cheetah(30CP)"]; // 16
57+
_index1 = lbAdd [2102, "M2A1 Slammer(40CP)"]; // 17
58+
_index1 = lbAdd [2102, "CRV-6e Bobcat(28CP)"]; // 18
59+
_index1 = lbAdd [2102, "SF SUV(2CP)"]; // 19
60+
_index1 = lbAdd [2102, "MLRS Artillary (75CP)"]; // 20
61+
_index1 = lbAdd [2102, "Scorcher Artillary (75CP)"]; // 21
62+
_index1 = lbAdd [2102, "Fuel Truck (10CP)"]; // 22
63+
_index1 = lbAdd [2102, "BUY ONLY AT AIRPORTS A-164 CAS(45CP)"]; // 23
64+
_index1 = lbAdd [2102, "M2A4 SlammerUP(40CP)"]; // 24
65+
_index1 = lbAdd [2102, "Stomper RCWS Autonomous(20CP)"]; // 25
66+
_index1 = lbAdd [2102, "Stomper Autonomous Recon(10CP)"]; // 26
67+
_index1 = lbAdd [2102, "UAV GreyHawk w/ATG Missiles(15CP)"]; // 27
68+
_index1 = lbAdd [2102, "UAV GreyHawk w/Bombs(15CP)"]; // 28
69+
_index1 = lbAdd [2102, "UAV Darter(5CP)"]; // 29
5670
lbSetCurSel [2102, 0];
5771

5872
// Supports !!! CHECK TO ADD AT INIT
@@ -109,4 +123,4 @@ if (support_specialized_training_available) then {
109123
};
110124
if (support_boattaxi_available) then {
111125
lbSetColor [2103, 12, [0, 1, 0, 1]];
112-
};
126+
};

source/dialog/request_vehicle.sqf

Lines changed: 181 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
11
_index = lbCurSel 2102;
22

3-
_spawnPos = getpos hq_blu1;
4-
_spawnPos = [(_spawnPos select 0)+20, _spawnPos select 1];
3+
4+
_spawnPos = getpos player;
5+
_spawnPos = [(_spawnPos select 0)+30, _spawnPos select 1];
56

67
switch (_index) do {
78
case 0: {
9+
if (commandpointsblu1 >= 4) then {
10+
hint "Vehicle ready !";
11+
commandpointsblu1 = commandpointsblu1 - 4;
12+
ctrlSetText [1000, format["%1",commandpointsblu1]];
13+
_vehic = "I_G_Offroad_01_F" createVehicle _spawnPos;
14+
} else {
15+
hint "Not enough command points";
16+
};
17+
};
18+
case 1: {
19+
if (commandpointsblu1 >= 6) then {
20+
hint "Vehicle ready !";
21+
commandpointsblu1 = commandpointsblu1 - 6;
22+
ctrlSetText [1000, format["%1",commandpointsblu1]];
23+
_vehic = "I_G_Van_01_transport_F" createVehicle _spawnPos;
24+
} else {
25+
hint "Not enough command points";
26+
};
27+
};
28+
case 2: {
829
if (commandpointsblu1 >= 5) then {
930
hint "Vehicle ready !";
1031
commandpointsblu1 = commandpointsblu1 - 5;
@@ -14,7 +35,7 @@ switch (_index) do {
1435
hint "Not enough command points";
1536
};
1637
};
17-
case 1: {
38+
case 3: {
1839
if (commandpointsblu1 >= 18) then {
1940
hint "Vehicle ready !";
2041
commandpointsblu1 = commandpointsblu1 - 18;
@@ -24,7 +45,7 @@ switch (_index) do {
2445
hint "Not enough command points";
2546
};
2647
};
27-
case 2: {
48+
case 4: {
2849
if (commandpointsblu1 >= 25) then {
2950
hint "Vehicle ready !";
3051
commandpointsblu1 = commandpointsblu1 - 25;
@@ -34,7 +55,7 @@ switch (_index) do {
3455
hint "Not enough command points";
3556
};
3657
};
37-
case 3: {
58+
case 5: {
3859
if (commandpointsblu1 >= 35) then {
3960
hint "Vehicle ready !";
4061
commandpointsblu1 = commandpointsblu1 - 35;
@@ -44,37 +65,37 @@ switch (_index) do {
4465
hint "Not enough command points";
4566
};
4667
};
47-
case 4: {
48-
if (commandpointsblu1 >= 2) then {
68+
case 6: {
69+
if (commandpointsblu1 >= 8) then {
4970
hint "Vehicle ready !";
50-
commandpointsblu1 = commandpointsblu1 - 2;
71+
commandpointsblu1 = commandpointsblu1 - 8;
5172
ctrlSetText [1000, format["%1",commandpointsblu1]];
52-
_vehic = "B_Truck_01_transport_F" createVehicle _spawnPos;
73+
_vehic = "B_Truck_01_covered_F" createVehicle _spawnPos;
5374
} else {
5475
hint "Not enough command points";
5576
};
5677
};
57-
case 5: {
58-
if (commandpointsblu1 >= 40) then {
78+
case 7: {
79+
if (commandpointsblu1 >= 25) then {
5980
hint "Vehicle ready !";
60-
commandpointsblu1 = commandpointsblu1 - 40;
81+
commandpointsblu1 = commandpointsblu1 - 25;
6182
ctrlSetText [1000, format["%1",commandpointsblu1]];
6283
_vehic = "B_Heli_Light_01_armed_F" createVehicle _spawnPos;
6384
} else {
6485
hint "Not enough command points";
6586
};
6687
};
67-
case 6: {
68-
if (commandpointsblu1 >= 75) then {
88+
case 8: {
89+
if (commandpointsblu1 >= 45) then {
6990
hint "Vehicle ready !";
70-
commandpointsblu1 = commandpointsblu1 - 75;
91+
commandpointsblu1 = commandpointsblu1 - 45;
7192
ctrlSetText [1000, format["%1",commandpointsblu1]];
7293
_vehic = "B_Heli_Attack_01_F" createVehicle _spawnPos;
7394
} else {
7495
hint "Not enough command points";
7596
};
7697
};
77-
case 7: {
98+
case 9: {
7899
if (commandpointsblu1 >= 15) then {
79100
hint "Vehicle ready !";
80101
commandpointsblu1 = commandpointsblu1 - 15;
@@ -84,7 +105,29 @@ switch (_index) do {
84105
hint "Not enough command points";
85106
};
86107
};
87-
case 8: {
108+
case 10: {
109+
if (commandpointsblu1 >= 12) then {
110+
hint "Vehicle ready !";
111+
commandpointsblu1 = commandpointsblu1 - 12;
112+
ctrlSetText [1000, format["%1",commandpointsblu1]];
113+
_vehic = "C_Heli_Light_01_civil_F" createVehicle _spawnPos;
114+
_vehic setVariable ["color",13];
115+
} else {
116+
hint "Not enough command points";
117+
};
118+
};
119+
case 11: {
120+
if (commandpointsblu1 >= 18) then {
121+
hint "Vehicle ready !";
122+
commandpointsblu1 = commandpointsblu1 - 18;
123+
ctrlSetText [1000, format["%1",commandpointsblu1]];
124+
_vehic = "O_Heli_Transport_04_F" createVehicle _spawnPos;
125+
null = [_vehic] execVM "\a3\Air_F_Heli\Heli_Transport_04\Scripts\Heli_Transport_04_basic_black.sqf";
126+
} else {
127+
hint "Not enough command points";
128+
};
129+
};
130+
case 12: {
88131
if (commandpointsblu1 >= 22) then {
89132
hint "Vehicle ready !";
90133
commandpointsblu1 = commandpointsblu1 - 22;
@@ -94,17 +137,27 @@ switch (_index) do {
94137
hint "Not enough command points";
95138
};
96139
};
97-
case 9: {
98-
if (commandpointsblu1 >= 35) then {
140+
case 13: {
141+
if (commandpointsblu1 >= 26) then {
99142
hint "Vehicle ready !";
100-
commandpointsblu1 = commandpointsblu1 - 35;
143+
commandpointsblu1 = commandpointsblu1 - 26;
144+
ctrlSetText [1000, format["%1",commandpointsblu1]];
145+
_vehic = "B_Heli_Transport_03_F" createVehicle _spawnPos;
146+
} else {
147+
hint "Not enough command points";
148+
};
149+
};
150+
case 14: {
151+
if (commandpointsblu1 >= 25) then {
152+
hint "Vehicle ready !";
153+
commandpointsblu1 = commandpointsblu1 - 25;
101154
ctrlSetText [1000, format["%1",commandpointsblu1]];
102155
_vehic = "B_APC_Tracked_01_rcws_F" createVehicle _spawnPos;
103156
} else {
104157
hint "Not enough command points";
105158
};
106159
};
107-
case 10: {
160+
case 15: {
108161
if (commandpointsblu1 >= 1) then {
109162
hint "Vehicle ready !";
110163
commandpointsblu1 = commandpointsblu1 - 1;
@@ -114,7 +167,7 @@ switch (_index) do {
114167
hint "Not enough command points";
115168
};
116169
};
117-
case 11: {
170+
case 16: {
118171
if (commandpointsblu1 >= 30) then {
119172
hint "Vehicle ready !";
120173
commandpointsblu1 = commandpointsblu1 - 30;
@@ -124,17 +177,17 @@ switch (_index) do {
124177
hint "Not enough command points";
125178
};
126179
};
127-
case 12: {
128-
if (commandpointsblu1 >= 55) then {
180+
case 17: {
181+
if (commandpointsblu1 >= 40) then {
129182
hint "Vehicle ready !";
130-
commandpointsblu1 = commandpointsblu1 - 55;
183+
commandpointsblu1 = commandpointsblu1 - 40;
131184
ctrlSetText [1000, format["%1",commandpointsblu1]];
132185
_vehic = "B_MBT_01_cannon_F" createVehicle _spawnPos;
133186
} else {
134187
hint "Not enough command points";
135188
};
136189
};
137-
case 13: {
190+
case 18: {
138191
if (commandpointsblu1 >= 28) then {
139192
hint "Vehicle ready !";
140193
commandpointsblu1 = commandpointsblu1 - 28;
@@ -144,7 +197,7 @@ switch (_index) do {
144197
hint "Not enough command points";
145198
};
146199
};
147-
case 14: {
200+
case 19: {
148201
if (commandpointsblu1 >= 2) then {
149202
hint "Vehicle ready !";
150203
commandpointsblu1 = commandpointsblu1 - 2;
@@ -166,7 +219,106 @@ switch (_index) do {
166219
hint "Not enough command points";
167220
};
168221
};
222+
case 20: {
223+
if (commandpointsblu1 >= 75) then {
224+
hint "Vehicle ready !";
225+
commandpointsblu1 = commandpointsblu1 - 75;
226+
ctrlSetText [1000, format["%1",commandpointsblu1]];
227+
_vehic = "B_MBT_01_mlrs_F" createVehicle _spawnPos;
228+
} else {
229+
hint "Not enough command points";
230+
};
231+
};
232+
case 21: {
233+
if (commandpointsblu1 >= 75) then {
234+
hint "Vehicle ready !";
235+
commandpointsblu1 = commandpointsblu1 - 75;
236+
ctrlSetText [1000, format["%1",commandpointsblu1]];
237+
_vehic = "B_MBT_01_arty_F" createVehicle _spawnPos;
238+
} else {
239+
hint "Not enough command points";
240+
};
241+
};
242+
case 22: {
243+
if (commandpointsblu1 >= 10) then {
244+
hint "Vehicle ready !";
245+
commandpointsblu1 = commandpointsblu1 - 10;
246+
ctrlSetText [1000, format["%1",commandpointsblu1]];
247+
_vehic = "B_G_Van_01_fuel_F" createVehicle _spawnPos;
248+
} else {
249+
hint "Not enough command points";
250+
};
251+
};
252+
case 23: {
253+
if (commandpointsblu1 >= 45) then {
254+
hint "Vehicle ready !";
255+
commandpointsblu1 = commandpointsblu1 - 45;
256+
ctrlSetText [1000, format["%1",commandpointsblu1]];
257+
_vehic = "B_Plane_CAS_01_F" createVehicle _spawnPos;
258+
} else {
259+
hint "Not enough command points";
260+
};
261+
};
262+
case 24: {
263+
if (commandpointsblu1 >= 40) then {
264+
hint "Vehicle ready !";
265+
commandpointsblu1 = commandpointsblu1 - 40;
266+
ctrlSetText [1000, format["%1",commandpointsblu1]];
267+
_vehic = "B_MBT_01_TUSK_F" createVehicle _spawnPos;
268+
} else {
269+
hint "Not enough command points";
270+
};
271+
};
272+
case 25: {
273+
if (commandpointsblu1 >= 20) then {
274+
hint "Vehicle ready !";
275+
commandpointsblu1 = commandpointsblu1 - 20;
276+
ctrlSetText [1000, format["%1",commandpointsblu1]];
277+
_vehic = "B_UGV_01_rcws_F" createVehicle _spawnPos; createVehicleCrew _vehic;
278+
} else {
279+
hint "Not enough command points";
280+
};
281+
};
282+
case 26: {
283+
if (commandpointsblu1 >= 10) then {
284+
hint "Vehicle ready !";
285+
commandpointsblu1 = commandpointsblu1 - 10;
286+
ctrlSetText [1000, format["%1",commandpointsblu1]];
287+
_vehic = "B_UGV_01_F" createVehicle _spawnPos; createVehicleCrew _vehic;
288+
} else {
289+
hint "Not enough command points";
290+
};
291+
};
292+
case 27: {
293+
if (commandpointsblu1 >= 15) then {
294+
hint "Vehicle ready !";
295+
commandpointsblu1 = commandpointsblu1 - 15;
296+
ctrlSetText [1000, format["%1",commandpointsblu1]];
297+
_vehic = "B_UAV_02_F" createVehicle _spawnPos; createVehicleCrew _vehic;
298+
} else {
299+
hint "Not enough command points";
300+
};
301+
};
302+
case 28: {
303+
if (commandpointsblu1 >= 15) then {
304+
hint "Vehicle ready !";
305+
commandpointsblu1 = commandpointsblu1 - 15;
306+
ctrlSetText [1000, format["%1",commandpointsblu1]];
307+
_vehic = "B_UAV_02_CAS_F" createVehicle _spawnPos; createVehicleCrew _vehic;
308+
} else {
309+
hint "Not enough command points";
310+
};
311+
};
312+
case 29: {
313+
if (commandpointsblu1 >= 5) then {
314+
hint "Vehicle ready !";
315+
commandpointsblu1 = commandpointsblu1 - 5;
316+
ctrlSetText [1000, format["%1",commandpointsblu1]];
317+
_vehic = "B_UAV_01_F" createVehicle _spawnPos; createVehicleCrew _vehic;
318+
} else {
319+
hint "Not enough command points";
320+
};
321+
};
169322
};
170-
171323
publicVariable "commandpointsblu1";
172-
//hint format["index: %1",_index];
324+
//hint format["index: %1",_index];

0 commit comments

Comments
 (0)