share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 13379 4dd503978c0a
parent 13377 03e4d9b5b09c
child 13512 36f3f77e9b1b
equal deleted inserted replaced
13378:c53530142442 13379:4dd503978c0a
  1284 				CS.TEMP_VALUE=0
  1284 				CS.TEMP_VALUE=0
  1285 				runOnGears(CountHogsInTeam)
  1285 				runOnGears(CountHogsInTeam)
  1286 
  1286 
  1287 				if(CS.TEMP_VALUE>1)
  1287 				if(CS.TEMP_VALUE>1)
  1288 				then
  1288 				then
  1289 					AddAmmo(CurrentHedgehog,amSwitch,GetAmmoCount(CurrentHedgehog, amSwitch)+1)
  1289 					-- Enable switch hog on turn start (North America)
  1290 
  1290 					EnableSwitchHog()
  1291 					SetWeapon(amSwitch)
       
  1292 					CS.TEMP_VALUE=87
       
  1293 				end
  1291 				end
  1294 			end
  1292 			end
  1295 
  1293 
  1296 			ShowContinentInfo(currCont,-1,true)
  1294 			ShowContinentInfo(currCont,-1,true)
  1297 			SetCSAmmoDescriptions("weapons")
  1295 			SetCSAmmoDescriptions("weapons")
  1822 	then
  1820 	then
  1823 		-- Reset gravity
  1821 		-- Reset gravity
  1824 		SetGravity(100)
  1822 		SetGravity(100)
  1825 	end
  1823 	end
  1826 
  1824 
  1827 	--enable switch (north america)
       
  1828 	if(GetCurAmmoType() == amSwitch and CS.TEMP_VALUE==87)
       
  1829 	then
       
  1830 		SetGearMessage(CurrentHedgehog,gmAttack)
       
  1831 		CS.TEMP_VALUE=0
       
  1832 	end
       
  1833 
       
  1834 	if(CS.SPEECH_TIMER > 0) then
  1825 	if(CS.SPEECH_TIMER > 0) then
  1835 		CS.SPEECH_TIMER = CS.SPEECH_TIMER - 20
  1826 		CS.SPEECH_TIMER = CS.SPEECH_TIMER - 20
  1836 	end
  1827 	end
  1837 end
  1828 end
  1838 
  1829