Completely arbitrary tweaking of tunnel values (avoids a nil) - still needs smooth curves (probably a target dx/dy to aim for, and slow alterations) and taking less CPU. Also disable unused function in Highlander
--------------------------------
-- NO JUMPING
--------------------------------
loadfile(GetDataPath() .. "Scripts/Locale.lua")()
local specialGear = nil
function onGameInit()
Goals = loc("Jumping is disabled")
end
function onNewTurn()
SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump)))
end
function onGearAdd(gear)
if (GetGearType(gear) == gtJetpack) or (GetGearType(gear) == gtRope) or (GetGearType(gear) == gtParachute) then
specialGear = gear
SetInputMask(band(0xFFFFFFFF, bnot(gmHJump)))
end
end
function onGearDelete(gear)
if (GetGearType(gear) == gtJetpack) or (GetGearType(gear) == gtRope) or (GetGearType(gear) == gtParachute) then
specialGear = nil
SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump)))
end
end