Start Boost Modifier [Vega]
#1
Start Boost Modifier [Vega]

This code allows you to set what kind of start boost you get at the beginning of the race. There are two different configurations to this code. 1st config effects both you and CPUs. 2nd config allows you to choose between effecting you or effecting CPUs.

ZZZZ = Start Boost 'Index'

ZZZZ Values:
FFFF = Blowout
0000 = No Boost
0001 = Small Boost
0002 = Less Small Boost
0003 = Medium Boost
0004 = Good Boost
0005 = Perfect Boost / Perfect Start

X (2nd config only)

X Values
1 = Code only effects You
0 = Code only effects CPUs

1st Config~
NTSC-U
0458F2A8 3880ZZZZ

PAL
04595ACC 3880ZZZZ

NTSC-J
0459544C 3880ZZZZ

NTSC-K
04583B24 3880ZZZZ

2nd Config~
NTSC-U
C258F2A8 00000003
2C050001 809F00A0
4X820008 3880ZZZZ
60000000 00000000

PAL
C2595ACC 00000003
2C050001 809F00A0
4X820008 3880ZZZZ
60000000 00000000

NTSC-J
C259544C 00000003
2C050001 809F00A0
4X820008 3880ZZZZ
60000000 00000000

NTSC-K
C2583B24 00000003
2C050001 809F00A0
4X820008 3880ZZZZ
60000000 00000000

Code creator: Vega
Code credits: Stebler (player.h) and Seeky (mkw-structures)

First Source (effects everyone)
32-bit RAM Write: lwz r4, 0x00A0 (r31) changed to li r4, X

Second source

#Address
#NTSC-U = 8058F2A8
#PAL = 80595ACC
#NTSC-J = 8059544C
#NTSC-K = 80583B24

#r5 always equals 1 when address is hooked on CPU
cmpwi r5, 1

#Original Instruction
lwz r4, 0x00A0 (r31)

#Branch set for code to only effect you. Change branch to "bne-" to only effect CPUs
beq- the_end

#Set new start boost index
li r4, 5 #Perfect start used for compilation, adjust this accordingly

#End
the_end:
Reply
#2
Nice Job as always.
~MarioKartWii.com #1~
Reply
#3
Thank you for the kind words.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)