hydraontopp_void/Void/Modules/MineplexStep.cs
#region

using System;
using System.Windows.Forms;
using Void.ClientBase;
using Void.ClientBase.KeyBase;
using Void.ClientBase.VersionBase;
using Void.Modules.vModuleExtra;

#endregion

namespace Void.Modules
{
    internal class MineplexStep : Module
    {
        public MineplexStep() : base("MineplexStep", (char)0x07, "Player")
        {
            addBypass(new BypassBox(new string[] { "Default", "Fast", "Super Slow", "Slow" }));
        } // Not defined

        public override void OnTick()
        {
            float speed = 0.4f;

            if (Game.walkingIntoBlock != 1) return;

            switch (bypasses[0].curIndex)
            {
                case 0:
                    speed = 0.4f;
                    break;
                case 1:
                    speed = 0.6f;
                    break;
                case 2:
                    speed = 0.1f;
                    break;
                case 3:
                    speed = 0.2f;
                    break;
            }

            MCM.writeFloat(Game.localPlayer + VersionClass.GetData("velocity") + 4, speed);
        }
    }
}