UI.AddSubTab(["Config", "SUBTAB_MGR"], "Tick")
UI.AddSliderInt(["Config", "Tick", "Tick"], "Tick speed", 1, 10)
var old_tick_count = 0
function onMove() {
if ((Globals.Tickcount() - old_tick_count) > UI.GetValue(["Config", "Tick", "Tick", "Tick speed"])) {
if (UI.GetValue(["Misc.", "Movement", "Leg movement"])) {
UI.SetValue(["Misc.", "Movement", "Leg movement"], 0)
}
else {
UI.SetValue(["Misc.", "Movement", "Leg movement"], 1)
}
old_tick_count = Globals.Tickcount()
}
}
function onUnload() {
UI.SetValue(["Misc.", "Movement", "Leg movement"], 0)
}
Cheat.RegisterCallback("CreateMove", "onMove")
Cheat.RegisterCallback("Unload", "onUnload")