2024-10-21 11:13:28 +08:00
|
|
|
void Run_Prediction()
|
|
|
|
{
|
|
|
|
using Run_Prediction_Type = void(__cdecl*)();
|
|
|
|
|
|
|
|
Run_Prediction_Type((unsigned __int32)Engine_Module + 527776)();
|
|
|
|
}
|
2024-10-07 03:45:39 +08:00
|
|
|
|
|
|
|
__int32 Extra_Commands;
|
|
|
|
|
2024-10-21 11:13:28 +08:00
|
|
|
void* Original_Move_Caller;
|
|
|
|
|
2024-10-07 03:45:39 +08:00
|
|
|
void Redirected_Move(float Unknown_Parameter, __int8 Final)
|
|
|
|
{
|
|
|
|
if (*(void**)((unsigned __int32)Client_Module + 7498712) != nullptr)
|
|
|
|
{
|
|
|
|
Redirected_Read_Packets(Final);
|
|
|
|
|
2024-10-21 11:13:28 +08:00
|
|
|
Run_Prediction();
|
2024-10-08 09:41:25 +08:00
|
|
|
|
|
|
|
using Update_Animations_Type = void(__cdecl*)();
|
|
|
|
|
|
|
|
Update_Animations_Type((unsigned __int32)Client_Module + 205296)();
|
|
|
|
|
|
|
|
Update_Animation_Time = (*(Global_Variables_Structure**)((unsigned __int32)Client_Module + 7096744))->Current_Time;
|
|
|
|
|
|
|
|
Update_Animation_Type = 1;
|
|
|
|
|
|
|
|
Update_Animations_Type((unsigned __int32)Client_Module + 205296)();
|
|
|
|
|
|
|
|
Update_Animation_Type = 0;
|
|
|
|
|
2024-10-07 03:45:39 +08:00
|
|
|
using Fire_Events_Type = void(__cdecl*)();
|
|
|
|
|
|
|
|
Fire_Events_Type((unsigned __int32)Engine_Module + 521648)();
|
|
|
|
}
|
|
|
|
|
|
|
|
Extra_Commands = -1;
|
|
|
|
|
|
|
|
Move_Label:
|
|
|
|
{
|
|
|
|
(decltype(&Redirected_Move)(Original_Move_Caller))(Unknown_Parameter, Final);
|
|
|
|
|
2024-10-21 11:13:28 +08:00
|
|
|
Run_Prediction();
|
2024-10-08 09:41:25 +08:00
|
|
|
|
2024-10-07 03:45:39 +08:00
|
|
|
if (Extra_Commands > 0)
|
|
|
|
{
|
|
|
|
Extra_Commands -= 1;
|
|
|
|
|
|
|
|
goto Move_Label;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|