@jtff/miztemplate-lib 3.7.3 → 3.7.4

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.
@@ -14,6 +14,7 @@ WarCAPConfig = {
14
14
  debug = false,
15
15
  borderZoneGroupName = 'border-russia',
16
16
  --borderZoneName = 'red_north_patrol_zone',
17
+ drawzone=false,
17
18
  detectionGroupingRadius = 15,
18
19
  engageRadius = 100,
19
20
  gciRadius = 300,
@@ -7,6 +7,7 @@ TrainingCAPConfig = {
7
7
  --engageZoneGroupName = 'engage zone Red',
8
8
  patrolZoneName = 'red_north_patrol_zone',
9
9
  engageZoneName = 'red_north_engage_zone',
10
+ drawzone=false,
10
11
  CAPGoups = {
11
12
  'REDNavyCAP-1',
12
13
  'REDNavyCAP-2',
@@ -6,6 +6,7 @@ FoxRangesConfig= {
6
6
  launchZoneName = 'LCD-03 training-pvp-safezone',
7
7
  --safeZoneGroupName = 'engage zone Red-1',
8
8
  --launchZoneGroupName = 'engage zone Red-1',
9
+ drawzone=false,
9
10
  debug = false,
10
11
  f10Menu = false,
11
12
  missileLaunchMessages = false,
@@ -87,16 +87,18 @@ for index, capzoneconfig in ipairs(TrainingCAPConfig) do
87
87
  end
88
88
  end
89
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
- )
90
+ if capzoneconfig.drawzone then
91
+ objCapZone.objEngageZone:DrawZone(
92
+ coalition.side.BLUE,
93
+ {1,0,0},
94
+ 1,
95
+ {1,0,0},
96
+ 0.10,
97
+ 4,
98
+ true,
99
+ nil
100
+ )
101
+ end
100
102
  objCapZone.objEngageZone:GetCoordinate():TextToAll(
101
103
  "CAP Training " .. capzoneconfig.name,
102
104
  coalition.side.BLUE,
@@ -108,16 +110,18 @@ for index, capzoneconfig in ipairs(TrainingCAPConfig) do
108
110
  true
109
111
  )
110
112
  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
- )
113
+ if capzoneconfig.drawzone then
114
+ objCapZone.objEngageZone:DrawZone(
115
+ coalition.side.RED,
116
+ {1,0,0},
117
+ 1,
118
+ {1,0,0},
119
+ 0.10,
120
+ 4,
121
+ true,
122
+ nil
123
+ )
124
+ end
121
125
  objCapZone.objEngageZone:GetCoordinate():TextToAll(
122
126
  "CAP Training " .. capzoneconfig.name,
123
127
  coalition.side.RED,
@@ -115,16 +115,18 @@ function startCapWarZone(objCapWarZone)
115
115
  end
116
116
  end
117
117
  if objCapWarZone.customconfig.coalitionCAP == coalition.side.RED then
118
- CapZone:DrawZone(
119
- coalition.side.BLUE,
120
- {1,0,1},
121
- 1,
122
- {1,0,1},
123
- 0.10,
124
- 4,
125
- true,
126
- nil
127
- )
118
+ if objCapWarZone.customconfig.drawzone then
119
+ CapZone:DrawZone(
120
+ coalition.side.BLUE,
121
+ {1,0,1},
122
+ 1,
123
+ {1,0,1},
124
+ 0.10,
125
+ 4,
126
+ true,
127
+ nil
128
+ )
129
+ end
128
130
  CapZone:GetCoordinate():TextToAll(
129
131
  "CAP Warzone " .. objCapWarZone.customconfig.name,
130
132
  coalition.side.BLUE,
@@ -136,16 +138,18 @@ function startCapWarZone(objCapWarZone)
136
138
  true
137
139
  )
138
140
  else
139
- CapZone:DrawZone(
140
- coalition.side.RED,
141
- {1,0,1},
142
- 1,
143
- {1,0,1},
144
- 0.10,
145
- 4,
146
- true,
147
- nil
148
- )
141
+ if objCapWarZone.customconfig.drawzone then
142
+ CapZone:DrawZone(
143
+ coalition.side.RED,
144
+ {1,0,1},
145
+ 1,
146
+ {1,0,1},
147
+ 0.10,
148
+ 4,
149
+ true,
150
+ nil
151
+ )
152
+ end
149
153
  CapZone:GetCoordinate():TextToAll(
150
154
  "CAP Warzone " .. objCapWarZone.customconfig.name,
151
155
  coalition.side.RED,
@@ -26,16 +26,18 @@ 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
- 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
- )
29
+ if objFoxZone.customconfig.drawzone then
30
+ objFoxZone.objLaunchZone:DrawZone(
31
+ -1,
32
+ {1,0,0},
33
+ 1,
34
+ {1,0,0},
35
+ 0.10,
36
+ 4,
37
+ true,
38
+ nil
39
+ )
40
+ end
39
41
  objFoxZone.objLaunchZone:GetCoordinate():TextToAll(
40
42
  "Missile trainer " .. foxzoneconfig.name,
41
43
  -1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [