share/hedgewars/Data/Scripts/Multiplayer/Tumbler.lua
changeset 12053 281a4f33b08f
parent 12052 144264948277
child 12062 3d03e9294633
equal deleted inserted replaced
12052:144264948277 12053:281a4f33b08f
   764 		TimeLeftCounter = TimeLeftCounter + 1
   764 		TimeLeftCounter = TimeLeftCounter + 1
   765 		if TimeLeftCounter == 1000 then
   765 		if TimeLeftCounter == 1000 then
   766 			TimeLeftCounter = 0
   766 			TimeLeftCounter = 0
   767 			TimeLeft = TimeLeft - 1
   767 			TimeLeft = TimeLeft - 1
   768 
   768 
       
   769 			-- Countdown sounds
       
   770 			if TimeLeft == 5 then
       
   771 				PlaySound(sndHurry, CurrentHedgehog)
       
   772 			elseif TimeLeft <= 4 and TimeLeft >= 1 then
       
   773 				PlaySound(_G["sndCountdown"..TimeLeft])
       
   774 			end
       
   775 
   769 			if TimeLeft >= 0 then
   776 			if TimeLeft >= 0 then
   770 				DrawTag(0)
   777 				DrawTag(0)
   771 			end
   778 			end
   772 
   779 
   773 		end
   780 		end