Blue shell cooldown [Gaberboo]
#1
PAL
c2795664 00000005
3d40807b a52a832e
a90a0004 5529801e
7ce9402e 3940XXXX
91470038 4e800020
60000000 60000000
NTSC-U
c278c658 00000005
3d40807d a52a50ee
a90a0004 5529801e
7ce9402e 3940XXXX
91470038 4e800020
60000000 60000000
NTSC-J
c2794cd0 00000005
3d40807a a52a799a
a90a0004 5529801e
7ce9402e 3940XXXX
91470038 4e800020
60000000 60000000
NTSC-K
c2783a24 00000005
3d408079 a52a66ee
a90a0004 5529801e
7ce9402e 3940XXXX
91470038 4e800020
60000000 60000000

XXXX is time in frames
Code:
.set region,

.if (region == 'P')
    .set ItemHolderPlayer_useBlueShell2,0x8079565c
    .set Item_ItemSlotTable_sInstance, 0x809c3670 # wstrt couldn't port this...
    .set ItemHolderPlayer_useBlooper, 0x807a81b4
.elseif (region == 'E')
    .set ItemHolderPlayer_useBlueShell2,0x8078c650
#    .set Item_ItemSlotTable_sInstance,
    .set ItemHolderPlayer_useBlooper, 0x807d4f74
.elseif (region == 'J')
    .set ItemHolderPlayer_useBlueShell2,0x80794cc8
#    .set Item_ItemSlotTable_sInstance, 
    .set ItemHolderPlayer_useBlooper, 0x807a7820
.elseif (region == 'K')
    .set ItemHolderPlayer_useBlueShell2,0x80783a1c
#    .set Item_ItemSlotTable_sInstance,
    .set ItemHolderPlayer_useBlooper, 0x80796574
.else
    .err
.endif

#inject at 0x80795664 PAL
#inject at 0x8078c658 NTSC-U
#inject at 0x80794cd0 NTSC-J
#inject at 0x80783a24 NTSC-K

lis r10, (ItemHolderPlayer_useBlooper + 0x17a)@ha
lhzu r9, (ItemHolderPlayer_useBlooper + 0x17a)@l (r10)
lha r8, 0x4 (r10)
slwi r9, r9, 16
lwzx r7, r9, r8
li r10, XXXX
stw r10, 0x38 (r7)


blr
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)