Offroad glitch: Difference between revisions
Create initial page |
m Kierio04 moved page Offroad Glitch to Offroad glitch: Misspelled title: Title not in sentence case |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
The '''Offroad Glitch''' is a bug with specific jump pads which negates the following speed modifiers | The '''Offroad Glitch''' is a bug that occurs with specific jump pads, which negates the following speed modifiers : | ||
* Wheelie bonus | * Wheelie bonus | ||
* Mini-turbo/trick/zipper boost | * Mini-turbo/trick/zipper boost | ||
Line 14: | Line 14: | ||
== Relevant code == | == Relevant code == | ||
The following code is written in C++, and has been edited to only include relevant parts. Irrelevant code will be marked with <code>// ...</code>. | The following code is written in C++, and has been edited to only include relevant parts. Irrelevant code will be marked with <code>// ...</code>.<syntaxhighlight lang="cpp" line="1"> | ||
< | |||
// This is run when the game recognizes we're interacting with a jump pad | // This is run when the game recognizes we're interacting with a jump pad | ||
void Kart::KartMove::tryStartJumpPad(int variant) { | void Kart::KartMove::tryStartJumpPad(int variant) { | ||
Line 34: | Line 33: | ||
// ... | // ... | ||
} | } | ||
</ | </syntaxhighlight><syntaxhighlight lang="c++" line="1"> | ||
< | |||
// This is run once every frame generically | // This is run once every frame generically | ||
void Kart::KartMove::tryEndJumpPad() { | void Kart::KartMove::tryEndJumpPad() { | ||
Line 61: | Line 59: | ||
} | } | ||
} | } | ||
</ | </syntaxhighlight>The following Gecko code fixes this glitch. | ||
<tabber> | |||
The following Gecko code fixes this glitch. | |-|PAL= | ||
<pre> | <pre> | ||
Fix Offroad Glitch (PAL) [vabold] | Fix Offroad Glitch (PAL) [vabold] | ||
Line 70: | Line 68: | ||
54000314 9003000C | 54000314 9003000C | ||
60000000 00000000 | 60000000 00000000 | ||
</pre> | |||
|-|NTSC-U= | |||
<pre> | |||
Fix Offroad Glitch (NTSC-U) [vabold] | Fix Offroad Glitch (NTSC-U) [vabold] | ||
C257BE18 00000003 | C257BE18 00000003 | ||
Line 76: | Line 76: | ||
54000314 9003000C | 54000314 9003000C | ||
60000000 00000000 | 60000000 00000000 | ||
</pre> | |||
|-|NTSC-J= | |||
<pre> | |||
Fix Offroad Glitch (NTSC-J) [vabold] | Fix Offroad Glitch (NTSC-J) [vabold] | ||
C2581FFC 00000003 | C2581FFC 00000003 | ||
Line 82: | Line 84: | ||
54000314 9003000C | 54000314 9003000C | ||
60000000 00000000 | 60000000 00000000 | ||
</pre> | |||
|-|NTSC-K= | |||
<pre> | |||
Fix Offroad Glitch (NTSC-K) [vabold] | Fix Offroad Glitch (NTSC-K) [vabold] | ||
C25706D4 00000003 | C25706D4 00000003 | ||
Line 89: | Line 93: | ||
60000000 00000000 | 60000000 00000000 | ||
</pre> | </pre> | ||
</tabber> | |||
[[Category:Glitches]] |