Mario Kart Wii Gecko Codes, Cheats, & Hacks
Red Shells Always Target Player 1 [stebler] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51)
+--- Forum: Offline; Item (https://mariokartwii.com/forumdisplay.php?fid=58)
+--- Thread: Red Shells Always Target Player 1 [stebler] (/showthread.php?tid=1850)



Red Shells Always Target Player 1 [stebler] - stebler - 06-28-2021

Red Shells Always Target Player 1 [stebler]

PAL:
047AAEFC 38000000
C27B3920 00000003
2C1C0000 41820008
3B400001 2C1A0000
60000000 00000000

NTSC-U:
047A0254 38000000
C27A4EC0 00000003
2C1C0000 41820008
3B400001 2C1A0000
60000000 00000000

NTSC-J:
047AA568 38000000
C27B2F8C 00000003
2C1C0000 41820008
3B400001 2C1A0000
60000000 00000000

NTSC-K:
047992BC 38000000
C27A1CE0 00000003
2C1C0000 41820008
3B400001 2C1A0000
60000000 00000000


Source code:
Code:
# replace at 807aaefc (PAL)
# replace at 807a0254 (NTSC-U)
# replace at 807aa568 (NTSC-J)
# replace at 807992bc (NTSC-K)

li r0, 0 # try to follow player id 0 instead of the one immediately ahead of the thrower
Code:
# inject at 807b3920 (PAL)
# inject at 807a4ec0 (NTSC-U)
# inject at 807b2f8c (NTSC-J)
# inject at 807a1ce0 (NTSC-K)

cmpwi r28, 0 # check if the player id is 0
beq p1
li r26, 1 # otherwise set this boolean that will prevent the player from being explicitly targeted
p1:

cmpwi r26, 0 # original instruction