Grand Prix Points Given Modifier [Vega]
#1
Grand Prix Points Given Modifier [Vega]

For offline Grand Prix only.

Slightly different than past GP Points Based codes as you can set the slot to whom this effects.

X = Slot
YYYY = Points

X values
0 = You
1 thru B = CPU's

NTSC-U
C252A0F0 00000003
8863FFFF 2C11000X
40A20008 3860YYYY
60000000 00000000

PAL
C252EC38 00000003
8863FFFF 2C11000X
40A20008 3860YYYY
60000000 00000000

NTSC-J
C252E5B8 00000003
8863FFFF 2C11000X
40A20008 3860YYYY
60000000 00000000

NTSC-K
C251CC90 00000003
8863FFFF 2C11000X
40A20008 3860YYYY
60000000 00000000



Source:
#Address Ports
# 8052A0F0 = NTSC-U
# 8052EC38 = PAL
# 8052E5B8 = NTSC-J
# 8051CC90 = NTSC-K

#Default Instruction
lbz r3, -0x0001 (r3) #Load points to give to racer

#Check slot
cmpwi r17, 0 #Adjust this to your needs
bne+ the_end #11 out of 12 odds for this branch to be taken, so most likely (+)

#Apply points
li r3, 0xFF #If slot matches, apply code

#The end
the_end:



Code creator: Vega
Code credits: _tZ (related function founder)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)