mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Fixed bubble behavior for character movesets and made Luigi's vertical swimming fast
This commit is contained in:
parent
28a979120a
commit
459aadf000
1 changed files with 15 additions and 0 deletions
|
@ -31,6 +31,9 @@ function luigi_before_phys_step(m)
|
|||
-- faster swimming
|
||||
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
|
||||
hScale = hScale * 1.5
|
||||
if m.action ~= ACT_WATER_PLUNGE then
|
||||
vScale = vScale * 1.5
|
||||
end
|
||||
end
|
||||
|
||||
-- slower holding item
|
||||
|
@ -313,6 +316,10 @@ gEventTable[CT_WALUIGI] = {
|
|||
----------
|
||||
|
||||
function mario_before_phys_step(m)
|
||||
if m.action == ACT_BUBBLED then
|
||||
return
|
||||
end
|
||||
|
||||
if gEventTable[m.character.type] == nil then
|
||||
return
|
||||
end
|
||||
|
@ -320,6 +327,10 @@ function mario_before_phys_step(m)
|
|||
end
|
||||
|
||||
function mario_on_set_action(m)
|
||||
if m.action == ACT_BUBBLED then
|
||||
return
|
||||
end
|
||||
|
||||
if gEventTable[m.character.type] == nil then
|
||||
return
|
||||
end
|
||||
|
@ -327,6 +338,10 @@ function mario_on_set_action(m)
|
|||
end
|
||||
|
||||
function mario_update(m)
|
||||
if m.action == ACT_BUBBLED then
|
||||
return
|
||||
end
|
||||
|
||||
if gEventTable[m.character.type] == nil then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue