var original_aa = true;
UI.AddHotkey("Legit Antiaim");
var Action = false;
function legit_aa()
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Legit Antiaim"))
{
if (original_aa)
{
restrictions_cache = UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions");
hiderealangle_cache = UI.GetValue ("Anti-Aim", "Fake angles", "Hide real angle");
at_targets_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "At targets");
yaw_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
pitch_cache = UI.GetValue ("Anti-Aim", "Extra", "Pitch");
avoid_overlap_cache = UI.GetValue ("Fake angels", "Avoid overlap")
manual_dir_cache = UI.GetValue ("Rage Anti-Aim", "Manual dir")
jitter_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
original_aa = false;
}
if (Action) return;
UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", 0);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "At targets", 1);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", 0)
UI.SetValue ("Anti-Aim", "Fake angles", "Avoid overlap", 0);
UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", 1);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Manual dir", 0)
Global.ExecuteCommand( "-use" )
}
else
{
if (!original_aa)
{
UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", restrictions_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "At targets", at_targets_cache);
UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", hiderealangle_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_offset_cache);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", pitch_cache);
UI.SetValue ("Anti-Aim", "Fake angles", "Avoid overlap", avoid_overlap_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Manual dir", manual_dir_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset_cache);
original_aa = true;
}
}
}
function BombTrue() {
var LocalPlayerTeam = Entity.GetProp(Entity.GetLocalPlayer(), "DT_BaseEntity", "m_iTeamNum");
var PlayerUserId = Event.GetInt("userid");
var PlayerIndex = Entity.GetEntityFromUserID(PlayerUserId);
var BombPlanted = Event.GetInt("isplanted");
if (PlayerIndex == Entity.GetLocalPlayer()) {
if (LocalPlayerTeam == 3) {
if (BombPlanted) {
Action = true;
} else {
Action = false;
}
} else {
Action = false;
}
}
}
function BombFalse() {
var PlayerUserId = Event.GetInt("userid");
var PlayerIndex = Entity.GetEntityFromUserID(PlayerUserId);
if (PlayerIndex == Entity.GetLocalPlayer()) {
Action = false;
}
}
Cheat.RegisterCallback("CreateMove", "legit_aa");
Cheat.RegisterCallback("enter_bombzone", "BombTrue");
Cheat.RegisterCallback("exit_bombzone", "BombFalse");