Dynamic Gravity v3.1 [JoshuaMK]
#1
Dynamic Gravity v3.1 [JoshuaMK]

This is the final update to Dynamic Gravity/Fast Falling, which fixes a de-sync bug when racing ghosts, and also shortens the code to almost half of the length of v2.0.

EDIT: v3.1 released, which fixes the bug of mega mushrooms and stars lasting forever.



(NTSC-U)
C2590400 00000005
48000009 GRAVITY
7D8802A6 C14C0000
C1A3FF90 EDAD02B2
C03F0000 EC21682A
60000000 00000000

(PAL)
C2596C24 00000005
48000009 GRAVITY
7D8802A6 C14C0000
C1A3FF90 EDAD02B2
C03F0000 EC21682A
60000000 00000000

(NTSC-J)
C25965A4 00000005
48000009 GRAVITY
7D8802A6 C14C0000
C1A3FF90 EDAD02B2
C03F0000 EC21682A
60000000 00000000

(NTSC-K)
C2584C7C 00000005
48000009 GRAVITY
7D8802A6 C14C0000
C1A3FF90 EDAD02B2
C03F0000 EC21682A
60000000 00000000



GRAVITY = Gravity Multiplier (Recommended value = 40240000 // Values higher than 40480000 WILL cause unwanted side effects)



#~~~~~~~~~~~#
#Inject > 80590400#
#~~~~~~~~~~~#

.set GRAVITY, 0x40240000

bl float

.long GRAVITY

float:
mflr r12
lfs f10, 0 (r12)
lfs f13, -0x70 (r3)
fmuls f13, f13, f10
lfs f1, 0 (r31)
fadds f1, f1, f13



Code Creator: JoshuaMK  Heart
Code Contributors: Hamster35000vr (Gravity Float Address)
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)