share/hedgewars/Data/Scripts/Multiplayer/Frenzy.lua
changeset 10289 c3a77ff02a23
parent 10044 33e64afccd3b
child 11015 7a905f0070ce
equal deleted inserted replaced
10288:7bf02127262c 10289:c3a77ff02a23
    88 end
    88 end
    89 
    89 
    90 function ChangeWep(s)
    90 function ChangeWep(s)
    91 
    91 
    92 	if s == 0 then
    92 	if s == 0 then
    93 		ParseCommand("setweap " .. string.char(amBazooka))
    93 		SetWeapon(amBazooka)
    94 	elseif s == 1 then
    94 	elseif s == 1 then
    95 		ParseCommand("setweap " .. string.char(amGrenade))
    95 		SetWeapon(amGrenade)
    96 	elseif s == 2 then
    96 	elseif s == 2 then
    97 		ParseCommand("setweap " .. string.char(amShotgun))
    97 		SetWeapon(amShotgun)
    98 	elseif s == 3 then
    98 	elseif s == 3 then
    99 		ParseCommand("setweap " .. string.char(amFirePunch))
    99 		SetWeapon(amFirePunch)
   100 	elseif s == 4 then
   100 	elseif s == 4 then
   101 		ParseCommand("setweap " .. string.char(amMine))
   101 		SetWeapon(amMine)
   102 	elseif s == 5 then
   102 	elseif s == 5 then
   103 		ParseCommand("setweap " .. string.char(amTeleport))
   103 		SetWeapon(amTeleport)
   104 	elseif s == 6 then
   104 	elseif s == 6 then
   105 		ParseCommand("setweap " .. string.char(amBlowTorch))
   105 		SetWeapon(amBlowTorch)
   106 	elseif s == 7 then
   106 	elseif s == 7 then
   107 		ParseCommand("setweap " .. string.char(amJetpack))
   107 		SetWeapon(amJetpack)
   108 	elseif s == 8 then
   108 	elseif s == 8 then
   109 		ParseCommand("setweap " .. string.char(amMolotov))
   109 		SetWeapon(amMolotov)
   110 	elseif s == 9 then
   110 	elseif s == 9 then
   111 		ParseCommand("setweap " .. string.char(amLowGravity))
   111 		SetWeapon(amLowGravity)
   112 	end
   112 	end
   113 
   113 
   114 end
   114 end
   115 
   115 
   116 function onGearAdd(gear)
   116 function onGearAdd(gear)