equal
deleted
inserted
replaced
299 end |
299 end |
300 end |
300 end |
301 |
301 |
302 if ((gear == player) or (hhCount == 0)) and (GameOver == false) then |
302 if ((gear == player) or (hhCount == 0)) and (GameOver == false) then |
303 SetHealth(player, 0) |
303 SetHealth(player, 0) |
304 AddCaption(loc("Disqualified!")) |
304 AddCaption(loc("Challenge failed!")) |
305 if gear == player then |
305 if gear == player then |
306 SendStat(siCustomAchievement, loc("Your hedgehog died!")) |
306 SendStat(siCustomAchievement, loc("Your hedgehog died!")) |
307 SendStat(siCustomAchievement, loc("You must survive the flood in order to score.")) |
307 SendStat(siCustomAchievement, loc("You must survive the flood in order to score.")) |
308 else |
308 else |
309 SendStat(siCustomAchievement, loc("You haven't rescued anyone.")) |
309 SendStat(siCustomAchievement, loc("You haven't rescued anyone.")) |
312 SendStat(siPlayerKills, "0", playerTeamName) |
312 SendStat(siPlayerKills, "0", playerTeamName) |
313 local highscore = tonumber(GetMissionVar("Highscore")) |
313 local highscore = tonumber(GetMissionVar("Highscore")) |
314 show = (type(highscore) == "number") and (highscore > 0) |
314 show = (type(highscore) == "number") and (highscore > 0) |
315 updateChallengeRecord("Highscore", 0, show) |
315 updateChallengeRecord("Highscore", 0, show) |
316 |
316 |
317 SendStat(siGameResult, loc("Disqualified!")) |
317 SendStat(siGameResult, loc("Challenge failed!")) |
318 GameOver = true |
318 GameOver = true |
319 EndGame() |
319 EndGame() |
320 end |
320 end |
321 |
321 |
322 end |
322 end |