mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-30 07:53:01 +00:00
16 lines
274 B
Lua
16 lines
274 B
Lua
|
-- name: Low Gravity
|
||
|
-- incompatible:
|
||
|
-- description: Gives everyone low gravity
|
||
|
|
||
|
function mario_update(m)
|
||
|
if (m.action & ACT_FLAG_AIR) ~= 0 then
|
||
|
m.vel.y = m.vel.y + 1
|
||
|
end
|
||
|
end
|
||
|
|
||
|
-----------
|
||
|
-- hooks --
|
||
|
-----------
|
||
|
|
||
|
hook_event(HOOK_MARIO_UPDATE, mario_update)
|