@jtff/miztemplate-lib 3.4.10 → 3.4.12

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.
@@ -86,6 +86,49 @@ for index, capzoneconfig in ipairs(TrainingCAPConfig) do
86
86
  objCapZone.objEngageZone = ZONE:New(capzoneconfig.engageZoneName)
87
87
  end
88
88
  end
89
+ if capzoneconfig.coalitionCAP == coalition.side.RED then
90
+ objCapZone.objEngageZone:DrawZone(
91
+ coalition.side.BLUE,
92
+ {1,0,0},
93
+ 1,
94
+ {1,0,0},
95
+ 0.10,
96
+ 4,
97
+ true,
98
+ nil
99
+ )
100
+ objCapZone.objEngageZone:GetCoordinate():TextToAll(
101
+ "CAP Training " .. capzoneconfig.name,
102
+ coalition.side.BLUE,
103
+ {1,0,0},
104
+ 1,
105
+ {1,0,0},
106
+ 0,
107
+ 20,
108
+ true
109
+ )
110
+ else
111
+ objCapZone.objEngageZone:DrawZone(
112
+ coalition.side.RED,
113
+ {1,0,0},
114
+ 1,
115
+ {1,0,0},
116
+ 0.10,
117
+ 4,
118
+ true,
119
+ nil
120
+ )
121
+ objCapZone.objEngageZone:GetCoordinate():TextToAll(
122
+ "CAP Training " .. capzoneconfig.name,
123
+ coalition.side.RED,
124
+ {1,0,0},
125
+ 1,
126
+ {1,0,0},
127
+ 0,
128
+ 20,
129
+ true
130
+ )
131
+ end
89
132
  objCapZone.customconfig = capzoneconfig
90
133
  CAPZoneArray[compteur] = objCapZone
91
134
  if capzoneconfig.coalitionCAP == coalition.side.RED then
@@ -61,6 +61,9 @@ function startCapWarZone(objCapWarZone)
61
61
  CAPSquadronName,
62
62
  capsqnconfig.groupForce
63
63
  )
64
+ objCapWarZone.objDispatcher:SetSquadronTakeoffFromParkingHot(
65
+ CAPSquadronName
66
+ )
64
67
  else
65
68
  --baseName is not an Airbase --> Airstart
66
69
  objCapWarZone.objDispatcher:SetSquadron(
@@ -148,6 +151,9 @@ function startCapWarZone(objCapWarZone)
148
151
  interceptSquadronName,
149
152
  interceptsqnconfig.groupForce
150
153
  )
154
+ objCapWarZone.objDispatcher:SetSquadronTakeoffFromRunway(
155
+ interceptSquadronName
156
+ )
151
157
  else
152
158
  --baseName is not an Airbase --> Airstart
153
159
  objCapWarZone.objDispatcher:SetSquadron(
@@ -19,13 +19,33 @@ for index, foxzoneconfig in ipairs(FoxRangesConfig) do
19
19
  'FOX_LAUNCH_ZONE_'..foxzoneconfig.name,
20
20
  GROUP:FindByName(foxzoneconfig.launchZoneGroupName))
21
21
  objFoxZone:AddLaunchZone(objFoxZone.objLaunchZone)
22
- jtff_log.info('Launch zone Polygon created : '.. objFoxZone.objLaunchZone:GetName() ..'...',"FOX_ZONE")
23
22
  else
24
23
  if foxzoneconfig.launchZoneName then
25
24
  objFoxZone.objLaunchZone = ZONE:New(foxzoneconfig.launchZoneName)
26
25
  objFoxZone:AddLaunchZone(objFoxZone.objLaunchZone)
27
26
  end
28
27
  end
28
+ jtff_log.info('Launch zone Polygon created : '.. objFoxZone.objLaunchZone:GetName() ..'...',"FOX_ZONE")
29
+ objFoxZone.objLaunchZone:DrawZone(
30
+ -1,
31
+ {1,0,0},
32
+ 1,
33
+ {1,0,0},
34
+ 0.10,
35
+ 4,
36
+ true,
37
+ nil
38
+ )
39
+ objFoxZone.objLaunchZone:GetCoordinate():TextToAll(
40
+ "Missile trainer " .. foxzoneconfig.name,
41
+ -1,
42
+ {1,0,0},
43
+ 1,
44
+ {1,0,0},
45
+ 0,
46
+ 20,
47
+ true
48
+ )
29
49
  if foxzoneconfig.safeZoneGroupName then
30
50
  objFoxZone.objSafeZone = ZONE_POLYGON:New(
31
51
  'FOX_SAFE_ZONE_'..foxzoneconfig.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.4.10",
3
+ "version": "3.4.12",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [