[Help] legit aa

works fine at first, stops working randomly, i can still see my yaw changing if i am in third person and turn it on / off, works again once i restart my game and reinject

its just extremely inconsistent is there anything i should do to make it better and more consistent

Code:

void LegitAntiAim::LegitAA(CUserCmd *pCmd, bool& bSendPacket)
{
        auto activeWeapon = g_LocalPlayer->m_hActiveWeapon();

        if (!activeWeapon) return;

        if (g_LocalPlayer->GetMoveType() == MOVETYPE_LADDER || (activeWeapon->GetCSWeaponData()->WeaponType == WEAPONTYPE_GRENADE)) return;
        if (!(pCmd->buttons & IN_ATTACK) && !(pCmd->buttons & IN_ATTACK2))
        {
                if (!bSendPacket)
                {
                        pCmd->viewangles.yaw += g_Options.legitaa_yaw;
                }
                else if (bSendPacket)
                {
                        pCmd->viewangles.yaw += 0;
                }
                Math::NormalizeAngles(pCmd->viewangles);
                Math::ClampAngles(pCmd->viewangles);
        }
}


Leave a Reply

Your email address will not be published. Required fields are marked *