02-10-2025, 02:54 PM
Disable CPU Driving [B_squo]
Works everywhere. This will disable CPU driving and disable CPU start boosts. The only inconvenience is that CPUs won't move during the awards ceremony or the credits, but it should be relatively easy to fix, I just didn't think it was necessary at the moment, unless anybody explicitly wants cutscene CPUs to work as intended.
The first line immediately returns on function Enemy::AIControlBase::doUpdate_ (which handles updating CPUs in general terms)
The second line immediately returns from function Enemy::AIControlBase:
etStartDashTypeToKart, making CPUs unable to start boost.
(names are from MK7, but the way it's coded is pretty much the same as MKWii).
NTSC-U
0472336c 4e800020
0472310c 4e800020
PAL
0472a570 4e800020
0472a310 4e800020
NTSC-J
04729bdc 4e800020
0472997c 4e800020
NTSC-K
04718918 4e800020
047186b8 4e800020
Code creator: B_squo
Works everywhere. This will disable CPU driving and disable CPU start boosts. The only inconvenience is that CPUs won't move during the awards ceremony or the credits, but it should be relatively easy to fix, I just didn't think it was necessary at the moment, unless anybody explicitly wants cutscene CPUs to work as intended.
The first line immediately returns on function Enemy::AIControlBase::doUpdate_ (which handles updating CPUs in general terms)
The second line immediately returns from function Enemy::AIControlBase:

(names are from MK7, but the way it's coded is pretty much the same as MKWii).
NTSC-U
0472336c 4e800020
0472310c 4e800020
PAL
0472a570 4e800020
0472a310 4e800020
NTSC-J
04729bdc 4e800020
0472997c 4e800020
NTSC-K
04718918 4e800020
047186b8 4e800020
Code creator: B_squo