@jtff/miztemplate-lib 3.4.11 → 3.4.13
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
|
|
@@ -7,6 +7,7 @@ end
|
|
|
7
7
|
|
|
8
8
|
function wipeCapWarZone(objCapWarZone)
|
|
9
9
|
jtff_log.info(string.format("%s Zone Stopping...", objCapWarZone.customconfig.name),"CAP_WAR_ZONE")
|
|
10
|
+
--TODO: remove all drawings generated by CAPSquadrons
|
|
10
11
|
objCapWarZone.objDispatcher:SetTacticalDisplay(false)
|
|
11
12
|
objCapWarZone.objDispatcher:Stop()
|
|
12
13
|
objCapWarZone.objDispatcher = nil
|
|
@@ -113,6 +114,49 @@ function startCapWarZone(objCapWarZone)
|
|
|
113
114
|
CapZoneName = "unknown"
|
|
114
115
|
end
|
|
115
116
|
end
|
|
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
|
+
)
|
|
128
|
+
CapZone:GetCoordinate():TextToAll(
|
|
129
|
+
"CAP Warzone " .. objCapWarZone.customconfig.name,
|
|
130
|
+
coalition.side.BLUE,
|
|
131
|
+
{1,0,0},
|
|
132
|
+
1,
|
|
133
|
+
{1,0,0},
|
|
134
|
+
0,
|
|
135
|
+
20,
|
|
136
|
+
true
|
|
137
|
+
)
|
|
138
|
+
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
|
+
)
|
|
149
|
+
CapZone:GetCoordinate():TextToAll(
|
|
150
|
+
"CAP Warzone " .. objCapWarZone.customconfig.name,
|
|
151
|
+
coalition.side.RED,
|
|
152
|
+
{1,0,0},
|
|
153
|
+
1,
|
|
154
|
+
{1,0,0},
|
|
155
|
+
0,
|
|
156
|
+
20,
|
|
157
|
+
true
|
|
158
|
+
)
|
|
159
|
+
end
|
|
116
160
|
jtff_log.info(string.format("Assigned Squadron %s to %s patrol Zone...", CAPSquadronName, CapZoneName),"CAP_WAR_ZONE")
|
|
117
161
|
objCapWarZone.objDispatcher:SetSquadronCap(
|
|
118
162
|
CAPSquadronName,
|
|
@@ -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,
|