public void DoRCS(bool aimbot = false)
{
if (WithOverlay.ConfigUtils.GetValue<bool>("rcsEnabled"))
{
if (LocalPlayerWeapon != null)
{
if (!RCSHandled && (LocalPlayerWeapon.m_iClip1 != LastClip || LocalPlayer.m_iShotsFired > 0 || WithOverlay.KeyUtils.KeyIsDown(WinAPI.VirtualKeyShort.LBUTTON)))
{
if (aimbot)
{
NewViewAngles -= LocalPlayer.m_vecPunch * (2f / 100f * WithOverlay.ConfigUtils.GetValue<float>("rcsForce"));
}
else
{
Vector3 punch = LocalPlayer.m_vecPunch - LastPunch;
NewViewAngles -= punch * (2f / 100f * WithOverlay.ConfigUtils.GetValue<float>("rcsForce"));
}
RCSHandled = true;
}
}
}
}