151 "|"..loc("Travel to all the neighbor planets and collect all the pieces"), -amSkip, 0) |
151 "|"..loc("Travel to all the neighbor planets and collect all the pieces"), -amSkip, 0) |
152 |
152 |
153 -- do checkpoint stuff needed after game starts |
153 -- do checkpoint stuff needed after game starts |
154 if checkPointReached == 1 then |
154 if checkPointReached == 1 then |
155 AddAnim(dialog01) |
155 AddAnim(dialog01) |
156 AddAmmo(hero.gear, amGasBomb, 5) |
|
157 AddAmmo(hero.gear, amRope, 2) |
|
158 -- Added for dev/debug purposes, remove before release |
|
159 AddAmmo(hero.gear, amJetpack, 2) |
156 AddAmmo(hero.gear, amJetpack, 2) |
160 AddAmmo(guard1.gear, amDEagle, 2) |
157 AddAmmo(guard1.gear, amDEagle, 2) |
161 AddAmmo(guard2.gear, amDEagle, 2) |
158 AddAmmo(guard2.gear, amDEagle, 2) |
162 SpawnAmmoCrate(saucerX, saucerY, amJetpack) |
159 SpawnAmmoCrate(saucerX, saucerY, amJetpack) |
163 -- EVENT HANDLERS |
160 -- EVENT HANDLERS |
336 end |
333 end |
337 |
334 |
338 function moonLanding(gear) |
335 function moonLanding(gear) |
339 AnimCaption(hero.gear,loc("Welcome to the moon!")) |
336 AnimCaption(hero.gear,loc("Welcome to the moon!")) |
340 SaveCampaignVar("Planet", "moon") |
337 SaveCampaignVar("Planet", "moon") |
|
338 if checkPointReached == 1 then |
|
339 -- player climbed the moon with rope |
|
340 FollowGear(doctor.gear) |
|
341 AnimSay(doctor.gear, loc("One cannot simply walk in moon with rope!"), SAY_SHOUT, 4000) |
|
342 SendStat('siGameResult', loc("Hog Solo has to travel to the moon by flying saucer")) --1 |
|
343 SendStat('siCustomAchievement', loc("Collect the crate with the flying saucer")) --11 |
|
344 SendStat('siCustomAchievement', loc("Fly to the moon")) --11 |
|
345 SendStat('siPlayerKills','0',teamC.name) |
|
346 EndGame() |
|
347 end |
341 if checkPointReached ~= 5 then |
348 if checkPointReached ~= 5 then |
342 SaveCampaignVar("CosmosCheckPoint", "4") |
349 SaveCampaignVar("CosmosCheckPoint", "4") |
343 SaveCampaignVar("HeroHealth",GetHealth(hero.gear)) |
350 SaveCampaignVar("HeroHealth",GetHealth(hero.gear)) |
344 end |
351 end |
345 SaveCampaignVar("UnlockedMissions", "2") |
352 SaveCampaignVar("UnlockedMissions", "2") |