var set1 = false;
UI.AddCheckbox(["Rage", "Anti Aim", "Directions"],"Safe head");
UI.AddSliderInt(["Rage", "Anti Aim", "Directions"], "Offset", -60,60);
function Safe_Head()
{
var jitter_cache = UI.GetValue(["Rage", "Anti Aim", "Directions", "Jitter offset"])
var yaw_cache = UI.GetValue(["Rage", "Anti Aim", "Directions", "Yaw offset"])
var offset = UI.GetValue(["Rage", "Anti Aim", "Directions", "Offset"]);
localplayer_index = Entity.GetLocalPlayer( );
if (UI.GetValue(["Rage", "Anti Aim", "Directions","Safe head"]) && UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Slow walk"]))
{
UI.SetValue(["Rage", "Anti Aim", "Directions", "Jitter offset"], 0 );
AntiAim.SetOverride(1);
AntiAim.SetFakeOffset(0);
if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "AA Direction inverter"])){
AntiAim.SetRealOffset(-offset);
}
else{
AntiAim.SetRealOffset(offset);
}
set1 = false;
}
else
{
if (!set1) {
set1 = true;
UI.SetValue(["Rage", "Anti Aim", "Directions", "Jitter offset"], jitter_cache);
UI.SetValue(["Rage", "Anti Aim", "Directions", "Yaw offset"], yaw_cache);
}
AntiAim.SetOverride(0);
}
}
Cheat.RegisterCallback("CreateMove", "Safe_Head");