@jtff/miztemplate-lib 3.4.12 → 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.
- package/lua/src/172-cap_zone_war.lua +44 -0
- package/package.json +1 -1
|
@@ -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,
|