mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-15 14:46:24 +00:00
Fix Hyperspeed when taking damage underwater with faster-swimming.lua (#1186)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
This commit is contained in:
parent
e22d85b119
commit
8a395088fd
1 changed files with 6 additions and 1 deletions
|
|
@ -8,7 +8,12 @@ function mario_before_phys_step(m)
|
|||
-- faster swimming
|
||||
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
|
||||
hScale = hScale * 2.0
|
||||
if m.action ~= ACT_WATER_PLUNGE then
|
||||
if
|
||||
m.action ~= ACT_WATER_PLUNGE
|
||||
and m.action ~= ACT_BACKWARD_WATER_KB
|
||||
and m.action ~= ACT_FORWARD_WATER_KB
|
||||
and m.action ~= ACT_DROWNING
|
||||
then
|
||||
vScale = vScale * 2.0
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue