@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.
- package/lua/settings/settings-capwarzone.lua +1 -0
- package/lua/settings/settings-capzone.lua +1 -0
- package/lua/settings/settings-foxzone.lua +1 -0
- package/lua/src/170-cap_zone_training.lua +24 -20
- package/lua/src/172-cap_zone_war.lua +24 -20
- package/lua/src/173-fox_zone_training.lua +12 -10
- package/package.json +1 -1
|
@@ -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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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,
|