View difference between Paste ID: aibHHutF and USZNX9qj
SHOW: | | - or go back to the newest paste.
1
groupid = 800
2
3
a10c = 		(
4
								["groupId"] = groupid,
5
                                ["hidden"] = false,
6
                                ["units"] = 
7
                                {
8
                                    [1] = 
9
                                    {
10
                                        ["alt"] = 449,
11
                                        ["heading"] = 0,
12
                                        ["callsign"] = 
13
                                        {
14
                                            [1] = 6,
15
                                            [2] = 1,
16
                                            [3] = 1,
17
                                            ["name"] = "Ford11",
18
                                        }, -- end of ["callsign"]
19
                                        ["psi"] = 0,
20
                                        ["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)",
21
                                        ["onboard_num"] = "56",
22
                                        ["type"] = "A-10C",
23
                                        ["y"] = 895424.57142858,
24
                                        ["x"] = -317838.57142857,
25
                                        ["name"] = "A-10C" .. groupid,
26
                                        ["payload"] = 
27
                                        {
28
                                            ["pylons"] = 
29
                                            {
30
                                                [1] = 
31
                                                {
32
                                                    ["CLSID"] = "{DB434044-F5D0-4F1F-9BA9-B73027E18DD3}",
33
                                                }, -- end of [1]
34
                                                [11] = 
35
                                                {
36
                                                    ["CLSID"] = "{DB434044-F5D0-4F1F-9BA9-B73027E18DD3}",
37
                                                }, -- end of [11]
38
                                            }, -- end of ["pylons"]
39
                                            ["fuel"] = 2515,
40
                                            ["flare"] = 120,
41
                                            ["ammo_type"] = 1,
42
                                            ["chaff"] = 240,
43
                                            ["gun"] = 100,
44
                                        }, -- end of ["payload"]
45
                                        ["speed"] = 138.88888888889,
46
                                        ["unitId"] = groupid,
47
                                        ["alt_type"] = "BARO",
48
                                        ["skill"] = "Random",
49
                                    }, -- end of [1]
50
                                }, -- end of ["units"]
51
                                ["y"] = 895424.57142858,
52
                                ["x"] = -317838.57142857,
53
                                ["name"] = "A-10C" .. groupid,
54
                                ["communication"] = true,
55
                                ["start_time"] = 0,
56
                                ["modulation"] = 0,
57
                                ["frequency"] = 124,
58
			),
59
mig29s = 	(
60
								["groupId"] = groupid,
61
                                ["hidden"] = false,
62
                                ["units"] = 
63
                                {
64
                                    [1] = 
65
                                    {
66
                                        ["alt"] = 449,
67
                                        ["heading"] = 0,
68
                                        ["callsign"] = 113,
69
                                        ["psi"] = 0,
70
                                        ["livery_id"] = "1038th guards ctc, mary ab",
71
                                        ["onboard_num"] = "56",
72
                                        ["type"] = "MiG-29S",
73
                                        ["y"] = 895424.57142858,
74
                                        ["x"] = -317838.57142857,
75
                                        ["name"] = "Mig-29" .. groupid,
76
                                        ["payload"] = 
77
                                        {
78
                                            ["pylons"] = 
79
                                            {
80
                                                [1] = 
81
                                                {
82
                                                    ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
83
                                                }, -- end of [1]
84
                                                [2] = 
85
                                                {
86
                                                    ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
87
                                                }, -- end of [2]
88
                                                [7] = 
89
                                                {
90
                                                    ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
91
                                                }, -- end of [7]
92
                                                [6] = 
93
                                                {
94
                                                    ["CLSID"] = "{682A481F-0CB5-4693-A382-D00DD4A156D7}",
95
                                                }, -- end of [6]
96
                                            }, -- end of ["pylons"]
97
                                            ["fuel"] = "3500",
98
                                            ["flare"] = 30,
99
                                            ["chaff"] = 30,
100
                                            ["gun"] = 100,
101
                                        }, -- end of ["payload"]
102
                                        ["speed"] = 138.88888888889,
103
                                        ["unitId"] = 487,
104
                                        ["alt_type"] = "BARO",
105
                                        ["skill"] = "Random",
106
                                    }, -- end of [1]
107
                                }, -- end of ["units"]
108
                                ["y"] = 895424.57142858,
109
                                ["x"] = -317838.57142857,
110
                                ["name"] = "Mig-29S" .. groupid,
111
                                ["communication"] = true,
112
                                ["start_time"] = 0,
113
                                ["modulation"] = 0,
114
                                ["frequency"] = 124,
115
			),
116
f15c = 		(
117
								["groupId"] = groupid,
118
                                ["hidden"] = false,
119
                                ["units"] = 
120
                                {
121
                                    [1] = 
122
                                    {
123
                                        ["alt"] = 449,
124
                                        ["heading"] = 0,
125
                                        ["callsign"] = 
126
                                        {
127
                                            [1] = 6,
128
                                            [2] = 1,
129
                                            [3] = 1,
130
                                            ["name"] = "Ford11",
131
                                        }, -- end of ["callsign"]
132
                                        ["psi"] = 0,
133
                                        ["livery_id"] = "19th Fighter SQN (AK)",
134
                                        ["onboard_num"] = "56",
135
                                        ["type"] = "F-15C",
136
                                        ["y"] = 895424.57142858,
137
                                        ["x"] = -317838.57142857,
138
                                        ["name"] = "F-15C" .. groupid,
139
                                        ["payload"] = 
140
                                        {
141
                                            ["pylons"] = 
142
                                            {
143
                                                [1] = 
144
                                                {
145
                                                    ["CLSID"] = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}",
146
                                                }, -- end of [1]
147
                                                [11] = 
148
                                                {
149
                                                    ["CLSID"] = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}",
150
                                                }, -- end of [11]
151
                                                [9] = 
152
                                                {
153
                                                    ["CLSID"] = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}",
154
                                                }, -- end of [9]
155
                                                [3] = 
156
                                                {
157
                                                    ["CLSID"] = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}",
158
                                                }, -- end of [3]
159
                                            }, -- end of ["pylons"]
160
                                            ["fuel"] = "6103",
161
                                            ["flare"] = 60,
162
                                            ["chaff"] = 120,
163
                                            ["gun"] = 100,
164
                                        }, -- end of ["payload"]
165
                                        ["speed"] = 138.88888888889,
166
                                        ["unitId"] = 485,
167
                                        ["alt_type"] = "BARO",
168
                                        ["skill"] = "Random",
169
                                    }, -- end of [1]
170
                                }, -- end of ["units"]
171
                                ["y"] = 895424.57142858,
172
                                ["x"] = -317838.57142857,
173
                                ["name"] = "F-15C" .. groupid,
174
                                ["communication"] = true,
175
                                ["start_time"] = 0,
176
                                ["modulation"] = 0,
177
                                ["frequency"] = 124,
178
			),
179
su27 = 		(
180
								["groupId"] = groupid,
181
                                ["hidden"] = false,
182
                                ["units"] = 
183
                                {
184
                                    [1] = 
185
                                    {
186
                                        ["alt"] = 449,
187
                                        ["heading"] = 0,
188
                                        ["callsign"] = 115,
189
                                        ["psi"] = 0,
190
                                        ["livery_id"] = "Air Force Standard",
191
                                        ["onboard_num"] = "56",
192
                                        ["type"] = "Su-27",
193
                                        ["y"] = 895424.57142858,
194
                                        ["x"] = -317838.57142857,
195
                                        ["name"] = "Su-27" .. groupid,
196
                                        ["payload"] = 
197
                                        {
198
                                            ["pylons"] = 
199
                                            {
200
                                                [1] = 
201
                                                {
202
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
203
                                                }, -- end of [1]
204
                                                [2] = 
205
                                                {
206
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
207
                                                }, -- end of [2]
208
                                                [9] = 
209
                                                {
210
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
211
                                                }, -- end of [9]
212
                                                [10] = 
213
                                                {
214
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
215
                                                }, -- end of [10]
216
                                            }, -- end of ["pylons"]
217
                                            ["fuel"] = "9400",
218
                                            ["flare"] = 96,
219
                                            ["chaff"] = 96,
220
                                            ["gun"] = 100,
221
                                        }, -- end of ["payload"]
222
                                        ["speed"] = 138.88888888889,
223
                                        ["unitId"] = 490,
224
                                        ["alt_type"] = "BARO",
225
                                        ["skill"] = "Random",
226
                                    }, -- end of [1]
227
                                }, -- end of ["units"]
228
                                ["y"] = 895424.57142858,
229
                                ["x"] = -317838.57142857,
230
                                ["name"] = "Su-27" .. groupid,
231
                                ["communication"] = true,
232
                                ["start_time"] = 0,
233
                                ["modulation"] = 0,
234
                                ["frequency"] = 124,
235
			),
236
su33 = 		(
237
								["groupId"] = groupid,
238
                                ["hidden"] = false,
239
                                ["units"] = 
240
                                {
241
                                    [1] = 
242
                                    {
243
                                        ["alt"] = 449,
244
                                        ["heading"] = 0,
245
                                        ["callsign"] = 116,
246
                                        ["psi"] = 0,
247
                                        ["livery_id"] = "279th kiap 1st squad navy",
248
                                        ["onboard_num"] = "56",
249
                                        ["type"] = "Su-33",
250
                                        ["y"] = 895424.57142858,
251
                                        ["x"] = -317838.57142857,
252
                                        ["name"] = "Su-33" .. groupid,
253
                                        ["payload"] = 
254
                                        {
255
                                            ["pylons"] = 
256
                                            {
257
                                                [11] = 
258
                                                {
259
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
260
                                                }, -- end of [11]
261
                                                [2] = 
262
                                                {
263
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
264
                                                }, -- end of [2]
265
                                                [12] = 
266
                                                {
267
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
268
                                                }, -- end of [12]
269
                                                [1] = 
270
                                                {
271
                                                    ["CLSID"] = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",
272
                                                }, -- end of [1]
273
                                            }, -- end of ["pylons"]
274
                                            ["fuel"] = "9400",
275
                                            ["flare"] = 48,
276
                                            ["chaff"] = 48,
277
                                            ["gun"] = 100,
278
                                        }, -- end of ["payload"]
279
                                        ["speed"] = 138.88888888889,
280
                                        ["unitId"] = 491,
281
                                        ["alt_type"] = "BARO",
282
                                        ["skill"] = "Random",
283
                                    }, -- end of [1]
284
                                }, -- end of ["units"]
285
                                ["y"] = 895424.57142858,
286
                                ["x"] = -317838.57142857,
287
                                ["name"] = "Su-33" .. groupid,
288
                                ["communication"] = true,
289
                                ["start_time"] = 0,
290
                                ["modulation"] = 0,
291
                                ["frequency"] = 124,
292
			),
293
p51d = 		(
294
								["groupId"] = groupid,
295
                                ["hidden"] = false,
296
                                ["units"] = 
297
                                {
298
                                    [1] = 
299
                                    {
300
                                        ["alt"] = 449,
301
                                        ["heading"] = 0,
302
                                        ["callsign"] = 
303
                                        {
304
                                            [1] = 6,
305
                                            [2] = 1,
306
                                            [3] = 1,
307
                                            ["name"] = "Ford11",
308
                                        }, -- end of ["callsign"]
309
                                        ["psi"] = 0,
310
                                        ["livery_id"] = "DCS_P51D_Big_Dick",
311
                                        ["onboard_num"] = "56",
312
                                        ["type"] = "P-51D",
313
                                        ["y"] = 895424.57142858,
314
                                        ["x"] = -317838.57142857,
315
                                        ["name"] = "P-51D" .. groupid,
316
                                        ["payload"] = 
317
                                        {
318
                                            ["pylons"] = 
319
                                            {
320
                                            }, -- end of ["pylons"]
321
                                            ["fuel"] = 366,
322
                                            ["flare"] = 0,
323
                                            ["chaff"] = 0,
324
                                            ["gun"] = 100,
325
                                        }, -- end of ["payload"]
326
                                        ["speed"] = 138.88888888889,
327
                                        ["unitId"] = 484,
328
                                        ["alt_type"] = "BARO",
329
                                        ["skill"] = "Random",
330
                                    }, -- end of [1]
331
                                }, -- end of ["units"]
332
                                ["y"] = 895424.57142858,
333
                                ["x"] = -317838.57142857,
334
                                ["name"] = "P-51D" .. groupid,
335
                                ["communication"] = true,
336
                                ["start_time"] = 0,
337
                                ["modulation"] = 0,
338
                                ["frequency"] = 124,
339
			),
340
ka50 = 		(
341
								["groupId"] = groupid,
342
                                ["hidden"] = false,
343
                                ["units"] = 
344
                                {
345
                                    [1] = 
346
                                    {
347
                                        ["alt"] = 449,
348
                                        ["heading"] = 0,
349
                                        ["callsign"] = 118,
350
                                        ["psi"] = 0,
351
                                        ["livery_id"] = "Russia Demo #024",
352
                                        ["onboard_num"] = "57",
353
                                        ["type"] = "Ka-50",
354
                                        ["y"] = 895424.57142858,
355
                                        ["x"] = -317838.57142857,
356
                                        ["name"] = "Ka-50" .. groupid,
357
                                        ["payload"] = 
358
                                        {
359
                                            ["pylons"] = 
360
                                            {
361
                                            }, -- end of ["pylons"]
362
                                            ["fuel"] = "1450",
363
                                            ["flare"] = 128,
364
                                            ["chaff"] = 0,
365
                                            ["gun"] = 100,
366
                                        }, -- end of ["payload"]
367
                                        ["speed"] = 41.666666666667,
368
                                        ["unitId"] = 498,
369
                                        ["alt_type"] = "BARO",
370
                                        ["skill"] = "Random",
371
                                    }, -- end of [1]
372
                                }, -- end of ["units"]
373
                                ["y"] = 895424.57142858,
374
                                ["x"] = -317838.57142857,
375
                                ["name"] = "Ka-50" .. groupid,
376
                                ["communication"] = true,
377
                                ["start_time"] = 0,
378
                                ["frequency"] = 124,
379
			),
380
huey = 		(
381
								["groupId"] = groupid,
382
                                ["hidden"] = false,
383
                                ["units"] = 
384
                                {
385
                                    [1] = 
386
                                    {
387
                                        ["alt"] = 449,
388
                                        ["heading"] = 0,
389
                                        ["callsign"] = 
390
                                        {
391
                                            [1] = 7,
392
                                            [2] = 1,
393
                                            [3] = 1,
394
                                            ["name"] = "Chevy11",
395
                                        }, -- end of ["callsign"]
396
                                        ["psi"] = 0,
397
                                        ["livery_id"] = "Army Standard",
398
                                        ["onboard_num"] = "57",
399
                                        ["type"] = "UH-1H",
400
                                        ["y"] = 895424.57142858,
401
                                        ["x"] = -317838.57142857,
402
                                        ["name"] = "Huey" .. groupid,
403
                                        ["payload"] = 
404
                                        {
405
                                            ["pylons"] = 
406
                                            {
407
                                                [1] = 
408
                                                {
409
                                                    ["CLSID"] = "M134_L",
410
                                                }, -- end of [1]
411
                                                [4] = 
412
                                                {
413
                                                    ["CLSID"] = "M134_R",
414
                                                }, -- end of [4]
415
                                            }, -- end of ["pylons"]
416
                                            ["fuel"] = "631",
417
                                            ["flare"] = 0,
418
                                            ["chaff"] = 0,
419
                                            ["gun"] = 100,
420
                                        }, -- end of ["payload"]
421
                                        ["speed"] = 41.666666666667,
422
                                        ["unitId"] = 497,
423
                                        ["alt_type"] = "BARO",
424
                                        ["skill"] = "Random",
425
                                    }, -- end of [1]
426
                                }, -- end of ["units"]
427
                                ["y"] = 895424.57142858,
428
                                ["x"] = -317838.57142857,
429
                                ["name"] = "Huey" .. groupid,
430
                                ["communication"] = true,
431
                                ["start_time"] = 0,
432
                                ["frequency"] = 124,
433
			),
434
fw190d9 = 	(
435
								["groupId"] = groupid,
436
                                ["hidden"] = false,
437
                                ["units"] = 
438
                                {
439
                                    [1] = 
440
                                    {
441
                                        ["alt"] = 449,
442
                                        ["type"] = "FW-190D9",
443
                                        ["unitId"] = 499,
444
                                        ["psi"] = 0,
445
                                        ["alt_type"] = "BARO",
446
                                        ["skill"] = "Random",
447
                                        ["y"] = 895424.57142858,
448
                                        ["x"] = -317838.57142857,
449
                                        ["name"] = "FW-190D9" .. groupid,
450
                                        ["payload"] = 
451
                                        {
452
                                            ["pylons"] = 
453
                                            {
454
                                            }, -- end of ["pylons"]
455
                                            ["fuel"] = 277,
456
                                            ["flare"] = 0,
457
                                            ["chaff"] = 0,
458
                                            ["gun"] = 100,
459
                                        }, -- end of ["payload"]
460
                                        ["speed"] = 138.88888888889,
461
                                        ["heading"] = 0,
462
                                        ["callsign"] = 117,
463
                                        ["onboard_num"] = "56",
464
                                    }, -- end of [1]
465
                                }, -- end of ["units"]
466
                                ["y"] = 895424.57142858,
467
                                ["x"] = -317838.57142857,
468
                                ["name"] = "FW-190D9" .. groupid,
469
                                ["communication"] = true,
470
                                ["start_time"] = 213,
471
                                ["modulation"] = 0,
472
                                ["frequency"] = 124,
473
			)
474
			
475
476
477
function UnitRadioCommand(arg)
478
    if arg == f15c or p51d then
479
		coalition.addGroup(country.id.USA, Group.Category.AIRPLANE, arg)
480
		groupid = groupid + 1
481
		trigger.action.outTextForGroup(GroupId groupId, string text, Time delay)
482
		return
483
	end
484
	if arg == su25t or su27 or su33 or mig29s or fw190d9 then
485
		coalition.addGroup(country.id.RUSSIA, Group.Category.AIRPLANE, arg)
486
		groupid = groupid + 1
487
		return
488
	end
489
	if arg == ka50 then
490
		coalition.addGroup(country.id.RUSSIA, Group.Category.HELICOPTER, arg)
491
		groupid = groupid + 1
492
		return
493
	end
494
	if arg == huey then
495
		coalition.addGroup(country.id.USA, Group.Category.HELICOPTER, arg)
496
		groupid = groupid + 1
497
		return
498
	end
499
	local playerName = unit:getPlayerName()
500
	trigger.action.outTextForGroup(gid,PlayerName .. " generated " .. arg, 15)
501
end
502
503
504
function AddRadioCommand(unitName)
505
        gid = group:getID()
506
       
507
        missionCommands.addCommandForGroup(gid, "F-15C", nil, UnitRadioCommand, f15c)
508
		missionCommands.addCommandForGroup(gid, "Su-25T", nil, UnitRadioCommand, su25t)
509
		missionCommands.addCommandForGroup(gid, "Su-27", nil, UnitRadioCommand, su27)
510
		missionCommands.addCommandForGroup(gid, "Su-33", nil, UnitRadioCommand, su33)
511
		missionCommands.addCommandForGroup(gid, "Mig-29S", nil, UnitRadioCommand, mig29s)
512
		missionCommands.addCommandForGroup(gid, "A-10C", nil, UnitRadioCommand, a10c)
513
		missionCommands.addCommandForGroup(gid, "P-51D", nil, UnitRadioCommand, p51d)
514
		missionCommands.addCommandForGroup(gid, "FW-190D9", nil, UnitRadioCommand, fw190d9)
515
		missionCommands.addCommandForGroup(gid, "Huey", nil, UnitRadioCommand, huey)
516
		missionCommands.addCommandForGroup(gid, "Ka-50", nil, UnitRadioCommand, ka50)
517
		        
518
    
519
end
520
 
521
 
522
 
523
function AddRadioCommands(arg, time)
524
    AddRadioCommand("GEN - F-15C")
525
    AddRadioCommand("GEN - Su-25T")
526
    AddRadioCommand("GEN - Su-27")
527
    AddRadioCommand("GEN - Su-33")
528
	AddRadioCommand("GEN - Mig-29S")
529
    AddRadioCommand("GEN - A-10C")
530
    AddRadioCommand("GEN - P-51D")
531
    AddRadioCommand("GEN - Huey")
532
    AddRadioCommand("GEN - Ka-50")      
533
    return time + 5
534
end