Exemplo n.º 1
0
        public static void Start()
        {
            while (!gvar.isShuttingDown)
            {
                Thread.Sleep(1);

                Bunnyhop.Start();

                if (!Local.InGame)
                {
                    if (Local.SendPackets == false)
                    {
                        Local.SendPackets = true;
                    }
                    continue;
                }

                if (!Settings.userSettings.MiscSettings.FakeLag)
                {
                    if (once)
                    {
                        if (Local.SendPackets == false)
                        {
                            Local.SendPackets = true;
                        }
                        once = false;
                    }

                    continue;
                }

                once = true;

                if ((WinAPI.GetAsyncKeyState(0x1) & 0x8000) > 0 || WinAPI.GetAsyncKeyState(0x1) > 0)
                {
                    if (Local.SendPackets == false)
                    {
                        Local.SendPackets = true;
                    }
                    continue;
                }

                var endLag = _lastLag + Settings.userSettings.MiscSettings.FakeLagAmount;
                if (endLag > Environment.TickCount)
                {
                    Local.SendPackets = false;
                    continue;
                }

                if (endLag + 15 > Environment.TickCount)
                {
                    Local.SendPackets = true;
                    continue;
                }

                _lastLag = Environment.TickCount;
            }

            Local.SendPackets = true;
        }
Exemplo n.º 2
0
        public static void Start()
        {
            gvar.SHUTDOWN++;
            while (true)
            {
                if (gvar.isShuttingDown)
                {
                    gvar.SHUTDOWN--;
                    break;
                }

                Thread.Sleep(1);

                if (!Local.InGame)
                {
                    continue;
                }

                Triggerbot.Start();
                Bunnyhop.Start();
                SkinChanger.Start();

                Local.NoArms = Settings.userSettings.VisualSettings.NoHands;
                Local.Flash  = Settings.userSettings.MiscSettings.FlashAlpha;
                Local.PostProcessingDisable = Settings.userSettings.MiscSettings.NoPostProcessing;

                ClanTagChanger.Start();
                Rank.Start();
                ChatSpammer.Start();

                if (Settings.userSettings.VisualSettings.NoScope)
                {
                    if (Local.Scoped)
                    {
                        Local.Scoped = false;
                    }
                }

                if (Settings.userSettings.VisualSettings.NoScope)
                {
                    if (Local.ActiveWeapon.ScopeLevel == 0)
                    {
                        Local.DrawViewModel = true;
                        Local.Fov           = Settings.userSettings.MiscSettings.Fov;
                    }
                    else if (Local.ActiveWeapon.ScopeLevel == 1)
                    {
                        if (Local.ActiveWeapon.WeaponID != 8 && Local.ActiveWeapon.WeaponID != 39)
                        {
                            Local.DrawViewModel = false;
                        }
                        Local.Fov = 40;
                    }
                    else if (Local.ActiveWeapon.ScopeLevel == 2)
                    {
                        Local.DrawViewModel = false;
                        Local.Fov           = 10;
                    }
                }
                else
                {
                    if (!Local.Scoped)
                    {
                        Local.DrawViewModel = true;
                        Local.Fov           = Settings.userSettings.MiscSettings.Fov;
                    }
                    else if (Local.ActiveWeapon.ScopeLevel == 1)
                    {
                        if (Local.ActiveWeapon.WeaponID != 8 && Local.ActiveWeapon.WeaponID != 39)
                        {
                            Local.DrawViewModel = false;
                        }
                        Local.Fov = 40;
                    }
                    else if (Local.ActiveWeapon.ScopeLevel == 2)
                    {
                        Local.DrawViewModel = false;
                        Local.Fov           = 10;
                    }
                }

                if (Settings.userSettings.MiscSettings._3rdPerson)
                {
                    if (WinAPI.GetAsyncKeyState(Settings.userSettings.MiscSettings._3rdPersonKey) > 0)
                    {
                        Local.ThirdPerson = !Local.ThirdPerson;
                        Thread.Sleep(500);
                    }
                }
                else if (Local.ThirdPerson)
                {
                    Local.ThirdPerson = false;
                }
            }
        }