CSGOTriggerbot.CSGOClasses.Framework.DoRCS C# (CSharp) Метод

DoRCS() публичный Метод

public DoRCS ( bool aimbot = false ) : void
aimbot bool
Результат void
        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;
                    }
                }
            }
        }