hydraontopp_void/Void/Modules/Step.cs
#region

using Void.ClientBase;
using Void.Modules.vModuleExtra;

#endregion

namespace Void.Modules
{
    internal class Step : Module
    {
        public Step() : base("Step", (char)0x07, "Player")
        {
            addBypass(new BypassBox(new string[] { "Height: 1f", "Height: 2f" }));
        } // 0x07 = no keybind

        public override void OnEnable()
        {
            base.OnEnable();

            switch (bypasses[0].curIndex)
            {
                case 0:
                    Game.stepHeight = 1f;
                    break;
                case 1:
                    Game.stepHeight = 2f;
                    break;
            }
        }

        public override void OnDisable()
        {
            base.OnDisable();

            Game.stepHeight = .5f;
        }
    }
}