mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-05 15:11:16 +00:00
Made faster-swimming's vertical swimming fast
This commit is contained in:
parent
459aadf000
commit
38c16e9286
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ function mario_before_phys_step(m)
|
||||||
|
|
||||||
-- faster swimming
|
-- faster swimming
|
||||||
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
|
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
|
||||||
hScale = hScale * 2
|
hScale = hScale * 2.0
|
||||||
|
if m.action ~= ACT_WATER_PLUNGE then
|
||||||
|
vScale = vScale * 2.0
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
m.vel.x = m.vel.x * hScale
|
m.vel.x = m.vel.x * hScale
|
||||||
|
|
Loading…
Reference in a new issue