share/hedgewars/Data/Maps/ClimbHome/map.lua
changeset 12913 20e627c1ac20
parent 12827 b7453ae2c44d
child 13023 acba432d34b1
equal deleted inserted replaced
12912:a840fd55caa6 12913:20e627c1ac20
   447                 -- Stop hog, disable controls, celebrate victory and continue the game after 4 seconds.
   447                 -- Stop hog, disable controls, celebrate victory and continue the game after 4 seconds.
   448                 AddCaption(string.format(loc("%s climbed home in %d seconds!"), GetHogName(CurrentHedgehog), roundedFinishTime))
   448                 AddCaption(string.format(loc("%s climbed home in %d seconds!"), GetHogName(CurrentHedgehog), roundedFinishTime))
   449                 SendStat(siCustomAchievement, string.format(loc("%s (%s) reached home in %.3f seconds."), GetHogName(CurrentHedgehog), GetHogTeamName(CurrentHedgehog), finishTime))
   449                 SendStat(siCustomAchievement, string.format(loc("%s (%s) reached home in %.3f seconds."), GetHogName(CurrentHedgehog), GetHogTeamName(CurrentHedgehog), finishTime))
   450                 makeMultiPlayerWinnerStat(CurrentHedgehog)
   450                 makeMultiPlayerWinnerStat(CurrentHedgehog)
   451                 PlaySound(sndVictory, CurrentHedgehog)
   451                 PlaySound(sndVictory, CurrentHedgehog)
   452                 -- TODO: Unselect weapon.
   452 		SetWeapon(amNothing)
   453                 -- Note: SetWeapon(amNothing) does not work. :-(
       
   454                 SetGearMessage(CurrentHedgehog, band(GetGearMessage(CurrentHedgehog), bnot(gmLeft+gmRight+gmUp+gmDown+gmHJump+gmLJump+gmPrecise)))
   453                 SetGearMessage(CurrentHedgehog, band(GetGearMessage(CurrentHedgehog), bnot(gmLeft+gmRight+gmUp+gmDown+gmHJump+gmLJump+gmPrecise)))
   455                 SetInputMask(0x00)
   454                 SetInputMask(0x00)
   456                 -- TODO: Add stupid winner grin.
   455                 -- TODO: Add stupid winner grin.
   457                 multiplayerVictoryDelay = 4000
   456                 multiplayerVictoryDelay = 4000
   458                 YouWon = true
   457                 YouWon = true