@jtff/miztemplate-lib 2.2.0 → 3.0.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/index.js +4 -3
  2. package/lib/jtff-lib-ci.js +1 -307
  3. package/lib/mizlib.js +336 -0
  4. package/lua/lib/Hercules_Cargo.lua +686 -0
  5. package/lua/lib/Moose_.lua +117314 -0
  6. package/lua/lib/Splash_Damage_2_0.lua +472 -0
  7. package/lua/lib/gemman.lua +1 -0
  8. package/lua/lib/mist_4_5_107.lua +9084 -0
  9. package/lua/lib/skynet-iads-compiled.lua +3864 -0
  10. package/lua/settings/settings-RAT.lua +235 -0
  11. package/lua/settings/settings-airboss.lua +142 -0
  12. package/lua/settings/settings-atis.lua +31 -0
  13. package/lua/settings/settings-awacs.lua +58 -0
  14. package/lua/settings/settings-awacsondemand.lua +26 -0
  15. package/lua/settings/settings-beacons.lua +10 -0
  16. package/lua/settings/settings-capwarzone.lua +164 -0
  17. package/lua/settings/settings-capzone.lua +32 -0
  18. package/lua/settings/settings-fac_ranges.lua +17 -0
  19. package/lua/settings/settings-foxzone.lua +14 -0
  20. package/lua/settings/settings-gemman.lua +6 -0
  21. package/lua/settings/settings-global.lua +31 -0
  22. package/lua/settings/settings-intercept.lua +23 -0
  23. package/lua/settings/settings-logistics.lua +22 -0
  24. package/lua/settings/settings-ondemandawacs.lua +29 -0
  25. package/lua/settings/settings-ondemandtankers.lua +29 -0
  26. package/lua/settings/settings-pedros.lua +11 -0
  27. package/lua/settings/settings-ranges.lua +28 -0
  28. package/lua/settings/settings-reapers.lua +25 -0
  29. package/lua/settings/settings-sams.lua +19 -0
  30. package/lua/settings/settings-skynet.lua +239 -0
  31. package/lua/settings/settings-tankers.lua +32 -0
  32. package/lua/settings/settings-training_ranges.lua +37 -0
  33. package/lua/src/010-root_menus.lua +5 -0
  34. package/lua/src/020-mission_functions.lua +1059 -0
  35. package/lua/src/110-set_clients.lua +61 -0
  36. package/lua/src/120-tankers.lua +589 -0
  37. package/lua/src/130-airboss.lua +621 -0
  38. package/lua/src/135-pedro.lua +21 -0
  39. package/lua/src/140-beacons.lua +19 -0
  40. package/lua/src/150-awacs.lua +599 -0
  41. package/lua/src/160-atis.lua +53 -0
  42. package/lua/src/170-cap_zone_training.lua +127 -0
  43. package/lua/src/172-cap_zone_war.lua +190 -0
  44. package/lua/src/173-fox_zone_training.lua +87 -0
  45. package/lua/src/176-random_air_traffic.lua +73 -0
  46. package/lua/src/178-training-intercept.lua +263 -0
  47. package/lua/src/180-logistics.lua +80 -0
  48. package/lua/src/190-ranges.lua +54 -0
  49. package/lua/src/191-sams.lua +49 -0
  50. package/lua/src/193-training_ranges.lua +191 -0
  51. package/lua/src/195-reaper-ondemand.lua +522 -0
  52. package/lua/src/196-fac_ranges.lua +34 -0
  53. package/lua/src/199-skynet.lua +721 -0
  54. package/lua/src/200-mission.lua +3 -0
  55. package/package.json +4 -3
  56. package/resources/radios/.gitkeep +0 -0
  57. package/resources/sounds/CTLD/beacon.ogg +0 -0
  58. package/resources/sounds/CTLD/beaconsilent.ogg +0 -0
  59. package/resources/sounds/Misc/.gitkeep +0 -0
  60. package/resources/sounds/Misc/2_Bips.ogg +0 -0
  61. package/resources/sounds/Misc/Bip.ogg +0 -0
  62. package/resources/sounds/Misc/crash_wood.ogg +0 -0
  63. package/scripts/build.js +2 -1
  64. package/scripts/inject-scripts.js +127 -230
  65. package/scripts/template-update.js +1 -1
@@ -0,0 +1,32 @@
1
+ TrainingCAPConfig = {
2
+ {
3
+ enable = false,
4
+ coalitionCAP = coalition.side.RED,
5
+ name = 'North_Turkey',
6
+ --patrolZoneGroupName = 'CAP zone Red',
7
+ --engageZoneGroupName = 'engage zone Red',
8
+ patrolZoneName = 'red_north_patrol_zone',
9
+ engageZoneName = 'red_north_engage_zone',
10
+ CAPGoups = {
11
+ 'REDNavyCAP-1',
12
+ 'REDNavyCAP-2',
13
+ 'REDNavyCAP-3',
14
+ 'REDNavyCAP-4',
15
+ 'REDNavyCAP-5',
16
+ 'REDNavyCAP-6',
17
+ 'REDNavyCAP-7',
18
+ 'REDNavyCAP-8'
19
+ },
20
+ skill = 'Excellent',
21
+ capParameters = {
22
+ patrolFloor = 20000,
23
+ patrolCeiling = 40000,
24
+ minPatrolSpeed = 250,
25
+ maxPatrolSpeed = 400,
26
+ minEngageSpeed = 250,
27
+ maxEngageSpeed = 900,
28
+ engageFloor = 5000,
29
+ engageCeiling = 55000
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,17 @@
1
+ FACRangeConfig = {
2
+ {
3
+ name = "Range 62",
4
+ enable = false,
5
+ benefit_coalition = coalition.side.BLUE,
6
+ subRange = {
7
+ {
8
+ name = "FAC 62-A",
9
+ groupsToSpawn = {"FAC C3"},
10
+ },
11
+ {
12
+ name = "FAC 62-B",
13
+ groupsToSpawn = {"FAC WHISKEY", "FAC JACK", "FAC R"},
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,14 @@
1
+ FoxRangesConfig= {
2
+ {
3
+ name = '79th-South',
4
+ enable = false,
5
+ safeZoneName = 'LCD-03 training-pvp-safezone',
6
+ launchZoneName = 'LCD-03 training-pvp-safezone',
7
+ --safeZoneGroupName = 'engage zone Red-1',
8
+ --launchZoneGroupName = 'engage zone Red-1',
9
+ debug = false,
10
+ f10Menu = false,
11
+ missileLaunchMessages = false,
12
+ missileDestruction = true
13
+ }
14
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ --- Generated by EmmyLua(https://github.com/EmmyLua)
3
+ --- Created by oufy.
4
+ --- DateTime: 18/09/2021 15:45
5
+ ---
6
+ missionName = "Template_Mariane"
@@ -0,0 +1,31 @@
1
+ ---
2
+ --- Generated by EmmyLua(https://github.com/EmmyLua)
3
+ --- Created by oufy.
4
+ --- DateTime: 25/07/2023 22:25
5
+ ---
6
+
7
+ --Debug variables
8
+ DEBUG_MSG = false
9
+ DEBUG_SQ_MSG = false
10
+ DEBUG_DETECT_MSG = false
11
+
12
+ --Canary variable JTFF sound mod
13
+ use_jtff_sound_mod = false
14
+
15
+ --Standard delay when F10 menu request to spawn something
16
+ spawnStandardDelay = 15
17
+
18
+ --Global map_marker
19
+ map_marker = {}
20
+
21
+ --Global Moose SEAD Object
22
+ sead = SEAD:New({})
23
+
24
+ --Global Constants
25
+ AAMAxRange = {
26
+ MAX_RANGE = 0,
27
+ NEZ_RANGE = 1,
28
+ HALF_WAY_RMAX_NEZ = 2,
29
+ TARGET_THREAT_EST = 3,
30
+ RANDOM_RANGE = 4,
31
+ }
@@ -0,0 +1,23 @@
1
+ InterceptConfig = {
2
+ {
3
+ enable = false,
4
+ name = 'Civilian',
5
+ benefitCoalition = coalition.side.BLUE,
6
+ type = 'civil',
7
+ skill = 'Excellent',
8
+ templates = {
9
+ 'intercept-A320',
10
+ 'intercept-B737',
11
+ }
12
+ },
13
+ {
14
+ enable = false,
15
+ name = 'Syrian AF',
16
+ benefitCoalition = coalition.side.BLUE,
17
+ type = 'fighter',
18
+ skill = 'Excellent',
19
+ templates = {
20
+ 'intercept-Mig23',
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,22 @@
1
+ CTLDConfig = {
2
+ {
3
+ name = "Turkish Logistics",
4
+ enable = false,
5
+ benefit_coalition = coalition.side.BLUE,
6
+ },
7
+ {
8
+ name = "US Logistics",
9
+ enable = false,
10
+ benefit_coalition = coalition.side.BLUE,
11
+ },
12
+ {
13
+ name = "Syrian Logistics",
14
+ enable = false,
15
+ benefit_coalition = coalition.side.RED,
16
+ },
17
+ {
18
+ name = "Russian Logistics",
19
+ enable = false,
20
+ benefit_coalition = coalition.side.RED,
21
+ },
22
+ }
@@ -0,0 +1,29 @@
1
+ OnDemandAwacsConfig = {
2
+ --DarkStar 1 E3
3
+ {
4
+ enable = false,
5
+ type = "ds1",
6
+ benefit_coalition = coalition.side.BLUE,
7
+ baseUnit = AIRBASE.Syria.Incirlik,
8
+ terminalType = AIRBASE.TerminalType.OpenBig,
9
+ groupName = 'DarkStar 1-1 #IFF:4275FR',
10
+ missionmaxduration = 135,
11
+ altitude = 26000,
12
+ speed = 420,
13
+ tacan = {
14
+ channel = 106,
15
+ morse = 'DS1',
16
+ },
17
+ freq = 265.8,
18
+ modex = 23,
19
+ orbit = {
20
+ heading = 090,
21
+ length = 30,
22
+ },
23
+ callsign = {
24
+ alias = 'Darkstar-1',
25
+ name = CALLSIGN.AWACS.Darkstar,
26
+ number = 1
27
+ }
28
+ },
29
+ }
@@ -0,0 +1,29 @@
1
+ OnDemandTankersConfig = {
2
+ --Texaco 3 KC135MPRS
3
+ {
4
+ enable = false,
5
+ type = "tx3",
6
+ benefit_coalition = coalition.side.BLUE,
7
+ baseUnit = AIRBASE.Syria.Incirlik,
8
+ terminalType = AIRBASE.TerminalType.OpenBig,
9
+ groupName = 'TEXACO 3-1 #IFF:4275FR',
10
+ missionmaxduration = 135,
11
+ altitude = 26000,
12
+ speed = 420,
13
+ tacan = {
14
+ channel = 106,
15
+ morse = 'TX3',
16
+ },
17
+ freq = 317.5,
18
+ modex = 23,
19
+ orbit = {
20
+ heading = 090,
21
+ length = 30,
22
+ },
23
+ callsign = {
24
+ alias = 'Texaco-3',
25
+ name = CALLSIGN.Tanker.Texaco,
26
+ number = 3
27
+ }
28
+ },
29
+ }
@@ -0,0 +1,11 @@
1
+ PedrosConfig = {
2
+ {
3
+ enable = false,
4
+ autorespawn = true,
5
+ patternUnit = 'CSG-1 CVN-71-1',
6
+ baseUnit = 'Escorte CSG-1 CVN-71-2',
7
+ groupName = 'Pedro-1 #IFF:7325FR',
8
+ freq = 127.6,
9
+ modex = 704
10
+ }
11
+ }
@@ -0,0 +1,28 @@
1
+ RangeConfig = {
2
+ {
3
+ name = "Akamas",
4
+ enable = false,
5
+ benefit_coalition = coalition.side.BLUE,
6
+ subRange = {
7
+ {
8
+ name = "North",
9
+ groupsToSpawn = {"Strafe truck Akamas", "Humvee JTAC Akamas"},
10
+ holdFire = true,
11
+ AI = false
12
+ },
13
+ {
14
+ name = "Center",
15
+ groupsToSpawn = {"Humvee JTAC Akamas-1", "Compound Akamas", "Compound soldat", "Manpad Compound",
16
+ "Compound vehicule", "AAA Compound", "Compound vehicule civil", "BTR Compound"},
17
+ holdFire = true,
18
+ redAlert = true
19
+ },
20
+ {
21
+ name = "Insurgent PickUp",
22
+ groupsToSpawn = {"Akamas Insurgent PickUp Blue", "Akamas Insurgent PickUp Desert", "Akamas Insurgent PickUp Green"},
23
+ holdFire = true,
24
+ redAlert = false
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,25 @@
1
+ OnDemandReapersConfig = {
2
+ --Uzi = MQ9
3
+ {
4
+ enable = false,
5
+ type = "uzi",
6
+ benefit_coalition = coalition.side.BLUE,
7
+ baseUnit = AIRBASE.Nevada.Creech_AFB,
8
+ terminalType = AIRBASE.TerminalType.OpenMed,
9
+ groupName = 'reaper-1',
10
+ laserCode = 1688,
11
+ airboss_recovery = false,
12
+ --escortgroupname = 'jolly_hornet #IFF:7323FR',
13
+ missionmaxduration = 90,
14
+ altitude = 19000,
15
+ speed = 200 ,
16
+ freq = 274.500,
17
+ fuelwarninglevel=35,
18
+ modex = 15,
19
+ callsign = {
20
+ alias = 'Uzi',
21
+ name = CALLSIGN.Uzi,
22
+ number = 1
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,19 @@
1
+ SamsConfig = {
2
+ {
3
+ name = "Akamas",
4
+ enable = false,
5
+ benefit_coalition = coalition.side.BLUE,
6
+ subRange = {
7
+ {
8
+ name = "Center SAM",
9
+ groupsToSpawn = {"SAM SA6 Akamas"},
10
+ holdFire = false,
11
+ },
12
+ {
13
+ name = "SAM",
14
+ groupsToSpawn = {"SAM SA2 Akamas"},
15
+ holdFire = false
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,239 @@
1
+ SkynetConfig = {
2
+ {
3
+ name = "Syrian IADS",
4
+ enable = false,
5
+ benefit_coalition = coalition.side.BLUE,
6
+ headQuarter = {"IADS_QG"},
7
+ nodes = {
8
+ {
9
+ connection = "Node_Aleppo",
10
+ ewrs = {"EWR_SYR_Kuweires"},
11
+ sites = {
12
+ easy = {
13
+ {
14
+ sam = "SAM-SA-3-Aleppo",
15
+ },
16
+ {
17
+ sam = "SAM-SA-3-Kuweires",
18
+ },
19
+ {
20
+ sam = "SAM-SA-3-WestAleppo",
21
+ },
22
+ },
23
+ medium = {
24
+ {
25
+ sam = "SAM-SA-2-Aleppo",
26
+ },
27
+ },
28
+ hard = {
29
+ },
30
+ extreme = {
31
+ },
32
+ }
33
+ }, {
34
+ connection = "Node_Latakia",
35
+ ewrs = {"EWR_SYR_Latakia"},
36
+ sites = {
37
+ easy = {
38
+ {
39
+ sam = "SAM-SA-3-Jablah",
40
+ },
41
+ {
42
+ sam = "SAM-SA-3-Latakia",
43
+ },
44
+ },
45
+ medium = {
46
+ {
47
+ sam = "SAM-SA-2-Latakia",
48
+ },
49
+ },
50
+ hard = {
51
+ },
52
+ extreme = {
53
+ },
54
+ }
55
+ }, {
56
+ connection = "Node_Baniyas",
57
+ ewrs = {"EWR_SYR_Baniyas"},
58
+ sites = {
59
+ easy = {
60
+ {
61
+ sam = "SAM-SA-3-Tartus",
62
+ },
63
+ {
64
+ sam = "SAM-SA-3-ReneMouawad",
65
+ },
66
+ },
67
+ medium = {
68
+ {
69
+ sam = "SAM-SA-2-Tartus",
70
+ },
71
+ },
72
+ hard = {
73
+ },
74
+ extreme = {
75
+ },
76
+ },
77
+ }, {
78
+ connection = "Node_Hama",
79
+ ewrs = {"EWR_SYR_Hama"},
80
+ sites = {
81
+ easy = {
82
+ },
83
+ medium = {
84
+ },
85
+ hard = {
86
+ {
87
+ sam = "SAM-SA-5-Baniyas",
88
+ },
89
+ {
90
+ sam = "SAM-SA-5-Tartus",
91
+ },
92
+ },
93
+ extreme = {
94
+ },
95
+ },
96
+ }, {
97
+ connection = "Node_Tiyas",
98
+ ewrs = {"EWR_SYR_Tiyas"},
99
+ sites = {
100
+ easy = {
101
+ {
102
+ sam = "SAM-SA-3-Tiyas",
103
+ },
104
+ {
105
+ sam = "SAM-SA-3-SouthTiyas",
106
+ },
107
+ },
108
+ medium = {
109
+ {
110
+ sam = "SAM-SA-2-Tiyas",
111
+ },
112
+ },
113
+ hard = {
114
+ },
115
+ extreme = {
116
+ },
117
+ },
118
+ }, {
119
+ connection = "Node_Homs",
120
+ ewrs = {"EWR_SYR_Damascus_North"},
121
+ sites = {
122
+ easy = {
123
+ {
124
+ sam = "SAM-SA-3-Homs",
125
+ },
126
+ {
127
+ sam = "SAM-SA-3-SouthHoms",
128
+ },
129
+ {
130
+ sam = "SAM-SA-6-Homs",
131
+ },
132
+ {
133
+ sam = "SAM-SA-6-Shayrat",
134
+ },
135
+ },
136
+ medium = {
137
+ {
138
+ sam = "SAM-SA-2-Homs",
139
+ },
140
+ },
141
+ hard = {
142
+ {
143
+ sam = "SAM-SA-5-Homs",
144
+ },
145
+ },
146
+ extreme = {
147
+ },
148
+ },
149
+ }, {
150
+ connection = "Node_Damascus",
151
+ ewrs = {"EWR_SYR_Damascus_West", "EWR_SYR_Sayqal"},
152
+ sites = {
153
+ easy = {
154
+ {
155
+ sam = "SAM-SA-3-Damascus",
156
+ },
157
+ {
158
+ sam = "SAM-SA-6-Damascus",
159
+ },
160
+ {
161
+ sam = "SAM-SA-6-Mezzeh",
162
+ },
163
+ },
164
+ medium = {
165
+ {
166
+ sam = "SAM-SA-2-Marj",
167
+ },
168
+ {
169
+ sam = "SAM-SA-2-Damascus",
170
+ },
171
+ {
172
+ sam = "SAM-SA-2-Dumayr",
173
+ },
174
+ },
175
+ hard = {
176
+ {
177
+ sam = "SAM-SA-5-Khalkhalah",
178
+ },
179
+ {
180
+ sam = "SAM-SA-5-Damascus",
181
+ },
182
+ },
183
+ extreme = {
184
+ },
185
+ },
186
+ }, {
187
+ connection = "Node_Thalah",
188
+ ewrs = {"EWR_SYR_Thalah"},
189
+ sites = {
190
+ easy = {
191
+ },
192
+ medium = {
193
+ {
194
+ sam = "SAM-SA-2-Thalah",
195
+ },
196
+ },
197
+ hard = {
198
+ },
199
+ extreme = {
200
+ },
201
+ },
202
+ }
203
+ }
204
+ },
205
+ {
206
+ name = "Bassel El Assad IADS",
207
+ enable = false,
208
+ benefit_coalition = coalition.side.BLUE,
209
+ headQuarter = {"IADS_QG_Bassel"},
210
+ nodes = {
211
+ {
212
+ connection = "IADS_QG_Bassel",
213
+ ewrs = {"EWR_SYR_NorthBassel", "EWR_SYR_SouthBassel"},
214
+ sites = {
215
+ easy = {
216
+ },
217
+ medium = {
218
+ {
219
+ sam = "SAM-SA-2-Bassel",
220
+ harmDetectionChance = 65,
221
+ goLiveRangePercent = 60,
222
+ pdharmDetectionChance = 90,
223
+ actAsEw = false,
224
+ pointDefenses = "SAM-SA-15-PD-Bassel"
225
+ },
226
+ },
227
+ hard = {
228
+ {
229
+ sam = "SAM-SA-19-Bassel",
230
+ goLiveRangePercent = 70,
231
+ }
232
+ },
233
+ extreme = {
234
+ },
235
+ },
236
+ }
237
+ }
238
+ },
239
+ }
@@ -0,0 +1,32 @@
1
+ TankersConfig = {
2
+ {
3
+ enable = false,
4
+ autorespawn = true,
5
+ patternUnit = 'Escorte CSG-1 CVN-71-1',
6
+ benefit_coalition = coalition.side.BLUE,
7
+ baseUnit = 'CSG-1 CVN-2-1',
8
+ terminalType = AIRBASE.TerminalType.OpenMedOrBig,
9
+ groupName = 'nanny-1 #IFF:4775FR',
10
+ airboss_recovery = true,
11
+ --escortgroupname = 'jolly_hornet #IFF:7323FR',
12
+ missionmaxduration = 105,
13
+ altitude = 8000,
14
+ speed = 320,
15
+ tacan = {
16
+ channel = 104,
17
+ morse = 'SHL',
18
+ },
19
+ freq = 264.250,
20
+ fuelwarninglevel = 35,
21
+ racetrack = {
22
+ front = 40,
23
+ back = -10
24
+ },
25
+ modex = 102,
26
+ callsign = {
27
+ alias = 'Shell',
28
+ name = CALLSIGN.Tanker.Shell,
29
+ number = 1
30
+ }
31
+ },
32
+ }
@@ -0,0 +1,37 @@
1
+ TrainingRangeConfig = {
2
+ {
3
+ name = "Akamas",
4
+ enable = false,
5
+ targetsheetpath = "C:/rangeboss-targetsheets",
6
+ srs = {
7
+ useSRS = true,
8
+ path = "C:\\SRS",
9
+ port = 5002
10
+ },
11
+ instructionradio = {
12
+ unitname = "toto",
13
+ freq = 300,
14
+ },
15
+ controlradio = {
16
+ unitname = "toto",
17
+ freq = 300,
18
+ },
19
+ targets = {
20
+ {
21
+ type = "Strafepit",
22
+ unit_name = "Strafe Akamas",
23
+ foul_line = "Foul Line",
24
+ boxlength = 2000,
25
+ boxwidth = 200,
26
+ heading = nil,
27
+ inverseheading = true,
28
+ goodpass = 20
29
+ },
30
+ {
31
+ type = "BombCircle",
32
+ unit_name = "Cercle B Akamas",
33
+ precision = 25
34
+ }
35
+ },
36
+ }
37
+ }
@@ -0,0 +1,5 @@
1
+ -- *****************************************************************************
2
+ -- ** Root Menus **
3
+ -- *********************************************************
4
+ MenuCoalitionBlue = MENU_COALITION:New(coalition.side.BLUE, "My Coalition resources")
5
+ MenuCoalitionRed = MENU_COALITION:New(coalition.side.RED, "My Coalition resources")