![]() Lwz r3, 0x3C (r3) #RaceInfoPlayer->lapFinishTimes Array Lwz r4, 0x14 (r5) #RaceInfo->TimerManager #cr1 = CR bit used later in the function to swap (or not) to the _F version of the brstmĬmpwi cr1, r31, 1 #Check if currentLap>1 (if it's first lap then no laps have been stored in RaceInfo)Ĭmplw cr1, r4, r31 #If MaxLap = LapCount, we are on final lap #r3 = RaceInfoPlayer, r5 = RACEINFO, r29 = PlayerHolder->PlayerArray->PlayerPointers->Field 0x1C, r31 = MaxLap of LocalPlayer0 elseif (region = 'K' || region = 'k') # RMCk elseif (region = 'J' || region = 'j') # RMCJ ![]() elseif (region = 'E' || region = 'e') # RMCE if (region = 'P' || region = 'p') # RMCP If you want all your soundtracks to speed up, then you can remove everything starting at the third C2.įirst ASM: Check if the conditions (lap, timer, flag) are met and then executes the speedup This code also effectively means that you do not need to include the _F version of the BRSTMs in your MyStuff/ISO as they are never used. For BRSTMs of tracks which you want to behave as per usual, you need to edit the byte at 0x3E of the _n.brstm version and change to exactly 01 ![]() If you want your music to speed up on final lap, you just have to add the codes The code achieves that by editing MrBean35000vr's "Use Byte 0x3F as the volume setting" code and also loading and storing the byte at 0x3E (which is padding). The code is always enabled by default, but you can disable it on select BRSTMs. Please note that this only affects track music and all other sounds are kept unchanged. The final lap jingle still plays, but the music does not cut and keeps going. This is especially great for people who use long soundtracks as their custom music and do not get to hear it all in most normal races. This code replaces the usual transition to the fast lap BRSTM (*_f.brstm) by a SpeedUp of the version over 5s.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |