share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 12411 edeae7661dca
parent 11515 4dd77731453b
child 12900 a9e4e8fa852c
equal deleted inserted replaced
12410:8b971d8944d6 12411:edeae7661dca
   902 				setTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick", getTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick")+1)
   902 				setTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick", getTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick")+1)
   903 			elseif(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==1)
   903 			elseif(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==1)
   904 			then
   904 			then
   905 				AddAmmo(CurrentHedgehog,amSwitch,GetAmmoCount(CurrentHedgehog, amSwitch)+1)
   905 				AddAmmo(CurrentHedgehog,amSwitch,GetAmmoCount(CurrentHedgehog, amSwitch)+1)
   906 
   906 
   907 				ParseCommand("setweap " .. string.char(amSwitch))
   907 				SetWeapon(amSwitch)
   908 				GLOBAL_TEMP_VALUE=87
   908 				GLOBAL_TEMP_VALUE=87
   909 			end
   909 			end
   910 		end
   910 		end
   911 	end
   911 	end
   912 end
   912 end
  1226 
  1226 
  1227 --some ppl complained :P
  1227 --some ppl complained :P
  1228 function onSlot(slot)
  1228 function onSlot(slot)
  1229 	if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==0)
  1229 	if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==0)
  1230 	then
  1230 	then
  1231 		ParseCommand("setweap " .. string.char(amSkip))
  1231 		SetWeapon(amSkip)
  1232 	end
  1232 	end
  1233 end
  1233 end
  1234 
  1234 
  1235 --if you used hogswitch or any similar weapon, dont enable any weaponchange
  1235 --if you used hogswitch or any similar weapon, dont enable any weaponchange
  1236 function onAttack()
  1236 function onAttack()