share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua
changeset 14951 c173fae0a223
parent 14941 c645327d0a81
child 15068 6f51c75994a4
equal deleted inserted replaced
14950:ef3352839616 14951:c173fae0a223
   103 	SetEffect(hog, heResurrectable, 1)
   103 	SetEffect(hog, heResurrectable, 1)
   104 
   104 
   105 	drawMap()
   105 	drawMap()
   106 
   106 
   107 	SendHealthStatsOff()
   107 	SendHealthStatsOff()
       
   108 	SendRankingStatsOff()
   108 
   109 
   109 end
   110 end
   110 
   111 
   111 -- The final challenge is to rope through an obstacle course with only 1 rope.
   112 -- The final challenge is to rope through an obstacle course with only 1 rope.
   112 -- If the player screws up, this functinon will restart it.
   113 -- If the player screws up, this functinon will restart it.
   376 			AddAmmo(hog, amBaseballBat, 0)
   377 			AddAmmo(hog, amBaseballBat, 0)
   377 			AddAmmo(hog, amGrenade, 0)
   378 			AddAmmo(hog, amGrenade, 0)
   378 			AddAmmo(hog, amRope, 0)
   379 			AddAmmo(hog, amRope, 0)
   379 			SendStat(siCustomAchievement, loc("Oh yeah! You sure know how to rope!"))
   380 			SendStat(siCustomAchievement, loc("Oh yeah! You sure know how to rope!"))
   380 			SendStat(siGameResult, loc("You have finished the Basic Rope Training!"))
   381 			SendStat(siGameResult, loc("You have finished the Basic Rope Training!"))
   381 			SendStat(siPlayerKills, "0", teamName)
       
   382 			EndGame()
   382 			EndGame()
   383 			SetState(hog, gstWinner)
   383 			SetState(hog, gstWinner)
   384 			gameOver = true
   384 			gameOver = true
   385 			SetInputMask(0)
   385 			SetInputMask(0)
   386 		end
   386 		end