Esempio n. 1
0
        public override void DoWork()
        {
            while (true)
            {
                if (!Enabled || Global.ProcessState != ProcessState.Attached)
                {
                    Thread.Sleep(1000);
                    continue;
                }

                var state = Global.LocalPlayer.State;

                if (Keyboard.IsPressed(0x20))
                {
                    _bunny.Handle();
                    if (Global.LocalPlayer.IsReloading)
                    {
                        Console.WriteLine("reload");
                    }

                    ThreadSleep.Set(FunctionName);
                    continue;
                }
                if (state != PlayerState.Jump && state != PlayerState.DuckJump)
                {
                    _bunny.ManualReset();
                }

                Thread.Sleep(5);
            }
        }