266 -------------- ACTIONS ------------------ |
266 -------------- ACTIONS ------------------ |
267 |
267 |
268 function heroDeath(gear) |
268 function heroDeath(gear) |
269 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
269 SendStat(siGameResult, loc("Hog Solo lost, try again!")) |
270 SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies.")) |
270 SendStat(siCustomAchievement, loc("To win the game you have to eliminate all your enemies.")) |
271 SendStat(siPlayerKills,'1',teamC.name) |
271 sendSimpleTeamRankings({teamC.name, teamA.name}) |
272 SendStat(siPlayerKills,'0',teamA.name) |
|
273 EndGame() |
272 EndGame() |
274 end |
273 end |
275 |
274 |
276 function enemiesDeath(gear) |
275 function enemiesDeath(gear) |
277 saveCompletedStatus(6) |
276 saveCompletedStatus(6) |
278 SendStat(siGameResult, loc("Congratulations, you won!")) |
277 SendStat(siGameResult, loc("Congratulations, you won!")) |
279 SendStat(siCustomAchievement, loc("You have successfully eliminated Professor Hogevil.")) |
278 SendStat(siCustomAchievement, loc("You have successfully eliminated Professor Hogevil.")) |
280 SendStat(siCustomAchievement, loc("You have rescued H and Dr. Cornelius.")) |
279 SendStat(siCustomAchievement, loc("You have rescued H and Dr. Cornelius.")) |
281 SendStat(siCustomAchievement, loc("You have acquired the last device part.")) |
280 SendStat(siCustomAchievement, loc("You have acquired the last device part.")) |
282 SendStat(siCustomAchievement, loc("Now go and play the menu mission to complete the campaign.")) |
281 SendStat(siCustomAchievement, loc("Now go and play the menu mission to complete the campaign.")) |
283 SendStat(siPlayerKills,'1',teamA.name) |
282 sendSimpleTeamRankings({teamA.name, teamC.name}) |
284 SendStat(siPlayerKills,'0',teamC.name) |
|
285 EndGame() |
283 EndGame() |
286 end |
284 end |
287 |
285 |
288 -------------- ANIMATIONS ------------------ |
286 -------------- ANIMATIONS ------------------ |
289 |
287 |