UI.AddLabel(' Main section ');
UI.AddHotkey('Legit AA');
UI.AddHotkey('Freestand');
UI.AddCheckbox('Low delta on slowwalk');
UI.AddCheckbox('Break leg animation');
UI.AddSliderInt('Value', 1, 10);
UI.AddLabel(' Second section ');
UI.AddCheckbox('Desync degree indicator');
UI.AddColorPicker('Line color');
UI.AddColorPicker('Desync arrows');
UI.AddColorPicker('Keybindings color');
var screen_size = Render.GetScreenSize();
x = screen_size[0];
y = screen_size[1];
function fake() {
local = Entity.GetLocalPlayer();
if (!UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Desync degree indicator') || !Entity.IsValid(local) || !Entity.IsAlive(local)) {
return;
}
font = Render.AddFont('Verdana', 8, 400);
col = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Line color');
real_yaw = Local.GetRealYaw();
fake_yaw = Local.GetFakeYaw();
delta = Math.min(Math.abs(real_yaw - fake_yaw) / 2, 60).toFixed(0);
delta_size = Render.TextSizeCustom(delta, font);
Render.StringCustom(x / 2, y / 2 + 32, 1, 'kane yaw', [
255,
255,
255,
255
], font);
Render.StringCustom(x / 2 + 27, y / 2 - 12, 1, '->', [
255,
255,
255,
255
], 10);
Render.StringCustom(x / 2 - 27, y / 2 - 12, 1, '<-', [
255,
255,
255,
255
], 10);
Render.StringCustom(x / 2, y / 2 + 10, 1, delta, [
255,
255,
255,
255
], font);
Render.GradientRect(x / 2, y / 2 + 25, 2.0833333333333335 * delta, 5, 1, col, [
0,
0,
0,
0
]);
Render.GradientRect(x / 2 - 2.0833333333333335 * delta + 1, y / 2 + 25, 2.0833333333333335 * delta, 5, 1, [
0,
0,
0,
0
], col);
}
function main_aa() {
col1 = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Desync arrows');
if (UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter')) {
Render.StringCustom(x / 2 - 45, y / 2 - 12, 1, '<', col1, 10);
} else {
Render.StringCustom(x / 2 + 45, y / 2 - 12, 1, '>', col1, 10);
}
}
var jitter_cache = UI.GetValue('Anti-Aim', 'Rage Anti-Aim', 'Jitter offset'), yaw_cache = UI.GetValue('Anti-Aim', 'Rage Anti-Aim', 'Yaw offset');
function low_delta() {
localplayer_index = Entity.GetLocalPlayer();
if (UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Low delta on slowwalk') && UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Slow walk')) {
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Yaw offset', 0);
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Jitter offset', 0);
AntiAim.SetOverride(1);
AntiAim.SetFakeOffset(-7);
AntiAim.SetRealOffset(23);
} else {
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Jitter offset', jitter_cache);
AntiAim.SetOverride(0);
}
}
function freestand() {
if (UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Freestand')) {
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Auto direction', true);
} else {
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Auto direction', false);
}
}
var old_tick_count = 0;
function anim() {
if (UI.GetValue('Script items', 'Break leg animation') && Globals.Tickcount() - old_tick_count > UI.GetValue('Script items', 'Value')) {
if (UI.GetValue('Misc', 'GENERAL', 'Movement', 'Slide walk')) {
UI.SetValue('Misc', 'GENERAL', 'Movement', 'Slide walk', 0);
} else {
UI.SetValue('Misc', 'GENERAL', 'Movement', 'Slide walk', 1);
}
old_tick_count = Globals.Tickcount();
}
}
var original_aa = true;
function legit_aa() {
if (UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Script items', 'Legit AA')) {
if (original_aa) {
restrictions_cache = UI.GetValue('Misc', 'PERFORMANCE & INFORMATION', 'Information', 'Restrictions');
hiderealangle_cache = UI.GetValue('Anti-Aim', 'Fake angles', 'Hide real angle');
yaw_offset_cache = UI.GetValue('Anti-Aim', 'Rage Anti-Aim', 'Yaw offset');
jitter_offset_cache = UI.GetValue('Anti-Aim', 'Rage Anti-Aim', 'Jitter offset');
pitch_cache = UI.GetValue('Anti-Aim', 'Extra', 'Pitch');
original_aa = false;
}
UI.SetValue('Misc', 'PERFORMANCE & INFORMATION', 'Information', 'Restrictions', 0);
UI.SetValue('Anti-Aim', 'Fake angles', 'Hide real angle', false);
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Yaw offset', 180);
UI.SetValue('Anti-Aim', 'Rage Anti-Aim', 'Jitter offset', 0);
UI.SetValue('Anti-Aim', 'Extra', 'Pitch', 0);
} else {
if (!original_aa) {
UI.SetValue('Misc', 'PERFORMANCE & INFORMATION', 'Information', 'Restrictions', restrictions_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', 'Rage Anti-Aim', 'Jitter offset', jitter_offset_cache);
UI.SetValue('Anti-Aim', 'Extra', 'Pitch', pitch_cache);
original_aa = true;
}
}
}
const keybinds_x = UI.AddSliderInt('keybinds_x', 0, Global.GetScreenSize()[0]), keybinds_y = UI.AddSliderInt('keybinds_y', 0, Global.GetScreenSize()[1]);
function in_bounds(_0xfd30a2, _0x2d4fa8, _0x4b8bd4, _0x33f056, _0x180bbd) {
return _0xfd30a2[0] > _0x2d4fa8 && _0xfd30a2[1] > _0x4b8bd4 && _0xfd30a2[0] < _0x33f056 && _0xfd30a2[1] < _0x180bbd;
}
function xy() {
UI.SetEnabled('Misc', 'JAVASCRIPT', 'Script items', 'keybinds_x', false);
UI.SetEnabled('Misc', 'JAVASCRIPT', 'Script items', 'keybinds_y', false);
}
xy();
function keybinds() {
var _0x22ca26 = [];
const _0x4028db = Render.AddFont('Verdana', 7, 100);
if (UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Slow walk')) {
_0x22ca26.push('Slow walk');
}
if (UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Fake duck')) {
_0x22ca26.push('Fake duck');
}
if (UI.IsHotkeyActive('Misc', 'General', 'Movement', 'Auto peek')) {
_0x22ca26.push('Auto peek');
}
if (UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter')) {
_0x22ca26.push('switched');
}
if (UI.IsHotkeyActive('Rage', 'General', 'General', 'Force safe point')) {
_0x22ca26.push('Force safety');
}
if (UI.IsHotkeyActive('Rage', 'General', 'General', 'Force body aim')) {
_0x22ca26.push('Force body');
}
if (UI.IsHotkeyActive('Rage', 'Exploits', 'Double tap')) {
_0x22ca26.push('Double tap');
}
if (UI.IsHotkeyActive('Rage', 'Exploits', 'Hide shots')) {
_0x22ca26.push('Hide shots');
}
if (UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Freestand')) {
_0x22ca26.push('Freestand');
}
const _0x2c1530 = UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'keybinds_x'), _0x307c64 = UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'keybinds_y'), _0x3ff00c = [
Math.floor(Math.sin(Global.Realtime() * 2) * 127 + 128),
Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
Math.floor(Math.sin(Global.Realtime() * 2 + 4) * 127 + 128),
255
];
col2 = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Keybindings color');
Render.StringCustom(_0x2c1530 + 60, _0x307c64 + 4, 0, 'Keybindings', [
255,
255,
255,
255
], _0x4028db);
Render.FilledRect(_0x2c1530, _0x307c64, 170, 2, col2);
for (i = 0; i < _0x22ca26.length; i++) {
Render.StringCustom(_0x2c1530 + 5, _0x307c64 + 23 + 15 * i, 0, _0x22ca26[i], [
255,
255,
255,
255
], _0x4028db);
Render.StringCustom(_0x2c1530 + 123, _0x307c64 + 23 + 15 * i, 0, '[active]', [
255,
255,
255,
255
], _0x4028db);
}
if (Global.IsKeyPressed(1)) {
const _0x3197c9 = Global.GetCursorPosition();
if (in_bounds(_0x3197c9, _0x2c1530, _0x307c64, _0x2c1530 + 200, _0x307c64 + 30)) {
if (UI.IsMenuOpen() == false) {
return;
}
UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', 'keybinds_x', _0x3197c9[0] - 100);
UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', 'keybinds_y', _0x3197c9[1] - 20);
}
}
}
Cheat.RegisterCallback('Draw', 'fake');
Global.RegisterCallback('Draw', 'main_aa');
Cheat.RegisterCallback('CreateMove', 'low_delta');
Cheat.RegisterCallback('CreateMove', 'freestand');
Cheat.RegisterCallback('Draw', 'anim');
Cheat.RegisterCallback('CreateMove', 'legit_aa');
Global.RegisterCallback('Draw', 'keybinds');