File tree 2 files changed +20
-0
lines changed
UnleashedRecompLib/config
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -195,3 +195,11 @@ bool SparkleLocusMidAsmHook()
195
195
// This has the side effect of the locus particle eventually snapping to the rest position during pause, but it's better than vertices exploding.
196
196
return App::s_deltaTime < (1.0 / 60.0 );
197
197
}
198
+
199
+ void CEvilSonicContext_CStateWall_LeaveRotationMidAsmHook (PPCRegister& f1)
200
+ {
201
+ // The code in the Werehog's "wall" state for leaving walls adds a constant
202
+ // value of 0.05 to his transform every frame. This makes the value respect
203
+ // delta time whilst maintaining the original behaviour at 30 FPS.
204
+ f1.f64 = f1.f64 * (App::s_deltaTime / (1.0 / 30.0 ));
205
+ }
Original file line number Diff line number Diff line change @@ -1141,3 +1141,15 @@ registers = ["r3"]
1141
1141
name = " EndingTextPositionMidAsmHook"
1142
1142
address = 0x82580168
1143
1143
registers = [" r31" , " f13" ]
1144
+
1145
+ # Wall Leave - Left
1146
+ [[midasm_hook ]]
1147
+ name = " CEvilSonicContext_CStateWall_LeaveRotationMidAsmHook"
1148
+ address = 0x824067BC
1149
+ registers = [" f1" ]
1150
+
1151
+ # Wall Leave - Right
1152
+ [[midasm_hook ]]
1153
+ name = " CEvilSonicContext_CStateWall_LeaveRotationMidAsmHook"
1154
+ address = 0x82406774
1155
+ registers = [" f1" ]
You can’t perform that action at this time.
0 commit comments