mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2025-07-18 09:27:56 +08:00
Commit
This commit is contained in:
15
Finish_Move.hpp
Executable file
15
Finish_Move.hpp
Executable file
@ -0,0 +1,15 @@
|
||||
void* Original_Finish_Move_Caller;
|
||||
|
||||
void __thiscall Redirected_Finish_Move(void* Unknown_Parameter_1, void* Player, void* Unknown_Parameter_2, void* Move_Data)
|
||||
{
|
||||
float X = *(float*)((unsigned __int32)Move_Data + 76);
|
||||
|
||||
if (X > 180)
|
||||
{
|
||||
X -= 360;
|
||||
}
|
||||
|
||||
*(float*)((unsigned __int32)Move_Data + 76) = std::clamp(X, -90.f, 90.f);
|
||||
|
||||
(decltype(&Redirected_Finish_Move)(Original_Finish_Move_Caller))(Unknown_Parameter_1, Player, Unknown_Parameter_2, Move_Data);
|
||||
}
|
Reference in New Issue
Block a user