mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2024-12-22 22:57:23 +08:00
2dc81b9839
also explicitly specifying value type seems to be good practice to prevent unintended fraction down-rounding (just what've happened in paint.hpp with color 128 -> 127) also remove scope check i've competely forgot about in draw_crosshair.hpp
22 lines
772 B
C++
22 lines
772 B
C++
void* Original_Process_Movement_Caller;
|
|
|
|
void __thiscall Redirected_Process_Movement(void* Unknown_Parameter, void* Player, void* Move_Data)
|
|
{
|
|
if (*(__int32*)((unsigned __int32)Player + 5324) < 0)
|
|
{
|
|
*(__int32*)((unsigned __int32)Move_Data + 36) &= ~1564;
|
|
|
|
*(__int32*)((unsigned __int32)Move_Data + 36) |= 4 * *(__int8*)((unsigned __int32)Player + 4636);
|
|
|
|
*(double*)((unsigned __int32)Move_Data + 44) = 0.;
|
|
}
|
|
|
|
(decltype(&Redirected_Process_Movement)(Original_Process_Movement_Caller))(Unknown_Parameter, Player, Move_Data);
|
|
|
|
void* Ability = *(void**)((unsigned __int32)Client_Module + 7644532 + (((*(unsigned __int32*)((unsigned __int32)Player + 7892) & 4095) - 4097) << 4));
|
|
|
|
if (Ability != nullptr)
|
|
{
|
|
*(float*)((unsigned __int32)Ability + 1636) = 0.f;
|
|
}
|
|
} |