Flatten Toggle [Fishguy]
#1
Flatten Toggle [Fishguy]

Character is constantly being flattened. If used offline, it effects all CPUs. If used online, only effects you and others will not see the flattening effects.

NTSC-U
C258E018 00000006
3DC00001 81E30020
39EF0001 2C0F0020
7C007078 4180000C
39E00000 7C007378
91E30020 9003000C
60000000 00000000

PAL
C259483C 00000006
3DC00001 81E30020
39EF0001 2C0F0020
7C007078 4180000C
39E00000 7C007378
91E30020 9003000C
60000000 00000000

NTSC-J
C25941BC 00000006
3DC00001 81E30020
39EF0001 2C0F0020
7C007078 4180000C
39E00000 7C007378
91E30020 9003000C
60000000 00000000

NTSC-K
C2582894 00000006
3DC00001 81E30020
39EF0001 2C0F0020
7C007078 4180000C
39E00000 7C007378
91E30020 9003000C
60000000 00000000

Code creator: Fishguy

#Source:
#Address Ports
#8058E018 NTSC-U
#8059483C PAL
#805941BC NTSC-J
#80582894 NTSC-K

code:
    lis    r14, 1              #r14 now contains 0x00010000 which are the bits that correspond to the flattening status
    lwz    r15, 32(r3)        #Using unused memory location near target to keep the counter
    addi    r15, r15, 1        #Increment counter
    cmpwi  r15, 60            #Checks to see if counter has reached a certain value
    andc    r0, r0, r14        #This clears the bits used to flatten the player
    blt    skip                #skips writing the flatten status bits if it is less than the defined counter
    li      r15, 0              #Resets the counter
    or      r0, r0, r14        #ORs the status bits
skip:
    stw r15, 32(r3)            #Stores the counter back into memory
    stw r0,12(r3)              #Stores the bit statuses back into memory (original instruction)
Reply


Messages In This Thread
Flatten Toggle [Fishguy] - by Vega - 01-18-2020, 07:28 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)