-
Notifications
You must be signed in to change notification settings - Fork 22
/
F16Demo.lua
652 lines (628 loc) · 24.5 KB
/
F16Demo.lua
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
--mounting 3d model paths and texture paths
mount_vfs_model_path (current_mod_path.."/Shapes")
mount_vfs_liveries_path (current_mod_path.."/Liveries")
mount_vfs_texture_path (current_mod_path.."/Textures/F-16Demo")
mount_vfs_texture_path (current_mod_path.."/Textures/Avionics")
mount_vfs_texture_path (current_mod_path.."/Cockpit2/Textures")
F16Demo = {
Name = 'F-16Demo',
DisplayName = _('F-16Demo'),
HumanCockpit = true,
HumanCockpitPath = current_mod_path..'/Cockpit2/',
Picture = "F-16Demo.png",
Rate = 40, -- RewardPoint in Multiplayer
Shape = "F-16Demo",
--Shape = "f-16",
shape_table_data =
{
{
file = 'F-16DCS';
--file = 'f-16';
life = 18; -- lifebar
vis = 3; -- visibility gain.
desrt = 'f-16-oblomok'; -- Name of destroyed object file name
fire = { 300, 2}; -- Fire on the ground after destoyed: 300sec 2m
username = 'F-16Demo';
index = WSTYPE_PLACEHOLDER;
},
{
name = "f-16-oblomok";
file = "f-16-oblomok";
fire = { 240, 2};
},
},
mapclasskey = "P0091000025",
attribute = {wsType_Air, wsType_Airplane, wsType_Fighter, WSTYPE_PLACEHOLDER ,"Battleplanes",},
Categories = {"{78EFB7A2-FD52-4b57-A6A6-3BF0E1D6555F}", "Interceptor",},
-------------------------
M_empty = 8853, -- kg
M_nominal = 11000, -- kg
M_max = 19187, -- kg
M_fuel_max = 3104, -- kg --2225
H_max = 15240, -- m
average_fuel_consumption = 0.245, -- this is highly relative, but good estimates are 36-40l/min = 28-31kg/min = 0.47-0.52kg/s -- 45l/min = 35kg/min = 0.583kg/s
CAS_min = 60, -- if this is not OVERAL FLIGHT TIME, but jus LOITER TIME, than it sholud be 10-15 minutes.....CAS capability in minute (for AI)
V_opt = 220,-- Cruise speed (for AI)
V_take_off = 65, -- Take off speed in m/s (for AI)
V_land = 68, -- Land speed in m/s (for AI)
V_max_sea_level = 408, -- Max speed at sea level in m/s (for AI)
V_max_h = 588, -- Max speed at max altitude in m/s (for AI)
Vy_max = 250, -- Max climb speed in m/s (for AI)
Mach_max = 2.35, -- Max speed in Mach (for AI)
Ny_min = -3, -- Min G (for AI)
Ny_max = 8.0, -- Max G (for AI)
Ny_max_e = 8.0, -- Max G (for AI)
AOA_take_off = 0.16, -- AoA in take off (for AI)
bank_angle_max = 60, -- Max bank angle (for AI)
has_afteburner = true, -- AFB yes/no
has_speedbrake = true, -- Speedbrake yes/no
nose_gear_pos = {3.146, -1.563, 0}, --F-16 New Model {2.954, -2.0, 0}, -- {2.954, -1.881, 0},
main_gear_pos = {-0.846, -1.579, 1.187}, --F-16 New Model {-1.041, -2.0, 1.207}, -- {-1.041, -1.869, 1.207},
tand_gear_max = 0.577,
tanker_type = 1, -- Tanker type if the plane is airrefuel capable
wing_area = 28, -- wing area in m2
wing_span = 9.45, -- wing spain in m
wing_type = 0,
thrust_sum_max = 8054, -- thrust in kg (44kN)
thrust_sum_ab = 13160, -- thrust inkg (71kN)
length = 14.52, -- full lenght in m
height = 5.02, -- height in m
flaps_maneuver = 0.1, -- Max flaps in take-off and maneuver (0.5 = 1st stage; 1.0 = 2nd stage) (for AI)
range = 1500, -- Max range in km (for AI)
RCS = 4, -- Radar Cross Section m2
IR_emission_coeff = 0.6, -- Normal engine -- IR_emission_coeff = 1 is Su-27 without afterburner. It is reference.
IR_emission_coeff_ab = 1.2, -- With afterburner
wing_tip_pos = {-2.704, 0.307, 4.649},--{1.004, 0.707, 1.249},
nose_gear_wheel_diameter = 0.443,
main_gear_wheel_diameter = 0.653,
brakeshute_name = 0, -- Landing - brake chute visual shape after separation
is_tanker = false, -- Tanker yes/no
air_refuel_receptacle_pos = {-0.051, 0.911, 0},
engines_count = 1, -- Engines count
engines_nozzles =
{
[1] =
{
pos = {-6.003, 0.261, 0}, --F-16 New Model Values {-5.5, 0.0, 0},
elevation = 0,
diameter = 1.12,
exhaust_length_ab = 3,
exhaust_length_ab_K = 0.76,
}, -- end of [1]
}, -- end of engines_nozzles
crew_size = 1,
crew_members =
{
[1] =
{
ejection_seat_name = 17,
drop_canopy_name = 23,
pos = {4, 1, 0}, --F-16 New Model {4, 0.6, 0},
canopy_pos = {3.9, 1.4, 0}, --F-16 New Model {3.9, 1.0, 0},
}, -- end of [1]
}, -- end of crew_members
fires_pos =
{
[1] = {-0.707, 0.553, -0.213},
[2] = {-0.037, 0.285, 1.391},
[3] = {-0.037, 0.285, -1.391},
[4] = {-0.82, 0.265, 2.774},
[5] = {-0.82, 0.265, -2.774},
[6] = {-0.82, 0.255, 4.274},
[7] = {-0.82, 0.255, -4.274},
[8] = {-5.003, 0.261, 0},
[9] = {-5.003, 0.261, 0},
[10] = {-0.707, 0.453, 1.036},
[11] = {-0.707, 0.453, -1.036},
}, -- end of fires_pos
-- Countermeasures
SingleChargeTotal = 180,
CMDS_Incrementation = 30,
ChaffDefault = 90, -- RR-170
ChaffChargeSize = 1,
FlareDefault = 45, -- MJU-7
FlareChargeSize = 2,
CMDS_Edit = true,
chaff_flare_dispenser = {
[1] =
{
dir = {0, -1, -1},
pos = {-3, -1, 2},
}, -- end of [1]
[2] =
{
dir = {0, -1, 1},
pos = {-3, -1, -2},
}, -- end of [2]
}, -- end of chaff_flare_dispenser
--sensors
detection_range_max = 160,
radar_can_see_ground = true, -- this should be examined (what is this exactly?)
CanopyGeometry = {
azimuth = {-160.0, 160.0},
elevation = {-60.0, 80.0}
},
Sensors = {
RADAR = "AN/APG-68",
RWR = "Abstract RWR"
},
HumanRadio = {
frequency = 127.5, -- Radio Freq
editable = true,
minFrequency = 100.000,
maxFrequency = 156.000,
modulation = MODULATION_AM
},
Guns = {gun_mount("M_61", { count = 511 }, {muzzle_pos = {3.183, 0.404,-0.79}}) --F-16 New Model{muzzle_pos = {3.0, 0.2,-0.79}})
},
Pylons = {
pylon(1, 0, -1.265000, 0.346000, -4.813000,
{
FiZ = -2,
},
{
{ CLSID = "{C8E06185-7CD6-4C90-959F-044679E90751}" },
{ CLSID = "{40EF17B7-F508-45de-8566-6FFECC0C1AB8}" },
{ CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}" },
{ CLSID = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}" },
}
),
pylon(2, 0, -0.983000, -0.110000, -3.948000,
{
FiZ = -2,
},
{
{ CLSID = "{C8E06185-7CD6-4C90-959F-044679E90751}" },
{ CLSID = "{40EF17B7-F508-45de-8566-6FFECC0C1AB8}" },
{ CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}" },
{ CLSID = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}" },
}
),
pylon(3, 0, -1.115000, -0.161000, -3.050000,
{
FiZ = -2,
},
{
{ CLSID = "{C8E06185-7CD6-4C90-959F-044679E90751}" },
{ CLSID = "{40EF17B7-F508-45de-8566-6FFECC0C1AB8}" },
{ CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}" },
{ CLSID = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}" },
{ CLSID = "{9BCC2A2B-5708-4860-B1F1-053A18442067}" },
{ CLSID = "{69DC8AE7-8F77-427B-B8AA-B19D3F478B66}" },
{ CLSID = "{444BA8AE-82A7-4345-842E-76154EFCCA46}" },
{ CLSID = "{F16A4DE0-116C-4A71-97F0-2CF85B0313EC}" },
{ CLSID = "{B06DD79A-F21E-4EB9-BD9D-AB3844618C93}" },
{ CLSID = "{907D835F-E650-4154-BAFD-C656882555C0}" },
{ CLSID = "{DAC53A2F-79CA-42FF-A77A-F5649B601308}" },
{ CLSID = "{71AAB9B8-81C1-4925-BE50-1EF8E9899271}" },
{ CLSID = "{51F9AAE5-964F-4D21-83FB-502E3BFE5F8A}" },
{ CLSID = "{DB769D48-67D7-42ED-A2BE-108D566C8B1E}" },
{ CLSID = "{ADD3FAE1-EBF6-4EF9-8EFC-B36B5DDF1E6B}" },
{ CLSID = "{0B9ABA77-93B8-45FC-9C63-82AFB2CB50A4}" },
{ CLSID = "{AB8B8299-F1CC-4359-89B5-2172E0CF4A5A}" },
{ CLSID = "{BCE4E030-38E9-423E-98ED-24BE3DA87C32}" },
{ CLSID = "{60CC734F-0AFA-4E2E-82B8-93B941AB11CF}" },
}
),
pylon(4, 0, -0.118000, -0.175000, -1.813000,
{
FiZ = -2.5,
},
{
{ CLSID = "{F376DBEE-4CAE-41BA-ADD9-B2910AC95DEC}" },
{ CLSID = "{9BCC2A2B-5708-4860-B1F1-053A18442067}" },
{ CLSID = "{B06DD79A-F21E-4EB9-BD9D-AB3844618C93}" },
{ CLSID = "{51F9AAE5-964F-4D21-83FB-502E3BFE5F8A}" },
{ CLSID = "{DB769D48-67D7-42ED-A2BE-108D566C8B1E}" },
{ CLSID = "{ADD3FAE1-EBF6-4EF9-8EFC-B36B5DDF1E6B}" },
{ CLSID = "{B83CB620-5BBE-4BEA-910C-EB605A327EF9}" },
{ CLSID = "{AB8B8299-F1CC-4359-89B5-2172E0CF4A5A}" },
{ CLSID = "{BCE4E030-38E9-423E-98ED-24BE3DA87C32}" },
{ CLSID = "{60CC734F-0AFA-4E2E-82B8-93B941AB11CF}" },
}
),
pylon(5, 0, 0.000000, 0.100000, 0.000000,
{
},
{
{ CLSID = "{CAAC1CFD-6745-416B-AFA4-CB57414856D0}" },
}
),
pylon(6, 0, 0.231000, -0.829000, 0.000000,
{
FiZ = -1.5,
},
{
{ CLSID = "{6D21ECEA-F85B-4E8D-9D51-31DC9B8AA4EF}" },
{ CLSID = "{8A0BE8AE-58D4-4572-9263-3144C0D06364}" },
}
),
pylon(7, 0, -0.118000, -0.175000, 1.813000,
{
FiZ = -2.5,
},
{
{ CLSID = "{F376DBEE-4CAE-41BA-ADD9-B2910AC95DEC}" },
{ CLSID = "{9BCC2A2B-5708-4860-B1F1-053A18442067}" },
{ CLSID = "{B06DD79A-F21E-4EB9-BD9D-AB3844618C93}" },
{ CLSID = "{51F9AAE5-964F-4D21-83FB-502E3BFE5F8A}" },
{ CLSID = "{DB769D48-67D7-42ED-A2BE-108D566C8B1E}" },
{ CLSID = "{ADD3FAE1-EBF6-4EF9-8EFC-B36B5DDF1E6B}" },
{ CLSID = "{B83CB620-5BBE-4BEA-910C-EB605A327EF9}" },
{ CLSID = "{AB8B8299-F1CC-4359-89B5-2172E0CF4A5A}" },
{ CLSID = "{BCE4E030-38E9-423E-98ED-24BE3DA87C32}" },
{ CLSID = "{60CC734F-0AFA-4E2E-82B8-93B941AB11CF}" },
}
),
pylon(8, 0, -1.115000, -0.161000, 3.050000,
{
FiZ = -2,
},
{
{ CLSID = "{C8E06185-7CD6-4C90-959F-044679E90751}" },
{ CLSID = "{40EF17B7-F508-45de-8566-6FFECC0C1AB8}" },
{ CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}" },
{ CLSID = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}" },
{ CLSID = "{9BCC2A2B-5708-4860-B1F1-053A18442067}" },
{ CLSID = "{69DC8AE7-8F77-427B-B8AA-B19D3F478B66}" },
{ CLSID = "{444BA8AE-82A7-4345-842E-76154EFCCA46}" },
{ CLSID = "{F16A4DE0-116C-4A71-97F0-2CF85B0313EC}" },
{ CLSID = "{B06DD79A-F21E-4EB9-BD9D-AB3844618C93}" },
{ CLSID = "{907D835F-E650-4154-BAFD-C656882555C0}" },
{ CLSID = "{DAC53A2F-79CA-42FF-A77A-F5649B601308}" },
{ CLSID = "{71AAB9B8-81C1-4925-BE50-1EF8E9899271}" },
{ CLSID = "{51F9AAE5-964F-4D21-83FB-502E3BFE5F8A}" },
{ CLSID = "{DB769D48-67D7-42ED-A2BE-108D566C8B1E}" },
{ CLSID = "{ADD3FAE1-EBF6-4EF9-8EFC-B36B5DDF1E6B}" },
{ CLSID = "{0B9ABA77-93B8-45FC-9C63-82AFB2CB50A4}" },
{ CLSID = "{AB8B8299-F1CC-4359-89B5-2172E0CF4A5A}" },
{ CLSID = "{BCE4E030-38E9-423E-98ED-24BE3DA87C32}" },
{ CLSID = "{60CC734F-0AFA-4E2E-82B8-93B941AB11CF}" },
}
),
pylon(9, 0, -0.983000, -0.110000, 3.948000,
{
FiZ = -2,
},
{
{ CLSID = "{C8E06185-7CD6-4C90-959F-044679E90751}" },
{ CLSID = "{40EF17B7-F508-45de-8566-6FFECC0C1AB8}" },
{ CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}" },
{ CLSID = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}" },
}
),
pylon(10, 0, -1.265000, 0.346000, 4.813000,
{
FiZ = -2,
},
{
{ CLSID = "{C8E06185-7CD6-4C90-959F-044679E90751}" },
{ CLSID = "{40EF17B7-F508-45de-8566-6FFECC0C1AB8}" },
{ CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}" },
{ CLSID = "{9BFD8C90-F7AE-4e90-833B-BFD0CED0E536}" },
}
),
},
Tasks = {
aircraft_task(GroundAttack),
aircraft_task(RunwayAttack),
aircraft_task(PinpointStrike),
aircraft_task(CAS),
aircraft_task(AFAC),
aircraft_task(CAP),
aircraft_task(Escort),
aircraft_task(FighterSweep),
aircraft_task(Intercept),
},
DefaultTask = aircraft_task(CAP),
SFM_Data = {
aerodynamics = -- Cx = Cx_0 + Cy^2*B2 +Cy^4*B4
{
Cy0 = 0, -- zero AoA lift coefficient
Mzalfa = 4.355, -- coefficients for pitch agility
Mzalfadt = 0.8, -- coefficients for pitch agility
kjx = 2.3,
kjz = 0.0011,
Czbe = -0.014, -- coefficient, along Z axis (perpendicular), affects yaw, negative value means force orientation in FC coordinate system
cx_gear = 0.3, -- coefficient, drag, gear
cx_flap = 0.08, -- coefficient, drag, full flaps
cy_flap = 0.4, -- coefficient, normal force, lift, flaps
cx_brk = 0.08, -- coefficient, drag, breaks
table_data =
{ -- M Cx0 Cya B B4 Omxmax Aldop Cymax
[1] = {0, 0.024, 0.07, 0.075, 0.12, 0.5, 30 , 1.2},
[2] = {0.2, 0.024, 0.07, 0.075, 0.12, 1.5, 30 , 1.2},
[3] = {0.4, 0.024, 0.07, 0.075, 0.12, 2.5, 30 , 1.2},
[4] = {0.6, 0.0239, 0.073, 0.075, 0.12, 3.5, 30 , 1.2},
[5] = {0.7, 0.024, 0.076, 0.075, 0.12, 3.5, 28.666666666667 , 1.18},
[6] = {0.8, 0.0235, 0.079, 0.075, 0.12, 3.5, 27.333333333333 , 1.16},
[7] = {0.9, 0.025, 0.083, 0.075, 0.125, 3.5, 26 , 1.14},
[8] = {1 , 0.044, 0.085, 0.14, 0.1, 3.5, 24.666666666667 , 1.12},
[9] = {1.05, 0.0465, 0.0855, 0.1775, 0.125, 3.5, 24 , 1.11},
[10] = {1.1, 0.049, 0.086, 0.215, 0.15, 3.15, 18 , 1.1},
[11] = {1.2, 0.049, 0.083, 0.228, 0.17, 2.45, 17, 1.05},
[12] = {1.3, 0.049, 0.077, 0.237, 0.2, 1.75, 16, 1},
[13] = {1.5, 0.0475, 0.062, 0.251, 0.2, 1.5, 13, 0.9},
[14] = {1.7, 0.045166666666667, 0.051333333333333, 0.24366666666667, 0.32, 0.9, 12, 0.7},
[15] = {1.8, 0.044, 0.046, 0.24, 0.38, 0.86, 11.4, 0.64},
[16] = {2, 0.043, 0.039, 0.222, 2.5, 0.78, 10.2, 0.52},
[17] = {2.2, 0.041, 0.034, 0.227, 3.2, 0.7, 9, 0.4},
[18] = {2.5, 0.04, 0.033, 0.25, 4.5, 0.7, 9, 0.4},
[19] = {3.9, 0.035, 0.033, 0.35, 6, 0.7, 9, 0.4},
}, -- end of table_data
-- M - Mach number
-- Cx0 - Coefficient, drag, profile, of the airplane
-- Cya - Normal force coefficient of the wing and body of the aircraft in the normal direction to that of flight. Inversely proportional to the available G-loading at any Mach value. (lower the Cya value, higher G available) per 1 degree AOA
-- B - Polar quad coeff
-- B4 - Polar 4th power coeff
-- Omxmax - roll rate, rad/s
-- Aldop - Alfadop Max AOA at current M - departure threshold
-- Cymax - Coefficient, lift, maximum possible (ignores other calculations if current Cy > Cymax)
}, -- end of aerodynamics
engine =
{
Nmg = 62, -- RPM at idle
MinRUD = 0, -- Min state of the throttle
MaxRUD = 1, -- Max state of the throttle
MaksRUD = 0.85, -- Military power state of the throttle
ForsRUD = 0.91, -- Afterburner state of the throttle
typeng = 1,
--[[
E_TURBOJET = 0
E_TURBOJET_AB = 1
E_PISTON = 2
E_TURBOPROP = 3
E_TURBOFAN = 4
E_TURBOSHAFT = 5
--]]
hMaxEng = 19, -- Max altitude for safe engine operation in km
dcx_eng = 0.0124, -- Engine drag coeficient
cemax = 1.24, -- not used for fuel calulation , only for AI routines to check flight time ( fuel calculation algorithm is built in )
cefor = 2.56, -- not used for fuel calulation , only for AI routines to check flight time ( fuel calculation algorithm is built in )
dpdh_m = 2000, -- altitude coefficient for max thrust
dpdh_f = 4200, -- altitude coefficient for AB thrust
table_data =
{ -- M Pmax Pfor
[1] = {0, 88000, 141000},
[2] = {0.2, 80000, 143000},
[3] = {0.4, 79000, 150000},
[4] = {0.6, 82000, 165000},
[5] = {0.7, 90000, 177000},
[6] = {0.8, 94000, 193000},
[7] = {0.9, 96000, 200000},
[8] = {1, 100000, 205000},
[9] = {1.1, 100000, 214000},
[10] = {1.2, 98000, 222000},
[11] = {1.3, 100000, 235000},
[12] = {1.5, 98000, 258000},
[13] = {1.8, 94000, 276000},
[14] = {2, 88000, 283000},
[15] = {2.2, 82000, 285000},
[16] = {2.5, 80000, 287000},
[17] = {3.9, 50000, 200000},
}, -- end of table_data
-- M - Mach number
-- Pmax - Engine thrust at military power
-- Pfor - Engine thrust at AFB
}, -- end of engine
},
--damage , index meaning see in Scripts\Aircrafts\_Common\Damage.lua
Damage = {
[0] = {critical_damage = 5, args = {146}},
[3] = {critical_damage = 20,args = {65}} ,
[4] = {critical_damage = 20, args = {150}},
[5] = {critical_damage = 20, args = {147}},
[7] = {critical_damage = 4, args = {249}} ,
[9] = {critical_damage = 3, args = {154}},
[10] = {critical_damage = 3, args = {153}},
[11] = {critical_damage = 3, args = {167}},
[12] = {critical_damage = 3, args = {161}},
[15] = {critical_damage = 5, args = {267}},
[16] = {critical_damage = 5, args = {266}},
[23] = {critical_damage = 8, args = {223}, deps_cells = {25}},
[24] = {critical_damage = 8, args = {213}, deps_cells = {26, 60}},
[25] = {critical_damage = 3, args = {226}},
[26] = {critical_damage = 3, args = {216}},
[29] = {critical_damage = 9, args = {224}, deps_cells = {31, 25, 23}},
[30] = {critical_damage = 9, args = {214}, deps_cells = {32, 26, 24, 60}},
[31] = {critical_damage = 4, args = {229}},
[32] = {critical_damage = 4, args = {219}},
[35] = {critical_damage = 10, args = {225}, deps_cells = {29, 31, 25, 23}},
[36] = {critical_damage = 10, args = {215}, deps_cells = {30, 32, 26, 24, 60}} ,
[37] = {critical_damage = 4, args = {227}},
[38] = {critical_damage = 4, args = {217}},
[39] = {critical_damage = 7, args = {244}, deps_cells = {53}},
[40] = {critical_damage = 7, args = {241}, deps_cells = {54}},
[45] = {critical_damage = 9, args = {235}, deps_cells = {39, 51, 53}},
[46] = {critical_damage = 9, args = {233}, deps_cells = {40, 52, 54}},
[51] = {critical_damage = 3, args = {239}},
[52] = {critical_damage = 3, args = {237}},
[53] = {critical_damage = 3, args = {248}},
[54] = {critical_damage = 3, args = {247}},
[55] = {critical_damage = 20, args = {81}, deps_cells = {39, 40, 45, 46, 51, 52, 53, 54}},
[59] = {critical_damage = 5, args = {148}},
[60] = {critical_damage = 1, args = {144}},
[83] = {critical_damage = 3, args = {134}} ,-- nose wheel
[84] = {critical_damage = 3, args = {136}}, -- left wheel
[85] = {critical_damage = 3, args = {135}} ,-- right wheel
},
lights_data = {
typename = "collection",
lights = {
[1] = { typename = "collection",
lights = {-- Left Anticollision Light
{typename = "natostrobelight",
connector = "WHITE_BEACON L",
argument_1 = 195,
period = 1.2,
phase_shift = 0
},
-- Right Anticollision Light
{typename = "natostrobelight",
connector = "WHITE_BEACON R",
argument_1 = 196,
period = 1.2,
phase_shift = 0
},
-- Tail Anticollision Light
{typename = "natostrobelight",
connector = "BANO_0_BACK",
argument_1 = 192,
period = 1.2,
phase_shift = 0
}
}
},
[2] = { typename = "collection",
lights = {-- Landing light
{typename = "spotlight",
connector = "MAIN_SPOT_PTR_02",
argument = 209,
dir_correction = {elevation = math.rad(-1)}
},
{-- Landing/Taxi light
typename = "spotlight",
connector = "MAIN_SPOT_PTR_01",
argument = 208,
dir_correction = {elevation = math.rad(3)}
}
}
},
[3] = { typename = "collection",
lights = {-- Left Position Light (red)
{typename = "omnilight",
connector = "BANO_1",
color = {0.99, 0.11, 0.3},
pos_correction = {0, 0, -0.2},
argument = 190
},
-- Right Position Light (green)
{typename = "omnilight",
connector = "BANO_2",
color = {0, 0.894, 0.6},
pos_correction = {0, 0, 0.2},
argument = 191
},
-- Tail Position Light (white)
{typename = "omnilight",
connector = "BANO_0_BACK",
color = {1, 1, 1},
pos_correction = {0, 0, 0},
argument = 203
}}
},
[4] = { typename = "collection",
lights = {{typename = "collection",
lights = {
-- Top Formation Light (white)
{typename = "omnilight",
connector = "BANO_0_TOP",
color = {1, 1, 1},
},
{typename = "argumentlight", argument = 202},
-- Bottom Formation Light (white)
{typename = "omnilight",
connector = "BANO_0_BOTTOM",
color = {1, 1, 1},
},
{typename = "argumentlight", argument = 201},
}
},
-- Tail formation lights
{typename = "collection",
lights = {{
-- Right Tail Formation Light
typename = "spotlight",
connector = "BANO_W_HR",
color = {1.0, 1.0, 1.0},
intensity_max = 6,
angle_max = 0.65,
argument = 205,
dont_change_color = false,
angle_change_rate = 0,
pos_correction = {0.0, 0.0, 0.1},
dir_correction = {azimuth = math.rad(-3), elevation = math.rad(9)},
},
{
-- Left Tail Formation Light
typename = "spotlight",
connector = "BANO_W_HL",
color = {1.0, 1.0, 1.0},
intensity_max = 6,
angle_max = 0.65,
argument = 204,
dont_change_color = false,
angle_change_rate = 0,
pos_correction = {0.0, 0.0, -0.1},
dir_correction = {azimuth = math.rad(-3), elevation = math.rad(-9)},
}
},
},
-- Electroluminescent formation lights
{typename = "argumentlight", argument = 200},
}
},
[5] = {typename = "collection",
lights = {
{typename = "collection",
lights = {{
-- Right Nacelle Floodlight
typename = "spotlight",
position = {0.5, 1.2, 0},
color = {1.0, 1.0, 1.0},
intensity_max = 6.0,
angle_max = 0.45,
direction = {azimuth = math.rad(150), elevation = math.rad(5)},
dont_change_color = false,
angle_change_rate = 0
},
{
-- Left Nacelle Floodlight
typename = "spotlight",
position = {0.5, 1.2, 0},
color = {1.0, 1.0, 1.0},
intensity_max = 6.0,
angle_max = 0.45,
direction = {azimuth = math.rad(-150), elevation = math.rad(5)},
dont_change_color = false,
angle_change_rate = 0
},
{typename = "argumentlight", argument = 212},
},
},
{typename = "collection",
lights = {{
-- Left Nose Floodlight
typename = "spotlight",
position = {0, -0.3, -5.80},
color = {1.0, 1.0, 1.0},
intensity_max = 6.0, angle_max = 0.45,
direction = {azimuth = math.rad(45)},
argument = 211,
dont_change_color = false,
angle_change_rate = 0
},
{
-- Right Nose Floodlight
typename = "spotlight",
position = {0, -0.3, 5.80},
color = {1.0, 1.0, 1.0},
intensity_max = 6.0,
angle_max = 0.45,
direction = {azimuth = math.rad(-45)},
argument = 210,
dont_change_color = false,
angle_change_rate = 0
}
}
},
-- UARRSI light
{
typename = "omnilight", position = {6.5, 0.4, 0}, color = {1, 1, 1}
}
},
}
}
},
}
add_aircraft(F16Demo)