| 1 |
-------------------------------- |
| 2 |
-- NO JUMPING |
| 3 |
-------------------------------- |
| 4 |
|
| 5 |
loadfile(GetDataPath() .. "Scripts/Locale.lua")() |
| 6 |
|
| 7 |
local specialGear = nil |
| 8 |
|
| 9 |
function onGameInit() |
| 10 |
Goals = loc("Jumping is disabled") |
| 11 |
end |
| 12 |
|
| 13 |
function onNewTurn() |
| 14 |
SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) |
| 15 |
end |
| 16 |
|
| 17 |
function onGearAdd(gear) |
| 18 |
|
| 19 |
if (GetGearType(gear) == gtJetpack) or (GetGearType(gear) == gtRope) or (GetGearType(gear) == gtParachute) then |
| 20 |
specialGear = gear |
| 21 |
SetInputMask(band(0xFFFFFFFF, bnot(gmHJump))) |
| 22 |
end |
| 23 |
|
| 24 |
end |
| 25 |
|
| 26 |
function onGearDelete(gear) |
| 27 |
|
| 28 |
if (GetGearType(gear) == gtJetpack) or (GetGearType(gear) == gtRope) or (GetGearType(gear) == gtParachute) then |
| 29 |
specialGear = nil |
| 30 |
SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) |
| 31 |
end |
| 32 |
|
| 33 |
end |
| 34 |
|