author | Wuzzy <Wuzzy2@mail.ru> |
Fri, 16 Feb 2018 19:16:35 +0100 | |
changeset 13019 | 880662cf41ee |
parent 12933 | e65aa3c3d4e6 |
child 13116 | 3b7cd18c4a06 |
permissions | -rw-r--r-- |
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
1 |
------------------------------- |
5821
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
2 |
-- CTF_BLIZZARD 0.9 |
4786 | 3 |
-------------------------------- |
4 |
||
5 |
--------- |
|
6 |
-- 0.2 |
|
7 |
--------- |
|
8 |
||
9 |
-- disabled super weapons |
|
10 |
||
11 |
-- theme modifications |
|
12 |
||
13 |
-- improved hog placement system: teams can now be put |
|
14 |
-- in any order and be of any size |
|
15 |
||
16 |
--------- |
|
17 |
-- 0.3 |
|
18 |
--------- |
|
19 |
||
20 |
-- In this version: |
|
21 |
||
22 |
-- changed starting weapons |
|
23 |
-- changed crate drop contents and rate of drops |
|
24 |
||
25 |
-- completely removed super weapons and super weapon scripts |
|
26 |
||
27 |
-- removed custom respawning |
|
28 |
-- removed set respawn points |
|
29 |
||
30 |
-- added AIRespawn-esque respawning |
|
31 |
-- added simple left vs right respawn points |
|
32 |
||
33 |
-- added non-lethal poison to flag carriers as an indicator |
|
34 |
||
35 |
-- improved flag mechanics and player-flag feedback |
|
36 |
-- flag now instantly respawns if you kill enemy hog and return it, |
|
37 |
-- or if the flag falls in water, _BUT_ not if it is blown up |
|
38 |
||
39 |
--------- |
|
40 |
-- 0.4 |
|
41 |
--------- |
|
42 |
||
43 |
-- tweaked crate drop rates and crate contents |
|
44 |
-- improved the teleporters, they should now be able to handle rope... hopefully |
|
45 |
-- updated SetEffect calls to be in line with 0.9.15 definitions |
|
46 |
-- added visual gears when hogs respawn |
|
47 |
-- added visual gears when hogs teleport |
|
48 |
-- added visual gear to track flag and flag carriers |
|
49 |
-- removed poisoning of flag carriers |
|
50 |
-- removed health adjustments for flag carriers due to aforementioned poisons |
|
51 |
||
52 |
--------- |
|
53 |
-- 0.5 |
|
54 |
--------- |
|
55 |
||
56 |
-- added translation support, hopefully |
|
57 |
-- added ctf rules |
|
58 |
-- added effects to the teleporters |
|
59 |
-- added aura round spawning area |
|
60 |
-- changed the aura around the flag carrier / flag to an aura and added some support for this |
|
61 |
-- changed things so the seed is no longer always the same... |
|
62 |
||
4843 | 63 |
--------- |
64 |
-- 0.6 |
|
65 |
--------- |
|
66 |
||
67 |
-- removed branding and version number |
|
68 |
-- removed teleport from starting weapons |
|
69 |
-- increased captures to 3 |
|
4786 | 70 |
|
5821
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
71 |
------------ |
4871 | 72 |
-- 0.7 |
73 |
------------ |
|
74 |
||
75 |
-- hopefully fixed a bug with the teleporters |
|
4953
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
76 |
-- added a fix for crate possibly getting imbedded in land when it was near the water line |
4871 | 77 |
|
5821
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
78 |
------------ |
4953
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
79 |
-- 0.8 |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
80 |
------------ |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
81 |
|
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
82 |
-- fixed version control fail with missing check on onGearDelete |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
83 |
|
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
84 |
-- changed hog placements code so that they start in the same place for both teams |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
85 |
-- and hogs move in the same order, not backwards to each other. |
4871 | 86 |
|
5821
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
87 |
----------- |
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
88 |
-- 0.9 |
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
89 |
------------ |
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
90 |
|
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
91 |
-- add support for more players |
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
92 |
-- re-enable sudden death, but set water rise to 0 |
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
93 |
|
9093 | 94 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
4786 | 95 |
|
96 |
--------------------------------------------------------------- |
|
97 |
----------lots of bad variables and things |
|
98 |
----------because someone is too lazy |
|
99 |
----------to read about tables properly |
|
100 |
------------------ "Oh well, they probably have the memory" |
|
101 |
||
102 |
local actionReset = 0 -- used in CheckTeleporters() |
|
103 |
||
104 |
local roundsCounter = 0 -- used to determine when to spawn more crates |
|
105 |
-- currently every 6 TURNS, should this work |
|
106 |
-- on ROUNDS instead? |
|
107 |
local effectTimer = 0 |
|
108 |
||
4871 | 109 |
local ropeGear = nil |
110 |
||
4786 | 111 |
-------------------------- |
112 |
-- hog and team tracking variales |
|
113 |
-------------------------- |
|
114 |
||
115 |
local numhhs = 0 -- store number of hedgehogs |
|
116 |
local hhs = {} -- store hedgehog gears |
|
117 |
||
118 |
local numTeams -- store the number of teams in the game |
|
119 |
local teamNameArr = {} -- store the list of teams |
|
120 |
local teamSize = {} -- store how many hogs per team |
|
121 |
local teamIndex = {} -- at what point in the hhs{} does each team begin |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
122 |
local clanTeams = {} -- list of teams per clan |
4786 | 123 |
|
124 |
------------------- |
|
125 |
-- flag variables |
|
126 |
------------------- |
|
127 |
||
128 |
local fGear = {} -- pointer to the case gears that represent the flag |
|
129 |
local fThief = {} -- pointer to the hogs who stole the flags |
|
130 |
local fIsMissing = {} -- have the flags been destroyed or captured |
|
131 |
local fNeedsRespawn = {} -- do the flags need to be respawned |
|
132 |
local fCaptures = {} -- the team "scores" how many captures |
|
133 |
local fSpawnX = {} -- spawn X for flags |
|
134 |
local fSpawnY = {} -- spawn Y for flags |
|
135 |
||
136 |
local fThiefX = {} |
|
137 |
local fThiefY = {} |
|
138 |
local FTTC = 0 -- flag thief tracker counter |
|
139 |
--local fThiefsHealed = false |
|
140 |
||
141 |
local fSpawnC = {} |
|
142 |
local fCirc = {} -- flag/carrier marker circles |
|
143 |
local fCol = {} -- colour of the clans |
|
144 |
||
145 |
local vCircX = {} |
|
146 |
local vCircY = {} |
|
147 |
local vCircMinA = {} |
|
148 |
local vCircMaxA = {} |
|
149 |
local vCircType = {} |
|
150 |
local vCircPulse = {} |
|
151 |
local vCircFuckAll = {} |
|
152 |
local vCircRadius = {} |
|
153 |
local vCircWidth = {} |
|
154 |
local vCircCol = {} |
|
155 |
||
156 |
||
157 |
-------------------------------- |
|
158 |
--zone and teleporter variables |
|
159 |
-------------------------------- |
|
160 |
||
161 |
local redTel |
|
162 |
local orangeTel |
|
163 |
--local areaArr = {} -- no longer used |
|
164 |
||
165 |
local zXMin = {} |
|
166 |
local zWidth = {} |
|
167 |
local zYMin = {} |
|
168 |
local zHeight = {} |
|
169 |
local zOccupied = {} |
|
170 |
local zCount = 0 |
|
171 |
||
172 |
------------------------ |
|
173 |
-- zone methods |
|
174 |
------------------------ |
|
175 |
-- see on gameTick also |
|
176 |
||
177 |
function ManageTeleporterEffects() |
|
178 |
effectTimer = effectTimer + 1 |
|
179 |
if effectTimer > 50 then -- 100 |
|
180 |
effectTimer = 0 |
|
4843 | 181 |
|
182 |
for i = 0,1 do |
|
4786 | 183 |
eX = 10 + zXMin[i] + GetRandom(zWidth[i]-10) |
184 |
eY = 50 + zYMin[i] + GetRandom(zHeight[i]-110) |
|
185 |
||
4843 | 186 |
-- steam and smoke and DUST look good, smokering looks trippy |
4786 | 187 |
-- smoketrace and eviltrace are not effected by wind? |
188 |
-- chunk is a LR falling gear |
|
189 |
tempE = AddVisualGear(eX, eY, vgtDust, 0, false) |
|
190 |
if tempE ~= 0 then |
|
191 |
g1, g2, g3, g4, g5, g6, g7, g8, g9, g10 = GetVisualGearValues(tempE) |
|
192 |
SetVisualGearValues(tempE, eX, eY, g3, g4, g5, g6, g7, g8, g9, fCol[i]) |
|
193 |
end |
|
194 |
end |
|
4843 | 195 |
end |
4786 | 196 |
end |
197 |
||
198 |
function CreateZone(xMin, yMin, width, height) |
|
199 |
||
200 |
||
201 |
zXMin[zCount] = xMin |
|
202 |
zYMin[zCount] = yMin |
|
203 |
zWidth[zCount] = width |
|
204 |
zHeight[zCount] = height |
|
205 |
zOccupied[zCount] = false |
|
206 |
zCount = zCount + 1 |
|
207 |
||
208 |
return (zCount-1) |
|
209 |
||
210 |
end |
|
211 |
||
212 |
function GearIsInZone(gear, zI) |
|
213 |
||
214 |
if (GetX(gear) > zXMin[zI]) and (GetX(gear) < (zXMin[zI]+zWidth[zI])) and (GetY(gear) > zYMin[zI]) and (GetY(gear) < (zYMin[zI]+zHeight[zI])) then |
|
215 |
zOccupied[zI] = true |
|
216 |
else |
|
217 |
zOccupied[zI] = false |
|
218 |
end |
|
219 |
||
220 |
return zOccupied[zI] |
|
221 |
||
222 |
end |
|
223 |
||
224 |
------------------------ |
|
225 |
--flag methods |
|
226 |
------------------------ |
|
227 |
||
228 |
function CheckScore(teamID) |
|
229 |
||
230 |
if teamID == 0 then |
|
231 |
alt = 1 |
|
232 |
||
233 |
elseif teamID == 1 then |
|
234 |
alt = 0 |
|
235 |
end |
|
236 |
||
4843 | 237 |
if fCaptures[teamID] == 3 then |
4786 | 238 |
for i = 0, (numhhs-1) do |
239 |
if GetHogClan(hhs[i]) == alt then |
|
7838 | 240 |
SetEffect(hhs[i], heResurrectable, 0) |
4786 | 241 |
SetHealth(hhs[i],0) |
242 |
end |
|
243 |
end |
|
244 |
ShowMission(loc("GAME OVER!"), loc("Victory for the ") .. GetHogTeamName(CurrentHedgehog), loc("Hooray!"), 0, 0) |
|
245 |
end |
|
246 |
||
247 |
end |
|
248 |
||
249 |
function HandleRespawns() |
|
250 |
||
251 |
for i = 0, 1 do |
|
252 |
||
253 |
if fNeedsRespawn[i] == true then |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
254 |
fGear[i] = SpawnFakeAmmoCrate(fSpawnX[i],fSpawnY[i],false,false) |
4786 | 255 |
--fGear[i] = SpawnHealthCrate(fSpawnX[i],fSpawnY[i]) |
256 |
fNeedsRespawn[i] = false |
|
257 |
fIsMissing[i] = false -- new, this should solve problems of a respawned flag being "returned" when a player tries to score |
|
258 |
AddCaption(loc("Flag respawned!")) |
|
259 |
end |
|
260 |
||
261 |
end |
|
262 |
||
263 |
end |
|
264 |
||
265 |
function FlagDeleted(gear) |
|
266 |
||
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
267 |
PlaySound(sndShotgunReload) |
4786 | 268 |
if (gear == fGear[0]) then |
269 |
wtf = 0 |
|
270 |
bbq = 1 |
|
271 |
elseif (gear == fGear[1]) then |
|
272 |
wtf = 1 |
|
273 |
bbq = 0 |
|
274 |
end |
|
275 |
||
276 |
--ShowMission("OH HAI!", "FlagDeleted was called", "Oh noes!", -amBazooka, 0) |
|
277 |
||
278 |
if CurrentHedgehog ~= nil then |
|
279 |
||
280 |
--ShowMission("GUESS WAT?", "I'm not nil", "Oh noes!", -amBazooka, 0) |
|
281 |
--if the player picks up the flag |
|
282 |
if CheckDistance(CurrentHedgehog, fGear[wtf]) < 1600 then |
|
283 |
||
284 |
fGear[wtf] = nil -- the flag has now disappeared and we shouldnt be pointing to it |
|
285 |
||
286 |
-- player has successfully captured the enemy flag |
|
287 |
if (GetHogClan(CurrentHedgehog) == wtf) and (CurrentHedgehog == fThief[bbq]) and (fIsMissing[wtf] == false) then |
|
288 |
fIsMissing[wtf] = false |
|
289 |
fNeedsRespawn[wtf] = true |
|
290 |
fIsMissing[bbq] = false |
|
291 |
fNeedsRespawn[bbq] = true |
|
292 |
fCaptures[wtf] = fCaptures[wtf] +1 --fCaptures[wtf] |
|
4843 | 293 |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
294 |
AddCaption(string.format(loc("%s has scored!"), GetHogTeamName(CurrentHedgehog)), 0xFFFFFFFF, capgrpGameState) |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
295 |
for i=1, #clanTeams[wtf] do |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
296 |
SetTeamLabel(clanTeams[wtf][i], fCaptures[wtf]) |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
297 |
end |
4786 | 298 |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
299 |
PlaySound(sndHomerun) |
4786 | 300 |
--SetEffect(fThief[bbq], hePoisoned, false) |
301 |
fThief[bbq] = nil -- player no longer has the enemy flag |
|
302 |
CheckScore(wtf) |
|
303 |
||
304 |
--if the player is returning the flag |
|
305 |
elseif GetHogClan(CurrentHedgehog) == wtf then |
|
306 |
||
307 |
fNeedsRespawn[wtf] = true |
|
308 |
||
309 |
-- NEW ADDIITON, does this work? Should make it possible to return your flag and then score in the same turn |
|
310 |
if fIsMissing[wtf] == true then |
|
311 |
HandleRespawns() -- this will set fIsMissing[wtf] to false :) |
|
312 |
AddCaption(loc("Flag returned!")) |
|
313 |
elseif fIsMissing[wtf] == false then |
|
12426
9f3387907e06
Fix even more bad/broken loc()'s in scripts (hopefully the last one)
Wuzzy <almikes@aol.com>
parents:
12079
diff
changeset
|
314 |
AddCaption(loc("That was pointless. The flag will respawn next round.")) |
4786 | 315 |
end |
316 |
||
317 |
--fIsMissing[wtf] = false |
|
318 |
--ShowMission("Flag returned!", "Hooray", "", -amBazooka, 0) |
|
319 |
||
320 |
--if the player is taking the enemy flag |
|
321 |
elseif GetHogClan(CurrentHedgehog) == bbq then |
|
322 |
fIsMissing[wtf] = true |
|
323 |
for i = 0,numhhs-1 do |
|
324 |
if CurrentHedgehog == hhs[i] then |
|
325 |
fThief[wtf] = hhs[i] |
|
326 |
--SetEffect(fThief[wtf], hePoisoned, true) |
|
327 |
end |
|
328 |
end |
|
329 |
||
330 |
AddCaption(loc("Flag captured!")) |
|
331 |
||
332 |
else --below line doesnt usually get called |
|
333 |
AddCaption("Hmm... that wasn't supposed to happen...") |
|
334 |
||
335 |
end |
|
336 |
||
337 |
-- if flag has been destroyed, probably |
|
338 |
else |
|
339 |
||
340 |
if GetY(fGear[wtf]) > 2025 then |
|
341 |
fGear[wtf] = nil |
|
342 |
fIsMissing[wtf] = true |
|
343 |
fNeedsRespawn[wtf] = true |
|
344 |
HandleRespawns() |
|
345 |
else |
|
346 |
fGear[wtf] = nil |
|
347 |
fIsMissing[wtf] = true |
|
348 |
fNeedsRespawn[wtf] = true |
|
349 |
AddCaption(loc("Boom!") .. " " .. loc("The flag will respawn next round.")) |
|
350 |
end |
|
351 |
||
352 |
end |
|
353 |
||
354 |
-- if flag has been destroyed deep underwater and player is now nil |
|
355 |
-- probably only gets called if the flag thief drowns himself |
|
356 |
-- otherwise the above one will work fine |
|
357 |
else |
|
358 |
--ShowMission("NIL PLAYER!", "Oh snap", "Oh noes!", -amBazooka, 0) |
|
359 |
fGear[wtf] = nil |
|
360 |
fIsMissing[wtf] = true |
|
361 |
fNeedsRespawn[wtf] = true |
|
362 |
AddCaption(loc("The flag will respawn next round.")) |
|
363 |
end |
|
364 |
||
365 |
end |
|
366 |
||
367 |
function FlagThiefDead(gear) |
|
368 |
||
369 |
if (gear == fThief[0]) then |
|
370 |
wtf = 0 |
|
371 |
bbq = 1 |
|
372 |
elseif (gear == fThief[1]) then |
|
373 |
wtf = 1 |
|
374 |
bbq = 0 |
|
375 |
end |
|
376 |
||
377 |
if fThief[wtf] ~= nil then |
|
4871 | 378 |
|
379 |
if fThiefY[wtf] > 2040 then |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
380 |
fGear[wtf] = SpawnFakeAmmoCrate(fThiefX[wtf],(fThiefY[wtf]+10),false,false) |
4871 | 381 |
else |
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
382 |
fGear[wtf] = SpawnFakeAmmoCrate(fThiefX[wtf],(fThiefY[wtf]-50),false,false) |
4871 | 383 |
end |
384 |
||
4786 | 385 |
AddVisualGear(fThiefX[wtf], fThiefY[wtf], vgtBigExplosion, 0, false) |
386 |
fThief[wtf] = nil |
|
387 |
end |
|
388 |
||
389 |
end |
|
390 |
||
391 |
function HandleCircles() |
|
4843 | 392 |
|
4786 | 393 |
for i = 0, 1 do |
394 |
if fIsMissing[i] == false then -- draw a circle at the flag's spawning place |
|
395 |
--SetVisualGearValues(fCirc[i], fSpawnX[i],fSpawnY[i], 20, 200, 0, 0, 100, 33, 2, fCol[i]) |
|
396 |
SetVisualGearValues(fCirc[i], fSpawnX[i],fSpawnY[i], vCircMinA[i], vCircMaxA[i], vCircType[i], vCircPulse[i], vCircFuckAll[i], vCircRadius[i], vCircWidth[i], vCircCol[i]) |
|
397 |
elseif (fIsMissing[i] == true) and (fNeedsRespawn[i] == false) then |
|
398 |
if fThief[i] ~= nil then -- draw circle round flag carrier |
|
399 |
--SetVisualGearValues(fCirc[i], fThiefX[i], fThiefY[i], 20, 200, 0, 0, 100, 33, 2, fCol[i]) |
|
400 |
SetVisualGearValues(fCirc[i], fThiefX[i], fThiefY[i], vCircMinA[i], vCircMaxA[i], vCircType[i], vCircPulse[i], vCircFuckAll[i], vCircRadius[i], vCircWidth[i], vCircCol[i]) |
|
401 |
elseif fThief[i] == nil then -- draw cirle round dropped flag |
|
402 |
--SetVisualGearValues(fCirc[i], GetX(fGear[i]), GetY(fGear[i]), 20, 200, 0, 0, 100, 33, 2, fCol[i]) |
|
403 |
SetVisualGearValues(fCirc[i], GetX(fGear[i]),GetY(fGear[i]), vCircMinA[i], vCircMaxA[i], vCircType[i], vCircPulse[i], vCircFuckAll[i], vCircRadius[i], vCircWidth[i], vCircCol[i]) |
|
404 |
end |
|
405 |
end |
|
4843 | 406 |
|
4786 | 407 |
if fNeedsRespawn[i] == true then -- if the flag has been destroyed, no need for a circle |
408 |
SetVisualGearValues(fCirc[i], fSpawnX[i],fSpawnY[i], 20, 200, 0, 0, 100, 0, 0, fCol[i]) |
|
409 |
end |
|
410 |
end |
|
411 |
||
412 |
end |
|
413 |
||
414 |
------------------------ |
|
415 |
-- general methods |
|
416 |
------------------------ |
|
417 |
||
418 |
function CheckDistance(gear1, gear2) |
|
419 |
||
420 |
g1X, g1Y = GetGearPosition(gear1) |
|
421 |
g2X, g2Y = GetGearPosition(gear2) |
|
422 |
||
423 |
g1X = g1X - g2X |
|
424 |
g1Y = g1Y - g2Y |
|
425 |
z = (g1X*g1X) + (g1Y*g1Y) |
|
426 |
||
427 |
--dist = math.sqrt(z) |
|
428 |
||
429 |
dist = z |
|
430 |
||
431 |
return dist |
|
432 |
||
433 |
end |
|
434 |
||
435 |
function CheckTeleporters() |
|
436 |
||
437 |
teleportActive = false |
|
438 |
||
439 |
if (GearIsInZone(CurrentHedgehog, redTel) == true) and (GetHogClan(CurrentHedgehog) == 0) then |
|
440 |
teleportActive = true |
|
441 |
destinationX = 1402 |
|
442 |
destinationY = 321 |
|
443 |
elseif (GearIsInZone(CurrentHedgehog, orangeTel) == true) and (GetHogClan(CurrentHedgehog) == 1) then |
|
444 |
teleportActive = true |
|
445 |
destinationX = 2692 |
|
446 |
destinationY = 321 |
|
447 |
end |
|
448 |
||
449 |
if teleportActive == true then |
|
450 |
if actionReset == 0 then |
|
4871 | 451 |
if ropeGear ~= nil then |
452 |
if GetGearElasticity(ropeGear) ~= 0 then |
|
453 |
SetGearMessage(CurrentHedgehog, gmAttack) |
|
454 |
end |
|
455 |
end |
|
4786 | 456 |
--AddCaption(actionReset .. ";" .. "attack") |
457 |
elseif actionReset == 10 then |
|
458 |
SetGearMessage(CurrentHedgehog, 0) |
|
459 |
--AddCaption(actionReset .. ";" .. "reset") |
|
460 |
elseif actionReset == 20 then |
|
461 |
AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtBigExplosion, 0, false) |
|
462 |
SetGearPosition(CurrentHedgehog,destinationX,destinationY) |
|
463 |
AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtBigExplosion, 0, false) |
|
464 |
--AddCaption(actionReset .. ";" .. "teleport") |
|
465 |
end |
|
466 |
||
467 |
actionReset = actionReset + 1 |
|
468 |
if actionReset >= 30 then |
|
469 |
actionReset = 0 |
|
470 |
end |
|
471 |
||
472 |
end |
|
473 |
||
474 |
end |
|
475 |
||
476 |
function RebuildTeamInfo() |
|
477 |
||
478 |
||
479 |
-- make a list of individual team names |
|
5821
afb988c1a2fe
Allow limited form of SuddenDeath (WaterRise = 0) in both CTF modes
mikade
parents:
5328
diff
changeset
|
480 |
for i = 0, (TeamsCount-1) do |
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
481 |
teamNameArr[i] = GetTeamName(i) |
4786 | 482 |
teamSize[i] = 0 |
483 |
teamIndex[i] = 0 |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
484 |
SetTeamLabel(teamNameArr[i], "0") |
4786 | 485 |
end |
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
486 |
numTeams = TeamsCount |
4786 | 487 |
|
488 |
-- find out how many hogs per team, and the index of the first hog in hhs |
|
489 |
for i = 0, numTeams-1 do |
|
490 |
||
491 |
for z = 0, numhhs-1 do |
|
492 |
if GetHogTeamName(hhs[z]) == teamNameArr[i] then |
|
493 |
if teamSize[i] == 0 then |
|
494 |
teamIndex[i] = z -- should give starting index |
|
495 |
end |
|
496 |
teamSize[i] = teamSize[i] + 1 |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
497 |
|
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
498 |
local clan = GetHogClan(hhs[z]) |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
499 |
-- Also remember the clan to which the team belongs to |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
500 |
if not clanTeams[clan] then |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
501 |
clanTeams[clan] = {} |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
502 |
end |
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
503 |
table.insert(clanTeams[clan], teamNameArr[i]) |
4786 | 504 |
end |
505 |
end |
|
506 |
||
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
507 |
|
4786 | 508 |
end |
509 |
||
510 |
end |
|
511 |
||
512 |
function HandleCrateDrops() |
|
513 |
||
514 |
roundsCounter = roundsCounter +1 |
|
515 |
||
516 |
if roundsCounter == 5 then |
|
517 |
||
518 |
roundsCounter = 0 |
|
519 |
||
520 |
r = GetRandom(8) |
|
521 |
if r == 0 then |
|
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
522 |
SpawnSupplyCrate(0,0,amSwitch) |
4786 | 523 |
elseif r == 1 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
524 |
SpawnSupplyCrate(0,0,amTeleport) |
4786 | 525 |
elseif r == 2 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
526 |
SpawnSupplyCrate(0,0,amJetpack) |
4786 | 527 |
elseif r == 3 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
528 |
SpawnSupplyCrate(0,0,amExtraTime) |
4786 | 529 |
elseif r == 4 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
530 |
SpawnSupplyCrate(0,0,amGirder) |
4786 | 531 |
elseif r == 5 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
532 |
SpawnSupplyCrate(0,0,amDynamite) |
4786 | 533 |
elseif r == 6 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
534 |
SpawnSupplyCrate(0,0,amFlamethrower) |
4786 | 535 |
elseif r == 7 then |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
536 |
SpawnSupplyCrate(0,0,amPortalGun) |
4786 | 537 |
end |
538 |
||
539 |
end |
|
540 |
||
541 |
end |
|
542 |
||
543 |
------------------------ |
|
544 |
-- game methods |
|
545 |
------------------------ |
|
546 |
||
547 |
function onGameInit() |
|
548 |
||
549 |
-- Things we don't modify here will use their default values. |
|
550 |
GameFlags = gfDivideTeams -- Game settings and rules |
|
551 |
TurnTime = 30000 -- (was 30) The time the player has to move each round (in ms) |
|
552 |
CaseFreq = 0 -- The frequency of crate drops |
|
553 |
MinesNum = 0 -- The number of mines being placed |
|
554 |
MinesTime = 2000 |
|
555 |
Explosives = 0 -- The number of explosives being placed |
|
556 |
Delay = 10 -- The delay between each round |
|
12079
8f222872d432
Disable SD for a couple of scripts and mission maps
Wuzzy <almikes@aol.com>
parents:
12077
diff
changeset
|
557 |
-- Disable Sudden Death |
8f222872d432
Disable SD for a couple of scripts and mission maps
Wuzzy <almikes@aol.com>
parents:
12077
diff
changeset
|
558 |
WaterRise = 0 |
8f222872d432
Disable SD for a couple of scripts and mission maps
Wuzzy <almikes@aol.com>
parents:
12077
diff
changeset
|
559 |
HealthDecrease = 0 |
4786 | 560 |
Map = "Blizzard" -- The map to be played |
561 |
Theme = "Snow" -- The theme to be used "Nature" |
|
562 |
||
563 |
end |
|
564 |
||
565 |
||
566 |
function onGameStart() |
|
567 |
||
12077
ce3860c82c8b
Rewrite 2nd line of mission panel of most missions for consistency
Wuzzy <almikes@aol.com>
parents:
9093
diff
changeset
|
568 |
ShowMission(loc("CTF_Blizzard"), loc("Capture The Flag"), loc(" - Return the enemy flag to your base to score | - First team to 3 captures wins | - You may only score when your flag is in your base | - Hogs will drop the flag if killed, or drowned | - Dropped flags may be returned or recaptured | - Hogs respawn when killed"), 0, 0) |
4786 | 569 |
|
570 |
||
571 |
-- initialize teleporters |
|
572 |
redTel = CreateZone(342,1316,42,449) -- red teleporter |
|
573 |
orangeTel = CreateZone(3719,1330,45,449) -- orange teleporter |
|
574 |
||
575 |
||
576 |
--new improved placement schematics aw yeah |
|
577 |
RebuildTeamInfo() |
|
578 |
--ShowMission("Team Info Rebuilt", "Here you go:", "TeamCount: " .. TeamsCount .. "|" .. teamNameArr[0] .. ": " .. teamSize[0] .. " Hogs|" .. teamNameArr[1] .. ": " .. teamSize[1] .. " Hogs|" .. teamNameArr[2] .. ": " .. teamSize[2] .. " Hogs|", 0, 0) |
|
579 |
team1Placed = 0 |
|
580 |
team2Placed = 0 |
|
581 |
for i = 0, (TeamsCount-1) do |
|
582 |
for g = teamIndex[i], (teamIndex[i]+teamSize[i]-1) do |
|
583 |
if GetHogClan(hhs[g]) == 0 then |
|
584 |
SetGearPosition(hhs[g],1403+ ((team1Placed+1)*50),1570) |
|
585 |
team1Placed = team1Placed +1 |
|
586 |
if team1Placed > 6 then |
|
587 |
team1Placed = 0 |
|
588 |
end |
|
589 |
elseif GetHogClan(hhs[g]) == 1 then |
|
4953
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
590 |
SetGearPosition(hhs[g],2691- ((team2Placed+1)*50),1570) |
4786 | 591 |
team2Placed = team2Placed +1 |
592 |
if team2Placed > 6 then |
|
593 |
team2Placed = 0 |
|
594 |
end |
|
595 |
end |
|
596 |
end |
|
597 |
end |
|
598 |
||
599 |
||
600 |
||
601 |
--spawn starting ufos and or super weapons |
|
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
602 |
SpawnSupplyCrate(2048,1858,amJetpack) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12426
diff
changeset
|
603 |
--SpawnSupplyCrate(2048,1858,amExtraTime) |
4786 | 604 |
|
605 |
--set flag spawn points and spawn the flags |
|
606 |
fSpawnX[0] = 957 |
|
607 |
fSpawnY[0] = 1747 |
|
608 |
fSpawnX[1] = 3123 |
|
609 |
fSpawnY[1] = 1747 |
|
610 |
||
611 |
for i = 0, 1 do |
|
13019
880662cf41ee
Add team score next to team bars for CTF_Blizard, Control, CTF, Mutant, Space Invasion
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
612 |
fGear[i] = SpawnFakeAmmoCrate(fSpawnX[i],fSpawnY[i],false,false) |
4786 | 613 |
fCirc[i] = AddVisualGear(fSpawnX[i],fSpawnY[i],vgtCircle,0,true) |
4843 | 614 |
fCol[i] = GetClanColor(i) |
4786 | 615 |
|
616 |
fSpawnC[i] = AddVisualGear(fSpawnX[i],fSpawnY[i],vgtCircle,0,true) |
|
4843 | 617 |
SetVisualGearValues(fSpawnC[i], fSpawnX[i],fSpawnY[i], 10, 200, 1, 10, 0, 300, 5, fCol[i]) |
618 |
||
619 |
||
4786 | 620 |
fIsMissing[i] = false |
621 |
fNeedsRespawn[i] = false |
|
622 |
fCaptures[i] = 0 |
|
623 |
||
624 |
vCircMinA[i] = 20 |
|
625 |
vCircMaxA[i] = 255 |
|
626 |
vCircType[i] = 1 |
|
627 |
vCircPulse[i] = 10 |
|
628 |
vCircFuckAll[i] = 0 |
|
629 |
vCircRadius[i] = 150 |
|
630 |
vCircWidth[i] = 5 |
|
631 |
vCircCol[i] = fCol[i] |
|
632 |
||
633 |
SetVisualGearValues(fCirc[i], fSpawnX[i],fSpawnY[i], vCircMinA[i], vCircMaxA[i], vCircType[i], vCircPulse[i], vCircFuckAll[i], vCircRadius[i], vCircWidth[i], vCircCol[i]) |
|
634 |
||
635 |
end |
|
636 |
||
637 |
end |
|
638 |
||
639 |
||
640 |
function onNewTurn() |
|
641 |
||
642 |
if lastTeam ~= GetHogTeamName(CurrentHedgehog) then |
|
643 |
lastTeam = GetHogTeamName(CurrentHedgehog) |
|
644 |
end |
|
645 |
||
646 |
for i = 0, 1 do |
|
647 |
if fThief[i] ~= nil then |
|
648 |
--adjust = 5 + GetHealth(fThief[i]) |
|
649 |
--SetHealth(fThief[i], adjust) |
|
650 |
--AddCaption('Helped out the flag poisoned flag thiefs') |
|
651 |
end |
|
652 |
end |
|
653 |
||
654 |
--AddCaption("Handling respawns") |
|
655 |
HandleRespawns() |
|
656 |
HandleCrateDrops() |
|
657 |
||
658 |
--myC = AddVisualGear(GetX(CurrentHedgehog),GetY(CurrentHedgehog),vgtCircle,0,true) |
|
4843 | 659 |
--SetVisualGearValues(myC, GetX(CurrentHedgehog),GetY(CurrentHedgehog), 20, 200, 0, 0, 100, 50, 3, GetClanColor(GetHogClan(CurrentHedgehog))) |
4786 | 660 |
|
661 |
end |
|
662 |
||
663 |
function onGameTick() |
|
664 |
||
665 |
-- onRessurect calls AFTER you have resurrected, |
|
666 |
-- so keeping track of x,y a few milliseconds before |
|
667 |
-- is useful |
|
668 |
--FTTC = FTTC + 1 |
|
669 |
--if FTTC == 100 then |
|
670 |
-- FTTC = 0 |
|
671 |
for i = 0,1 do |
|
672 |
if fThief[i] ~= nil then |
|
673 |
fThiefX[i] = GetX(fThief[i]) |
|
674 |
fThiefY[i] = GetY(fThief[i]) |
|
675 |
end |
|
676 |
end |
|
677 |
--end |
|
678 |
||
679 |
-- things we wanna check often |
|
680 |
if (CurrentHedgehog ~= nil) then |
|
681 |
--AddCaption(GetX(CurrentHedgehog) .. "; " .. GetY(CurrentHedgehog)) |
|
682 |
--AddCaption("Checking Teleporters") |
|
683 |
CheckTeleporters() |
|
684 |
end |
|
685 |
||
686 |
HandleCircles() |
|
687 |
ManageTeleporterEffects() |
|
688 |
||
689 |
end |
|
690 |
||
691 |
||
692 |
function onAmmoStoreInit() |
|
693 |
||
694 |
SetAmmo(amDrill,9,0,0,0) |
|
695 |
SetAmmo(amMortar,9,0,0,0) |
|
696 |
||
697 |
SetAmmo(amGrenade,9,0,0,0) |
|
698 |
SetAmmo(amClusterBomb,4,0,0,0) |
|
699 |
||
700 |
--SetAmmo(amDEagle, 4, 0, 0, 0) |
|
701 |
SetAmmo(amShotgun, 9, 0, 0, 0) |
|
702 |
SetAmmo(amFlamethrower, 1, 0, 0, 1) |
|
703 |
||
704 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
|
705 |
SetAmmo(amBaseballBat, 2, 0, 0, 0) |
|
4953
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
706 |
--SetAmmo(amKamikaze, 2, 0, 0, 0) |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
707 |
|
4786 | 708 |
|
709 |
SetAmmo(amDynamite,2,0,0,1) |
|
710 |
SetAmmo(amSMine,4,0,0,0) |
|
711 |
||
712 |
SetAmmo(amBlowTorch, 9, 0, 0, 0) |
|
713 |
SetAmmo(amPickHammer, 9, 0, 0, 0) |
|
714 |
SetAmmo(amGirder, 2, 0, 0, 2) |
|
715 |
SetAmmo(amPortalGun, 2, 0, 0, 2) |
|
716 |
||
717 |
SetAmmo(amParachute, 9, 0, 0, 0) |
|
718 |
SetAmmo(amRope, 9, 0, 0, 0) |
|
4843 | 719 |
SetAmmo(amTeleport, 0, 0, 0, 1) |
4786 | 720 |
SetAmmo(amJetpack, 1, 0, 0, 1) |
721 |
||
722 |
SetAmmo(amSwitch, 2, 0, 0, 1) |
|
723 |
SetAmmo(amExtraTime,1,0,0,1) |
|
724 |
SetAmmo(amLowGravity,1,0,0,0) |
|
725 |
SetAmmo(amSkip, 9, 0, 0, 0) |
|
726 |
||
727 |
end |
|
728 |
||
729 |
||
730 |
function onGearResurrect(gear) |
|
731 |
||
732 |
--AddCaption("A gear has been resurrected!") |
|
733 |
||
734 |
-- mark the flag thief as dead if he needed a respawn |
|
735 |
for i = 0,1 do |
|
736 |
if gear == fThief[i] then |
|
737 |
FlagThiefDead(gear) |
|
738 |
end |
|
739 |
end |
|
740 |
||
741 |
-- place hogs belonging to each clan either left or right side of map |
|
742 |
if GetHogClan(gear) == 0 then |
|
743 |
FindPlace(gear, false, 0, 2048) |
|
744 |
elseif GetHogClan(gear) == 1 then |
|
745 |
FindPlace(gear, false, 2048, LAND_WIDTH) |
|
746 |
end |
|
4843 | 747 |
|
4786 | 748 |
AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false) |
749 |
||
750 |
end |
|
751 |
||
752 |
function onGearDamage(gear, damage) |
|
753 |
||
4843 | 754 |
-- >_< damn, occurs too fast, before the hog has finished moving / updated his health |
4786 | 755 |
--if GetGearType(gear) == gtHedgehog then |
756 |
-- if damage > GetHealth(gear) then |
|
4843 | 757 |
-- AddVisualGear(GetX(gear), GetY(gear), vgtExplosion, 0, false) |
4786 | 758 |
-- end |
759 |
--end |
|
760 |
||
761 |
end |
|
762 |
||
763 |
function onGearAdd(gear) |
|
764 |
||
765 |
if GetGearType(gear) == gtHedgehog then |
|
766 |
||
767 |
hhs[numhhs] = gear |
|
768 |
numhhs = numhhs + 1 |
|
7838 | 769 |
SetEffect(gear, heResurrectable, 1) |
4786 | 770 |
|
771 |
end |
|
772 |
||
4871 | 773 |
if GetGearType(gear) == gtRope then |
774 |
ropeGear = gear |
|
775 |
end |
|
776 |
||
4786 | 777 |
end |
778 |
||
779 |
function onGearDelete(gear) |
|
780 |
||
781 |
if (gear == fGear[0]) or (gear == fGear[1]) then |
|
782 |
FlagDeleted(gear) |
|
783 |
end |
|
784 |
||
4871 | 785 |
if GetGearType(gear) == gtRope then |
786 |
ropeGear = nil |
|
787 |
end |
|
788 |
||
4953
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
789 |
if GetGearType(gear) == gtHedgehog then |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
790 |
for i = 0, (numhhs-1) do |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
791 |
if gear == hhs[i] then |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
792 |
|
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
793 |
for k = 0,1 do |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
794 |
if gear == fThief[k] then |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
795 |
FlagThiefDead(gear) |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
796 |
end |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
797 |
end |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
798 |
hhs[i] = nil |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
799 |
end |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
800 |
end |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
801 |
end |
ebd3dae634ca
Fixed scoring exploit on Control and removed user branding from the map
mikade
parents:
4871
diff
changeset
|
802 |
|
4786 | 803 |
end |