Article Ideal RCS Standalone (cs1.6)

rushensky

Newbie
Newbie

rushensky

Newbie
Newbie
Status
Offline
Joined
Jul 11, 2019
Messages
5
Reaction score
6
You can try to use this code in cs go cheats

C++:
void CLegitBot::RCSStandalone(usercmd_s* cmd)
{
    if (!(m_pWeapons->IsCurWeaponRifle() || m_pWeapons->IsCurWeaponMachineGun() || m_pWeapons->IsCurWeaponSubMachineGun()))
        return;

    static QAngle returnangles;

    bool m_IsWork = cmd->buttons & IN_ATTACK && m_pLocal->m_iShotsFired > m_pCvar->weapons[m_iWeaponID].recoil_bullet_start && m_iClip;

    if (!(cmd->buttons & IN_ATTACK))
        returnangles.Clear();

    QAngle punchangles, aimangles, smoothangles;

    punchangles[PITCH] = (float)(client_state->punchangle[PITCH] * (m_pCvar->weapons[m_iWeaponID].recoil_y / 50.));
    punchangles[YAW] = (float)(client_state->punchangle[YAW] * (m_pCvar->weapons[m_iWeaponID].recoil_x / 50.));
    punchangles[ROLL] = 0;

    aimangles = cmd->viewangles;
    aimangles += returnangles;
    aimangles -= punchangles;

    aimangles.Normalize();

    QAngle view_angles = QAngle(m_pLocal->GetViewAngles());
    m_pMath->SmoothAimAngles(view_angles, aimangles, smoothangles, m_pCvar->weapons[m_iWeaponID].recoil_smooth);
    m_pMath->ClampAngles(smoothangles);

    if (m_IsWork && !m_AimIsWork)
    {
            cmd->viewangles = smoothangles;
            g_pEngine->SetViewAngles(cmd->viewangles);
    }

    aimangles += punchangles;
    returnangles = aimangles - smoothangles;
}
 
Top