share/hedgewars/Data/Scripts/Multiplayer/No_Jumping.lua
author Henek
Mon, 31 Jan 2011 21:59:59 +0100
changeset 4893 353781305c07
parent 4662 63aafc9c2a81
child 5325 261b79ba22b1
permissions -rw-r--r--
make Random Weapons and No Jumping use the new custom goal function

--------------------------------
-- NO JUMPING
--------------------------------

loadfile(GetDataPath() .. "Scripts/Locale.lua")()

function onGameInit()
    Goals = loc("Jumping is disabled")
end

--function onGameStart()
--	ShowMission(loc("NO JUMPING"), loc("- Jumping is disabled"), loc("Good luck out there!"), 0, 0)
--end

function onNewTurn()
	SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump)))
end