-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrnge_missionscript-dev.lua
More file actions
895 lines (781 loc) · 52.4 KB
/
Copy pathcrnge_missionscript-dev.lua
File metadata and controls
895 lines (781 loc) · 52.4 KB
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
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
--[[
CSG8 CRNGE Mission Script
BUILD: 2.00.0033-2025-09-19 T18:45:57Z
VERSION: 2.00.0033
Authors: isotaan
]]
--Setting up debugging
env.info( "CRNGE | CRNGE Mission script version 2.00.0033 Loading..." )
env.setErrorMessageBoxEnabled(false)
crnge = {}
crnge.__index = crnge
crnge.debug = false --For verbose debugging of each section of this script
crnge.skynetdebug = false --Turns on the message debug for Skynet
crnge.a2adebug = false --Turns on message debugging for MOOSE's A2ACAP
crnge.root = nil
crnge.introMusic = nil
--Checks for JACKAL. Required for the CRNGE to work correctly.
if Jackal == nil then
trigger.action.outText("CRNGE | CRNGE Requires JACKAL. Some functionality will not be supported." , 10 , false)
end
if (crnge.debug == true) then --If debugging is enabled, output a message to the screen
trigger.action.outText("CRNGE | CRNGE Mission Script --- START" , 10 , false)
end
_SETTINGS:SetPlayerMenuOff()
---------------------------------------------------
-- CRNGE Unique Sounds
---------------------------------------------------
---
--Default sound message that plays at the end of this script
if (homefile == true) then
crnge.root = "G:\\DCS Sound Files\\Music"
crnge.introMusic = crnge.root .."999_Nominal.mp3"
else
crnge.root = "D:\\STE_Files\\Music\\"
crnge.introMusic = crnge.root .."999_Nominal.mp3"
end
function crnge.playNominal()
if lfs and io then
--Outputs a test sound file if sanitization has occured
STTS.PlayMP3(crnge.introMusic,"251,241,1","AM,AM,FM","0.3","CRNGE BETTY",2)
else
env.info("CRNGE | MissionScipting.lua is not sanitized. STTS.PlayMP3 will not function.")
end
end
function crnge.textNominal()
trigger.action.outText("REACTOR ONLINE \nSENSORS ONLINE \nWEAPONS ONLINE \n\nALL SYSTEMS NOMINAL", 10)
end
timer.scheduleFunction(crnge.playNominal, {}, timer.getTime() + 6)
timer.scheduleFunction(crnge.textNominal, {}, timer.getTime() + 10)
---------------------------------------------------
-- Group Templates
---------------------------------------------------
do
if (crnge.debug == true) then
trigger.action.outText("CRNGE | Group Templates --- START" , 10 , false)
end
Template_Red_Convoy = {
'R_CONVOY',
'R_CONVOY-1',
'R_CONVOY-2',
'R_CONVOY-3',
'R_CONVOY-4',
'R_CONVOY-5',
'R_CONVOY-6',
'R_CONVOY-7',
'R_CONVOY-8',
'R_CONVOY-9',
'R_CONVOY-10',
}
Template_Red_Helicopter = {
'R_TMP_HELO_AH1',
'R_TMP_HELO_AH64',
'R_TMP_HELO_KA50',
'R_TMP_HELO_MI24AA',
'R_TMP_HELO_MI24AG',
'R_TMP_HELO_MI28',
'R_TMP_HELO_GAZAA',
'R_TMP_HELO_UH60',
'R_TMP_HELO_UH1',
'R_TMP_HELO_OH58',
'R_TMP_HELO_MI8',
'R_TMP_HELO_MI26',
'R_TMP_HELO_KA27',
'R_TMP_HELO_CH47',
'R_TMP_HELO_KA50III'
}
Spawn_R_Escort_Template = {
'ESC_SU27',
'ESC_MIG23',
'ESC_SU30'
}
Spawn_R_WW2_Escort_Template = {
'Two-Ship Bf 109',
'Two-Ship P-47',
'Two-Ship P-51'
}
Spawn_R_CW1_Escort_Template = {
'ESC_F5',
'ESC_F1EQ',
'ESC_F4',
'ESC_F16',
'ESC_F14',
'ESC_F18'
}
Spawn_R_CW2_Escort_Template = {
'ESC_MIG21',
'ESC_MIG19',
'ESC_MIG23'
}
Spawn_R_CW3_Escort_Template = {
'ESC_SU27',
'ESC_SU30',
'ESC_JF17',
'ESC_J11'
}
Spawn_R_Bombers_Template = {
'A2G_BOMBERS_TU22'
}
Spawn_R_WW2_Bombers_Template = {
'A2G_BOMBERS_A20'
}
Spawn_R_CW1_Bombers_Template = {
'A2G_BOMBERS_B52'
}
Spawn_R_CW2_Bombers_Template = {
'A2G_BOMBERS_H6J'
}
Spawn_R_CW3_Bombers_Template = {
'A2G_BOMBERS_TU22'
}
Spawn_R_LL1_Bombers_Template = {
'A2G_BOMBERS_SU22'
}
Spawn_R_LL2_Bombers_Template = {
'A2G_BOMBERS_AJS37'
}
Spawn_R_LL3_Bombers_Template = {
'A2G_BOMBERS_F16'
}
Spawn_R_LL4_Bombers_Template = {
'A2G_BOMBERS_F15'
}
env.info( "CRNGE | Group Templates --- Completed" )
end
---------------------------------------------------
-- Air Unit Spawning
---------------------------------------------------
do
if (crnge.debug == true) then
trigger.action.outText("CRNGE | Air Unit Spawning --- START" , 10 , false)
end
REDFOR_AWACS = SPAWN:New("RED_AWACS"):InitLimit( 1, 0 )
:InitRepeatOnLanding()
:InitDelayOff()
:InitCleanUp( 300 )
:SpawnScheduled( 300, 0.25 )
REDFOR_CITY_HELO = SPAWN:New("R_CITY_AIR-1"):InitLimit( 1, 0 )
:InitRepeatOnLanding()
:InitDelayOff()
:InitCleanUp( 300 )
:SpawnScheduled( 300, 0.25 )
env.info( "CRNGE | Air Unit Spawning --- Completed" )
end
---------------------------------------------------
-- Ground Vehicle Spawning
---------------------------------------------------
do
if (crnge.debug == true) then
trigger.action.outText("CRNGE | Ground Vehicle Spawning --- START" , 10 , false)
end
--Roadside convoys w/ air escort
Moving_Convoy_01 = SPAWN:New( "R_CVY_01")
:InitLimit( 15, 0 )
:InitGroupHeading(262)
:InitRandomizeTemplate( Template_Red_Convoy )
:SpawnScheduled( 300, 0)
:OnSpawnGroup(
function( SpawnGroup )
local Spawn_Helo_01 = SPAWN:New( "R_Convoy_Helo_01" )
:InitRandomizeTemplate( Template_Red_Helicopter )
:Spawn()
local FollowDCSTask = Spawn_Helo_01:TaskEscort( SpawnGroup, POINT_VEC3:New(-50, 100, 0):GetVec3(), 5, 3000, {'Air'} )
Spawn_Helo_01:SetTask (FollowDCSTask,4)
end
)
--Roadside convoys w/ air escort
Moving_Convoy_02 = SPAWN:New( "R_CVY_02")
:InitLimit( 15, 0 )
:InitGroupHeading(224)
:InitRandomizeTemplate( Template_Red_Convoy )
:SpawnScheduled( 300, 0)
:OnSpawnGroup(
function( SpawnGroup )
local Spawn_Helo_01 = SPAWN:New( "R_Convoy_Helo_02" )
:InitRandomizeTemplate( Template_Red_Helicopter )
:Spawn()
local FollowDCSTask = Spawn_Helo_01:TaskEscort( SpawnGroup, POINT_VEC3:New(-50, 100, 0):GetVec3(), 5, 3000, {'Air'} )
Spawn_Helo_01:SetTask (FollowDCSTask,4)
end
)
Moving_Convoy_03 = SPAWN:New( "R_CVY_03")
:InitLimit( 15, 0 )
:InitGroupHeading(149)
:InitRandomizeTemplate( Template_Red_Convoy )
:SpawnScheduled( 300, 0)
--[[
AddDismounts("R_CNV-1","Rifle")
AddDismounts("R_CNV-2","Rifle")
AddDismounts("R_CNV-3","MANPADS")
AddDismounts("R_CNV-1-1","Rifle")
AddDismounts("R_CNV-1-2","Rifle")
AddDismounts("R_CNV-1-3","MANPADS")
AddDismounts("R_SCOUT_1-1","Rifle")
AddDismounts("R_SCOUT_1-2","MANPADS")
AddDismounts("R_SCOUT_2-1","Rifle")
AddDismounts("R_SCOUT_2-2","MANPADS")
AddDismounts("R_CITY_MOV_VEH-2-1","Rifle")
AddDismounts("R_CITY_MOV_VEH-2-2","Rifle")
AddDismounts("R_CITY_MOV_VEH-2-3","Rifle")
AddDismounts("R_CITY_MOV_VEH-3-1","Rifle")
AddDismounts("R_CITY_MOV_VEH-3-2","Rifle")
AddDismounts("R_CITY_MOV_VEH-3-3","MANPADS")]]
env.info( "CRNGE | Ground Vehicle Spawning --- Completed" )
end
---------------------------------------------------
-- Naval Vessel Spawning
---------------------------------------------------
do
if (crnge.debug == true) then
MESSAGE:New("CRNGE | Ship spawning --- START",10):ToAll()
end
Moving_Ship_01 = SPAWN:New( "N_NavalTargets-1")
:InitLimit( 1, 0 )
:OnSpawnGroup(
function( SpawnGroup )
SpawnGroup:PatrolRouteRandom(25)
end
)
:SpawnScheduled( 120, 0)
Moving_Ship_02 = SPAWN:New( "N_NavalTargets-2")
:InitLimit( 1, 0 )
:OnSpawnGroup(
function( SpawnGroup )
SpawnGroup:PatrolRouteRandom(20)
end
)
:SpawnScheduled( 120, 0)
Moving_Ship_03 = SPAWN:New( "N_NavalTargets-3")
:InitLimit( 1, 0 )
:SpawnScheduled( 120, 0)
:OnSpawnGroup(
function( SpawnGroup )
SpawnGroup:PatrolRouteRandom(15)
end
)
env.info( "CRNGE | Ship Spawning --- Completed" )
end
---------------------------------------------------
-- Target Ranges
---------------------------------------------------
do
if (crnge.debug == true) then
MESSAGE:New("CRNGE | Target Range --- START",10):ToAll()
end
--** Static and Moving Range CN02
cn02bombingcircles = {"Range_BombCircle"}
cn02MovingTargets = {"Range_Moving_01", "Range_Moving_02", "Range_Moving_03", "Range_Moving_04", "Range_Moving_05", "Range_Moving_06"}
RangeCN02 = RANGE:New("Range KobOld")
:AddStrafePit({"Range_StrafePit"}, 4000, 300, 180, false, 20, 428)
:AddBombingTargets(cn02bombingcircles, 40)
:AddBombingTargets(cn02MovingTargets, 25)
RangeCN02:Start()
env.info( "CRNGE | Target Ranges --- Completed" )
end
---------------------------------------------------
-- REDFOR CAP SPAWNS
---------------------------------------------------
do
if (crnge.debug == true) then
trigger.action.outText("CRNGE | REDFOR CAP Spawn -- START" , 10 , false)
end
--RUSSIAN AIR FORCE (VKS)
REDFOR_CAP_BESLAN = SPAWN:New("R_A2ACAP_MIG23_BESLAN"):InitLimit( 2, 0 )
:InitRepeatOnLanding()
:InitDelayOff()
:InitCleanUp( 300 )
:SpawnScheduled( 600, 0.2 )
REDFOR_CAP_KRAS = SPAWN:New("R_A2ACAP_MIG31_KRAS"):InitLimit( 2, 0 )
:InitRepeatOnLanding()
:InitDelayOff()
:InitCleanUp( 300 )
:SpawnScheduled( 600, 0.2 )
REDFOR_CAP_KRAS = SPAWN:New("R_A2ACAP_MIG25_MOZ"):InitLimit( 2, 0 )
:InitRepeatOnLanding()
:InitDelayOff()
:InitCleanUp( 300 )
:SpawnScheduled( 600, 0.2 )
REDFOR_CAP_MAYKOP = SPAWN:New("RA2ACAP_SU30_MAY"):InitLimit( 2, 0 )
:InitRepeatOnLanding()
:InitDelayOff()
:InitCleanUp( 300 )
:SpawnScheduled( 600, 0.2 )
--** CAP ZONES
--Current depreciated
env.info( "CRNGE | REDFOR CAP Spawn -- Completed" )
end
---------------------------------------------------
-- Menu System -- No local
---------------------------------------------------
if (crnge.debug == true) then
trigger.action.outText("CRNGE | Menu Setup --- START" , 10 , false)
end
Menu_Spawn_Master = missionCommands.addSubMenu('Unit Spawning')
Menu_AA_Drones = missionCommands.addSubMenu('Air to Air Drones',Menu_Spawn_Master)
Menu_BVR_Drones = missionCommands.addSubMenu('BVR Drone Range', Menu_AA_Drones)
Menu_BVR_Single = missionCommands.addSubMenu('COMBAT - Single Drones', Menu_BVR_Drones)
selection_MirageBVRx1 = missionCommands.addCommand('Mirage F1M (Super 530F)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single Mirage F1M BVR", qty = 1, dir = 270})
selection_MiG23BVRx1 = missionCommands.addCommand('MiG-23MLD (R-24R, R-24T)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single MiG-23MLD BVR", qty = 1, dir = 270})
selection_MiG25BVRx1 = missionCommands.addCommand('MiG-25PD (R-40R)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single MiG-25 BVR", qty = 1, dir = 270})
selection_MiG29BVRx1 = missionCommands.addCommand('MiG-29S (R-27ER, R-27ET)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single MiG-29S BVR", qty = 1, dir = 270})
selection_J15BVRx1 = missionCommands.addCommand('J-15 (PL-12)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single J-15 BVR", qty = 1, dir = 270})
selection_Su30BVRx1 = missionCommands.addCommand('Su-30 (R-77)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single Su-30 BVR", qty = 1, dir = 270})
selection_F14BVRx1 = missionCommands.addCommand('F-14B (AIM-54C Mk 60)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single F-14B BVR", qty = 1, dir = 270})
selection_F15BVRx1 = missionCommands.addCommand('F-15C (AIM-120C)', Menu_BVR_Single, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Single F-15C BVR", qty = 1, dir = 270})
Menu_BVR_Double = missionCommands.addSubMenu('COMBAT - Double Drones', Menu_BVR_Drones)
selection_MirageBVRx2 = missionCommands.addCommand('Mirage F1M (Super 530F)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship Mirage F1M BVR", qty = 2, dir = 270})
selection_MiG23BVRx2 = missionCommands.addCommand('MiG-23MLD (R-24R, R-24T)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship MiG-23 BVR", qty = 2, dir = 270})
selection_MiG25BVRx2 = missionCommands.addCommand('MiG-25PD (R-40R)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship MiG-25 BVR", qty = 2, dir = 270})
selection_MiG29BVRx2 = missionCommands.addCommand('MiG-29S (R-27ER, R-27ET)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship MiG-29S BVR", qty = 2, dir = 270})
selection_J15BVRx2 = missionCommands.addCommand('J-15 (PL-12)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship J-15 BVR", qty = 2, dir = 270})
selection_Su30BVRx2 = missionCommands.addCommand('Su-30 (R-77)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship Su-30 BVR", qty = 2, dir = 270})
selection_F14BVRx2 = missionCommands.addCommand('F-14B (AIM-54C Mk 60)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship F-14B BVR", qty = 2, dir = 270})
selection_F15BVRx2 = missionCommands.addCommand('F-15C (AIM-120C)', Menu_BVR_Double, CSG8F.crnge.spawn.spawnRedBVR, {plane = "Two-Ship F-15 BVR", qty = 2, dir = 270})
Menu_BVR_Neutral = missionCommands.addSubMenu('NON COMBAT DRONES', Menu_BVR_Drones)
selection_bvr_dr_Hawkx1 = missionCommands.addCommand('Single Hawk Target Drone', Menu_BVR_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single Hawk Target Drone", qty = 1, loc = "N_A2A_BVR_Drone_SGL", dir = 270})
selection_bvr_dr_Hawkx2 = missionCommands.addCommand('Two-Ship Hawk Target Drone', Menu_BVR_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship Hawk Target Drone", qty = 1, loc = "N_A2A_BVR_Drone_DBL", dir = 270})
selection_bvr_dr_Phantomx1 = missionCommands.addCommand('Single Phantom Target Drone', Menu_BVR_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single Phantom Target Drone", qty = 1, loc = "N_A2A_BVR_Drone_SGL", dir = 270})
selection_bvr_dr_Phantomx2 = missionCommands.addCommand('Two-Ship Phantom Target Drone', Menu_BVR_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship Phantom Target Drone", qty = 1, loc = "N_A2A_BVR_Drone_DBL", dir = 270})
selection_bvr_dr_H6x1 = missionCommands.addCommand('Single C-17 Target Drone', Menu_BVR_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single C-17 Target Drone", qty = 1, loc = "N_A2A_BVR_Drone_SGL", dir = 270})
selection_bvr_dr_H6x2 = missionCommands.addCommand('Two-Ship C-17 Target Drone', Menu_BVR_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship C-17 Target Drone", qty = 2, loc = "N_A2A_BVR_Drone_DBL", dir = 270})
Menu_ACM_Drones = missionCommands.addSubMenu('ACM Drone Range', Menu_AA_Drones)
Menu_ACM_Single = missionCommands.addSubMenu('COMBAT - Single Drones', Menu_ACM_Drones)
selection_MiG19_ACMx1 = missionCommands.addCommand('MiG-19 (K-13)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single MiG-19 ACM", qty = 1, dir = 318})
selection_MiG21_ACMx1 = missionCommands.addCommand('MiG-21bis (R-3R, R-60M)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single MiG-21 ACM", qty = 1, dir = 318})
selection_F5_ACMx1 = missionCommands.addCommand('F-5E-3 (AIM-9P5)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single F-5 ACM", qty = 1, dir = 318})
selection_F1_x1 = missionCommands.addCommand('Mirage F1M (AIM-9JULI)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single Mirage F1M ACM", qty = 1, dir = 318})
selection_Mig29_ACMx1 = missionCommands.addCommand('MiG-29A (R-73)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single MiG-29A ACM", qty = 1, dir = 318})
selection_F16_ACMx1 = missionCommands.addCommand('F-16 (AIM-9M))', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single F-16 ACM", qty = 1, dir = 318})
selection_F14_ACMx1 = missionCommands.addCommand('F-14B (AIM-9M)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single F-14B ACM", qty = 1, dir = 318})
selection_M2K_ACMx1 = missionCommands.addCommand('Mirage 2000C (Magic II)', Menu_ACM_Single, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Single Mirage 2000C ACM", qty = 1, dir = 318})
Menu_ACM_Double = missionCommands.addSubMenu('COMBAT - Double Drones', Menu_ACM_Drones)
selection_MIGg19_ACMx2 = missionCommands.addCommand('MiG-19 (K-13)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship MiG-19 ACM", qty = 2, dir = 318})
selection_MIG21_ACMx2 = missionCommands.addCommand('MiG-21bis (R-3R, R-60M)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship MiG-21 ACM", qty = 2, dir = 318})
selection_F5_ACMx2 = missionCommands.addCommand('F-5E-3 (AIM-9P5)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship F-5 ACM", qty = 2, dir = 318})
selection_F1_ACMx2 = missionCommands.addCommand('Mirage F1M (AIM-9JULI)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship Mirage F1M ACM", qty = 2, dir = 318})
selection_MIG29_ACMx2 = missionCommands.addCommand('MiG-29A (R-73)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship MiG-29A ACM", qty = 2, dir = 318})
selection_F16_ACMx2 = missionCommands.addCommand('F-16 (AIM-9M)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship F-16 ACM", qty = 2, dir = 318})
selection_F14_ACMx2 = missionCommands.addCommand('F-14B (AIM-9M)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship F-14B ACM", qty = 2, dir = 318})
selection_M2K_ACMx2 = missionCommands.addCommand('Mirage 2000C (Magic II)', Menu_ACM_Double, CSG8F.crnge.spawn.spawnspawnRedACM, {plane = "Two-Ship Mirage 2000C ACM", qty = 2, dir = 318})
Menu_ACM_Neutral = missionCommands.addSubMenu('NON COMBAT DRONES', Menu_ACM_Drones)
selection_acm_dr_Hawkx1 = missionCommands.addCommand('Single Hawk Target Drone', Menu_ACM_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single Hawk Target Drone", qty = 1, loc = "N_A2A_ACM_Drone_SGL", dir = 318})
selection_acm_dr_Hawkx2 = missionCommands.addCommand('Two-Ship Hawk Target Drone', Menu_ACM_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship Hawk Target Drone", qty = 1, loc = "N_A2A_ACM_Drone_DBL", dir = 318})
selection_acm_dr_Phantomx1 = missionCommands.addCommand('Single Phantom Target Drone', Menu_ACM_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single Phantom Target Drone", qty = 1, loc = "N_A2A_ACM_Drone_SGL", dir = 318})
selection_acm_dr_Phantomx2 = missionCommands.addCommand('Two-Ship Phantom Target Drone', Menu_ACM_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship Phantom Target Drone", qty = 1, loc = "N_A2A_ACM_Drone_DBL", dir = 318})
selection_acm_dr_H6x1 = missionCommands.addCommand('Single C-17 Target Drone', Menu_ACM_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single C-17 Target Drone", qty = 1, loc = "N_A2A_ACM_Drone_SGL", dir = 318})
selection_acm_dr_H6x2 = missionCommands.addCommand('Two-Ship C-17 Target Drone', Menu_ACM_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship C-17 Target Drone", qty = 2, loc = "N_A2A_ACM_Drone_DBL", dir = 318})
Menu_WW2_Drones = missionCommands.addSubMenu('WW2 Drones (in ACM Range)', Menu_AA_Drones)
Menu_WW2_Single = missionCommands.addSubMenu('COMBAT - Single Drones', Menu_WW2_Drones)
selection_I16x1 = missionCommands.addCommand('I-16', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single I-16", qty = 1, dir = 318})
selection_FW190Ax1 = missionCommands.addCommand('FW 190 A-8', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single FW 190 A-8", qty = 1, dir = 318})
selection_FW190Dx1 = missionCommands.addCommand('FW 190 D-9', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single FW 190 D-9", qty = 1, dir = 318})
selection_Bf109x1 = missionCommands.addCommand('Bf 109', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single Bf 109", qty = 1, dir = 318})
selection_P47x1 = missionCommands.addCommand('P-47D-40', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single P-47", qty = 1, dir = 318})
selection_P51x1 = missionCommands.addCommand('P-51D-30-NA', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single P-51", qty = 1, dir = 318})
selection_Spitx1 = missionCommands.addCommand('Spitfire LF Mk IX', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single Spitfire", qty = 1, dir = 318})
selection_Mossiex1 = missionCommands.addCommand('Mosquito FB Mk VI', Menu_WW2_Single, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Single Mosquito", qty = 1, dir = 318})
Menu_WW2_Double = missionCommands.addSubMenu('COMBAT - Double Drones', Menu_WW2_Drones)
selection_I16x2 = missionCommands.addCommand('I-16', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship I-16", qty = 2, dir = 318})
selection_FW190Ax2 = missionCommands.addCommand('FW 190 A-8', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship FW 190 A-8", qty = 2, dir = 318})
selection_FW190Dx2 = missionCommands.addCommand('FW 190 D-9', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship FW 190 D-9", qty = 2, dir = 318})
selection_Bf109x2 = missionCommands.addCommand('Bf 109', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship Bf 109", qty = 2, dir = 318})
selection_P47x2 = missionCommands.addCommand('P-47D-40', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship P-47", qty = 2, dir = 318})
selection_P51x2 = missionCommands.addCommand('P-51D-30-NA', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship P-51", qty = 2, dir = 318})
selection_Spitx2 = missionCommands.addCommand('Spitfire LF Mk IX', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship Spitfire", qty = 2, dir = 318})
selection_Mossiex2 = missionCommands.addCommand('Mosquito FB Mk VI', Menu_WW2_Double, CSG8F.crnge.spawn.spawnRedWW2, {plane = "Two-Ship Mosquito", qty = 2, dir = 318})
Menu_WW2_Neutral = missionCommands.addSubMenu('NON COMBAT DRONES', Menu_WW2_Drones)
selection_dr_I16_x1 = missionCommands.addCommand('Single I-16 Target Drone', Menu_WW2_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single I-16 Target Drone", qty = 1, loc = "N_A2A_WW2_Drone_SGL", dir = 318})
selection_dr_I16Nx2 = missionCommands.addCommand('Two-Ship I-16 Target Drone', Menu_WW2_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship I-16 Target Drone", qty = 2, loc = "N_A2A_WW2_Drone_DBL", dir = 318})
selection_dr_A20x1 = missionCommands.addCommand('Single A-20 Target Drone', Menu_WW2_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single A-20 Target Drone", qty = 1, loc = "N_A2A_WW2_Drone_SGL", dir = 318})
selection_dr_A20x2 = missionCommands.addCommand('Two-Ship A-20 Target Drone', Menu_WW2_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship A-20 Target Drone", qty = 2, loc = "N_A2A_WW2_Drone_DBL", dir = 318})
selection_dr_C130x1 = missionCommands.addCommand('Single C-130 Target Drone', Menu_WW2_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Single C-130 Target Drone", qty = 1, loc = "N_A2A_WW2_Drone_SGL", dir = 318})
selection_dr_C130x2 = missionCommands.addCommand('Two-Ship C-130 Target Drone', Menu_WW2_Neutral, CSG8F.crnge.spawn.spawnTargetDrones, {plane = "Two-Ship C-130 Target Drone", qty = 2, loc = "N_A2A_WW2_Drone_DBL", dir = 318})
rNavalDroneTopMenu = missionCommands.addSubMenu('Naval Targets',Menu_Spawn_Master)
rNavalRusShips = missionCommands.addSubMenu('Russian Ships', rNavalDroneTopMenu)
rNavalRus1 = missionCommands.addCommand('Molinya-Class Corvette', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Molniya")
rNavalRus2 = missionCommands.addCommand('Grisha-Class Corvette', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Grisha")
rNavalRus3 = missionCommands.addCommand('Krivak-Class Frigate', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Krivak")
rNavalRus4 = missionCommands.addCommand('Neustrashimy-Class Frigate', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Neustrashimy")
rNavalRus5 = missionCommands.addCommand('Slkava-Class Cruiser', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Slava")
rNavalRus6 = missionCommands.addCommand('Pyotr Velikiy-Class Cruiser', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Pyotr Velikiy")
rNavalRus7 = missionCommands.addCommand('Admiral Kuznetzov-Class Carrier', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Admiral Kuznetsov")
rNavalRus8 = missionCommands.addCommand('Improved Kilo-Class Submarine', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Improved Kilo")
rNavalRus9 = missionCommands.addCommand('Ropucha-Class Landing SHip', rNavalRusShips, CSG8F.crnge.spawn.spawnRedShip, "Ropucha")
rNavalPLANShips = missionCommands.addSubMenu('Chinese Ships', rNavalDroneTopMenu)
rNavalPLAN1 = missionCommands.addCommand('Type 054A-Class Frigate', rNavalPLANShips, CSG8F.crnge.spawn.spawnRedShip, "Type 054A")
rNavalPLAN2 = missionCommands.addCommand('Type 052B-Class Destroyer', rNavalPLANShips, CSG8F.crnge.spawn.spawnRedShip, "Type 052B")
rNavalPLAN3 = missionCommands.addCommand('Type 052C-Class Destroyer', rNavalPLANShips, CSG8F.crnge.spawn.spawnRedShip, "Type 052C")
rNavalPLAN4 = missionCommands.addCommand('Type 071-Class LHD', rNavalPLANShips, CSG8F.crnge.spawn.spawnRedShip, "Type 071")
rNavalPLAN5 = missionCommands.addCommand('Type 093-Class Submarine', rNavalPLANShips, CSG8F.crnge.spawn.spawnRedShip, "Type 093")
rNavalUSAhips = missionCommands.addSubMenu('American Ships', rNavalDroneTopMenu)
rNavalUSA1 = missionCommands.addCommand('OHP-Class Frigate', rNavalUSAhips, CSG8F.crnge.spawn.spawnRedShip, "Oliver Hazard Perry")
rNavalUSA2 = missionCommands.addCommand('Arleigh Burke-Class Destroyer', rNavalUSAhips, CSG8F.crnge.spawn.spawnRedShip, "Arleigh Burke")
rNavalUSA3 = missionCommands.addCommand('Ticonderoga-Class Destroyer', rNavalUSAhips, CSG8F.crnge.spawn.spawnRedShip, "Ticonderoga")
rNavalUSA4 = missionCommands.addCommand('Tarawa-Class LHA', rNavalUSAhips, CSG8F.crnge.spawn.spawnRedShip, "Tarawa")
-- rNavalUSA5 = missionCommands.addCommand('Forrestal-Class Carrier', rNavalUSAhips, CSG8F.crnge.spawn.spawnRedShip, "Forrestal")
-- rNavalUSA6 = missionCommands.addCommand('Nimitz-Class Carrier', rNavalUSAhips, CSG8F.crnge.spawn.spawnRedShip, "Nimitz")
rNavalUKShips = missionCommands.addSubMenu('British Ships', rNavalDroneTopMenu)
rNavalUK1 = missionCommands.addCommand('Castle-Class Patrol Vessel', rNavalUKShips, CSG8F.crnge.spawn.spawnRedShip, "Castle")
rNavalUK2 = missionCommands.addCommand('Leander-Class Frigate', rNavalUKShips, CSG8F.crnge.spawn.spawnRedShip, "Leander")
rNavalUK3 = missionCommands.addCommand('Invincible-Class Carrier', rNavalUKShips, CSG8F.crnge.spawn.spawnRedShip, "Invincible")
rNavalOtherShips = missionCommands.addSubMenu('Other Ships', rNavalDroneTopMenu)
rNavalOther1 = missionCommands.addCommand('La Combattante IIa-Class Fast Attack Craft', rNavalOtherShips, CSG8F.crnge.spawn.spawnRedShip, "La Combattante")
rNavalOther2 = missionCommands.addCommand('Condell-Class Frigate', rNavalOtherShips, CSG8F.crnge.spawn.spawnRedShip, "Condell")
Menu_SAM_Top = missionCommands.addSubMenu('SAM Targets',Menu_Spawn_Master)
Menu_TactSAMs = missionCommands.addSubMenu('SAM Range 1 (Grid FH94)', Menu_SAM_Top)
choice_Tact1_3 = missionCommands.addCommand('SA-9 "GASKIN" Battery', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "SA-8 SAM Section", staticTemplate = nil})
choice_Tact1_4 = missionCommands.addCommand('SA-8 "GECKO" Battery', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "SA-8 SAM Section", staticTemplate = nil})
choice_Tact1_5 = missionCommands.addCommand('SA-13 "GOPHER"', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "SA-13 SAM Section", staticTemplate = nil})
choice_Tact1_6 = missionCommands.addCommand('SA-19 "GRISOM"', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "SA-6 SAM Battery", staticTemplate = nil})
choice_Tact1_7 = missionCommands.addCommand('SA-3 "GOA"', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "SA-3 SAM Site", staticTemplate = CSG8_TEMPLATES.samTemplates[3].statics})
choice_Tact1_8 = missionCommands.addCommand('Roland ADS', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "Roland SAM Battery", staticTemplate = nil})
choice_Tact1_9 = missionCommands.addCommand('MIM-120 NASAMS', Menu_TactSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH94", groupTemplate = "NASAMS SAM Battery", staticTemplate = nil})
Menu_TactSAMs2 = missionCommands.addSubMenu('SAM Range 2 (Grid FH08)', Menu_SAM_Top)
choice_Tact2_1 = missionCommands.addCommand('SA-6 "GAINFUL"', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "SA-6 SAM Battery", staticTemplate = nil})
choice_Tact2_2 = missionCommands.addCommand('SA-11 "GADFLY"', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "SA-11 SAM Battery", staticTemplate = nil})
choice_Tact2_3 = missionCommands.addCommand('SA-15 "GAUNTLET"', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "SA-15 SAM Section", staticTemplate = nil})
choice_Tact2_4 = missionCommands.addCommand('SA-17 "GRIZZLY" (HDS)', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "SA-17 SAM Battery", staticTemplate = nil})
choice_Tact2_5 = missionCommands.addCommand('SA-2 "GUIDELINE"', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "SA-2 SAM Site", staticTemplate = CSG8_TEMPLATES.samTemplates[1].statics})
choice_Tact2_6 = missionCommands.addCommand('SA-2 "GUIDELINE" MAD', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "SA-2 SAM Site MAD", staticTemplate = CSG8_TEMPLATES.samTemplates[2].statics})
choice_Tact2_7 = missionCommands.addCommand('HQ-2 "GUIDELINE"', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "HQ-2 SAM Site", staticTemplate = CSG8_TEMPLATES.samTemplates[2].statics})
choice_Tact2_8 = missionCommands.addCommand('MIM-23 Hawk', Menu_TactSAMs2, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range FH08", groupTemplate = "Hawk SAM Battery", staticTemplate = nil})
Menu_StratSAMs = missionCommands.addSubMenu('SAM Range 3 (Grid NM)', Menu_SAM_Top)
rStratSAMChoice1 = missionCommands.addCommand('SA-5 "Gammon"', Menu_StratSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range NM", groupTemplate = "SA-5 SAM Site", staticTemplate = CSG8_TEMPLATES.samTemplates[1].statics})
rStratSAMChoice2 = missionCommands.addCommand('SA-10 "GRUMBLE"', Menu_StratSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range NM", groupTemplate = "SA-10 SAM Site", staticTemplate = nil})
rStratSAMChoice3 = missionCommands.addCommand('SA-12 "GLADIATOR/GIANT" (HDS)', Menu_StratSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range NM", groupTemplate = "SA-12 SAM Site", staticTemplate = nil})
rStratSAMChoice4 = missionCommands.addCommand('SA-20B "GARGOYLE" (HDS)', Menu_StratSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range NM", groupTemplate = "SA-20B SAM Site", staticTemplate = nil})
rStratSAMChoice5 = missionCommands.addCommand('MIM-104 Patriot', Menu_StratSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range NM", groupTemplate = "Patriot SAM Site", staticTemplate = nil})
rStratSAMChoice6 = missionCommands.addCommand('SAMP/T Battery (HDS)', Menu_StratSAMs, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "SAM Range NM", groupTemplate = "SAMP/T Battery", staticTemplate = nil})
Menu_MANPADS= missionCommands.addSubMenu('MANPAD Range 4 (Grid KM97)', Menu_SAM_Top)
choice_MANPAD_1 = missionCommands.addCommand('SA-7 "GRAIL" Detachment (HDS)', Menu_MANPADS, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "MANPAD Range KM57", groupTemplate = "SA-7 MANPADS Detachment", staticTemplate = nil})
choice_MANPAD_2 = missionCommands.addCommand('SA-7B "GRAIL-B" Detachment (HDS)', Menu_MANPADS, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "MANPAD Range KM57", groupTemplate = "SA-7B MANPADS Detachment", staticTemplate = nil})
choice_MANPAD_3 = missionCommands.addCommand('SA-14 "GREMLIN" Detachment (HDS)', Menu_MANPADS, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "MANPAD Range KM57", groupTemplate = "SA-14 MANPADS Detachment", staticTemplate = nil})
choice_MANPAD_4 = missionCommands.addCommand('SA-18 "GROUSE" Detachment', Menu_MANPADS, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "MANPAD Range KM57", groupTemplate = "SA-18 MANPADS Detachment", staticTemplate = nil})
choice_MANPAD_5 = missionCommands.addCommand('SA-24 "GRINCH" Detachment (HDS)', Menu_MANPADS, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "MANPAD Range KM57", groupTemplate = "SA-24 MANPADS Detachment", staticTemplate = nil})
choice_MANPAD_6 = missionCommands.addCommand('FIM-92 Stinger Detachment', Menu_MANPADS, CSG8F.crnge.spawn.spawnSAMandTemplateZone, {zone = "MANPAD Range KM57", groupTemplate = "FIM-92 Stinger Detachment", staticTemplate = nil})
Menu_Bombers_Top = missionCommands.addSubMenu('Bomber Attack',Menu_Spawn_Master)
Menu_Bombers_Era1 = missionCommands.addSubMenu('Modern - TU-22 "BACKFIRE"',Menu_Bombers_Top)
bomber_Era1_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 1,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template
})
bomber_Era1_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 2,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW3_Bombers_Template
})
bomber_Era1_Choice3 = missionCommands.addCommand('3x Bomber Group - No Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 3,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW3_Bombers_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW3_Bombers_Template
})
bomber_Era1_Choice4 = missionCommands.addCommand('1x Bomber Group - Sml Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 4,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW3_Escort_Template
})
bomber_Era1_Choice5 = missionCommands.addCommand('2x Bomber Group - Sml Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 5,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW3_Escort_Template,
bomber2Group = "R_BMB_01",
bomber2Template = Spawn_R_CW3_Bombers_Template
})
bomber_Era1_Choice6 = missionCommands.addCommand('3x Bomber Group - Lrg Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 6,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW3_Escort_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW3_Bombers_Template,
escort2Group = "R_ESC_02",
escort2Template = Spawn_R_CW3_Escort_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW3_Bombers_Template
})
bomber_Era1_Choice7 = missionCommands.addCommand('3x Bomber Group - Huge Escort', Menu_Bombers_Era1, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 7,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW3_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW3_Escort_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW3_Bombers_Template,
escort2Group = "R_ESC_02",
escort2Template = Spawn_R_CW3_Escort_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW3_Bombers_Template,
escort3Group = "R_ESC_03",
escort3Template = Spawn_R_CW3_Escort_Template
})
Menu_Bombers_Era2 = missionCommands.addSubMenu('Modern - B-25 Stratofortress"',Menu_Bombers_Top)
bomber_Era2_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 1,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template
})
bomber_Era2_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 2,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW1_Bombers_Template
})
bomber_Era2_Choice3 = missionCommands.addCommand('3x Bomber Group - No Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 3,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW1_Bombers_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW1_Bombers_Template
})
bomber_Era2_Choice4 = missionCommands.addCommand('1x Bomber Group - Sml Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 4,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW1_Escort_Template
})
bomber_Era2_Choice5 = missionCommands.addCommand('2x Bomber Group - Sml Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 5,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW1_Escort_Template,
bomber2Group = "R_BMB_01",
bomber2Template = Spawn_R_CW1_Bombers_Template
})
bomber_Era2_Choice6 = missionCommands.addCommand('3x Bomber Group - Lrg Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 6,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW1_Escort_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW1_Bombers_Template,
escort2Group = "R_ESC_02",
escort2Template = Spawn_R_CW1_Escort_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW1_Bombers_Template
})
bomber_Era2_Choice7 = missionCommands.addCommand('3x Bomber Group - Huge Escort', Menu_Bombers_Era2, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 7,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW1_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW1_Escort_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW1_Bombers_Template,
escort2Group = "R_ESC_02",
escort2Template = Spawn_R_CW1_Escort_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW1_Bombers_Template,
escort3Group = "R_ESC_03",
escort3Template = Spawn_R_CW1_Escort_Template
})
Menu_Bombers_Era3 = missionCommands.addSubMenu('Earl Cold War - TU-16 "BADGER"',Menu_Bombers_Top)
bomber_Era3_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 1,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template
})
bomber_Era3_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 2,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW2_Bombers_Template
})
bomber_Era3_Choice3 = missionCommands.addCommand('3x Bomber Group - No Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 3,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW2_Bombers_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW2_Bombers_Template
})
bomber_Era3_Choice4 = missionCommands.addCommand('1x Bomber Group - Sml Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 4,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW2_Escort_Template
})
bomber_Era3_Choice5 = missionCommands.addCommand('2x Bomber Group - Sml Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 5,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW2_Escort_Template,
bomber2Group = "R_BMB_01",
bomber2Template = Spawn_R_CW2_Bombers_Template
})
bomber_Era3_Choice6 = missionCommands.addCommand('3x Bomber Group - Lrg Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 6,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW2_Escort_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW2_Bombers_Template,
escort2Group = "R_ESC_02",
escort2Template = Spawn_R_CW2_Escort_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW2_Bombers_Template
})
bomber_Era3_Choice7 = missionCommands.addCommand('3x Bomber Group - Huge Escort', Menu_Bombers_Era3, CSG8F.crnge.spawn.spawnBomberWave,
{
val = 7,
bomber1Group = "R_BMB_01",
bomber1Template = Spawn_R_CW2_Bombers_Template,
escort1Group = "R_ESC_01",
escort1Template = Spawn_R_CW2_Escort_Template,
bomber2Group = "R_BMB_02",
bomber2Template = Spawn_R_CW2_Bombers_Template,
escort2Group = "R_ESC_02",
escort2Template = Spawn_R_CW2_Escort_Template,
bomber3Group = "R_BMB_03",
bomber3Template = Spawn_R_CW2_Bombers_Template,
escort3Group = "R_ESC_03",
escort3Template = Spawn_R_CW2_Escort_Template
})
Menu_Bombers_LL1 = missionCommands.addSubMenu('Low Level - SU-22 "FENCER"',Menu_Bombers_Top)
bomber_LL1_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_LL1, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 1,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL1_Bombers_Template
})
bomber_LL1_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_LL1, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 2,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL1_Bombers_Template,
bomber2Group = "R_BMB_LL_2",
bomber2Template = Spawn_R_LL1_Bombers_Template
})
Menu_Bombers_LL2 = missionCommands.addSubMenu('Low Level - AJS37 "Viggen"',Menu_Bombers_Top)
bomber_LL2_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_LL2, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 1,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL2_Bombers_Template
})
bomber_LL2_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_LL2, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 2,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL2_Bombers_Template,
bomber2Group = "R_BMB_LL_2",
bomber2Template = Spawn_R_LL2_Bombers_Template
})
Menu_Bombers_LL3 = missionCommands.addSubMenu('Low Level - F-16 "Viper"',Menu_Bombers_Top)
bomber_LL3_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_LL3, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 1,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL3_Bombers_Template
})
bomber_LL3_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_LL3, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 2,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL3_Bombers_Template,
bomber2Group = "R_BMB_LL_2",
bomber2Template = Spawn_R_LL3_Bombers_Template
})
Menu_Bombers_LL4 = missionCommands.addSubMenu('Low Level - F-15 "Strike Eagle"',Menu_Bombers_Top)
bomber_LL4_Choice1 = missionCommands.addCommand('1x Bomber Group - No Escort', Menu_Bombers_LL4, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 1,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL4_Bombers_Template
})
bomber_LL4_Choice2 = missionCommands.addCommand('2x Bomber Group - No Escort', Menu_Bombers_LL4, CSG8F.crnge.spawn.spawnBomberWaveLL,
{
val = 2,
bomber1Group = "R_BMB_LL_1",
bomber1Template = Spawn_R_LL4_Bombers_Template,
bomber2Group = "R_BMB_LL_2",
bomber2Template = Spawn_R_LL4_Bombers_Template
})
Menu_AI_Cleanup = missionCommands.addSubMenu('AI Cleanup',Menu_Spawn_Master)
choice_cleanup1 = missionCommands.addCommand('Cleanup Tactical SAMs FH94', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "SAM Range FH94")
choice_cleanup2 = missionCommands.addCommand('Cleanup Tactical SAMs FH08', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "SAM Range FH08")
choice_cleanup3 = missionCommands.addCommand('Cleanup Strategic SAMs', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "SAM Range NM")
choice_cleanup3 = missionCommands.addCommand('Cleanup MANPAD Range KM97', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "Range KM57")
choice_cleanup4 = missionCommands.addCommand('Cleanup ACM Drones', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "CRNGEZONE_ACM")
choice_cleanup5 = missionCommands.addCommand('Cleanup BVR Drones', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "CRNGEZONE_BVR")
choice_cleanup6 = missionCommands.addCommand('Cleanup Red Ships', Menu_AI_Cleanup, CSG8F.utils.cleanUpZone, "CRNGEZONE_SHIPS")
Menu_CSG_Alarm = missionCommands.addSubMenu('CSG Ship Options')
choice_cv_light_auto = missionCommands.addCommand('CVN Lights AUTO', Menu_CSG_Alarm, CSG8F.utils.setFlag, {flag= 90003})
choice_cv_light_nav = missionCommands.addCommand('CVN Lights NAV', Menu_CSG_Alarm, CSG8F.utils.setFlag, {flag= 90004})
choice_cv_light_rec = missionCommands.addCommand('CVN Lights RECOVERY', Menu_CSG_Alarm, CSG8F.utils.setFlag, {flag= 90002})
choice_cv_light_lau = missionCommands.addCommand('CVN Lights LAUNCH', Menu_CSG_Alarm, CSG8F.utils.setFlag, {flag= 90001})
choice_cv_light_off = missionCommands.addCommand('CVN Lights OFF', Menu_CSG_Alarm, CSG8F.utils.setFlag, {flag= 90000})
choice_CSG_red = missionCommands.addCommand('Weapons COLD', Menu_CSG_Alarm, CSG8F.utils.alarmGreen, {name = "Carrier Strike Group 8"})
choice_CSG_green = missionCommands.addCommand('Weapons HOT', Menu_CSG_Alarm, CSG8F.utils.alarmRed, {name = "Carrier Strike Group 8"})
Menu_Mission_Misc = missionCommands.addSubMenu('Mission Control')
Menu_LoadMission = missionCommands.addSubMenu('Load Mission', Menu_Mission_Misc)
Menu_ReloadMission = missionCommands.addSubMenu('Reload Current Mission', Menu_LoadMission)
choice_confirm_reload = missionCommands.addCommand('Confirm Reload This Mission', Menu_ReloadMission, CSG8F.utils.setFlag, {flag= 99999})
Menu_ChangeMissionTime = missionCommands.addSubMenu('Change Mission Day/Night', Menu_LoadMission)
choice_confirm_daynight = missionCommands.addCommand('Confirm Change Day/Night', Menu_ChangeMissionTime, CSG8F.utils.setFlag, {flag= 99998})
Menu_ChangeMissionWeather = missionCommands.addSubMenu('Change Mission Weather', Menu_LoadMission)
choice_confirm_weather = missionCommands.addCommand('Confirm Change Weather', Menu_ChangeMissionWeather, CSG8F.utils.setFlag, {flag= 99997})
Menu_ChangeMissionSeason = missionCommands.addSubMenu('Change Mission Season', Menu_LoadMission)
choice_confirm_season = missionCommands.addCommand('Confirm Change Season', Menu_ChangeMissionSeason, CSG8F.utils.setFlag, {flag= 99996})
env.info( "CRNGE | Mission Control Commands --- Completed" )
---------------------------------------------------
-- Growler Radio Menu System System
---------------------------------------------------
if (GROWLER ~= nil) then
MenuGrowlerRadio = missionCommands.addSubMenu("Growler Radio")
GrowlerStartVietnam = missionCommands.addCommand("Play Vietnam Playlist", MenuGrowlerRadio, GROWLER.RADIOINIT, {playlist = musicPlaylistVietnam, announcerlist = GRLIB.announcer})
GrowlerStartFighterPilot = missionCommands.addCommand("Play Fighter Pilot Playlist", MenuGrowlerRadio, GROWLER.RADIOINIT, {playlist = musicPlaylistFighter, announcerlist = GRLIB.announcer})
GrowlerStartBomber = missionCommands.addCommand("Play Bomber Playlist", MenuGrowlerRadio, GROWLER.RADIOINIT, {playlist = musicPlaylistBomber, announcerlist = GRLIB.announcer})
GrowlerStartGringos = missionCommands.addCommand("Play Dos Gringos Playlist", MenuGrowlerRadio, GROWLER.RADIOINIT, {playlist = musicPlaylistGringos, announcerlist = GRLIB.announcer})
GrowlerStartB7R = missionCommands.addCommand("Play Anime Playlist", MenuGrowlerRadio, GROWLER.RADIOINIT, {playlist = musicPlaylistAnime, announcerlist = GRLIB.announcer})
GrowlerRadioSkip = missionCommands.addCommand("Skip Next Song", MenuGrowlerRadio, GROWLER.GROWLERSKIP)
GrowlerRadioOff = missionCommands.addCommand("Deactivate Growler Radio", MenuGrowlerRadio, GROWLER.GROWLERSTOP)
else
env.info( "CRNGE | Growler Radio is not installed. Growler commands not added." )
end
if (crnge.debug == true) then
trigger.action.outText("CRNGE | Mission Script Loaded Successfully ***" , 10 , false)
end
env.info( "CRNGE | CRNGE Mission script loaded successfully\nBuild: 2.00.0033-2025-09-19 T18:45:57Z" )