Mario Kart Wii Gecko Codes, Cheats, & Hacks
Accurate CPU Finish Times [CLF78] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51)
+--- Forum: Offline Non-Item (https://mariokartwii.com/forumdisplay.php?fid=53)
+--- Thread: Accurate CPU Finish Times [CLF78] (/showthread.php?tid=1887)



Accurate CPU Finish Times [CLF78] - CLF78 - 08-13-2021

Makes the CPU's finish times more realistic. This change also affects players not reaching the finish in online races.

NTSC-U
C252F844 00000005
C003000C E061A03F
106318D4 EC630028
3C603E00 90610044
C0810044 EC03013A
60000000 00000000

PAL
C253438C 00000005
C003000C E061A03F
106318D4 EC630028
3C603E00 90610044
C0810044 EC03013A
60000000 00000000

NTSC-J
C2533D0C 00000005
C003000C E061A03F
106318D4 EC630028
3C603E00 90610044
C0810044 EC03013A
60000000 00000000

NTSC-K
C25223E4 00000005
C003000C E061A03F
106318D4 EC630028
3C603E00 90610044
C0810044 EC03013A
60000000 00000000

Source:
Code:
# Original instruction
lfs f0, 0xC(r3)

# Load lap count and convert it using GQR2 (u8)
psq_l f3, 0x3F(r1), 1, 2

# Add 1 to it
ps_sum0 f3, f3, f3, f3

# Subtract raceCompletion from it
fsubs f3, f3, f0

# Load multiplier
lis r3, 0x3E00
stw r3, 0x44(r1)
lfs f4, 0x44(r1)

# Multiply and add raceCompletion back
fmadds f0, f3, f4, f0

Code created by: CLF78


RE: Accurate CPU Finish Times [CLF78] - Luigi Hack Fan - 11-13-2022

This code seems to cause a crash in Battle Mode and some custom tracks