/
CfgActionMenu_target.hpp
574 lines (559 loc) · 23.3 KB
/
CfgActionMenu_target.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
/*
Author: Raimonds Virtoss - EpochMod.com
Contributors: Aaron Clark
Description:
Action Menu Target Config
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_config/Configs/CfgActionMenu/CfgActionMenu_target.hpp
*/
//Build mode enabled
class base_mode_enable
{
condition = "EPOCH_buildMode in [0,2] && !dyna_inVehicle && dyna_AtHome";
action = "if (EPOCH_playerEnergy > 0) then {EPOCH_stabilityTarget = objNull;EPOCH_buildMode = 1;['Build Mode: Enabled Snap alignment', 5] call Epoch_message;EPOCH_buildDirection = 0} else {['Need Energy!', 5] call Epoch_message};";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa";
tooltip = "Build Mode: Snap alignment";
};
class base_mode_enable_free
{
condition = "EPOCH_buildMode == 1 && EPOCH_playerEnergy > 0";
action = "EPOCH_stabilityTarget = objNull;EPOCH_buildMode = 2;['Build Mode: Enabled Free alignment', 5] call Epoch_message;EPOCH_buildDirection = 0;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa";
tooltip = "Build Mode: Free alignment";
};
class base_mode_disable
{
condition = "EPOCH_buildMode > 0";
action = "EPOCH_buildMode = 0;EPOCH_snapDirection = 0;['Build Mode: Disabled', 5] call Epoch_message;EPOCH_Target = objNull;EPOCH_Z_OFFSET = 0;EPOCH_X_OFFSET = 0;EPOCH_Y_OFFSET = 5;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_remove.paa";
tooltip = "Build Mode: Disable";
};
class build_upgrade
{
condition = "dyna_buildMode select 0";
//action = "dyna_cursorTarget call EPOCH_QuickUpgrade;"; //TODO: scripted dyna menu
action = "";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_upgrade.paa";
tooltipcode = "format['Upgrade %1',getText(configFile >> 'CfgVehicles' >> (typeof dyna_cursorTarget) >> 'displayName')]";
class special {}; //uses external config, hardcoded
};
class build_remove
{
condition = "dyna_buildMode select 1";
action = "dyna_cursorTarget call EPOCH_removeBUILD;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_remove.paa";
tooltipcode = "format['Remove %1',getText(configFile >> 'CfgVehicles' >> (typeof dyna_cursorTarget) >> 'displayName')]";
};
class build_move
{
condition = "dyna_buildMode select 2";
action = "dyna_cursorTarget call EPOCH_fnc_SelectTargetBuild;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_move.paa";
tooltipcode = "format['Move %1',getText(configFile >> 'CfgVehicles' >> (typeof dyna_cursorTarget) >> 'displayName')]";
};
//Vehicle interaction
class veh_gear
{
condition = "dyna_isVehicle && !dyna_locked";
action = "call Epoch_client_gearVehicle;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
tooltip = "Inspect";
};
class veh_lock
{
condition = "if (dyna_cursorTarget iskindof 'Bicycle') exitwith {false};dyna_isVehicle && !dyna_locked";
action = "[dyna_cursorTarget, true, player, Epoch_personalToken] remoteExec ['EPOCH_server_lockVehicle',2];";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
tooltip = "Lock";
};
class veh_unLock
{
condition = "dyna_isVehicle && dyna_locked";
action = "[dyna_cursorTarget, false, player, Epoch_personalToken] remoteExec ['EPOCH_server_lockVehicle',2];";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
tooltip = "Unlock";
};
//Trader interaction
class tra_talk
{
condition = "dyna_isTrader";
action = "dyna_cursorTarget call EPOCH_startInteractNPC;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\talk_blue.paa";
tooltip = "Talk";
};
class tra_shop
{
condition = "dyna_isTrader";
action = "call EPOCH_startNPCTraderMenu;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
tooltip = "Shop";
};
class player_takeCrypto
{
condition = "dyna_isDeadPlayer || (dyna_cursorTarget getVariable [""Crypto"",0]) > 0";
action = "dyna_cursorTarget call EPOCH_takeCrypto;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
tooltip = "Take Krypto";
};
class player_trade
{
condition = "dyna_isPlayer";
action = "[dyna_cursorTarget, player, Epoch_personalToken] call EPOCH_startTRADEREQ;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
tooltip = "Make Trade Request";
};
class player_trade_accept
{
condition = "dyna_isPlayer && dyna_canAcceptTrade";
action = "EPOCH_p2ptradeTarget = EPOCH_pendingP2ptradeTarget;call EPOCH_startTrade;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
tooltip = "Accept Trade Request";
};
//User action replacement
class maintain_jammer
{
condition = "dyna_cursorTargetType isEqualTo 'PlotPole_EPOCH' && (damage dyna_cursorTarget < 1)";
action = "dyna_cursorTarget call EPOCH_maintainIT;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_maintain.paa";
tooltip = "Maintain";
};
class select_jammer
{
condition = "dyna_cursorTargetType isEqualTo 'PlotPole_EPOCH' && (damage dyna_cursorTarget < 1)";
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec [""EPOCH_server_makeSP"",2];";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
tooltip = "Make Spawnpoint";
};
//lock unlock
class unlock_lockbox
{
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
tooltip = "Unlock Lockbox";
};
class lock_lockbox
{
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && !(dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
tooltip = "Lock Lockbox";
};
class unlock_safe
{
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_can_unlock.paa";
tooltip = "Unlock Safe";
};
class lock_safe
{
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && !(dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "dyna_cursorTarget call Epoch_secureStorageHandler";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\pad_cannot_lock.paa";
tooltip = "Lock Safe";
};
//pack
class pack_lockbox
{
condition = "(dyna_cursorTargetType in ['LockBox_EPOCH','LockBoxProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec ['EPOCH_server_packStorage',2];";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_pack.paa";
tooltip = "Pack Lockbox";
};
class pack_safe
{
condition = "(dyna_cursorTargetType in ['Safe_EPOCH','SafeProxy_EPOCH']) && (dyna_cursorTarget getVariable ['EPOCH_Locked',false])";
action = "[dyna_cursorTarget,player,Epoch_personalToken] remoteExec ['EPOCH_server_packStorage',2];";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_pack.paa";
tooltip = "Pack Safe";
};
class VehMaintanance
{
condition = "dyna_isVehicle && !EPOCH_Vehicle_MaintainLock";
action = "dyna_cursorTarget call EPOCH_client_VehicleMaintananceCheck;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_man.paa";
tooltip = "Vehicle Maintanance";
class Repair
{
condition = "(!((EPOCH_VehicleRepairs select 0) isequalto []) || !((EPOCH_VehicleRepairs select 2) isequalto [])) && EPOCH_AdvancedVehicleRepair_Enabled";
action = "";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair Vehicle";
class RepairHull
{
condition = "'hithull' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hithull'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa";
tooltip = "Repair Hull";
};
class ReplaceHull
{
condition = "'hithull' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hithull'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa";
tooltip = "Repair Hull";
};
class RepairEngine
{
condition = "'hitengine' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Engine.paa";
tooltip = "Repair Engine";
};
class ReplaceEngine
{
condition = "'hitengine' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Engine.paa";
tooltip = "Replace Engine";
};
class ReplaceGlass
{
condition = "'glass' in (EPOCH_VehicleRepairs select 0) || 'glass' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','glass'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Glass.paa";
tooltip = "Replace Glass";
};
class RepairBody
{
condition = "'hitbody' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitbody'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_HullBody.paa";
tooltip = "Repair Body";
};
class ReplaceBody
{
condition = "'hitbody' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitbody'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_HullBody.paa";
tooltip = "Repair Body";
};
class RepairFuel
{
condition = "'hitfuel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitfuel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa";
tooltip = "Repair Fuel Hose";
};
class RepairMainRotor
{
condition = "'hithrotor' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hithrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_MainRotor.paa";
tooltip = "Repair Main Rotor";
};
class ReplaceFuel
{
condition = "'hitfuel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitfuel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Fuel.paa";
tooltip = "Replace Fuel Hose";
};
class ReplaceMainRotor
{
condition = "'hithrotor' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hithrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_MainRotor.paa";
tooltip = "Replace Main Rotor";
};
class RepairTailRotor
{
condition = "'hitvrotor' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitvrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_TailRotor.paa";
tooltip = "Repair Tail Rotor";
};
class ReplaceTailRotor
{
condition = "'hitvrotor' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitvrotor'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_TailRotor.paa";
tooltip = "Replace Tail Rotor";
};
class ReplaceWinch
{
condition = "'hitwinch' in (EPOCH_VehicleRepairs select 0) || 'hitwinch' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitwinch'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_SLG.paa";
tooltip = "Replace Winch";
};
class RepairTire1
{
condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 1st Left Wheel";
};
class RepairTire2
{
condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 2nd Left Wheel";
};
class RepairTire3
{
condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 3rd Left Wheel";
};
class RepairTire4
{
condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 4th Left Wheel";
};
class RepairTire5
{
condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 1st Right Wheel";
};
class RepairTire6
{
condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 2nd Right Wheel";
};
class RepairTire7
{
condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 3rd Right Wheel";
};
class RepairTire8
{
condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 0)";
action = "[dyna_cursorTarget,'repair','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Wheel.paa";
tooltip = "Repair 4th Right Wheel";
};
class ReplaceTire1
{
condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 1st Left Wheel";
};
class ReplaceTire2
{
condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 2nd Left Wheel";
};
class ReplaceTire3
{
condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 3rd Left Wheel";
};
class ReplaceTire4
{
condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 4th Left Wheel";
};
class ReplaceTire5
{
condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 1st Right Wheel";
};
class ReplaceTire6
{
condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 2nd Right Wheel";
};
class ReplaceTire7
{
condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 3rd Right Wheel";
};
class ReplaceTire8
{
condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Replace_Wheel.paa";
tooltip = "Replace 4th Right Wheel";
};
class RepairAvionics
{
condition = "'hitavionics' in (EPOCH_VehicleRepairs select 0) || 'hitavionics' in (EPOCH_VehicleRepairs select 2)";
action = "[dyna_cursorTarget,'replace','hitavionics'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_Avionics.paa";
tooltip = "Repair Avionics";
};
};
class Remove
{
condition = "!((EPOCH_VehicleRepairs select 1) isequalto []) && EPOCH_AdvancedVehicleRepair_Enabled";
action = "";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove Parts";
class RemoveEngine
{
condition = "'hitengine' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitengine'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Engine.paa";
tooltip = "Remove Engine";
};
class RemoveTire1
{
condition = "'hitlfwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitlfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 1st Left Wheel";
};
class RemoveTire2
{
condition = "'hitlf2wheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitlf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 2nd Left Wheel";
};
class RemoveTire3
{
condition = "'hitlmwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitlmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 3rd Left Wheel";
};
class RemoveTire4
{
condition = "'hitlbwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitlbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 4th Left Wheel";
};
class RemoveTire5
{
condition = "'hitrfwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitrfwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 1st Right Wheel";
};
class RemoveTire6
{
condition = "'hitrf2wheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitrf2wheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 2nd Right Wheel";
};
class RemoveTire7
{
condition = "'hitrmwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitrmwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 3rd Right Wheel";
};
class RemoveTire8
{
condition = "'hitrbwheel' in (EPOCH_VehicleRepairs select 1)";
action = "[dyna_cursorTarget,'remove','hitrbwheel'] spawn EPOCH_client_VehicleMaintananceDo";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Remove_Wheel.paa";
tooltip = "Remove 4th Right Wheel";
};
};
class UpgradeVehicle
{
condition = "dyna_isVehicle";
action = "dyna_cursorTarget call EPOCH_client_upgradeVehicleCheck;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\build_upgrade.paa";
tooltip = "Upgrade Vehicle";
class Upgrade0
{
condition = "(count Ignatz_VehicleUpgradeArray) > 0";
action = "(Ignatz_VehicleUpgradeArray select 0) call EPOCH_client_upgradeVehicle";
iconcode = "gettext (configfile >> 'CfgVehicles' >> (Ignatz_VehicleUpgradeArray select 0 select 1) >> 'picture')";
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 0 select 2),(Ignatz_VehicleUpgradeArray select 0 select 3)]";
};
class Upgrade1
{
condition = "(count Ignatz_VehicleUpgradeArray) > 1";
action = "(Ignatz_VehicleUpgradeArray select 1) call EPOCH_client_upgradeVehicle";
iconcode = "gettext (configfile >> 'CfgVehicles' >> (Ignatz_VehicleUpgradeArray select 1 select 1) >> 'picture')";
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 1 select 2),(Ignatz_VehicleUpgradeArray select 1 select 3)]";
};
class Upgrade2
{
condition = "(count Ignatz_VehicleUpgradeArray) > 2";
action = "(Ignatz_VehicleUpgradeArray select 2) call EPOCH_client_upgradeVehicle";
iconcode = "gettext (configfile >> 'CfgVehicles' >> (Ignatz_VehicleUpgradeArray select 2 select 1) >> 'picture')";
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 2 select 2),(Ignatz_VehicleUpgradeArray select 2 select 3)]";
};
class Upgrade3
{
condition = "(count Ignatz_VehicleUpgradeArray) > 3";
action = "(Ignatz_VehicleUpgradeArray select 3) call EPOCH_client_upgradeVehicle";
iconcode = "gettext (configfile >> 'CfgVehicles' >> (Ignatz_VehicleUpgradeArray select 3 select 1) >> 'picture')";
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 3 select 2),(Ignatz_VehicleUpgradeArray select 3 select 3)]";
};
class Upgrade4
{
condition = "(count Ignatz_VehicleUpgradeArray) > 4";
action = "(Ignatz_VehicleUpgradeArray select 4) call EPOCH_client_upgradeVehicle";
iconcode = "gettext (configfile >> 'CfgVehicles' >> (Ignatz_VehicleUpgradeArray select 4 select 1) >> 'picture')";
tooltipcode = "format ['Upgrade to %1 - %2',(Ignatz_VehicleUpgradeArray select 4 select 2),(Ignatz_VehicleUpgradeArray select 4 select 3)]";
};
};
};
//Groups
class Groups
{
condition = "dyna_isPlayer";
action = "";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_menu_ca.paa";
tooltip = "Groups Menu";
class Group
{
condition = "dyna_isPlayer";
action = "call EPOCH_Inventory_Group;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\perm_group_menu_ca.paa";
tooltip = "Perm Group Menu";
};
class TempGroup
{
condition = "dyna_isPlayer";
action = "call EPOCH_Inventory_TempGroup;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\temp_group_menu_ca.paa";
tooltip = "Temp Group Menu";
};
};
class player_group_requests
{
condition = "dyna_isPlayer && !(Epoch_invited_GroupUIDs isEqualTo[])";
action = "call EPOCH_Inventory_iGroup;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa";
tooltip = "Group Requests";
};
class player_tempGroup_requests
{
condition = "dyna_isPlayer && !(Epoch_invited_tempGroupUIDs isEqualTo[])";
action = "call EPOCH_Inventory_itempGroup;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa";
tooltip = "Temp Group Requests";
};
// Working defibrillator
class player_revive
{
condition = "dyna_isDeadPlayer && ('ItemDefibrillator' in dyna_magazinesPlayer)";
action = "[dyna_cursorTarget, player, Epoch_personalToken] remoteExec ['EPOCH_server_revivePlayer',2];";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa";
tooltip = "Revive Player";
};