diff --git a/Play_Footstep_Sound.hpp b/Play_Footstep_Sound.hpp index 0a9f258..99fa5b6 100755 --- a/Play_Footstep_Sound.hpp +++ b/Play_Footstep_Sound.hpp @@ -4,12 +4,9 @@ void __thiscall Redirected_Play_Footstep_Sound(void* Unknown_Parameter_1, void* { void* Prediction = (void*)((unsigned __int32)Client_Module + 8072728); - if (*(__int8*)((unsigned __int32)Prediction + 8) == 1) + if (*(__int8*)((unsigned __int32)Prediction + 8) > *(__int8*)((unsigned __int32)Prediction + 24)) { - if (*(__int8*)((unsigned __int32)Prediction + 24) == 0) - { - return; - } + return; } (decltype(&Redirected_Play_Footstep_Sound)(Original_Play_Footstep_Sound_Caller))(Unknown_Parameter_1, Unknown_Parameter_2, Unknown_Parameter_3, Unknown_Parameter_4, Unknown_Parameter_5, Unknown_Parameter_6); diff --git a/Process_Movement.hpp b/Process_Movement.hpp index 66bcbf3..7a9e8ff 100644 --- a/Process_Movement.hpp +++ b/Process_Movement.hpp @@ -15,7 +15,9 @@ void __thiscall Redirected_Process_Movement(void* Unknown_Parameter, void* Playe if (Get_Identifier(Player, 0, 0) == 272) { - void* Ability = *(void**)((unsigned __int32)Client_Module + 7644532 + (((*(unsigned __int32*)((unsigned __int32)Player + 7892) & 4095) - 4097) << 4)); + using Get_Ability_Type = void*(__thiscall*)(void* Entity); + + void* Ability = Get_Ability_Type((unsigned __int32)Client_Module + 2438560)(Player); if (Ability != nullptr) {