You've already forked sm64coopdx
mirror of
https://github.com/izzy2lost/sm64coopdx.git
synced 2026-03-26 16:56:02 -07:00
15 lines
456 B
Lua
15 lines
456 B
Lua
-- name: Goomba Leaps
|
|
-- description: Makes goombas leap instead of just jump as an example.
|
|
|
|
function bhv_custom_goomba_loop(obj)
|
|
-- make goombas leap instead of just jump
|
|
if obj.oGoombaJumpCooldown >= 9 then
|
|
obj.oGoombaJumpCooldown = 8
|
|
obj.oVelY = obj.oVelY + 20
|
|
obj.oForwardVel = 20
|
|
end
|
|
end
|
|
|
|
-- hook the behavior
|
|
id_bhvCustomGoomba = hook_behavior(id_bhvGoomba, OBJ_LIST_PUSHABLE, false, nil, bhv_custom_goomba_loop)
|