share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 15404 0e3bf53dfe47
parent 15402 1028f5606b5f
child 15788 acf70c44065b
equal deleted inserted replaced
15403:e347c3508f95 15404:0e3bf53dfe47
   947 
   947 
   948 
   948 
   949 
   949 
   950 function onNewTurn()
   950 function onNewTurn()
   951 
   951 
       
   952 	SetSoundMask(sndStupid, false)
       
   953 	SetSoundMask(sndDrat, false)
       
   954 	SetSoundMask(sndBugger, false)
       
   955 
   952 	CheckForNewRound()
   956 	CheckForNewRound()
   953 	TryRepositionHogs()
   957 	TryRepositionHogs()
   954 
   958 
   955 	racerActive = false
   959 	racerActive = false
   956 
   960 
  1087 
  1091 
  1088 			if GameTime%100 == 0 then
  1092 			if GameTime%100 == 0 then
  1089 
  1093 
  1090 				AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)), GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
  1094 				AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)), GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
  1091 
  1095 
       
  1096 				-- Track completed, all waypoints touched!
  1092 				if (CheckWaypoints() == true) then
  1097 				if (CheckWaypoints() == true) then
       
  1098 					SetSoundMask(sndStupid, true)
       
  1099 					SetSoundMask(sndDrat, true)
       
  1100 					SetSoundMask(sndBugger, true)
  1093 					AdjustScores()
  1101 					AdjustScores()
  1094 					DisableTumbler()
  1102 					DisableTumbler()
  1095 				end
  1103 				end
  1096 
  1104 
  1097 			end
  1105 			end