369 -amRope, 0) |
369 -amRope, 0) |
370 PlaySound(sndVictory,CurrentHedgehog) |
370 PlaySound(sndVictory,CurrentHedgehog) |
371 SetState(CurrentHedgehog, gstWinner) |
371 SetState(CurrentHedgehog, gstWinner) |
372 SendStat(siGameResult, loc("You have beaten the challenge!")) |
372 SendStat(siGameResult, loc("You have beaten the challenge!")) |
373 SendStat(siGraphTitle, loc("Your height over time")) |
373 SendStat(siGraphTitle, loc("Your height over time")) |
374 SendStat(siCustomAchievement, string.format(loc("%s reached home in %.3f seconds. Congratulations!"), loc(GetHogName(CurrentHedgehog)), finishTime)) |
374 SendStat(siCustomAchievement, string.format(loc("%s reached home in %.3f seconds. Congratulations!"), GetHogName(CurrentHedgehog), finishTime)) |
375 SendStat(siCustomAchievement, string.format(loc("%s bravely climbed up to a dizzy height of %d to reach home."),loc(GetHogName(CurrentHedgehog)), getActualHeight(RecordHeight))) |
375 SendStat(siCustomAchievement, string.format(loc("%s bravely climbed up to a dizzy height of %d to reach home."), GetHogName(CurrentHedgehog), getActualHeight(RecordHeight))) |
376 SendStat(siPointType, loc("seconds")) |
376 SendStat(siPointType, loc("seconds")) |
377 SendStat(siPlayerKills, tostring(roundedFinishTime), loc(GetHogTeamName(CurrentHedgehog))) |
377 SendStat(siPlayerKills, tostring(roundedFinishTime), GetHogTeamName(CurrentHedgehog)) |
378 |
378 |
379 EndGame() |
379 EndGame() |
380 onAchievementsDeclaration() |
380 onAchievementsDeclaration() |
381 YouWon = true |
381 YouWon = true |
382 end |
382 end |
589 SendStat(siCustomAchievement, string.format(text, RecordHeightHogName, actualHeight)) |
589 SendStat(siCustomAchievement, string.format(text, RecordHeightHogName, actualHeight)) |
590 else |
590 else |
591 SendStat(siCustomAchievement, string.format(text, RecordHeightHogName)) |
591 SendStat(siCustomAchievement, string.format(text, RecordHeightHogName)) |
592 end |
592 end |
593 SendStat(siPointType, loc("points")) |
593 SendStat(siPointType, loc("points")) |
594 SendStat(siPlayerKills, actualHeight, loc(GetHogTeamName(CurrentHedgehog))) |
594 SendStat(siPlayerKills, actualHeight, GetHogTeamName(CurrentHedgehog)) |
595 EndGame() |
595 EndGame() |
596 onAchievementsDeclaration() |
596 onAchievementsDeclaration() |
597 end |
597 end |
598 |
598 |
599 function makeMultiPlayerLoserStat(gear) |
599 function makeMultiPlayerLoserStat(gear) |