Brake drifting [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 Non-Item (https://mariokartwii.com/forumdisplay.php?fid=53) +--- Thread: Brake drifting [stebler] (/showthread.php?tid=1677) |
Brake drifting [stebler] - stebler - 11-20-2020 Brake drifting [stebler] This code is outdated by https://mkwii.com/showthread.php?tid=1710. Controls are the same as CTGP. Online with several players using the code is untested. NTSC-U: c251bea0 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251b1ec 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2735e6c 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c2736200 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c258e1cc 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 045776e8 60000000 c2574620 00000002 2c000001 41820008 548307ff 00000000 PAL: c2520314 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251f660 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2745d38 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c27460cc 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c25949f0 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0457df4c 60000000 c257ae84 00000002 2c000001 41820008 548307ff 00000000 NTSC-J: c251fc94 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251efe0 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2745d38 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c2745738 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c2594370 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0457d8cc 60000000 c257a804 00000002 2c000001 41820008 548307ff 00000000 NTSC-K: c250e338 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c250d684 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c27340f8 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c273448c 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c2582a48 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0456bfa4 60000000 c2568edc 00000002 2c000001 41820008 548307ff 00000000 Patch 1: set the brake drifting bit when both B and R are pressed and the player is drifting (GCN controller) # inject at 8051BEA0 (NTSC-U) # inject at 80520314 (PAL) # inject at 8051FC94 (NTSC-J) # inject at 8050E338 (NTSC-K) rlwinm. r4, r8, 0, 28, 28 beq end lhz r4, 0x90 (r28) rlwinm. r4, r4, 0, 26, 26 beq end lhz r4, 0x90 (r28) rlwinm. r4, r4, 0, 22, 22 beq end ori r8, r8, 0x10 end: sth r8, 0x4 (r29) Patch 2: set the brake drifting bit when both B and R are pressed and the player is drifting (classic controller) # inject at 8051B1EC (NTSC-U) # inject at 8051F660 (PAL) # inject at 8051EFE0 (NTSC-J) # inject at 8050D684 (NTSC-K) rlwinm. r4, r6, 0, 28, 28 beq end rlwinm. r4, r3, 0, 25, 25 beq end rlwinm. r4, r3, 0, 22, 22 beq end ori r6, r6, 0x10 end: rlwinm. r4, r3, 0, 28, 29 Patch 3: set the brake drifting bit when both B and d-pad down are pressed and the player is drifting (nunchuk) # inject at 80735E6C (NTSC-U) # inject at 80745D38 (PAL) # inject at 80745D38 (NTSC-J) # inject at 807340F8 (NTSC-K) rlwinm. r0, r31, 0, 28, 28 beq end rlwinm. r0, r3, 0, 29, 29 beq end rlwinm. r0, r3, 0, 21, 21 beq end ori r31, r31, 0x10 end: sth r31, 0x4 (r28) Patch 4: set the brake drifting bit when both 1 and B are pressed and the player is drifting (wii wheel) # inject at 80736200 (NTSC-U) # inject at 807460CC (PAL) # inject at 80745738 (NTSC-J) # inject at 8073448C (NTSC-K) rlwinm. r4, r0, 0, 28, 28 beq end lhz r4, 0x2 (r28) rlwinm. r4, r4, 0, 22, 22 beq end lhz r4, 0x2 (r28) rlwinm. r4, r4, 0, 21, 21 beq end ori r0, r0, 0x10 end: sth r0, 0x4 (r27) Patch 5: do not accelerate when the brake drifting bit is set # inject at 8058E1CC (NTSC-U) # inject at 805949F0 (PAL) # inject at 80594370 (NTSC-J) # inject at 80582A48 (NTSC-K) rlwinm r3, r0, 0, 31, 31 rlwinm r0, r0, 28, 31, 31 xori r0, r0, 1 and. r0, r0, r3 Patch 6: do not cancel the drifting when the player is no longer accelerating # replace at 805776E8 (NTSC-U) # replace at 8057DF4C (PAL) # replace at 8057D8CC (NTSC-J) # replace at 8056BFA4 (NTSC-K) nop Patch 7: allow breaking while drifting # replace at 80574620 (NTSC-U) # replace at 8057AE84 (PAL) # replace at 8057A804 (NTSC-J) # replace at 80568EDC (NTSC-K) cmpwi r0, 1 beq end rlwinm. r3, r4, 0, 31, 31 end: Note: just like CTGP, this code uses bit 4 of the button input variable for brake drifting (0 = accelerate, 1 = brake or drift, 2 = use item, 3 = drift, 5 = look backwards). RE: Brake drifting [stebler] - Luigi Hack Fan - 08-14-2023 NTSC-J port is definitely incorrect. Fixed port c251fc94 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251efe0 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2745d38 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c2745738 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c2594370 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0457d8cc 60000000 c257a804 00000002 2c000001 41820008 548307ff 00000000 |