Пример #1
0
        void UpdateHackState()
        {
            HacksComponent hacks = game.LocalPlayer.Hacks;

            speed  = hacks.Speeding; halfSpeed = hacks.HalfSpeeding; fly = hacks.Flying;
            noclip = hacks.Noclip; lastFov = game.Fov; canSpeed = hacks.CanSpeed;

            statusBuffer.Clear();
            if (game.Fov != game.DefaultFov)
            {
                statusBuffer.Append("Zoom fov ").AppendNum(lastFov).Append("  ");
            }
            if (fly)
            {
                statusBuffer.Append("Fly ON   ");
            }

            bool speeding = (speed || halfSpeed) && (hacks.CanSpeed || hacks.BaseHorSpeed > 1);

            if (speeding)
            {
                statusBuffer.Append("Speed ON   ");
            }
            if (noclip)
            {
                statusBuffer.Append("Noclip ON   ");
            }
            hackStates.SetText(statusBuffer.ToString());
        }
Пример #2
0
        void UpdateHackState(bool force)
        {
            HacksComponent hacks = game.LocalPlayer.Hacks;

            if (force || hacks.Speeding != speeding || hacks.HalfSpeeding != halfSpeeding || hacks.Noclip != noclip ||
                hacks.Flying != fly || game.Fov != lastFov)
            {
                speeding = hacks.Speeding; halfSpeeding = hacks.HalfSpeeding; noclip = hacks.Noclip; fly = hacks.Flying;
                lastFov  = game.Fov;
                int index = 0;
                statusBuffer.Clear();

                if (game.Fov != game.DefaultFov)
                {
                    statusBuffer.Append(ref index, "Zoom fov ")
                    .AppendNum(ref index, lastFov).Append(ref index, "  ");
                }
                if (fly)
                {
                    statusBuffer.Append(ref index, "Fly ON   ");
                }

                bool speed = (speeding || halfSpeeding) &&
                             (hacks.CanSpeed || hacks.BaseHorSpeed > 1);
                if (speed)
                {
                    statusBuffer.Append(ref index, "Speed ON   ");
                }
                if (noclip)
                {
                    statusBuffer.Append(ref index, "Noclip ON   ");
                }
                hackStates.SetText(statusBuffer.ToString());
            }
        }
Пример #3
0
        bool HacksChanged()
        {
            HacksComponent hacks = game.LocalPlayer.Hacks;

            return(hacks.Speeding != speed || hacks.HalfSpeeding != halfSpeed || hacks.Flying != fly ||
                   hacks.Noclip != noclip || game.Fov != lastFov || hacks.CanSpeed != canSpeed);
        }