UI.AddCheckbox("Enable eshka");
function main() {
var g_Local_weapon = Entity.GetWeapon(Entity.GetLocalPlayer());
var weapon = Entity.GetClassName( g_Local_weapon );
if (UI.GetValue("Enable eshka") && weapon == "CHEGrenade" || weapon == "CMolotovGrenade" || weapon == "CIncendiaryGrenade" || weapon == "CSmokeGrenade" || weapon == "CFlashbang" || weapon == "CDecoyGrenade") {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Enabled", false);
}
else {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Enabled", true);
}
}
function onUnload() {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Enabled", true);
}
Cheat.RegisterCallback("CreateMove", "main");
Cheat.RegisterCallback("Unload", "onUnload");