From 1136c1d430b12a90c0de65eb8f8f1d90bb1d84d8 Mon Sep 17 00:00:00 2001 From: explorer Date: Tue, 4 Feb 2025 14:47:51 +0300 Subject: [PATCH] always anti-afk --- Copy_Command.hpp | 4 ++-- Perform_Trace.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Copy_Command.hpp b/Copy_Command.hpp index 177e18e..bda9f8a 100644 --- a/Copy_Command.hpp +++ b/Copy_Command.hpp @@ -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 { diff --git a/Perform_Trace.hpp b/Perform_Trace.hpp index 727954c..737907b 100755 --- a/Perform_Trace.hpp +++ b/Perform_Trace.hpp @@ -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); } } }