Attach Camera to Player ID [B_squo]
#1
Attach Camera to Player ID [B_squo]

Code will allow you to attach the camera to any player/CPU in the offline race/battle.

Y = Slot/Player ID

Y values:
0 = Player 1
1 = CPU 1
2 = CPU 2
etc etc
B = Final CPU

NTSC-U
C2679a0c 00000002
3800000Y 9803009C
8803009C 00000000

PAL
C267DE94 00000002
3800000Y 9803009C
8803009C 00000000

NTSC-J
C267d500 00000002
3800000Y 9803009C
8803009C 00000000

NTSC-K
C266c23c 00000002
3800000Y 9803009C
8803009C 00000000

Code creator: B_squo
Reply
#2
What is the original value for 3800000Y?
He is kinda fluffy tho
Reply
#3
There is no "original" value for Y.

For context, the original instruction that the code "hooks" to is lwz r0, 0x009C (r3). Instruction loads the Camera ID that is currently in memory and does a check on in later.

The value is dynamic (there is no static/default value), meaning it varies and gets changed by other portions/functions of the game.
Reply
#4
So if I want a button activator to be able to turn this code on and off, what do I do?
He is kinda fluffy tho
Reply
#5
It would probably be something like this considering most of the time the Camera ID is set to P1

Will switch back and forth between Y and Player 1's Camera ID with desired button. No idea if this will work. Probably doesn't.

NTSC-U
2834XXXX YYYYZZZZ
C2679a0c 00000002
3800000Y 9803009C
8803009C 00000000
CC000000 000000000
C2679a0c 00000002
38000000 9803009C
8803009C 00000000
E0000000 80008000
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)