Disable Wallriding [CLF78]
#1
Title explains itself.

NTSC-U
C25757B4 00000003
80030004 70040060
41A2000C 54000080
90030004 00000000

PAL
C257C018 00000003
80030004 70040060
41A2000C 54000080
90030004 00000000

NTSC-J
C257B998 00000003
80030004 70040060
41A2000C 54000080
90030004 00000000

NTSC-K
C256A070 00000003
80030004 70040060
41A2000C 54000080
90030004 00000000

Source:
Code:
# Original instruction
lwz r0, 0x4(r3)

# Check if we are hitting a wall
andi. r4, r0, 0x60
beq+ end

# If so unset the jump pad bit
rlwinm r0, r0, 0, 2, 0
stw r0, 0x4(r3)

# Return
end:

Code created by: CLF78
Code credits: MrBean (address founder), stebler (documentation)
Reply


Messages In This Thread
Disable Wallriding [CLF78] - by CLF78 - 06-02-2021, 10:12 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)