mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2025-06-08 10:39:35 +08:00
ability handle validation
not tested. probably correct address
This commit is contained in:
parent
5dd6df4471
commit
562a6d760e
@ -4,13 +4,10 @@ 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 + 24) == 0)
|
||||
if (*(__int8*)((unsigned __int32)Prediction + 8) > *(__int8*)((unsigned __int32)Prediction + 24))
|
||||
{
|
||||
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);
|
||||
}
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user