equal
deleted
inserted
replaced
56 -- The base number for the random number generator |
56 -- The base number for the random number generator |
57 Seed = 0 |
57 Seed = 0 |
58 -- Game settings and rules |
58 -- Game settings and rules |
59 GameFlags = gfMultiWeapon + gfOneClanMode + gfSolidLand |
59 GameFlags = gfMultiWeapon + gfOneClanMode + gfSolidLand |
60 -- The time the player has to move each round (in ms) |
60 -- The time the player has to move each round (in ms) |
61 TurnTime = 25000 |
61 TurnTime = 60000 |
62 -- The frequency of crate drops |
62 -- The frequency of crate drops |
63 CaseFreq = 0 |
63 CaseFreq = 0 |
64 -- The number of land objects being placed |
64 -- The number of land objects being placed |
65 LandAdds = 0 |
65 LandAdds = 0 |
66 -- The delay between each round |
66 -- The delay between each round |
99 -- code here as this might slow down your game. |
99 -- code here as this might slow down your game. |
100 function onGameTick() |
100 function onGameTick() |
101 -- If time's up, set the game to be lost. |
101 -- If time's up, set the game to be lost. |
102 -- We actually check the time to be "1 ms" as it |
102 -- We actually check the time to be "1 ms" as it |
103 -- will be at "0 ms" right at the start of the game. |
103 -- will be at "0 ms" right at the start of the game. |
104 if TurnTimeLeft == 1 then |
104 if TurnTimeLeft == 1 and score < score_goal then |
105 game_lost = true |
105 game_lost = true |
106 -- ... and show a short message. |
106 -- ... and show a short message. |
107 ShowMission("Bazooka Training", "Aiming Practice", "Oh no! Time's up! Just try again.", -amSkip, 0); |
107 ShowMission("Bazooka Training", "Aiming Practice", "Oh no! Time's up! Just try again.", -amSkip, 0); |
108 -- How about killing our poor hog due to his poor performance? |
108 -- How about killing our poor hog due to his poor performance? |
109 SetHealth(player, 0); |
109 SetHealth(player, 0); |