always anti-afk

This commit is contained in:
explorer 2025-02-04 14:47:51 +03:00
parent 31043114f0
commit 1136c1d430
2 changed files with 3 additions and 3 deletions

View File

@ -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
{

View File

@ -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);
}
}
}