Stop All Opponents Offline Only [Hamster35000vr]
#1
Stop All Opponents Offline Only [Hamster35000vr]

NOTE: Outdated by JoshuaMK's Disable CPU Driving Code.

Does NOT work in Grand Prix.

This code will prevent the CPUs from driving past the start line.

NTSC-U
C2575BD4 00000004
808100A0 38840433
7C032040 41800008
FC000028 D00300B8
60000000 00000000

PAL
C257C438 00000004
808100A0 38840433
7C032040 41800008
FC000028 D00300B8
60000000 00000000

NTSC-J
C257BDB8 00000004
808100A0 38840433
7C032040 41800008
FC000028 D00300B8
60000000 00000000

NTSC-K
C256A490 00000004
808100A0 38840433
7C032040 41800008
FC000028 D00300B8
60000000 00000000



Source:

#r4 safe for use

lwz r4, 0xA0 (sp) #The Mem81 Pointer we need is always 0xA0 in reference to the stack pointer. No need to try to manually port this pointer per region

addi r4, r4, 0x433

cmplw r3, r4
blt- default_instruction

fsub f0, f0, f0 #Clear out f0, this causes CPUs to not move past the start line. This is essentially telling the game that the CPUs keep hitting offroad over and over again

default_instruction:
stfs f0, 0x00B8 (r3)



Code creator: Hamster35000vr
Code credits: Vega (overhauled source, fixed offroad bug)
Reply


Messages In This Thread
Stop All Opponents Offline Only [Hamster35000vr] - by Vega - 06-30-2018, 04:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)