@jtff/miztemplate-lib 3.7.5 → 3.7.6

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.
@@ -87,7 +87,7 @@ for index, capzoneconfig in ipairs(TrainingCAPConfig) do
87
87
  end
88
88
  end
89
89
  if capzoneconfig.coalitionCAP == coalition.side.RED then
90
- if capzoneconfig.drawzone then
90
+ if ((capzoneconfig.drawzone == true) or false) then
91
91
  objCapZone.objEngageZone:DrawZone(
92
92
  coalition.side.BLUE,
93
93
  {1,0,0},
@@ -98,19 +98,19 @@ for index, capzoneconfig in ipairs(TrainingCAPConfig) do
98
98
  true,
99
99
  nil
100
100
  )
101
+ objCapZone.objEngageZone:GetCoordinate():TextToAll(
102
+ "CAP Training " .. capzoneconfig.name,
103
+ coalition.side.BLUE,
104
+ {1,0,0},
105
+ 1,
106
+ {1,0,0},
107
+ 0,
108
+ 20,
109
+ true
110
+ )
101
111
  end
102
- objCapZone.objEngageZone:GetCoordinate():TextToAll(
103
- "CAP Training " .. capzoneconfig.name,
104
- coalition.side.BLUE,
105
- {1,0,0},
106
- 1,
107
- {1,0,0},
108
- 0,
109
- 20,
110
- true
111
- )
112
112
  else
113
- if capzoneconfig.drawzone then
113
+ if ((capzoneconfig.drawzone == true) or false) then
114
114
  objCapZone.objEngageZone:DrawZone(
115
115
  coalition.side.RED,
116
116
  {1,0,0},
@@ -121,17 +121,17 @@ for index, capzoneconfig in ipairs(TrainingCAPConfig) do
121
121
  true,
122
122
  nil
123
123
  )
124
+ objCapZone.objEngageZone:GetCoordinate():TextToAll(
125
+ "CAP Training " .. capzoneconfig.name,
126
+ coalition.side.RED,
127
+ {1,0,0},
128
+ 1,
129
+ {1,0,0},
130
+ 0,
131
+ 20,
132
+ true
133
+ )
124
134
  end
125
- objCapZone.objEngageZone:GetCoordinate():TextToAll(
126
- "CAP Training " .. capzoneconfig.name,
127
- coalition.side.RED,
128
- {1,0,0},
129
- 1,
130
- {1,0,0},
131
- 0,
132
- 20,
133
- true
134
- )
135
135
  end
136
136
  objCapZone.customconfig = capzoneconfig
137
137
  CAPZoneArray[compteur] = objCapZone
@@ -115,7 +115,7 @@ function startCapWarZone(objCapWarZone)
115
115
  end
116
116
  end
117
117
  if objCapWarZone.customconfig.coalitionCAP == coalition.side.RED then
118
- if objCapWarZone.customconfig.drawzone then
118
+ if ((objCapWarZone.customconfig.drawzone == true) or false) then
119
119
  CapZone:DrawZone(
120
120
  coalition.side.BLUE,
121
121
  {1,0,1},
@@ -126,19 +126,19 @@ function startCapWarZone(objCapWarZone)
126
126
  true,
127
127
  nil
128
128
  )
129
+ CapZone:GetCoordinate():TextToAll(
130
+ "CAP Warzone " .. objCapWarZone.customconfig.name,
131
+ coalition.side.BLUE,
132
+ {1,0,0},
133
+ 1,
134
+ {1,0,0},
135
+ 0,
136
+ 20,
137
+ true
138
+ )
129
139
  end
130
- CapZone:GetCoordinate():TextToAll(
131
- "CAP Warzone " .. objCapWarZone.customconfig.name,
132
- coalition.side.BLUE,
133
- {1,0,0},
134
- 1,
135
- {1,0,0},
136
- 0,
137
- 20,
138
- true
139
- )
140
140
  else
141
- if objCapWarZone.customconfig.drawzone then
141
+ if ((objCapWarZone.customconfig.drawzone == true) or false) then
142
142
  CapZone:DrawZone(
143
143
  coalition.side.RED,
144
144
  {1,0,1},
@@ -149,17 +149,17 @@ function startCapWarZone(objCapWarZone)
149
149
  true,
150
150
  nil
151
151
  )
152
+ CapZone:GetCoordinate():TextToAll(
153
+ "CAP Warzone " .. objCapWarZone.customconfig.name,
154
+ coalition.side.RED,
155
+ {1,0,0},
156
+ 1,
157
+ {1,0,0},
158
+ 0,
159
+ 20,
160
+ true
161
+ )
152
162
  end
153
- CapZone:GetCoordinate():TextToAll(
154
- "CAP Warzone " .. objCapWarZone.customconfig.name,
155
- coalition.side.RED,
156
- {1,0,0},
157
- 1,
158
- {1,0,0},
159
- 0,
160
- 20,
161
- true
162
- )
163
163
  end
164
164
  jtff_log.info(string.format("Assigned Squadron %s to %s patrol Zone...", CAPSquadronName, CapZoneName),"CAP_WAR_ZONE")
165
165
  objCapWarZone.objDispatcher:SetSquadronCap(
@@ -26,7 +26,7 @@ for index, foxzoneconfig in ipairs(FoxRangesConfig) do
26
26
  end
27
27
  end
28
28
  jtff_log.info('Launch zone Polygon created : '.. objFoxZone.objLaunchZone:GetName() ..'...',"FOX_ZONE")
29
- if foxzoneconfig.drawzone then
29
+ if ((foxzoneconfig.drawzone == true) or false) then
30
30
  objFoxZone.objLaunchZone:DrawZone(
31
31
  -1,
32
32
  {1,0,0},
@@ -37,17 +37,17 @@ for index, foxzoneconfig in ipairs(FoxRangesConfig) do
37
37
  true,
38
38
  nil
39
39
  )
40
+ objFoxZone.objLaunchZone:GetCoordinate():TextToAll(
41
+ "Missile trainer " .. foxzoneconfig.name,
42
+ -1,
43
+ {1,0,0},
44
+ 1,
45
+ {1,0,0},
46
+ 0,
47
+ 20,
48
+ true
49
+ )
40
50
  end
41
- objFoxZone.objLaunchZone:GetCoordinate():TextToAll(
42
- "Missile trainer " .. foxzoneconfig.name,
43
- -1,
44
- {1,0,0},
45
- 1,
46
- {1,0,0},
47
- 0,
48
- 20,
49
- true
50
- )
51
51
  if foxzoneconfig.safeZoneGroupName then
52
52
  objFoxZone.objSafeZone = ZONE_POLYGON:New(
53
53
  'FOX_SAFE_ZONE_'..foxzoneconfig.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.7.5",
3
+ "version": "3.7.6",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [