28 |
28 |
29 --AddTeam("Toxic Team", 1175851, "Simple", "Island", "Robot","cm_binary") |
29 --AddTeam("Toxic Team", 1175851, "Simple", "Island", "Robot","cm_binary") |
30 AddTeam(loc("Cybernetic Empire"), 1175851, "Simple", "Island", "Robot", "cm_binary") |
30 AddTeam(loc("Cybernetic Empire"), 1175851, "Simple", "Island", "Robot", "cm_binary") |
31 enemy = AddHog(loc("Unit 3378"), 5, 30, "cyborg1") |
31 enemy = AddHog(loc("Unit 3378"), 5, 30, "cyborg1") |
32 |
32 |
33 SetGearPosition(player, 2427, 1259) |
33 SetGearPosition(player,1403,235) |
34 SetGearPosition(p2, 2293, 1263) |
34 SetGearPosition(p2,1269,239) |
35 SetGearPosition(enemy, 1516, 1519) |
35 SetGearPosition(enemy,492,495) |
36 |
36 |
37 end |
37 end |
38 |
38 |
39 |
39 |
40 function onGameStart() |
40 function onGameStart() |
41 |
41 |
42 --mines |
42 --mines |
43 AddGear(1300, 1100, gtMine, 0, 0, 0, 0) |
43 AddGear(276,76,gtMine, 0, 0, 0, 0) |
44 AddGear(1325, 1100, gtMine, 0, 0, 0, 0) |
44 AddGear(301,76,gtMine, 0, 0, 0, 0) |
45 AddGear(1350, 1100, gtMine, 0, 0, 0, 0) |
45 AddGear(326,76,gtMine, 0, 0, 0, 0) |
46 AddGear(1375, 1100, gtMine, 0, 0, 0, 0) |
46 AddGear(351,76,gtMine, 0, 0, 0, 0) |
47 AddGear(1400, 1100, gtMine, 0, 0, 0, 0) |
47 AddGear(376,76,gtMine, 0, 0, 0, 0) |
48 AddGear(1425, 1100, gtMine, 0, 0, 0, 0) |
48 AddGear(401,76,gtMine, 0, 0, 0, 0) |
49 AddGear(1450, 1100, gtMine, 0, 0, 0, 0) |
49 AddGear(426,76,gtMine, 0, 0, 0, 0) |
50 AddGear(1475, 1100, gtMine, 0, 0, 0, 0) |
50 AddGear(451,76,gtMine, 0, 0, 0, 0) |
51 AddGear(1500, 1100, gtMine, 0, 0, 0, 0) |
51 AddGear(476,76,gtMine, 0, 0, 0, 0) |
52 |
52 |
53 AddGear(1910, 1380, gtMine, 0, 0, 0, 0) |
53 AddGear(886,356,gtMine, 0, 0, 0, 0) |
54 AddGear(1925, 1380, gtMine, 0, 0, 0, 0) |
54 AddGear(901,356,gtMine, 0, 0, 0, 0) |
55 AddGear(1950, 1380, gtMine, 0, 0, 0, 0) |
55 AddGear(926,356,gtMine, 0, 0, 0, 0) |
56 AddGear(1975, 1380, gtMine, 0, 0, 0, 0) |
56 AddGear(951,356,gtMine, 0, 0, 0, 0) |
57 AddGear(2000, 1380, gtMine, 0, 0, 0, 0) |
57 AddGear(976,356,gtMine, 0, 0, 0, 0) |
58 AddGear(2025, 1380, gtMine, 0, 0, 0, 0) |
58 AddGear(1001,356,gtMine, 0, 0, 0, 0) |
59 |
59 |
60 -- crates crates and more crates |
60 -- crates crates and more crates |
61 bCrate = SpawnAmmoCrate(2712,1500,amBaseballBat) |
61 bCrate = SpawnAmmoCrate(1688,476,amBaseballBat) |
62 SpawnUtilityCrate(1596,1167,amGirder) |
62 SpawnUtilityCrate(572,143,amGirder) |
63 SpawnAmmoCrate(2728,1978,amPickHammer) |
63 SpawnAmmoCrate(1704,954,amPickHammer) |
64 SpawnAmmoCrate(1728,1647,amBlowTorch) |
64 SpawnAmmoCrate(704,623,amBlowTorch) |
65 SpawnUtilityCrate(2567,1768,amJetpack) |
65 SpawnUtilityCrate(1543,744,amJetpack) |
66 SpawnAmmoCrate(1251,1466,amDrill) |
66 SpawnAmmoCrate(227,442,amDrill) |
67 |
67 |
68 ShowMission(loc("Codename: Teamwork"), "", loc("- Eliminate Unit 3378 |- Feeble Resistance must survive") .. loc("|- Mines Time:") .. " " .. 0 .. " " .. loc("sec"), 0, 0) |
68 ShowMission(loc("Codename: Teamwork"), "", loc("- Eliminate Unit 3378 |- Feeble Resistance must survive") .. loc("|- Mines Time:") .. " " .. 0 .. " " .. loc("sec"), 0, 0) |
69 |
69 |
70 end |
70 end |
71 |
71 |
72 |
72 |
73 function onGameTick() |
73 --function onGameTick() |
74 |
74 |
75 --if CurrentHedgehog ~= nil then |
75 --if CurrentHedgehog ~= nil then |
76 -- AddCaption(GetX(CurrentHedgehog) .. ";" .. GetY(CurrentHedgehog)) |
76 -- AddCaption(GetX(CurrentHedgehog) .. ";" .. GetY(CurrentHedgehog)) |
77 --end |
77 --end |
78 |
78 |
79 end |
79 --end |
80 |
80 |
81 |
81 |
82 function onAmmoStoreInit() |
82 function onAmmoStoreInit() |
83 SetAmmo(amBlowTorch, 0, 0, 0, 1) |
83 SetAmmo(amBlowTorch, 0, 0, 0, 1) |
84 SetAmmo(amGirder, 0, 0, 0, 1) |
84 SetAmmo(amGirder, 0, 0, 0, 1) |