10 function onGameInit() |
10 function onGameInit() |
11 |
11 |
12 -- Things we don't modify here will use their default values. |
12 -- Things we don't modify here will use their default values. |
13 Seed = 0 -- The base number for the random number generator |
13 Seed = 0 -- The base number for the random number generator |
14 GameFlags = gfDisableWind-- Game settings and rules |
14 GameFlags = gfDisableWind-- Game settings and rules |
15 SuddenDeathTurns = 9999 |
|
16 TurnTime = 30000 -- The time the player has to move each round (in ms) |
15 TurnTime = 30000 -- The time the player has to move each round (in ms) |
17 CaseFreq = 0 -- The frequency of crate drops |
16 CaseFreq = 0 -- The frequency of crate drops |
18 MinesNum = 0 -- The number of mines being placed |
17 MinesNum = 0 -- The number of mines being placed |
19 MinesTime = 1 |
18 MinesTime = 1 |
20 Explosives = 0 -- The number of explosives being placed |
19 Explosives = 0 -- The number of explosives being placed |
21 Delay = 10 -- The delay between each round |
20 Delay = 10 -- The delay between each round |
22 Map = "Mushrooms" -- The map to be played |
21 Map = "Mushrooms" -- The map to be played |
23 Theme = "Nature" -- The theme to be used |
22 Theme = "Nature" -- The theme to be used |
|
23 SuddenDeathTurns = 99999 |
24 |
24 |
25 AddTeam(loc("Feeble Resistance"), 14483456, "Simple", "Island", "Default") |
25 AddTeam(loc("Feeble Resistance"), 14483456, "Simple", "Island", "Default") |
26 player = AddHog(string.format(loc("Pathetic Hog #%d"), 1), 0, 50, "NoHat") |
26 player = AddHog(string.format(loc("Pathetic Hog #%d"), 1), 0, 50, "NoHat") |
27 p2 = AddHog(string.format(loc("Pathetic Hog #%d"), 2), 0, 20, "NoHat") |
27 p2 = AddHog(string.format(loc("Pathetic Hog #%d"), 2), 0, 20, "NoHat") |
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, "cyborg") |
31 enemy = AddHog(loc("Unit 3378"), 5, 30, "cyborg1") |
32 |
32 |
33 SetGearPosition(player, 2427, 1259) |
33 SetGearPosition(player, 2427, 1259) |
34 SetGearPosition(p2, 2293, 1263) |
34 SetGearPosition(p2, 2293, 1263) |
35 SetGearPosition(enemy, 1516, 1519) |
35 SetGearPosition(enemy, 1516, 1519) |
36 |
36 |