233 AnimTeleportGear(natives[1], unpack(nativeMidPos2)) |
233 AnimTeleportGear(natives[1], unpack(nativeMidPos2)) |
234 SkipStartAnim() |
234 SkipStartAnim() |
235 end |
235 end |
236 |
236 |
237 function SetupPlace3() |
237 function SetupPlace3() |
238 SpawnUtilityCrate(2086, 1887, amRope, 1) |
238 SpawnSupplyCrate(2086, 1887, amRope, 1) |
239 SpawnAmmoCrate(2147, 728, amBlowTorch, 2) |
239 SpawnSupplyCrate(2147, 728, amBlowTorch, 2) |
240 SpawnAmmoCrate(2778, 1372, amPickHammer, 3) |
240 SpawnSupplyCrate(2778, 1372, amPickHammer, 3) |
241 SpawnAmmoCrate(2579, 1886, amPickHammer, 3) |
241 SpawnSupplyCrate(2579, 1886, amPickHammer, 3) |
242 SpawnUtilityCrate(2622, 1893, amGirder, 1) |
242 SpawnSupplyCrate(2622, 1893, amGirder, 1) |
243 SpawnUtilityCrate(2671, 1883, amPortalGun, 3) |
243 SpawnSupplyCrate(2671, 1883, amPortalGun, 3) |
244 SpawnUtilityCrate(2831, 1384, amGirder, 3) |
244 SpawnSupplyCrate(2831, 1384, amGirder, 3) |
245 |
245 |
246 SetTimer(AddGear(2725, 1387, gtMine, 0, 0, 0, 0), 5000) |
246 SetTimer(AddGear(2725, 1387, gtMine, 0, 0, 0, 0), 5000) |
247 SetTimer(AddGear(2760, 1351, gtMine, 0, 0, 0, 0), 5000) |
247 SetTimer(AddGear(2760, 1351, gtMine, 0, 0, 0, 0), 5000) |
248 SetTimer(AddGear(2805, 1287, gtMine, 0, 0, 0, 0), 5000) |
248 SetTimer(AddGear(2805, 1287, gtMine, 0, 0, 0, 0), 5000) |
249 SetTimer(AddGear(2831, 1376, gtMine, 0, 0, 0, 0), 5000) |
249 SetTimer(AddGear(2831, 1376, gtMine, 0, 0, 0, 0), 5000) |
297 PlaceGirder(674, 1170, 5) |
297 PlaceGirder(674, 1170, 5) |
298 PlaceGirder(710, 1310, 7) |
298 PlaceGirder(710, 1310, 7) |
299 PlaceGirder(648, 1427, 5) |
299 PlaceGirder(648, 1427, 5) |
300 PlaceGirder(2110, 980, 0) |
300 PlaceGirder(2110, 980, 0) |
301 |
301 |
302 SpawnAmmoCrate(814, 407, amBazooka, 4) |
302 SpawnSupplyCrate(814, 407, amBazooka, 4) |
303 clusterCrate = SpawnAmmoCrate(862, 494, amClusterBomb, 4) |
303 clusterCrate = SpawnSupplyCrate(862, 494, amClusterBomb, 4) |
304 SpawnAmmoCrate(855, 486, amBee, 3) |
304 SpawnSupplyCrate(855, 486, amBee, 3) |
305 grenadeCrate1 = SpawnAmmoCrate(849, 459, amGrenade, 4) |
305 grenadeCrate1 = SpawnSupplyCrate(849, 459, amGrenade, 4) |
306 SpawnAmmoCrate(2077, 847, amWatermelon, 3) |
306 SpawnSupplyCrate(2077, 847, amWatermelon, 3) |
307 grenadeCrate2 = SpawnAmmoCrate(2122, 847, amGrenade, 3) |
307 grenadeCrate2 = SpawnSupplyCrate(2122, 847, amGrenade, 3) |
308 |
308 |
309 SpawnAmmoCrate(747, 1577, amPickHammer, 1) |
309 SpawnSupplyCrate(747, 1577, amPickHammer, 1) |
310 SpawnUtilityCrate(496, 1757, amGirder, 2) |
310 SpawnSupplyCrate(496, 1757, amGirder, 2) |
311 SpawnUtilityCrate(1809, 1880, amGirder, 1) |
311 SpawnSupplyCrate(1809, 1880, amGirder, 1) |
312 SpawnUtilityCrate(530, 1747, amPortalGun, 1) |
312 SpawnSupplyCrate(530, 1747, amPortalGun, 1) |
313 end |
313 end |
314 |
314 |
315 -----------------------------Events------------------------------------ |
315 -----------------------------Events------------------------------------ |
316 function CheckPrincessFreed() |
316 function CheckPrincessFreed() |
317 if GetX(natives[1]) == nil or GetX(natives[2]) == nil or GetX(natives[3]) == nil or GetX(princess) == nil then |
317 if GetX(natives[1]) == nil or GetX(natives[2]) == nil or GetX(natives[3]) == nil or GetX(princess) == nil then |
351 function DoCyborgDead(index) |
351 function DoCyborgDead(index) |
352 if cyborgsLeft == 0 then |
352 if cyborgsLeft == 0 then |
353 return |
353 return |
354 end |
354 end |
355 if index == 1 then |
355 if index == 1 then |
356 SpawnAmmoCrate(1700, 407, amBazooka, 3) |
356 SpawnSupplyCrate(1700, 407, amBazooka, 3) |
357 elseif index == 2 then |
357 elseif index == 2 then |
358 SpawnAmmoCrate(1862, 494, amClusterBomb, 3) |
358 SpawnSupplyCrate(1862, 494, amClusterBomb, 3) |
359 elseif index == 3 then |
359 elseif index == 3 then |
360 SpawnAmmoCrate(1855, 486, amBee, 1) |
360 SpawnSupplyCrate(1855, 486, amBee, 1) |
361 elseif index == 4 then |
361 elseif index == 4 then |
362 SpawnAmmoCrate(1849, 459, amGrenade, 3) |
362 SpawnSupplyCrate(1849, 459, amGrenade, 3) |
363 elseif index == 5 then |
363 elseif index == 5 then |
364 SpawnAmmoCrate(2122, 847, amGrenade, 3) |
364 SpawnSupplyCrate(2122, 847, amGrenade, 3) |
365 elseif index == 6 then |
365 elseif index == 6 then |
366 SpawnAmmoCrate(2077, 847, amWatermelon, 1) |
366 SpawnSupplyCrate(2077, 847, amWatermelon, 1) |
367 end |
367 end |
368 end |
368 end |
369 |
369 |
370 function CheckGearsDead(gearList) |
370 function CheckGearsDead(gearList) |
371 for i = 1, # gearList do |
371 for i = 1, # gearList do |
401 |
401 |
402 function DoOutOfCluster() |
402 function DoOutOfCluster() |
403 if (GetX(natives[1]) == nil) then |
403 if (GetX(natives[1]) == nil) then |
404 return |
404 return |
405 end |
405 end |
406 clusterCrate = SpawnAmmoCrate(GetX(natives[1]) - 50, GetY(natives[1]) - 50, amClusterBomb, 3) |
406 clusterCrate = SpawnSupplyCrate(GetX(natives[1]) - 50, GetY(natives[1]) - 50, amClusterBomb, 3) |
407 end |
407 end |
408 |
408 |
409 function DoOutOfGrenade() |
409 function DoOutOfGrenade() |
410 if (GetX(natives[1]) == nil) then |
410 if (GetX(natives[1]) == nil) then |
411 return |
411 return |
412 end |
412 end |
413 grenadeCrate2 = SpawnAmmoCrate(GetX(natives[1]) - 50, GetY(natives[1]) - 50, amGrenade, 3) |
413 grenadeCrate2 = SpawnSupplyCrate(GetX(natives[1]) - 50, GetY(natives[1]) - 50, amGrenade, 3) |
414 end |
414 end |
415 |
415 |
416 function CheckNeedToHide() |
416 function CheckNeedToHide() |
417 if gearDead[princess] == true then |
417 if gearDead[princess] == true then |
418 return false |
418 return false |