206 end |
206 end |
207 end |
207 end |
208 |
208 |
209 function win() |
209 function win() |
210 saveBonus(1, 1) |
210 saveBonus(1, 1) |
211 SendStat('siGameResult', loc("Congratulations, you are the best!")) --1 |
211 SendStat(siGameResult, loc("Congratulations, you are the best!")) |
212 SendStat('siCustomAchievement', loc("You have destroyed all the targets")) --11 |
212 SendStat(siCustomAchievement, loc("You have destroyed all the targets")) |
213 SendStat('siCustomAchievement', loc("You are indeed the best PAotH pilot")) --11 |
213 SendStat(siCustomAchievement, loc("You are indeed the best PAotH pilot")) |
214 SendStat('siCustomAchievement', loc("Next you play \"Searching in the dust\" you'll have an RC plane available")) --11 |
214 SendStat(siCustomAchievement, loc("Next you play \"Searching in the dust\" you'll have an RC plane available")) |
215 SendStat('siPlayerKills','1',teamA.name) |
215 SendStat(siPlayerKills,'1',teamA.name) |
216 EndGame() |
216 EndGame() |
217 end |
217 end |
218 |
218 |
219 function gameOver() |
219 function gameOver() |
220 SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1 |
220 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
221 SendStat('siCustomAchievement', loc("You have to destroy all the targets")) --11 |
221 SendStat(siCustomAchievement, loc("You have to destroy all the targets")) |
222 SendStat('siCustomAchievement', loc("You will fail if you run out of ammo and there are still targets available")) --11 |
222 SendStat(siCustomAchievement, loc("You will fail if you run out of ammo and there are still targets available")) |
223 SendStat('siCustomAchievement', loc("Read the Challenge Objectives from within the mission for more details")) --11 |
223 SendStat(siCustomAchievement, loc("Read the Challenge Objectives from within the mission for more details")) |
224 SendStat('siPlayerKills','0',teamA.name) |
224 SendStat(siPlayerKills,'0',teamA.name) |
225 EndGame() |
225 EndGame() |
226 end |
226 end |