mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 05:55:15 +00:00
Implemented Draco's fixes for Luigi
This commit is contained in:
parent
6d6d94fcde
commit
c0e1579fce
1 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
-- name: Character Movesets
|
-- name: Character Movesets
|
||||||
-- incompatible: moveset
|
-- incompatible: moveset
|
||||||
-- description: Gives each character unique abilities and stats.
|
-- description: Gives each character unique abilities and stats.\n\nContributors: djoslin0, TheGag96, Draco, steven
|
||||||
|
|
||||||
ANGLE_QUEUE_SIZE = 9
|
ANGLE_QUEUE_SIZE = 9
|
||||||
SPIN_TIMER_SUCCESSFUL_INPUT = 4
|
SPIN_TIMER_SUCCESSFUL_INPUT = 4
|
||||||
|
@ -140,11 +140,13 @@ function luigi_before_phys_step(m)
|
||||||
|
|
||||||
-- faster swimming
|
-- faster swimming
|
||||||
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
|
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
|
||||||
|
if m.action ~= ACT_BACKWARD_WATER_KB and m.action ~= ACT_FORWARD_WATER_KB then
|
||||||
hScale = hScale * 1.5
|
hScale = hScale * 1.5
|
||||||
if m.action ~= ACT_WATER_PLUNGE then
|
if m.action ~= ACT_WATER_PLUNGE then
|
||||||
vScale = vScale * 1.5
|
vScale = vScale * 1.5
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- slower holding item
|
-- slower holding item
|
||||||
if m.heldObj ~= nil then
|
if m.heldObj ~= nil then
|
||||||
|
@ -156,6 +158,7 @@ function luigi_before_phys_step(m)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- acceleration
|
-- acceleration
|
||||||
|
local floorClass = mario_get_floor_class(m)
|
||||||
if (m.action == ACT_WALKING) then
|
if (m.action == ACT_WALKING) then
|
||||||
if (floorClass == 19 or floorClass == 20) then
|
if (floorClass == 19 or floorClass == 20) then
|
||||||
hScale = -(m.forwardVel / 64) + 1.5
|
hScale = -(m.forwardVel / 64) + 1.5
|
||||||
|
|
Loading…
Reference in a new issue