I have this Code
Code:
local->SetLocalViewAngles(LastAngle);
local->Set_LBY(LastAngle[YAW]);
local->UpdateClientSideAnimations();
void IClientEntity::SetLocalViewAngles(Vector& Rot) {
typedef void(__thiscall*SetLocalViewAngles)(void*, Vector&);
call_func< SetLocalViewAngles >(this, 349)(this, Rot);
}
void IClientEntity::Set_LBY(float LBY)
{
struct AnimSt {
char _0x0000[124];
float LBY; //0x007C
float LBY2; //0x0080
};
auto addr = GetFieldValue< AnimSt* >(0x2BF8);//offset provided by copypaste
if (addr) {
addr->LBY = LBY;
addr->LBY2 = LBY;
}
}
void IClientEntity::UpdateClientSideAnimations() {
typedef int(__thiscall*UpdateClientSideAnimation)(void*);
static UpdateClientSideAnimation UpdateClientSideAnimationFN = nullptr;
if (!UpdateClientSideAnimationFN) {
UpdateClientSideAnimationFN = (UpdateClientSideAnimation)(mTools.FindPattern((PBYTE)cGMOD_hooks.Client.GetStartAddr(), cGMOD_hooks.Client.GetSize(),
(const char *)"\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x96",//xxxxxxxxx
0xCC));
}
UpdateClientSideAnimationFN(this);
}
Problem is i dont know why its not working maybe im missing something with GoalFeetYaw
without this i cant make > 40* rotation
im trying to implement this into Aqua cheat (its open source) i got Anti Aim working with a fake that legit people and aimbot cant hit(or do damage)