UI.AddCheckbox("Switch inverter when standing");
getvelocity = function (index) {
var velocity = Entity.GetProp(index, "CBasePlayer", "m_vecVelocity[0]");
return Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
}
Switch = function () {
//var
enabled = UI.GetValue("Script items" , "Switch inverter when standing");
local = Entity.GetLocalPlayer();
if (enabled == true && getvelocity(local) < 5) {
UI.ToggleHotkey("Anti-Aim", "Fake angles", "Inverter");
}
}
Cheat.RegisterCallback("Draw", "Switch");