Difference between revisions of "Conditional Out of Bounds (Riidefi)"

From Custom Mario Kart
Jump to navigation Jump to search
(→‎Cheat Codes: quote "Korean people are smart enough to port it themselves")
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Conditional out of bounds''' is a [[Cheat Code|cheat code]] created by [[Riidefi]] that makes it easier for track authors to implement intersections without having to worry about unintended fall boundaries being triggered when someone on the lower part of the track gets too much air. It makes use of [[AREA type#AREA_type_0x0A_.28Fall_Boundary.29|AREA type 10]] which will serve as the conditional out of bounds. Riidefi plans to update this code and the latest version can be found at [https://mkwii.com/showthread.php?tid=1547&action=lastpost mkwii.com].
+
{{about|[[Riidefi]]'s cheat code|other cheat codes with the same name|Conditional Out of Bounds}}
 +
This is a [[cheat code]] created by [[Riidefi]]. This makes it easier for track authors to implement intersections without having to worry about unintended fall boundaries being triggered when someone on the lower part of the track gets too much air. It makes use of [[AREA type#AREA type 0x0A (Fall Boundary)|AREA type 10]], which will serve as the conditional out of bounds. As of build 25, [[LE-CODE]] implemented it too.
  
 
== Usage ==
 
== Usage ==
 +
Add an AREA of type 10 (0xA) to the [[KMP]]. The first and second AREA parameters, "P1" and "P2", define the checkpoint range: the area will be enabled if and only if a player is in the Cth checkpoint sector such that P1 <= C < P2.<br>
 +
NOTE: If both P1 and P2 are zero, this code is disabled, and the boundary is unconditionally enabled.<br>
 +
NOTE: If P1 > P2, the range functions in blacklist mode. The AREA will be disabled within P2 <= C < P1, and enabled everywhere else.
  
Add an AREA of type 10 (0xA) to the KMP. The first and second AREA parameters, "P1" and "P2", define the checkpoint range: the area will be enabled if and only if a player is in the Cth checkpoint sector such that P1 <= C <= P2.
+
There are [[distribution]]s that support both this and the [[Conditional Out of Bounds (kHacker35000vr)|KHacker's COoB cheat]]. Therefore the executing code (e.g. [[LE-CODE]]) must know which cheat to use. '''Therefore the value for the route should be set to 0xff (-1) if you use this cheat.'''
 
 
== License ==
 
 
 
CTGP and LE-Code are exempt from the GPLv3 license. They may instead license this code under the MIT license. In doing so, they may alter, supplement, or entirely remove this copyright notice.
 
  
 
== Cheat Codes ==
 
== Cheat Codes ==
 
+
<spoiler text="Conditional OoB v2.0, PAL">
<spoiler text="Conditional OOB, PAL">
 
 
<pre>
 
<pre>
Conditional OOB v1.1, PAL [Riidefi]
+
Conditional OoB v2.0, PAL [Riidefi]
C2571874 00000016
+
C2571874 00000014
7C630735 41A000A4
+
7C630735 41A00094
3CA0809C 809F0018
+
3CC0809C 80BF0004
8105D6E8 5467103A
+
80A50000 8086D6E8
5467103A 80C5D730
+
80C6D730 5460103A
38A0FFFF 8108002C
+
8084002C 88A50010
88040010 81080000
+
80840000 80C6000C
8086000C 5400103A
+
54A5103A 7C84002E
5400103A 7CC8382E
+
7CA6282E 80840004
7C84002E 80C60004
+
A0E5000A A1040028
A104000A A006002A
+
A124002A 7D484850
A0E60028 7C040034
+
7D44FE70 7C805278
7C004050 7CE60034
+
7CC40050 7CA84810
54C6D97E 54C6D97E
+
7C894910 7D400034
5484D97E 5484D97E
+
7CA52038 7CA82A14
7CC62038 54000FFE
+
55440FFE 7CA53850
54000FFE 3086FFFF
+
5400D97E 7CA62810
7CC43110 7C874010
+
7CA52910 7CA500D0
7C850190 7C800038
+
7CA42278 7C840378
7CC40378 3004FFFF
+
3804FFFF 7C031B79
7C802110 3804FFFF
 
7C031B78 2C030000
 
 
60000000 00000000
 
60000000 00000000
 
</pre></spoiler>
 
</pre></spoiler>
<spoiler text="Conditional OOB, NTSC-U">
+
<spoiler text="Conditional OoB v2.0, NTSC-U">
 
<pre>
 
<pre>
Conditional OOB v1.1, NTSC-U [Riidefi]
+
Conditional OoB v2.0, NTSC-U [Riidefi]
C256CA24 00000016
+
C256CA24 00000014
7C630735 41A000A4
+
7C630735 41A00094
3CA0809C 809F0018
+
3CC0809C 80BF0004
81058F28 5467103A
+
80A50000 80868F28
5467103A 80C58F70
+
80C68F70 5460103A
38A0FFFF 8108002C
+
8084002C 88A50010
88040010 81080000
+
80840000 80C6000C
8086000C 5400103A
+
54A5103A 7C84002E
5400103A 7CC8382E
+
7CA6282E 80840004
7C84002E 80C60004
+
A0E5000A A1040028
A104000A A006002A
+
A124002A 7D484850
A0E60028 7C040034
+
7D44FE70 7C805278
7C004050 7CE60034
+
7CC40050 7CA84810
54C6D97E 54C6D97E
+
7C894910 7D400034
5484D97E 5484D97E
+
7CA52038 7CA82A14
7CC62038 54000FFE
+
55440FFE 7CA53850
54000FFE 3086FFFF
+
5400D97E 7CA62810
7CC43110 7C874010
+
7CA52910 7CA500D0
7C850190 7C800038
+
7CA42278 7C840378
7CC40378 3004FFFF
+
3804FFFF 7C031B79
7C802110 3804FFFF
 
7C031B78 2C030000
 
 
60000000 00000000
 
60000000 00000000
 
</pre></spoiler>
 
</pre></spoiler>
<spoiler text="Conditional OOB, NTSC-J">
+
<spoiler text="Conditional OoB v2.0, NTSC-J">
 
<pre>
 
<pre>
Conditional OOB v1.1, NTSC-J [Riidefi]
+
Conditional OoB v2.0, NTSC-J [Riidefi]
C25711F4 00000016
+
C25711F4 00000014
7C630735 41A000A4
+
7C630735 41A00094
3CA0809C 809F0018
+
3CC0809C 80BF0004
8105C748 5467103A
+
80A50000 8086C748
5467103A 80C5C790
+
80C6C790 5460103A
38A0FFFF 8108002C
+
8084002C 88A50010
88040010 81080000
+
80840000 80C6000C
8086000C 5400103A
+
54A5103A 7C84002E
5400103A 7CC8382E
+
7CA6282E 80840004
7C84002E 80C60004
+
A0E5000A A1040028
A104000A A006002A
+
A124002A 7D484850
A0E60028 7C040034
+
7D44FE70 7C805278
7C004050 7CE60034
+
7CC40050 7CA84810
54C6D97E 54C6D97E
+
7C894910 7D400034
5484D97E 5484D97E
+
7CA52038 7CA82A14
7CC62038 54000FFE
+
55440FFE 7CA53850
54000FFE 3086FFFF
+
5400D97E 7CA62810
7CC43110 7C874010
+
7CA52910 7CA500D0
7C850190 7C800038
+
7CA42278 7C840378
7CC40378 3004FFFF
+
3804FFFF 7C031B79
7C802110 3804FFFF
 
7C031B78 2C030000
 
 
60000000 00000000
 
60000000 00000000
 
</pre></spoiler>
 
</pre></spoiler>
<spoiler text="Conditional OOB, NTSC-K">
+
<spoiler text="Conditional OoB v2.0, NTSC-K">
 
<pre>
 
<pre>
Conditional OOB v1.0, NTSC-K [Riidefi]
+
Conditional OoB v2.0, NTSC-K [Riidefi]
C255F8CC 00000010
+
C255F8CC 00000014
3C80809B 8084BD28
+
7C630735 41A00094
38BF0004 3CC0809A
+
3CC0809B 80BF0004
80A50014 60C6BD28
+
80A50000 8086BD28
8084002C 80C60048
+
80C6BD70 5460103A
5467103A 88A50010
+
8084002C 88A50010
 
80840000 80C6000C
 
80840000 80C6000C
54A5103A 7C84382E
+
54A5103A 7C84002E
 
7CA6282E 80840004
 
7CA6282E 80840004
A0A5000A A0C40028
+
A0E5000A A1040028
A084002A 2C060000
+
A124002A 7D484850
2C840000 4E823382
+
7D44FE70 7C805278
7C053040 7C852040
+
7CC40050 7CA84810
4EA02842 4E94AB82
+
7C894910 7D400034
3880FFFF 41940008
+
7CA52038 7CA82A14
60830000 2C030000
+
55440FFE 7CA53850
 +
5400D97E 7CA62810
 +
7CA52910 7CA500D0
 +
7CA42278 7C840378
 +
3804FFFF 7C031B79
 
60000000 00000000
 
60000000 00000000
 
</pre></spoiler>
 
</pre></spoiler>
  
[[category:Cheat Codes|!]]
+
{{User-Riidefi-Link}}
 +
[[Category:Cheat Codes]]
 +
[[Category:LE-CODE]]

Latest revision as of 19:30, 12 October 2020

This article is about Riidefi's cheat code. For other cheat codes with the same name, see Conditional Out of Bounds.

This is a cheat code created by Riidefi. This makes it easier for track authors to implement intersections without having to worry about unintended fall boundaries being triggered when someone on the lower part of the track gets too much air. It makes use of AREA type 10, which will serve as the conditional out of bounds. As of build 25, LE-CODE implemented it too.

Usage

Add an AREA of type 10 (0xA) to the KMP. The first and second AREA parameters, "P1" and "P2", define the checkpoint range: the area will be enabled if and only if a player is in the Cth checkpoint sector such that P1 <= C < P2.
NOTE: If both P1 and P2 are zero, this code is disabled, and the boundary is unconditionally enabled.
NOTE: If P1 > P2, the range functions in blacklist mode. The AREA will be disabled within P2 <= C < P1, and enabled everywhere else.

There are distributions that support both this and the KHacker's COoB cheat. Therefore the executing code (e.g. LE-CODE) must know which cheat to use. Therefore the value for the route should be set to 0xff (-1) if you use this cheat.

Cheat Codes

Conditional OoB v2.0, PAL

Conditional OoB v2.0, NTSC-U

Conditional OoB v2.0, NTSC-J

Conditional OoB v2.0, NTSC-K