mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2025-06-08 10:39:35 +08:00
always anti-afk
This commit is contained in:
parent
31043114f0
commit
92271625c8
@ -80,6 +80,8 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu
|
||||
|
||||
if (*(__int8*)((unsigned __int32)Local_Player + 327) == 0)
|
||||
{
|
||||
Command->Buttons |= 4194304 * (Command->Command_Number % 2);
|
||||
|
||||
float Move_Angles[3] =
|
||||
{
|
||||
Command->Angles[0],
|
||||
@ -300,8 +302,6 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu
|
||||
if ((*(float*)((unsigned __int32)Local_Player + 4604) + 800.f * Global_Variables->Interval_Per_Tick >= 560.f) + *(__int8*)((unsigned __int32)Local_Player + 8068) + *(__int8*)((unsigned __int32)Local_Player + 9708) != 0)
|
||||
{
|
||||
Sequence_Shift(2);
|
||||
|
||||
Command->Buttons |= 4194304;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -538,10 +538,10 @@ void __thiscall Redirected_Copy_Command(void* Unknown_Parameter, Command_Structu
|
||||
|
||||
using Select_Sequence_Type = __int32(__thiscall*)(void* Entity, __int32 Activity);
|
||||
|
||||
using Get_Deploy_Activity_Type = __int32(__thiscall**)(void* Weapon);
|
||||
|
||||
using Translate_Activity_Type = __int32(__thiscall**)(void* Weapon, __int32 Activity);
|
||||
|
||||
using Get_Deploy_Activity_Type = __int32(__thiscall**)(void* Weapon);
|
||||
|
||||
Holstering = (min(*(float*)((unsigned __int32)Local_Player + 3872), *(float*)((unsigned __int32)Weapon + 2412)) + Get_Sequence_Duration_Type((unsigned __int32)Client_Module + 180400)(Weapon, Get_Studio_Header(Weapon), Select_Sequence_Type((unsigned __int32)Client_Module + 202896)(Weapon, (*Translate_Activity_Type(*(unsigned __int32*)Weapon + 1692))(Weapon, (*Get_Deploy_Activity_Type(*(unsigned __int32*)Weapon + 1600))(Weapon)))) > Global_Variables->Current_Time) * (Can_Attack ^ 1);
|
||||
}
|
||||
else
|
||||
|
@ -290,7 +290,7 @@ void __thiscall Perform_Trace(void* Stack)
|
||||
{
|
||||
if (__builtin_strstr(Get_Sequence_Name(Entity), "limb") != nullptr)
|
||||
{
|
||||
Damage = std::clamp(Damage, 0.f, *(__int32*)((unsigned __int32)Entity + 236) - 1.f);
|
||||
Damage = min(Damage, *(__int32*)((unsigned __int32)Entity + 236) - 1.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user