Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UI.AddLabel('');
- UI.AddSliderInt('', -1, 0);
- UI.AddLabel(' Visuals CFG ');
- UI.AddSliderInt('', -1, 0);
- UI.AddLabel('');
- UI.AddLabel('');
- UI.AddLabel(' ESP ');
- const global_print = Global.Print,
- global_print_chat = Global.PrintChat,
- global_print_color = Global.PrintColor,
- global_register_callback = Global.RegisterCallback,
- global_execute_command = Global.ExecuteCommand,
- global_frame_stage = Global.FrameStage,
- global_tickcount = Global.Tickcount,
- global_tickrate = Global.Tickrate,
- global_tick_interval = Global.TickInterval,
- global_curtime = Global.Curtime,
- global_realtime = Global.Realtime,
- global_frametime = Global.Frametime,
- global_latency = Global.Latency,
- global_get_view_angles = Global.GetViewAngles,
- global_set_view_angles = Global.SetViewAngles,
- global_get_map_name = Global.GetMapName,
- global_is_key_pressed = Global.IsKeyPressed,
- global_get_screen_size = Global.GetScreenSize,
- global_get_cursor_position = Global.GetCursorPosition,
- global_play_sound = Global.PlaySound,
- global_play_microphone = Global.PlayMicrophone,
- global_stop_microphone = Global.StopMicrophone,
- global_get_username = Global.GetUsername,
- global_set_clan_tag = Global.SetClanTag,
- globals_tickcount = Globals.Tickcount,
- globals_tickrate = Globals.Tickrate,
- globals_tick_interval = Globals.TickInterval,
- globals_curtime = Globals.Curtime,
- globals_realtime = Globals.Realtime,
- globals_frametime = Globals.Frametime,
- sound_play = Sound.Play,
- sound_play_microphone = Sound.PlayMicrophone,
- sound_stop_microphone = Sound.StopMicrophone,
- cheat_get_username = Cheat.GetUsername,
- cheat_register_callback = cheat_register_callback = new Proxy(Cheat.RegisterCallback, {
- apply: function (_0x48e4x8f, _0x48e4x8f, _0x48e4x90) {
- switch (_0x48e4x90[0]) {
- case 'paint':
- Cheat.RegisterCallback('Draw', _0x48e4x90[1]);
- break;
- case 'create_move':
- Cheat.RegisterCallback('CreateMove', _0x48e4x90[1]);
- break;
- case 'fsn':
- Cheat.RegisterCallback('FrameStageNotify', _0x48e4x90[1]);
- break;
- default:
- Cheat.RegisterCallback(_0x48e4x90[0], _0x48e4x90[1]);
- break
- }
- }
- }),
- cheat_execute_command = Cheat.ExecuteCommand,
- cheat_frame_stage = Cheat.FrameStage,
- cheat_print = Cheat.Print,
- cheat_print_chat = Cheat.PrintChat,
- cheat_print_color = Cheat.PrintColor,
- local_latency = Local.Latency,
- local_get_view_angles = Local.GetViewAngles,
- local_set_view_angles = Local.SetViewAngles,
- local_set_clan_tag = Local.SetClanTag,
- local_get_real_yaw = Local.GetRealYaw,
- local_get_fake_yaw = Local.GetFakeYaw,
- local_get_spread = Local.GetSpread,
- local_get_inaccuracy = Local.GetInaccuracy,
- world_get_map_name = World.GetMapName,
- world_get_server_string = World.GetServerString,
- input_get_cursor_position = Input.GetCursorPosition,
- input_is_key_pressed = Input.IsKeyPressed,
- render_string = Render.String,
- render_text_size = Render.TextSize,
- render_line = Render.Line,
- render_rect = Render.Rect,
- render_filled_rect = Render.FilledRect,
- render_gradient_rect = Render.GradientRect,
- render_circle = Render.Circle,
- render_filled_circle = Render.FilledCircle,
- render_polygon = Render.Polygon,
- render_world_to_screen = Render.WorldToScreen,
- render_add_font = Render.AddFont,
- render_find_font = Render.FindFont,
- render_string_custom = Render.StringCustom,
- render_textured_rect = Render.TexturedRect,
- render_add_texture = Render.AddTexture,
- render_text_size_custom = Render.TextSizeCustom,
- render_get_screen_size = Render.GetScreenSize,
- ui_get_value = UI.GetValue,
- ui_set_value = UI.SetValue,
- ui_add_checkbox = UI.AddCheckbox,
- ui_add_slider_int = UI.AddSliderInt,
- ui_add_slider_float = UI.AddSliderFloat,
- ui_add_hotkey = UI.AddHotkey,
- ui_add_label = UI.AddLabel,
- ui_add_dropdown = UI.AddDropdown,
- ui_add_multi_dropdown = UI.AddMultiDropdown,
- ui_add_color_picker = UI.AddColorPicker,
- ui_add_textbox = UI.AddTextbox,
- ui_set_enabled = UI.SetEnabled,
- ui_get_string = UI.GetString,
- ui_get_color = UI.GetColor,
- ui_set_color = UI.SetColor,
- ui_is_hotkey_active = UI.IsHotkeyActive,
- ui_toggle_hotkey = UI.ToggleHotkey,
- ui_is_menu_open = UI.IsMenuOpen,
- convar_get_int = Convar.GetInt,
- convar_set_int = Convar.SetInt,
- convar_get_float = Convar.GetFloat,
- convar_set_float = Convar.SetFloat,
- convar_get_string = Convar.GetString,
- convar_set_string = Convar.SetString,
- event_get_int = Event.GetInt,
- event_get_float = Event.GetFloat,
- event_get_string = Event.GetString,
- entity_get_entities = Entity.GetEntities,
- entity_get_entities_by_class_i_d = Entity.GetEntitiesByClassID,
- entity_get_players = Entity.GetPlayers,
- entity_get_enemies = Entity.GetEnemies,
- entity_get_teammates = Entity.GetTeammates,
- entity_get_local_player = Entity.GetLocalPlayer,
- entity_get_game_rules_proxy = Entity.GetGameRulesProxy,
- entity_get_entity_from_user_i_d = Entity.GetEntityFromUserID,
- entity_is_teammate = Entity.IsTeammate,
- entity_is_enemy = Entity.IsEnemy,
- entity_is_bot = Entity.IsBot,
- entity_is_local_player = Entity.IsLocalPlayer,
- entity_is_valid = Entity.IsValid,
- entity_is_alive = Entity.IsAlive,
- entity_is_dormant = Entity.IsDormant,
- entity_get_class_i_d = Entity.GetClassID,
- entity_get_class_name = Entity.GetClassName,
- entity_get_name = Entity.GetName,
- entity_get_weapon = Entity.GetWeapon,
- entity_get_weapons = Entity.GetWeapons,
- entity_get_render_origin = Entity.GetRenderOrigin,
- entity_get_prop = Entity.GetProp,
- entity_set_prop = Entity.SetProp,
- entity_get_hitbox_position = Entity.GetHitboxPosition,
- entity_get_eye_position = Entity.GetEyePosition,
- trace_line = Trace.Line,
- trace_bullet = Trace.Bullet,
- usercmd_set_movement = UserCMD.SetMovement,
- usercmd_get_movement = UserCMD.GetMovement,
- usercmd_set_angles = UserCMD.SetAngles,
- usercmd_force_jump = UserCMD.ForceJump,
- usercmd_force_crouch = UserCMD.ForceCrouch,
- antiaim_get_override = AntiAim.GetOverride,
- antiaim_set_override = AntiAim.SetOverride,
- antiaim_set_real_offset = AntiAim.SetRealOffset,
- antiaim_set_fake_offset = AntiAim.SetFakeOffset,
- antiaim_set_l_b_y_offset = AntiAim.SetLBYOffset,
- exploit_get_charge = Exploit.GetCharge,
- exploit_recharge = Exploit.Recharge,
- exploit_disable_recharge = Exploit.DisableRecharge,
- exploit_enable_recharge = Exploit.EnableRecharge,
- ragebot_override_minimum_damage = Ragebot.OverrideMinimumDamage,
- ragebot_override_hitchance = Ragebot.OverrideHitchance,
- ragebot_override_accuracy_boost = Ragebot.OverrideAccuracyBoost,
- ragebot_override_multipoint_scale = Ragebot.OverrideMultipointScale,
- ragebot_force_safety = Ragebot.ForceSafety;
- const weapon_info = {
- "glock 18": {
- clip: 20,
- icon: 'd'
- },
- "p2000": {
- clip: 13,
- icon: 'o'
- },
- "dual berettas": {
- clip: 30,
- icon: 'b'
- },
- "p250": {
- clip: 13,
- icon: 'y'
- },
- "five seven": {
- clip: 20,
- icon: 'c'
- },
- "cz75 auto": {
- clip: 12,
- icon: 'Q'
- },
- "usp s": {
- clip: 12,
- icon: 'P'
- },
- "desert eagle": {
- clip: 7,
- icon: 'a'
- },
- "r8 revolver": {
- clip: 8,
- icon: 'R'
- },
- "tec 9": {
- clip: 18,
- icon: 'w'
- },
- "nova": {
- clip: 8,
- icon: 'B'
- },
- "xm1014": {
- clip: 7,
- icon: 'r'
- },
- "mag 7": {
- clip: 5,
- icon: 't'
- },
- "sawed off": {
- clip: 7,
- icon: 'v'
- },
- "negev": {
- clip: 150,
- icon: 'u'
- },
- "m249": {
- clip: 100,
- icon: 'i'
- },
- "mp9": {
- clip: 30,
- icon: 'A'
- },
- "mp7": {
- clip: 30,
- icon: 'z'
- },
- "mp5 sd": {
- clip: 30,
- icon: 'p'
- },
- "ump 45": {
- clip: 25,
- icon: 'q'
- },
- "p90": {
- clip: 50,
- icon: 'C'
- },
- "pp bizon": {
- clip: 64,
- icon: 's'
- },
- "mac 10": {
- clip: 30,
- icon: 'n'
- },
- "ak 47": {
- clip: 30,
- icon: 'e'
- },
- "m4a4": {
- clip: 30,
- icon: 'l'
- },
- "m4a1 s": {
- clip: 25,
- icon: 'm'
- },
- "famas": {
- clip: 25,
- icon: 'h'
- },
- "galil ar": {
- clip: 35,
- icon: 'k'
- },
- "aug": {
- clip: 30,
- icon: 'f'
- },
- "ssg 08": {
- clip: 10,
- icon: 'F'
- },
- "sg 553": {
- clip: 30,
- icon: 'E'
- },
- "awp": {
- clip: 10,
- icon: 'g'
- },
- "scar 20": {
- clip: 20,
- icon: 'D'
- },
- "g3sg1": {
- clip: 20,
- icon: 'j'
- },
- "high explosive grenade": {
- clip: -1,
- icon: 'I'
- },
- "smoke grenade": {
- clip: -1,
- icon: 'J'
- },
- "flashbang": {
- clip: -1,
- icon: 'H'
- },
- "decoy grenade": {
- clip: -1,
- icon: 'L'
- },
- "molotov": {
- clip: -1,
- icon: 'K'
- },
- "incendiary grenade": {
- clip: -1,
- icon: 'M'
- },
- "zeus x27": {
- clip: 1,
- icon: 'x'
- },
- "c4 explosive": {
- clip: -1,
- icon: 'N'
- },
- "m9 bayonet": {
- clip: -1,
- icon: 'Z'
- },
- "bayonet": {
- clip: -1,
- icon: 'V'
- },
- "flip knife": {
- clip: -1,
- icon: 'W'
- },
- "gut knife": {
- clip: -1,
- icon: 'X'
- },
- "karambit": {
- clip: -1,
- icon: 'Y'
- },
- "butterfly knife": {
- clip: -1,
- icon: '3'
- },
- "falchion knife": {
- clip: -1,
- icon: '1'
- },
- "navaja knife": {
- clip: -1,
- icon: '6'
- },
- "shadow daggers": {
- clip: -1,
- icon: '4'
- },
- "stiletto knife": {
- clip: -1,
- icon: '7'
- },
- "bowie knife": {
- clip: -1,
- icon: '2'
- },
- "huntsman knife": {
- clip: -1,
- icon: '0'
- },
- "talon knife": {
- clip: -1,
- icon: '8'
- },
- "ursus knife": {
- clip: -1,
- icon: '5'
- },
- "classic knife": {
- clip: -1,
- icon: 'G'
- },
- "paracord knife": {
- clip: -1,
- icon: 'G'
- },
- "survival knife": {
- clip: -1,
- icon: 'G'
- },
- "nomad knife": {
- clip: -1,
- icon: 'G'
- },
- "skeleton knife": {
- clip: -1,
- icon: 'G'
- },
- "knife": {
- clip: -1,
- icon: 'G'
- }
- };
- var menu_elements_t = [];
- var menu = [];
- const menu_spacer = ' ';
- menu.label = function (_0x48e4x95) {
- UI.AddLabel(_0x48e4x95)
- };
- menu.call = function (_0x48e4x96, name, _0x48e4x95, _0x48e4x98) {
- if (_0x48e4x95 in menu_elements_t) {
- throw new Error('[Menu] The label must be unique!')
- };
- const _0x48e4x99 = name + menu_spacer + _0x48e4x95;
- var _0x48e4x9a = [_0x48e4x99];
- const _0x48e4x9b = {
- name: name,
- label: _0x48e4x95,
- properties: _0x48e4x98
- };
- if (_0x48e4x98 !== null) {
- for (var _0x48e4x9c = 0; _0x48e4x9c < _0x48e4x98.length; _0x48e4x9c++) {
- _0x48e4x9a.push(_0x48e4x98[_0x48e4x9c])
- }
- };
- _0x48e4x96.apply(null, _0x48e4x9a);
- menu_elements_t[_0x48e4x95] = _0x48e4x9b;
- return _0x48e4x95
- };
- menu.get = function (_0x48e4x95) {
- if (!(_0x48e4x95 in menu_elements_t)) {
- throw new Error("[Menu] This element's label doesn't exist!")
- };
- const _0x48e4x98 = menu_elements_t[_0x48e4x95];
- const _0x48e4x99 = _0x48e4x98.name + menu_spacer + _0x48e4x98.label;
- return UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x99)
- };
- menu.get_hotkey = function (_0x48e4x95) {
- if (!(_0x48e4x95 in menu_elements_t)) {
- throw new Error("[Menu] This element's label doesn't exist!")
- };
- const _0x48e4x98 = menu_elements_t[_0x48e4x95];
- const _0x48e4x99 = _0x48e4x98.name + menu_spacer + _0x48e4x98.label;
- return UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x99)
- };
- menu.get_color = function (_0x48e4x95) {
- if (!(_0x48e4x95 in menu_elements_t)) {
- throw new Error("[Menu] This element's label doesn't exist!")
- };
- const _0x48e4x98 = menu_elements_t[_0x48e4x95];
- const _0x48e4x99 = _0x48e4x98.name + menu_spacer + _0x48e4x98.label;
- return UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x99)
- };
- menu.set = function (_0x48e4x95, _0x48e4x9d) {
- if (!(_0x48e4x95 in menu_elements_t)) {
- throw new Error("[Menu] This element's label doesn't exist!")
- };
- const _0x48e4x98 = menu_elements_t[_0x48e4x95];
- const _0x48e4x99 = _0x48e4x98.name + menu_spacer + _0x48e4x98.label;
- UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x99, _0x48e4x9d)
- };
- menu.set_color = function (_0x48e4x95, color) {
- if (!(_0x48e4x95 in menu_elements_t)) {
- throw new Error("[Menu] This element's label doesn't exist!")
- };
- const _0x48e4x98 = menu_elements_t[_0x48e4x95];
- const _0x48e4x99 = _0x48e4x98.name + menu_spacer + _0x48e4x98.label;
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x99, color)
- };
- menu.visibility = function (_0x48e4x95, _0x48e4x9f) {
- if (!(_0x48e4x95 in menu_elements_t)) {
- throw new Error("[Menu] This element's label doesn't exist!")
- };
- const _0x48e4x98 = menu_elements_t[_0x48e4x95];
- const _0x48e4x99 = _0x48e4x98.name + menu_spacer + _0x48e4x98.label;
- UI.SetEnabled('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x99, _0x48e4x9f)
- };
- function vec(_0x48e4xa1) {
- const _0x48e4xa2 = {
- x: _0x48e4xa1[0] || 0,
- y: _0x48e4xa1[1] || 0,
- z: _0x48e4xa1[2] || 0
- };
- return _0x48e4xa2
- }
- function vec_add(_0x48e4xa4, _0x48e4xa5) {
- return {
- x: _0x48e4xa4.x + _0x48e4xa5.x,
- y: _0x48e4xa4.y + _0x48e4xa5.y,
- z: _0x48e4xa4.z + _0x48e4xa5.z
- }
- }
- function box(_0x48e4xa7, _0x48e4xa8, _0x48e4xa9, _0x48e4xaa) {
- const _0x48e4xab = {
- x: _0x48e4xa7,
- y: _0x48e4xa8,
- x2: _0x48e4xa9,
- y2: _0x48e4xaa,
- w: _0x48e4xa9 - _0x48e4xa7,
- h: _0x48e4xaa - _0x48e4xa8
- };
- return _0x48e4xab
- }
- function entity_get_box(_0x48e4xad, _0x48e4xae) {
- const _0x48e4xaf = vec(entity_get_render_origin(_0x48e4xad));
- const _0x48e4xb0 = vec_add(vec(entity_get_prop(_0x48e4xad, 'CBaseEntity', 'm_vecMins')), _0x48e4xaf);
- const _0x48e4xb1 = vec_add(vec(entity_get_prop(_0x48e4xad, 'CBaseEntity', 'm_vecMaxs')), _0x48e4xaf);
- const _0x48e4xb2 = [render_world_to_screen([_0x48e4xb0.x - _0x48e4xae, _0x48e4xb0.y - _0x48e4xae, _0x48e4xb0.z - _0x48e4xae]), render_world_to_screen([_0x48e4xb0.x - _0x48e4xae, _0x48e4xb1.y + _0x48e4xae, _0x48e4xb0.z - _0x48e4xae]), render_world_to_screen([_0x48e4xb1.x + _0x48e4xae, _0x48e4xb1.y + _0x48e4xae, _0x48e4xb0.z - _0x48e4xae]), render_world_to_screen([_0x48e4xb1.x + _0x48e4xae, _0x48e4xb0.y - _0x48e4xae, _0x48e4xb0.z - _0x48e4xae]), render_world_to_screen([_0x48e4xb1.x + _0x48e4xae, _0x48e4xb1.y + _0x48e4xae, _0x48e4xb1.z + _0x48e4xae]), render_world_to_screen([_0x48e4xb0.x - _0x48e4xae, _0x48e4xb1.y + _0x48e4xae, _0x48e4xb1.z + _0x48e4xae]), render_world_to_screen([_0x48e4xb0.x - _0x48e4xae, _0x48e4xb0.y - _0x48e4xae, _0x48e4xb1.z + _0x48e4xae]), render_world_to_screen([_0x48e4xb1.x + _0x48e4xae, _0x48e4xb0.y - _0x48e4xae, _0x48e4xb1.z + _0x48e4xae])];
- if (!_0x48e4xb2[0][0] || !_0x48e4xb2[0][1] || !_0x48e4xb2[1][0] || !_0x48e4xb2[1][1] || !_0x48e4xb2[2][0] || !_0x48e4xb2[2][1] || !_0x48e4xb2[3][0] || !_0x48e4xb2[3][1] || !_0x48e4xb2[4][0] || !_0x48e4xb2[4][1] || !_0x48e4xb2[5][0] || !_0x48e4xb2[5][1] || !_0x48e4xb2[6][0] || !_0x48e4xb2[6][1] || !_0x48e4xb2[7][0] || !_0x48e4xb2[7][1]) {
- return null
- };
- var _0x48e4xb3, _0x48e4xb4, _0x48e4xb5, _0x48e4xb6;
- _0x48e4xb3 = _0x48e4xb4 = _0x48e4xb2[3][0];
- _0x48e4xb5 = _0x48e4xb6 = _0x48e4xb2[3][1];
- for (var _0x48e4x9c = 0; _0x48e4x9c < _0x48e4xb2.length; _0x48e4x9c++) {
- if (_0x48e4xb3 > _0x48e4xb2[_0x48e4x9c][0]) {
- _0x48e4xb3 = _0x48e4xb2[_0x48e4x9c][0]
- };
- if (_0x48e4xb6 < _0x48e4xb2[_0x48e4x9c][1]) {
- _0x48e4xb6 = _0x48e4xb2[_0x48e4x9c][1]
- };
- if (_0x48e4xb4 < _0x48e4xb2[_0x48e4x9c][0]) {
- _0x48e4xb4 = _0x48e4xb2[_0x48e4x9c][0]
- };
- if (_0x48e4xb5 > _0x48e4xb2[_0x48e4x9c][1]) {
- _0x48e4xb5 = _0x48e4xb2[_0x48e4x9c][1]
- }
- };
- return box(_0x48e4xb3, _0x48e4xb5, _0x48e4xb4, _0x48e4xb6)
- }
- function render_string_custom_outline(_0x48e4xa7, _0x48e4xa8, _0x48e4xb8, _0x48e4xb9, color, _0x48e4xba) {
- render_string_custom(_0x48e4xa7 - 1, _0x48e4xa8 - 1, _0x48e4xb8, _0x48e4xb9, [15, 15, 15, color[3] * 0.25], _0x48e4xba);
- render_string_custom(_0x48e4xa7 + 1, _0x48e4xa8 - 1, _0x48e4xb8, _0x48e4xb9, [15, 15, 15, color[3] * 0.25], _0x48e4xba);
- render_string_custom(_0x48e4xa7 - 1, _0x48e4xa8 + 1, _0x48e4xb8, _0x48e4xb9, [15, 15, 15, color[3] * 0.25], _0x48e4xba);
- render_string_custom(_0x48e4xa7 + 1, _0x48e4xa8 + 1, _0x48e4xb8, _0x48e4xb9, [15, 15, 15, color[3] * 0.25], _0x48e4xba);
- render_string_custom(_0x48e4xa7, _0x48e4xa8, _0x48e4xb8, _0x48e4xb9, color, _0x48e4xba)
- }
- function point_inside_screen(_0x48e4xa7, _0x48e4xa8) {
- const _0x48e4xbc = render_get_screen_size();
- return _0x48e4xa7 > -_0x48e4xbc[0] * 0.5 && _0x48e4xa7 < _0x48e4xbc[0] * 1.5 && _0x48e4xa8 > 0 && _0x48e4xa8 < _0x48e4xbc[1]
- }
- function clamp(_0x48e4xbe, _0x48e4xbf, _0x48e4xc0) {
- return Math.max(Math.min(_0x48e4xbe, _0x48e4xc0), _0x48e4xbf)
- }
- function render_outlined_rect(_0x48e4xa7, _0x48e4xa8, _0x48e4xc2, h, color) {
- render_rect(_0x48e4xa7 - 1, _0x48e4xa8 - 1, _0x48e4xc2 + 2, h + 2, [25, 25, 25, 75]);
- render_rect(_0x48e4xa7, _0x48e4xa8, _0x48e4xc2, h, color);
- render_rect(_0x48e4xa7 + 1, _0x48e4xa8 + 1, _0x48e4xc2 - 2, h - 2, [25, 25, 25, 75])
- }
- function render_outlined_rect_override(_0x48e4xa7, _0x48e4xa8, _0x48e4xc2, h, color) {
- render_rect(_0x48e4xa7 - 1, _0x48e4xa8 + 2, _0x48e4xc2 + 2, h - 2, [25, 25, 25, 75]);
- render_rect(_0x48e4xa7, _0x48e4xa8, _0x48e4xc2, h, color)
- }
- const enable = menu.call(ui_add_checkbox, '[k] enable', 'kitkat_switch', null);
- const bbox = menu.call(ui_add_dropdown, '[k] bounding box', 'kitkat_box', [
- ['Off', 'Normal', 'Cornered']
- ]);
- const bbox_color = menu.call(ui_add_color_picker, '[k] bounding box color', 'kitkat_box_color', null);
- const bbox_gradient = menu.call(ui_add_checkbox, '[k] bounding box gradient', 'kitkat_box_grad', null);
- const name = menu.call(ui_add_checkbox, '[k] name', 'kitkat_name', null);
- const name_color = menu.call(ui_add_color_picker, '[k] name color', 'kitkat_name_color', null);
- const health = menu.call(ui_add_checkbox, '[k] health bar', 'kitkat_health', null);
- const weapon = menu.call(ui_add_multi_dropdown, '[k] weapon', 'kitkat_weapon', [
- ['Name', 'Icon']
- ]);
- const weapon_name_color = menu.call(ui_add_color_picker, '[k] weapon name color', 'kitkat_weapon_name_color', null);
- const weapon_icon_color = menu.call(ui_add_color_picker, '[k] weapon icon color', 'kitkat_weapon_icon_color', null);
- const ammo = menu.call(ui_add_checkbox, '[k] ammo', 'kitkat_ammo', null);
- const ammo_color = menu.call(ui_add_color_picker, '[k] ammo color', 'kitkat_ammo_color', null);
- const hitmarker = menu.call(ui_add_checkbox, '[k] screen hitmarker', 'kitkat_hitmarker', null);
- var esp = {
- hitmarker_alpha: 0,
- health: []
- };
- esp.setup_colors = function () {
- const _0x48e4xd2 = [
- [bbox_color, [255, 255, 255, 200]],
- [name_color, [255, 255, 255, 200]],
- [weapon_name_color, [232, 232, 232, 200]],
- [weapon_icon_color, [200, 200, 200, 200]],
- [ammo_color, [65, 135, 245, 200]]
- ];
- for (var _0x48e4x9c = 0; _0x48e4x9c < _0x48e4xd2.length; _0x48e4x9c++) {
- const color = menu.get_color(_0x48e4xd2[_0x48e4x9c][0]);
- const _0x48e4xd3 = _0x48e4xd2[_0x48e4x9c][1];
- if (color[3] === 0) {
- menu.set_color(_0x48e4xd2[_0x48e4x9c][0], _0x48e4xd3)
- }
- }
- };
- esp.box = function (_0x48e4xad, box) {
- const color = menu.get_color(bbox_color);
- const _0x48e4xd4 = menu.get(bbox) === 2;
- if (point_inside_screen(box.x, 1) && point_inside_screen(box.x2, 1)) {
- if (menu.get(bbox_gradient)) {
- render_gradient_rect(box.x + 1, box.y + 1, box.w - 2, box.h - 2, 0, [0, 0, 0, 0], color)
- };
- if (_0x48e4xd4) {
- const _0x48e4xd5 = box.w / 4,
- _0x48e4xd6 = box.h / 4;
- render_line(box.x, box.y, box.x + _0x48e4xd5, box.y, color);
- render_line(box.x + _0x48e4xd5 * 3, box.y, box.x + _0x48e4xd5 * 4, box.y, color);
- render_line(box.x, box.y2, box.x + _0x48e4xd5, box.y2, color);
- render_line(box.x + _0x48e4xd5 * 3, box.y2, box.x + _0x48e4xd5 * 4, box.y2, color);
- render_line(box.x, box.y, box.x, box.y + _0x48e4xd6, color);
- render_line(box.x, box.y + _0x48e4xd6 * 3, box.x, box.y + _0x48e4xd6 * 4, color);
- render_line(box.x2, box.y, box.x2, box.y + _0x48e4xd6, color);
- render_line(box.x2, box.y + _0x48e4xd6 * 3, box.x2, box.y + _0x48e4xd6 * 4, color);
- return
- };
- render_outlined_rect(box.x, box.y, box.w, box.h, color)
- }
- };
- esp.name = function (_0x48e4xad, box, _0x48e4xba) {
- const name = entity_get_name(_0x48e4xad);
- const color = menu.get_color(name_color);
- render_string_custom_outline(box.x + (box.w / 2), box.y - 14, 1, name, color, _0x48e4xba)
- };
- esp.health = function (_0x48e4xad, box, _0x48e4xba) {
- const health = entity_get_prop(_0x48e4xad, 'CBasePlayer', 'm_iHealth');
- const _0x48e4xd7 = this.health[_0x48e4xad];
- const color = [255 - health * 2.55, health * 2.55, 0, 225];
- if (!this.health[_0x48e4xad]) {
- this.health[_0x48e4xad] = health
- };
- const _0x48e4xd8 = 2 * globals_frametime() * 100;
- if (_0x48e4xd7 < health) {
- this.health[_0x48e4xad] = clamp(this.health[_0x48e4xad] + _0x48e4xd8, 0, health);
- const color = [255 - health * 2.55, health * 2.55, 0, 225]
- };
- if (_0x48e4xd7 > health) {
- this.health[_0x48e4xad] = clamp(this.health[_0x48e4xad] - _0x48e4xd8, health, 100)
- };
- if (health < 4) {
- render_string_custom_outline(box.x + (box.w / 2), box.y - 24, 1, 'low health', [65, 135, 245, 200], _0x48e4xba)
- };
- render_string_custom_outline(box.x - 22, box.y, 0, health.toString(), [0, 255, 0, 225], _0x48e4xba);
- render_filled_rect(box.x - 6, box.y - 1, 4, box.h + 2, [25, 25, 25, 75]);
- render_filled_rect(box.x - 5, box.y + (box.h) - (box.h) * _0x48e4xd7 / 100, 2, (box.h) * _0x48e4xd7 / 100, color)
- };
- esp.weapon = function (box, _0x48e4xd9, _0x48e4xba) {
- const name = entity_get_name(_0x48e4xd9);
- const _0x48e4x9d = menu.get(weapon);
- const _0x48e4xd8 = menu.get(ammo) ? 0 : -6;
- if (_0x48e4x9d & (1 << 0)) {
- const name_color = menu.get_color(weapon_name_color);
- render_string_custom_outline(box.x + (box.w / 2), box.y + box.h + (_0x48e4x9d & (1 << 1) ? 22 : 8) + _0x48e4xd8, 1, name.toUpperCase(), name_color, _0x48e4xba)
- };
- if (_0x48e4x9d & (1 << 1)) {
- const _0x48e4xda = menu.get_color(weapon_icon_color);
- render_string(box.x + (box.w / 2), box.y + box.h + 8 + _0x48e4xd8, 1, weapon_info[name].icon, _0x48e4xda, 6)
- }
- };
- esp.ammo = function (box, _0x48e4xd9) {
- var ammo = entity_get_prop(_0x48e4xd9, 'CBaseCombatWeapon', 'm_iClip1');
- var _0x48e4xdb = weapon_info[entity_get_name(_0x48e4xd9)].clip;
- const color = menu.get_color(ammo_color);
- if (_0x48e4xdb < 0) {
- _0x48e4xdb = ammo = 1
- };
- render_filled_rect(box.x, box.y + box.h + 2, box.w, 4, [25, 25, 25, 125]);
- render_filled_rect(box.x + 1, box.y + box.h + 3, (box.w - 2) * ammo / _0x48e4xdb, 2, color)
- };
- esp.hitmarker = function () {
- if (this.hitmarker_alpha === 0) {
- return
- };
- const _0x48e4xa7 = render_get_screen_size()[0],
- _0x48e4xa8 = render_get_screen_size()[1];
- const _0x48e4xd8 = globals_frametime() * 255;
- this.hitmarker_alpha = clamp(this.hitmarker_alpha - _0x48e4xd8, 0, 255);
- render_line(_0x48e4xa7 / 2 - 10, _0x48e4xa8 / 2 - 10, _0x48e4xa7 / 2 - 5, _0x48e4xa8 / 2 - 5, [225, 225, 225, this.hitmarker_alpha]);
- render_line(_0x48e4xa7 / 2 - 10, _0x48e4xa8 / 2 + 10, _0x48e4xa7 / 2 - 5, _0x48e4xa8 / 2 + 5, [225, 225, 225, this.hitmarker_alpha]);
- render_line(_0x48e4xa7 / 2 + 5, _0x48e4xa8 / 2 - 5, _0x48e4xa7 / 2 + 10, _0x48e4xa8 / 2 - 10, [225, 225, 225, this.hitmarker_alpha]);
- render_line(_0x48e4xa7 / 2 + 5, _0x48e4xa8 / 2 + 5, _0x48e4xa7 / 2 + 10, _0x48e4xa8 / 2 + 10, [225, 225, 225, this.hitmarker_alpha])
- };
- esp.handle_damage = function () {
- const _0x48e4xdc = entity_get_entity_from_user_i_d(event_get_int('attacker'));
- const _0x48e4xdd = entity_get_entity_from_user_i_d(event_get_int('userid'));
- const _0x48e4xde = entity_get_local_player();
- if (_0x48e4xdc == _0x48e4xde && _0x48e4xdd !== _0x48e4xde) {
- this.hitmarker_alpha = 255
- }
- };
- var fps = 0;
- var last_update = 0;
- esp.watermark = function (_0x48e4xba) {
- const username = cheat_get_username();
- const _0x48e4xe2 = local_latency();
- const _0x48e4xe3 = globals_curtime();
- if (_0x48e4xe3 - last_update > 1) {
- fps = 1 / globals_frametime();
- last_update = _0x48e4xe3
- };
- const _0x48e4xb9 = '';
- const _0x48e4xa7 = render_get_screen_size()[0];
- const _0x48e4xe4 = render_text_size_custom(_0x48e4xb9, _0x48e4xba)[0];
- render_rect(_0x48e4xa7 - 0 - _0x48e4xe4, 0, _0x48e4xe4 + 0, 0, [0, 0, 0, 0]);
- render_filled_rect(_0x48e4xa7 - 0 - _0x48e4xe4, 0, 0, 0, [0, 0, 0, 0]);
- render_filled_rect(_0x48e4xa7 - 0 - _0x48e4xe4, 0, _0x48e4xe4 + 19, 25, [0, 0, 0, 0]);
- render_string_custom(_0x48e4xa7 - 0 - _0x48e4xe4, 0, 0, _0x48e4xb9, [0, 0, 0, 0], _0x48e4xba)
- };
- esp.do = function () {
- const _0x48e4xe5 = entity_get_enemies();
- const _0x48e4xe6 = {
- watermark: render_add_font('Segoe UI', 0, 0),
- name: render_add_font('MuseoSansCyrl-900', 7, 400),
- hp: render_add_font('MuseoSansCyrl-900', 6, 200),
- weapon: render_add_font('MuseoSansCyrl-900', 6, 250)
- };
- esp.watermark(_0x48e4xe6.watermark);
- if (menu.get(hitmarker)) {
- esp.hitmarker()
- };
- for (var _0x48e4x9c = 0; _0x48e4x9c < _0x48e4xe5.length; _0x48e4x9c++) {
- const _0x48e4xad = _0x48e4xe5[_0x48e4x9c];
- if (_0x48e4xad && entity_is_alive(_0x48e4xad) && !entity_is_dormant(_0x48e4xad)) {
- const box = entity_get_box(_0x48e4xad, 0);
- const _0x48e4xd9 = entity_get_weapon(_0x48e4xad);
- if (point_inside_screen(box.x, box.y) && point_inside_screen(box.x2, 1)) {
- if (menu.get(bbox)) {
- esp.box(_0x48e4xad, box)
- };
- if (menu.get(name)) {
- esp.name(_0x48e4xad, box, _0x48e4xe6.name)
- };
- if (menu.get(health)) {
- esp.health(_0x48e4xad, box, _0x48e4xe6.hp)
- };
- if (menu.get(ammo)) {
- esp.ammo(box, _0x48e4xd9)
- };
- if (menu.get(weapon)) {
- esp.weapon(box, _0x48e4xd9, _0x48e4xe6.weapon)
- }
- }
- }
- }
- };
- esp.setup_colors();
- function on_frame_render() {
- esp.do()
- }
- function on_player_hurt() {
- esp.handle_damage()
- }
- cheat_register_callback('paint', 'on_frame_render');
- cheat_register_callback('player_hurt', 'on_player_hurt');
- UI.AddLabel(' Chams ');
- var materials = [];
- function createMat(name) {
- UI.AddColorPicker(name + ' chams');
- var _0x48e4xeb = ['Hollow', 'Pulse', 'Rainbow', 'Wireframe'];
- UI.AddMultiDropdown(name + ' options', _0x48e4xeb);
- UI.AddSliderFloat('Vibrancy ' + name.toLowerCase(), 0, 10);
- Material.Create(name + ' chams');
- materials.push([name, name + ' chams', name + ' options', 'Vibrancy ' + name.toLowerCase()])
- }
- function HSVtoRGB(h, _0x48e4xed, _0x48e4xbe) {
- var _0x48e4xee, _0x48e4xef, _0x48e4xf0, _0x48e4x9c, _0x48e4xf1, _0x48e4xf2, _0x48e4xf3, _0x48e4xf4;
- if (arguments.length === 1) {
- _0x48e4xed = h.s, _0x48e4xbe = h.v, h = h.h
- };
- _0x48e4x9c = Math.floor(h * 6);
- _0x48e4xf1 = h * 6 - _0x48e4x9c;
- _0x48e4xf2 = _0x48e4xbe * (1 - _0x48e4xed);
- _0x48e4xf3 = _0x48e4xbe * (1 - _0x48e4xf1 * _0x48e4xed);
- _0x48e4xf4 = _0x48e4xbe * (1 - (1 - _0x48e4xf1) * _0x48e4xed);
- switch (_0x48e4x9c % 6) {
- case 0:
- _0x48e4xee = _0x48e4xbe, _0x48e4xef = _0x48e4xf4, _0x48e4xf0 = _0x48e4xf2;
- break;
- case 1:
- _0x48e4xee = _0x48e4xf3, _0x48e4xef = _0x48e4xbe, _0x48e4xf0 = _0x48e4xf2;
- break;
- case 2:
- _0x48e4xee = _0x48e4xf2, _0x48e4xef = _0x48e4xbe, _0x48e4xf0 = _0x48e4xf4;
- break;
- case 3:
- _0x48e4xee = _0x48e4xf2, _0x48e4xef = _0x48e4xf3, _0x48e4xf0 = _0x48e4xbe;
- break;
- case 4:
- _0x48e4xee = _0x48e4xf4, _0x48e4xef = _0x48e4xf2, _0x48e4xf0 = _0x48e4xbe;
- break;
- case 5:
- _0x48e4xee = _0x48e4xbe, _0x48e4xef = _0x48e4xf2, _0x48e4xf0 = _0x48e4xf3;
- break
- };
- return [Math.round(_0x48e4xee * 255), Math.round(_0x48e4xef * 255), Math.round(_0x48e4xf0 * 255), 255]
- }
- function materialUpdate() {
- for (i in materials) {
- var _0x48e4xf6 = materials[i];
- var _0x48e4xf7 = Material.Get(_0x48e4xf6[0] + ' chams');
- if (_0x48e4xf7 > 0) {
- Material.SetKeyValue(_0x48e4xf7, '$baseTexture', 'vgui/white');
- var _0x48e4xf8 = UI.GetValue('Script items', _0x48e4xf6[2]) & 1;
- if (i == 1) {
- Cheat.Print(UI.GetValue('Script items', _0x48e4xf6[2]) + '\
- ')
- };
- Material.SetKeyValue(_0x48e4xf7, '$additive', _0x48e4xf8 ? '1' : '0');
- Material.SetKeyValue(_0x48e4xf7, '$envmap', 'models/effects/cube_white');
- Material.SetKeyValue(_0x48e4xf7, '$envmapfresnel', '1');
- var _0x48e4xf9 = UI.GetColor('Script items', _0x48e4xf6[0] + ' chams');
- var _0x48e4xfa = UI.GetValue('Script items', _0x48e4xf6[2]) & 2;
- var _0x48e4xfb = UI.GetValue('Script items', _0x48e4xf6[2]) & 4;
- if (_0x48e4xfb) {
- _0x48e4xf9 = HSVtoRGB(Globals.Realtime() / 5 % 1, 1, 1);
- _0x48e4xf9[0] /= 10;
- _0x48e4xf9[1] /= 10;
- _0x48e4xf9[2] /= 10
- };
- if (_0x48e4xfa) {
- var _0x48e4xfc = 7;
- var _0x48e4xf8 = 5;
- var _0x48e4xfd = 0.6;
- var _0x48e4xfe = (Math.sin(Globals.Realtime() * 7) + 5) * _0x48e4xfd;
- _0x48e4xf9[0] *= _0x48e4xfe;
- _0x48e4xf9[1] *= _0x48e4xfe;
- _0x48e4xf9[2] *= _0x48e4xfe
- };
- var _0x48e4xff = UI.GetValue('Script items', _0x48e4xf6[2]) & 8;
- Material.SetKeyValue(_0x48e4xf7, '$wireframe', _0x48e4xff ? '1' : '0');
- var _0x48e4x100 = UI.GetValue('Script items', _0x48e4xf6[3]);
- Material.SetKeyValue(_0x48e4xf7, '$envmapfresnelminmaxexp', '[0 ' + (11 - _0x48e4x100) + ' ' + ((11 - _0x48e4x100) * 2) + ']');
- Material.SetKeyValue(_0x48e4xf7, '$envmaptint', '[' + _0x48e4xf9[0] / 255 + ' ' + _0x48e4xf9[1] / 255 + ' ' + _0x48e4xf9[2] / 255 + ']');
- Material.SetKeyValue(_0x48e4xf7, '$alpha', _0x48e4xf9[3] / 255 + '');
- Material.Refresh(_0x48e4xf7)
- }
- }
- }
- createMat('Better glow');
- Cheat.RegisterCallback('Material', 'materialUpdate');
- function onUnload() {
- for (i in materials) {
- Material.Destroy(materials[i][1])
- }
- }
- Cheat.RegisterCallback('Unload', 'onUnload');
- UI.AddLabel(' BLOOM ');
- var props = false;
- var tonemapClass = 'CEnvTonemapController';
- function getValue(name) {
- var _0x48e4x9d = UI.GetValue('Script items', name);
- return _0x48e4x9d
- }
- function getColor(name) {
- var _0x48e4x9d = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', name);
- return _0x48e4x9d
- }
- function onRender() {
- if (!Entity.GetLocalPlayer()) {
- return
- };
- var _0x48e4x107 = Entity.GetEntities();
- for (var _0x48e4x9c = 0; _0x48e4x9c < _0x48e4x107.length; _0x48e4x9c++) {
- var _0x48e4x108 = _0x48e4x107[_0x48e4x9c];
- var name = Entity.GetClassName(_0x48e4x108);
- if (name !== tonemapClass) {
- continue
- };
- if (!props) {
- Entity.SetProp(_0x48e4x108, tonemapClass, 'm_bUseCustomAutoExposureMin', true);
- Entity.SetProp(_0x48e4x108, tonemapClass, 'm_bUseCustomAutoExposureMax', true);
- Entity.SetProp(_0x48e4x108, tonemapClass, 'm_bUseCustomBloomScale', true);
- props = true
- };
- if (props) {
- var _0x48e4x9d = getValue('world bloom') / 10;
- Entity.SetProp(_0x48e4x108, tonemapClass, 'm_flCustomAutoExposureMin', _0x48e4x9d);
- Entity.SetProp(_0x48e4x108, tonemapClass, 'm_flCustomAutoExposureMax', _0x48e4x9d);
- Entity.SetProp(_0x48e4x108, tonemapClass, 'm_flCustomBloomScale', getValue('bloom') / 10)
- };
- Convar.SetFloat('r_modelAmbientMin', getValue('model bloom') / 10)
- }
- }
- function init() {
- UI.AddSliderFloat('world bloom', 0.0, 100.0);
- UI.AddSliderFloat('model bloom', 0.0, 100.0);
- UI.AddSliderFloat('bloom', 0.0, 100.0);
- UI.SetValue('Misc', 'GENERAL', 'Hidden cvars', true);
- UI.SetValue('Misc', 'PERFORMANCE & INFORMATION', 'Disable post processing', false);
- Global.RegisterCallback('Draw', 'onRender')
- }
- init();
- UI.AddLabel(' Aspect Ratio ');
- UI.AddSliderFloat('Aspect Ratio', 1.0, 2.0);
- var aspect_cache = 0;
- function aspect() {
- var _0x48e4x10c = UI.GetValue('Aspect Ratio');
- if (aspect_cache != _0x48e4x10c) {
- aspect_cache = _0x48e4x10c;
- UI.SetValue('Misc', 'GENERAL', 'Miscellaneous', 'Hidden cvars', 1);
- Global.ExecuteCommand('r_aspectratio ' + _0x48e4x10c)
- }
- }
- Cheat.RegisterCallback('CreateMove', 'aspect');
- UI.AddLabel(' Other ');
- UI.AddCheckbox('Mute All');
- function hide() {
- var _0x48e4x10e = UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Mute All');
- if (_0x48e4x10e) {
- Cheat.ExecuteCommand('cl_chatfilters 0');
- Cheat.ExecuteCommand('cl_mute_all_but_friends_and_party 1');
- Cheat.ExecuteCommand('cl_mute_enemy_team 1');
- Cheat.ExecuteCommand('tv_nochat 1')
- } else {
- Cheat.ExecuteCommand('cl_chatfilters 63');
- Cheat.ExecuteCommand('cl_mute_all_but_friends_and_party 0');
- Cheat.ExecuteCommand('cl_mute_enemy_team 0');
- Cheat.ExecuteCommand('tv_nochat 0')
- }
- }
- Cheat.RegisterCallback('CreateMove', 'hide');
- UI.AddDropdown('Style Indicators', ['Gradient', 'Standart']);
- UI.AddDropdown('Watermark Icons', ['Onetap', 'Cogwheel', 'JS Code', 'Performance']);
- var ping_info = [];
- var last_time = Global.Curtime();
- const window_x = UI.AddSliderInt('VAR - X', 0, Global.GetScreenSize()[0]);
- const window_y = UI.AddSliderInt('VAR - Y', 0, Global.GetScreenSize()[1]);
- UI.SetEnabled('Script items', 'VAR - X', false);
- UI.SetEnabled('Script items', 'VAR - Y', false);
- function hex_to_ascii(_0x48e4x114) {
- var _0x48e4x115 = _0x48e4x114.toString();
- var _0x48e4x116 = '';
- for (var _0x48e4x117 = 0; _0x48e4x117 < _0x48e4x115.length; _0x48e4x117 += 2) {
- _0x48e4x116 += String.fromCharCode(parseInt(_0x48e4x115.substr(_0x48e4x117, 2), 16))
- };
- return _0x48e4x116
- }
- function handle_visibility() {
- UI.SetEnabled('Misc', 'JAVASCRIPT', 'Script items', 'VAR - X', false);
- UI.SetEnabled('Misc', 'JAVASCRIPT', 'Script items', 'VAR - Y', false)
- }
- function get(_0x48e4x11a) {
- return UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x11a)
- }
- function set(_0x48e4x11a, _0x48e4x9d) {
- return UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x11a, _0x48e4x9d)
- }
- function handle_dragging() {
- var in_bounds = function (vec, x1, y1, _0x48e4xa9, _0x48e4xaa) {
- return (vec[0] > x1) && (vec[1] > y1) && (vec[0] < _0x48e4xa9) && (vec[1] < _0x48e4xaa)
- };
- if (Global.IsKeyPressed(1)) {
- const _0x48e4xa7 = get('VAR - X'),
- _0x48e4xa8 = get('VAR - Y');
- const _0x48e4x120 = Global.GetCursorPosition();
- if (in_bounds(_0x48e4x120, _0x48e4xa7 - 15, _0x48e4xa8 - 15, _0x48e4xa7 + 15, _0x48e4xa8 + 15)) {
- set('VAR - X', _0x48e4x120[0] + 2);
- set('VAR - Y', _0x48e4x120[1] + 5)
- }
- }
- }
- function draw_container() {
- const _0x48e4xa7 = get('VAR - X'),
- _0x48e4xa8 = get('VAR - Y');
- var _0x48e4x122 = {
- 'ping': 0
- };
- Render.FilledRect(_0x48e4xa7 - 20, _0x48e4xa8 - 16, 65, 20, [15, 15, 15, varc[3]]);
- Render.String(_0x48e4xa7 - 17, _0x48e4xa8 - 12, 0, 'VAR | ', [255, 255, 255, 255], 8);
- if (Global.Curtime() - last_time > 0.5) {
- last_time = Global.Curtime();
- ping_info.unshift(Global.Latency() + 5)
- };
- varc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Var Color');
- if (ping_info.length > 4) {
- ping_info.pop()
- };
- for (i = 0; i < ping_info.length; i++) {
- _0x48e4x122.ping += ping_info[i];
- Render.GradientRect(_0x48e4xa7 + -i * 5 + 35, _0x48e4xa8 - ping_info[i] / 100 * 70, 5, ping_info[i] / 100 * 70, 0, [95, 35, 35, 0], [varc[0], varc[1], varc[2], 255])
- }
- }
- function main() {
- draw_container();
- handle_dragging()
- }
- function reset() {
- last_time = Global.Curtime();
- ping_info = []
- }
- Global.RegisterCallback('Draw', 'main');
- Global.RegisterCallback('player_connect_full', 'reset');
- var fps_info = [];
- var last_timee = Global.Curtime();
- const win_x = UI.AddSliderInt('IO - X', 0, Global.GetScreenSize()[0]);
- const win_y = UI.AddSliderInt('IO - Y', 0, Global.GetScreenSize()[1]);
- UI.SetEnabled('Script items', 'IO - X', false);
- UI.SetEnabled('Script items', 'IO - Y', false);
- function hex_to_ascii(_0x48e4x114) {
- var _0x48e4x115 = _0x48e4x114.toString();
- var _0x48e4x116 = '';
- for (var _0x48e4x117 = 0; _0x48e4x117 < _0x48e4x115.length; _0x48e4x117 += 2) {
- _0x48e4x116 += String.fromCharCode(parseInt(_0x48e4x115.substr(_0x48e4x117, 2), 16))
- };
- return _0x48e4x116
- }
- function get(_0x48e4x11a) {
- return UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x11a)
- }
- function set(_0x48e4x11a, _0x48e4x9d) {
- return UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', _0x48e4x11a, _0x48e4x9d)
- }
- function handle_draggin() {
- var in_bounds = function (vec, x1, y1, _0x48e4xa9, _0x48e4xaa) {
- return (vec[0] > x1) && (vec[1] > y1) && (vec[0] < _0x48e4xa9) && (vec[1] < _0x48e4xaa)
- };
- if (Global.IsKeyPressed(1)) {
- const _0x48e4xa7 = get('IO - X'),
- _0x48e4xa8 = get('IO - Y');
- const _0x48e4x120 = Global.GetCursorPosition();
- if (in_bounds(_0x48e4x120, _0x48e4xa7 - 20, _0x48e4xa8 - 20, _0x48e4xa7 + 20, _0x48e4xa8 + 20)) {
- set('IO - X', _0x48e4x120[0] + 2);
- set('IO - Y', _0x48e4x120[1] + 5)
- }
- }
- }
- function draw_containe() {
- const _0x48e4xa7 = get('IO - X'),
- _0x48e4xa8 = get('IO - Y');
- var _0x48e4x122 = {
- 'fps': 0
- };
- Render.FilledRect(_0x48e4xa7 - 20, _0x48e4xa8 - 16, 55, 20, [15, 15, 15, fpsc[3]]);
- Render.String(_0x48e4xa7 - 17, _0x48e4xa8 - 12, 0, 'IO | ', [255, 255, 255, 255], 8);
- if (Global.Curtime() - last_timee > 0.5) {
- last_timee = Global.Curtime();
- fps_info.unshift(1 / Global.Frametime())
- };
- fpsc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'FPS Color');
- if (fps_info.length > 4) {
- fps_info.pop()
- };
- for (i = 0; i < fps_info.length; i++) {
- _0x48e4x122.fps += fps_info[i];
- Render.GradientRect(_0x48e4xa7 - i * 5 + 25, _0x48e4xa8 - fps_info[i] / Convar.GetInt('fps_max') * 35, 5, fps_info[i] / Convar.GetInt('fps_max') * 35, 0, [35, 35, 95, 0], [fpsc[0], fpsc[1], fpsc[2], 255])
- }
- }
- function mainn() {
- draw_containe();
- handle_draggin()
- }
- function Areset() {
- llast_time = Global.Curtime();
- fps_info = []
- }
- Global.RegisterCallback('Draw', 'mainn');
- Global.RegisterCallback('player_connect_full', 'Areset');
- const ms_x = UI.AddSliderInt('MS - X', 0, Global.GetScreenSize()[0]);
- const ms_y = UI.AddSliderInt('MS - Y', 0, Global.GetScreenSize()[1]);
- UI.SetEnabled('Script items', 'MS - X', false);
- UI.SetEnabled('Script items', 'MS - Y', false);
- function drag() {
- var in_bounds = function (vec, x1, y1, _0x48e4xa9, _0x48e4xaa) {
- return (vec[0] > x1) && (vec[1] > y1) && (vec[0] < _0x48e4xa9) && (vec[1] < _0x48e4xaa)
- };
- if (Global.IsKeyPressed(1)) {
- const _0x48e4xa7 = get('MS - X'),
- _0x48e4xa8 = get('MS - Y');
- const _0x48e4x120 = Global.GetCursorPosition();
- if (in_bounds(_0x48e4x120, _0x48e4xa7 - 35, _0x48e4xa8 - 35, _0x48e4xa7 + 35, _0x48e4xa8 + 35)) {
- set('MS - X', _0x48e4x120[0] + 25);
- set('MS - Y', _0x48e4x120[1] - 10)
- }
- }
- }
- function main_mshz() {
- if (!World.GetServerString()) {
- return
- };
- const _0x48e4xe2 = Math.round(Local.Latency() * 1000 - 16);
- var _0x48e4xba = Render.AddFont('Verdana', 7, 100);
- var _0x48e4xb9 = +_0x48e4xe2 + 'ms / 60hz';
- var _0x48e4xc2 = Render.TextSizeCustom(_0x48e4xb9, _0x48e4xba)[0] + 8;
- const _0x48e4xa7 = get('MS - X'),
- _0x48e4xa8 = get('MS - Y');
- msc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'MS & HZ Color');
- Render.FilledRect(_0x48e4xa7 - _0x48e4xc2, _0x48e4xa8 + 4, _0x48e4xc2, 20, [17, 17, 17, msc[3]]);
- Render.StringCustom(_0x48e4xa7 + 4 - _0x48e4xc2, _0x48e4xa8 + 7, 0, _0x48e4xb9, [0, 0, 0, 180], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 4 - _0x48e4xc2, _0x48e4xa8 + 7, 0, _0x48e4xb9, [255, 255, 255, 255], _0x48e4xba);
- var _0x48e4xe4 = 75;
- var _0x48e4x131 = UI.GetValue('Script items', 'Style Indicators');
- if (_0x48e4x131 == 0) {
- Render.GradientRect(_0x48e4xa7 - _0x48e4xc2, _0x48e4xa8 + 23, _0x48e4xc2, 1, 2, [55, 177, 218, 255], [203, 70, 205, 255]);
- Render.GradientRect(_0x48e4xa7 - _0x48e4xc2, _0x48e4xa8 + 23, _0x48e4xc2, 1, 2, [203, 70, 205, 255], [204, 227, 53, 255])
- } else {
- if (_0x48e4x131 == 1) {
- Render.GradientRect(_0x48e4xa7 - _0x48e4xc2 - 3, _0x48e4xa8 + 23, 35, 2, 1, [msc[0], msc[1], msc[2], 0], [msc[0], msc[1], msc[2], 255]);
- Render.GradientRect(_0x48e4xa7 - _0x48e4xc2 - (-31), _0x48e4xa8 + 23, 35, 2, 1, [msc[0], msc[1], msc[2], 255], [msc[0], msc[1], msc[2], 0])
- }
- }
- }
- Global.RegisterCallback('Draw', 'main_mshz');
- Global.RegisterCallback('Draw', 'drag');
- const x1 = UI.AddSliderInt('Hotkeys_x', 0, Global.GetScreenSize()[0]);
- const y1 = UI.AddSliderInt('Hotkeys_y', 0, Global.GetScreenSize()[1]);
- UI.AddLabel(' Colors');
- UI.AddColorPicker('Watermark (Standart) Color');
- UI.AddColorPicker('Hotkeys color');
- UI.AddColorPicker('Hotkeys topbar alpha');
- UI.AddColorPicker('FPS Color');
- UI.AddColorPicker('Var Color');
- UI.AddColorPicker('MS & HZ Color');
- var msc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'MS & HZ Color');
- var logc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'HitLogs Color');
- var fpsc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'FPS Color');
- var varc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Var Color');
- var standart = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Watermark (Standart) Color');
- var colorhotkeys = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys color');
- if (msc[3] == 0) {
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', 'MS & HZ Color', [255, 255, 255, 255])
- };
- if (standart[3] == 0) {
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', 'Watermark (Standart) Color', [255, 255, 255, 255])
- };
- if (logc[3] == 0) {
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', 'HitLogs Color', [255, 255, 255, 255])
- };
- if (varc[3] == 0) {
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', 'Var Color', [35, 35, 35, 255])
- };
- if (fpsc[3] == 0) {
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', 'FPS Color', [35, 35, 35, 255])
- };
- if (colorhotkeys[3] == 0) {
- UI.SetColor('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys color', [89, 119, 239, 3])
- };
- var alpha = 0;
- var maxwidth = 0;
- var swalpha = 0;
- var fdalpha = 0;
- var apalpha = 0;
- var aialpha = 0;
- var spalpha = 0;
- var fbalpha = 0;
- var dtalpha = 0;
- var hsalpha = 0;
- var doalpha = 0;
- var textalpha = 0;
- var h = new Array();
- function in_bounds(vec, _0x48e4xa7, _0x48e4xa8, _0x48e4xa9, _0x48e4xaa) {
- return (vec[0] > _0x48e4xa7) && (vec[1] > _0x48e4xa8) && (vec[0] < _0x48e4xa9) && (vec[1] < _0x48e4xaa)
- }
- function main_hotkeys() {
- if (!World.GetServerString()) {
- return
- };
- const _0x48e4xa7 = UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys_x'),
- _0x48e4xa8 = UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys_y');
- colorhotkeys = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys color');
- colorhotkeys1 = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys topbar alpha');
- var _0x48e4xba = Render.AddFont('Verdana', 7, 100);
- var _0x48e4x145 = 8 * Globals.Frametime();
- var _0x48e4xe4 = 75;
- var maxwidth = 0;
- if (UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Slow walk')) {
- swalpha = Math.min(swalpha + _0x48e4x145, 1)
- } else {
- swalpha = swalpha - _0x48e4x145;
- if (swalpha < 0) {
- swalpha = 0
- };
- if (swalpha == 0) {
- h.splice(h.indexOf('Slow walk'))
- }
- };
- if (UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Fake duck')) {
- fdalpha = Math.min(fdalpha + _0x48e4x145, 1)
- } else {
- fdalpha = fdalpha - _0x48e4x145;
- if (fdalpha < 0) {
- fdalpha = 0
- };
- if (fdalpha == 0) {
- h.splice(h.indexOf('Duck peek assist'))
- }
- };
- if (UI.IsHotkeyActive('Misc', 'GENERAL', 'Movement', 'Auto peek')) {
- apalpha = Math.min(apalpha + _0x48e4x145, 1)
- } else {
- apalpha = apalpha - _0x48e4x145;
- if (apalpha < 0) {
- apalpha = 0
- };
- if (apalpha == 0) {
- h.splice(h.indexOf('Auto peek'))
- }
- };
- if (UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter')) {
- aialpha = Math.min(aialpha + _0x48e4x145, 1)
- } else {
- aialpha = aialpha - _0x48e4x145;
- if (aialpha < 0) {
- aialpha = 0
- };
- if (aialpha == 0) {
- h.splice(h.indexOf('Anti-aim inverter'))
- }
- };
- if (UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter')) {
- aialpha = Math.min(aialpha + _0x48e4x145, 1)
- } else {
- aialpha = aialpha - _0x48e4x145;
- if (aialpha < 0) {
- aialpha = 0
- };
- if (aialpha == 0) {
- h.splice(h.indexOf('Inverter'))
- }
- };
- if (UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point')) {
- spalpha = Math.min(spalpha + _0x48e4x145, 1)
- } else {
- spalpha = spalpha - _0x48e4x145;
- if (spalpha < 0) {
- spalpha = 0
- };
- if (spalpha == 0) {
- h.splice(h.indexOf('Safe point override'))
- }
- };
- if (UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force body aim')) {
- fbalpha = Math.min(fbalpha + _0x48e4x145, 1)
- } else {
- fbalpha = fbalpha - _0x48e4x145;
- if (fbalpha < 0) {
- fbalpha = 0
- };
- if (fbalpha == 0) {
- h.splice(h.indexOf('Force body aim'))
- }
- };
- if (UI.IsHotkeyActive('Rage', 'Exploits', 'Doubletap')) {
- dtalpha = Math.min(dtalpha + _0x48e4x145, 1)
- } else {
- dtalpha = dtalpha - _0x48e4x145;
- if (dtalpha < 0) {
- dtalpha = 0
- };
- if (dtalpha == 0) {
- h.splice(h.indexOf('Double tap'))
- }
- };
- if (UI.IsHotkeyActive('Rage', 'Exploits', 'Hide shots')) {
- hsalpha = Math.min(hsalpha + _0x48e4x145, 1)
- } else {
- hsalpha = hsalpha - _0x48e4x145;
- if (hsalpha < 0) {
- hsalpha = 0
- };
- if (hsalpha == 0) {
- h.splice(h.indexOf('Hide shots'))
- }
- };
- if (UI.IsHotkeyActive('Script items', 'Heavy Pistol Override') || !UI.IsHotkeyActive('Script items', 'Scout Override') || !UI.IsHotkeyActive('Script items', 'AWP Override') || !UI.IsHotkeyActive('Script items', 'Auto Override')) {
- doalpha = Math.min(doalpha + _0x48e4x145, 1)
- } else {
- doalpha = doalpha - _0x48e4x145;
- if (doalpha < 0) {
- doalpha = 0
- };
- if (doalpha == 0) {
- h.splice(h.indexOf('Damage override'))
- }
- };
- if (UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Slow walk')) {
- if (h.indexOf('Slow walk') == -1) {
- h.push('Slow walk')
- }
- };
- if (UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Fake duck')) {
- if (h.indexOf('Duck peek assist') == -1) {
- h.push('Duck peek assist')
- }
- };
- if (UI.IsHotkeyActive('Misc', 'GENERAL', 'Movement', 'Auto peek')) {
- if (h.indexOf('Auto peek') == -1) {
- h.push('Auto peek')
- }
- };
- if (UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter')) {
- if (h.indexOf('Anti-aim inverter') == -1) {
- h.push('Anti-aim inverter')
- }
- };
- if (UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point')) {
- if (h.indexOf('Safe point override') == -1) {
- h.push('Safe point override')
- }
- };
- if (UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force body aim')) {
- if (h.indexOf('Force body aim') == -1) {
- h.push('Force body aim')
- }
- };
- if (UI.IsHotkeyActive('Rage', 'Exploits', 'Doubletap')) {
- if (h.indexOf('Double tap') == -1) {
- h.push('Double tap')
- }
- };
- if (UI.IsHotkeyActive('Rage', 'Exploits', 'Hide shots')) {
- if (h.indexOf('Hide shots') == -1) {
- h.push('Hide shots')
- }
- };
- if (UI.IsHotkeyActive('Script items', 'Scout Override')) {
- if (h.indexOf('Damage override') == -1) {
- h.push('Damage override')
- }
- };
- if (h.length > 0) {
- alpha = Math.min(alpha + _0x48e4x145, 1)
- } else {
- alpha = alpha - _0x48e4x145;
- if (alpha < 0) {
- alpha = 0
- }
- };
- for (i = 0; i < h.length; i++) {
- if (Render.TextSizeCustom(h[i], _0x48e4xba)[0] > maxwidth) {
- maxwidth = Render.TextSizeCustom(h[i], _0x48e4xba)[0]
- }
- };
- var _0x48e4x131 = UI.GetValue('Script items', 'Style Indicators');
- if (maxwidth == 0) {
- maxwidth = 50
- };
- _0x48e4xe4 = _0x48e4xe4 + maxwidth;
- if (alpha > 0) {
- if (_0x48e4x131 == 0) {
- Render.GradientRect(_0x48e4xa7, _0x48e4xa8 + 4, _0x48e4xe4, 1, 2, [203, 70, 205, 255], [204, 227, 53, 255])
- } else {
- if (_0x48e4x131 == 1) {
- Render.GradientRect(_0x48e4xa7 - 3, _0x48e4xa8 + 3, 80, 2, 1, [colorhotkeys[0], colorhotkeys[1], colorhotkeys[2], 0], [colorhotkeys[0], colorhotkeys[1], colorhotkeys[2], 255]);
- Render.GradientRect(_0x48e4xa7 + 77, _0x48e4xa8 + 3, _0x48e4xe4 - 75, 2, 1, [colorhotkeys[0], colorhotkeys[1], colorhotkeys[2], 255], [colorhotkeys[0], colorhotkeys[1], colorhotkeys[2], 0])
- }
- };
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 5, _0x48e4xe4, 18, [17, 17, 17, colorhotkeys1[3]]);
- Render.StringCustom(_0x48e4xa7 + _0x48e4xe4 / 2 - (Render.TextSizeCustom('keybinds', _0x48e4xba)[0] / 2) + 2, _0x48e4xa8 + 9, 0, 'keybinds', [0, 0, 0, alpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + _0x48e4xe4 / 2 - (Render.TextSizeCustom('keybinds', _0x48e4xba)[0] / 2) + 1, _0x48e4xa8 + 8, 0, 'keybinds', [255, 255, 255, alpha * 255], _0x48e4xba);
- for (i = 0; i < h.length; i++) {
- switch (h[i]) {
- case 'Slow walk':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(swalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, swalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, swalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [0, 0, 0, swalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [255, 255, 255, swalpha * 255], _0x48e4xba);
- break;
- case 'Duck peek assist':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(fdalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, fdalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, fdalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [0, 0, 0, fdalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [255, 255, 255, fdalpha * 255], _0x48e4xba);
- break;
- case 'Auto peek':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(apalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, apalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, apalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [0, 0, 0, apalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [255, 255, 255, apalpha * 255], _0x48e4xba);
- break;
- case 'Anti-aim inverter':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(aialpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, aialpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, aialpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [0, 0, 0, aialpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [255, 255, 255, aialpha * 255], _0x48e4xba);
- break;
- case 'Safe point override':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(spalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, spalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, spalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [0, 0, 0, spalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [255, 255, 255, spalpha * 255], _0x48e4xba);
- break;
- case 'Force body aim':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(fbalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, fbalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, fbalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [0, 0, 0, fbalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [255, 255, 255, fbalpha * 255], _0x48e4xba);
- break;
- case 'Double tap':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(dtalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, dtalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, dtalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [0, 0, 0, dtalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [255, 255, 255, dtalpha * 255], _0x48e4xba);
- break;
- case 'Hide shots':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(hsalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, hsalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, hsalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [0, 0, 0, hsalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[toggled]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[toggled]', [255, 255, 255, hsalpha * 255], _0x48e4xba);
- break;
- case 'Damage override':
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 23 + 18 * i, _0x48e4xe4, 18, [17, 17, 17, Math.min(colorhotkeys[3], Math.min(doalpha * 255, colorhotkeys[3]))]);
- Render.StringCustom(_0x48e4xa7 + 3, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [0, 0, 0, doalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 2, _0x48e4xa8 + 26 + 18 * i, 0, h[i], [255, 255, 255, doalpha * 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 3 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [0, 0, 0, doalpha * 255 / 1.3], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 - 2 + _0x48e4xe4 - Render.TextSizeCustom('[holding]', _0x48e4xba)[0], _0x48e4xa8 + 26 + 18 * i, 0, '[holding]', [255, 255, 255, doalpha * 255], _0x48e4xba);
- break
- }
- }
- };
- if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
- var _0x48e4x146 = Global.GetCursorPosition();
- if (in_bounds(_0x48e4x146, _0x48e4xa7, _0x48e4xa8, _0x48e4xa7 + _0x48e4xe4, _0x48e4xa8 + 30)) {
- UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys_x', _0x48e4x146[0] - _0x48e4xe4 / 2);
- UI.SetValue('Misc', 'JAVASCRIPT', 'Script items', 'Hotkeys_y', _0x48e4x146[1] - 20)
- }
- }
- }
- Global.RegisterCallback('Draw', 'main_hotkeys');
- function hex_to_ascii(_0x48e4x114) {
- var _0x48e4x115 = _0x48e4x114.toString();
- var _0x48e4x116 = '';
- for (var _0x48e4x117 = 0; _0x48e4x117 < _0x48e4x115.length; _0x48e4x117 += 2) {
- _0x48e4x116 += String.fromCharCode(parseInt(_0x48e4x115.substr(_0x48e4x117, 2), 16))
- };
- return _0x48e4x116
- }
- var username = Cheat.GetUsername();;;
- UI.AddColorPicker('Yaw color');
- var color = UI.GetColor('Misc', 'JAVASCRIPT', '"Yaw color"');
- if (color[3] == 0) {
- UI.SetColor('Misc', 'Javascript', 'Script items', 'Yaw color', [255, 255, 255, 255])
- };
- function HSVtoRGB(h, _0x48e4xed, _0x48e4xbe) {
- var _0x48e4xee, _0x48e4xef, _0x48e4xf0, _0x48e4x9c, _0x48e4xf1, _0x48e4xf2, _0x48e4xf3, _0x48e4xf4;
- if (arguments.length === 1) {
- _0x48e4xed = h.s, _0x48e4xbe = h.v, h = h.h
- };
- _0x48e4x9c = Math.floor(h * 6);
- _0x48e4xf1 = h * 6 - _0x48e4x9c;
- _0x48e4xf2 = _0x48e4xbe * (1 - _0x48e4xed);
- _0x48e4xf3 = _0x48e4xbe * (1 - _0x48e4xf1 * _0x48e4xed);
- _0x48e4xf4 = _0x48e4xbe * (1 - (1 - _0x48e4xf1) * _0x48e4xed);
- switch (_0x48e4x9c % 6) {
- case 0:
- _0x48e4xee = _0x48e4xbe, _0x48e4xef = _0x48e4xf4, _0x48e4xf0 = _0x48e4xf2;
- break;
- case 1:
- _0x48e4xee = _0x48e4xf3, _0x48e4xef = _0x48e4xbe, _0x48e4xf0 = _0x48e4xf2;
- break;
- case 2:
- _0x48e4xee = _0x48e4xf2, _0x48e4xef = _0x48e4xbe, _0x48e4xf0 = _0x48e4xf4;
- break;
- case 3:
- _0x48e4xee = _0x48e4xf2, _0x48e4xef = _0x48e4xf3, _0x48e4xf0 = _0x48e4xbe;
- break;
- case 4:
- _0x48e4xee = _0x48e4xf4, _0x48e4xef = _0x48e4xf2, _0x48e4xf0 = _0x48e4xbe;
- break;
- case 5:
- _0x48e4xee = _0x48e4xbe, _0x48e4xef = _0x48e4xf2, _0x48e4xf0 = _0x48e4xf3;
- break
- };
- return {
- r: Math.round(_0x48e4xee * 255),
- g: Math.round(_0x48e4xef * 255),
- b: Math.round(_0x48e4xf0 * 255)
- }
- }
- function draw() {
- var _0x48e4x148 = HSVtoRGB(Global.Tickcount() % 350 / 350, 1, 1);
- if (!World.GetServerString()) {
- return
- };
- var _0x48e4xe2 = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), 'CPlayerResource', 'm_iPing')).toString();
- const _0x48e4xe3 = new Date();
- const _0x48e4x149 = _0x48e4xe3.getHours(),
- _0x48e4x14a = _0x48e4xe3.getMinutes(),
- _0x48e4x14b = _0x48e4xe3.getSeconds();
- const _0x48e4x14c = (_0x48e4x149 < 10 ? '0' + _0x48e4x149 : _0x48e4x149) + ':' + (_0x48e4x14a < 10 ? '0' + _0x48e4x14a : _0x48e4x14a) + ':' + (_0x48e4x14b < 10 ? '0' + _0x48e4x14b : _0x48e4x14b);
- color = UI.GetColor('Misc', 'Javascript', 'Script items', 'Watermark');
- var _0x48e4xba = Render.AddFont('Verdana', 7, 400);
- var _0x48e4xb9 = 'predictive - yaw | ' + username + ' | [Version ] | ' + _0x48e4x14c + ' | ';
- var h = 18;
- var _0x48e4xc2 = Render.TextSizeCustom(_0x48e4xb9, _0x48e4xba)[0] + 8;
- var _0x48e4xa7 = Global.GetScreenSize()[0];
- var _0x48e4xa8 = 10;
- var standart = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Watermark (Standart) Color');
- var _0x48e4x131 = UI.GetValue('Script items', 'Style Indicators');
- _0x48e4xa7 = _0x48e4xa7 - _0x48e4xc2 - 10;
- if (_0x48e4x131 == 0) {
- Render.GradientRect(_0x48e4xa7, _0x48e4xa8 + 1, _0x48e4xc2, 1, 2, [55, 177, 218, 255], [203, 70, 205, 255]);
- Render.GradientRect(_0x48e4xa7, _0x48e4xa8 + 1, _0x48e4xc2, 1, 2, [203, 70, 205, 255], [204, 227, 53, 255])
- } else {
- if (_0x48e4x131 == 1) {
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 1, _0x48e4xc2, 1, [standart[0], standart[1], standart[2], 255])
- }
- };
- Render.FilledRect(_0x48e4xa7, _0x48e4xa8 + 2, _0x48e4xc2, h, [15, 15, 15, standart[3]]);
- var _0x48e4x14d = UI.GetValue('Script items', 'Watermark Icons');
- if (_0x48e4x14d == 0) {
- Render.String(_0x48e4xa7 + _0x48e4xc2 - 18, _0x48e4xa8 + 5, 0, '!', [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 255], 6)
- } else {
- if (_0x48e4x14d == 1) {
- Render.String(_0x48e4xa7 + _0x48e4xc2 - 19, _0x48e4xa8 + 5, 0, '@', [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 255], 6)
- } else {
- if (_0x48e4x14d == 2) {
- Render.String(_0x48e4xa7 + _0x48e4xc2 - 20, _0x48e4xa8 + 5, 0, '^', [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 255], 6)
- } else {
- if (_0x48e4x14d == 3) {
- Render.String(_0x48e4xa7 + _0x48e4xc2 - 18, _0x48e4xa8 + 5, 0, '#', [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 255], 6)
- }
- }
- }
- };
- Render.StringCustom(_0x48e4xa7 + _0x48e4xc2 - 112, _0x48e4xa8 + 4, 0, '3.0', [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 255], _0x48e4xba);
- Render.StringCustom(_0x48e4xa7 + 4, _0x48e4xa8 + 4, 0, _0x48e4xb9, [255, 255, 255, 255], _0x48e4xba)
- }
- Cheat.RegisterCallback('Draw', 'draw');
- function drawner() {
- var _0x48e4x14f = [];
- var _0x48e4x150 = Global.GetScreenSize();
- var _0x48e4xba = Render.AddFont('Calibri Bold', 8, 400);
- var _0x48e4x151 = Render.AddFont('Calibri Bold', 8, 501);
- var _0x48e4x152 = Render.AddFont('Calibri Bold', 8, 500);
- var _0x48e4x153 = UI.GetColor('Misc', 'JAVASCRIPT', '"predictive - yaw" color');
- Render.StringCustom(_0x48e4x150[0] / 2, _0x48e4x150[1] / 2 + 24, 1, 'predictive - yaw', [0, 0, 0, color[3]], _0x48e4x152);
- Render.StringCustom(_0x48e4x150[0] / 2, _0x48e4x150[1] / 2 + 25, 1, 'predictive - yaw', [color[0], color[1], color[2], color[3]], _0x48e4xba)
- }
- function HSVtoRGB(h, _0x48e4xed, _0x48e4xbe) {
- var _0x48e4xee, _0x48e4xef, _0x48e4xf0, _0x48e4x9c, _0x48e4xf1, _0x48e4xf2, _0x48e4xf3, _0x48e4xf4;
- if (arguments.length === 1) {
- _0x48e4xed = h.s, _0x48e4xbe = h.v, h = h.h
- };
- _0x48e4x9c = Math.floor(h * 6);
- _0x48e4xf1 = h * 6 - _0x48e4x9c;
- _0x48e4xf2 = _0x48e4xbe * (1 - _0x48e4xed);
- _0x48e4xf3 = _0x48e4xbe * (1 - _0x48e4xf1 * _0x48e4xed);
- _0x48e4xf4 = _0x48e4xbe * (1 - (1 - _0x48e4xf1) * _0x48e4xed);
- switch (_0x48e4x9c % 6) {
- case 0:
- _0x48e4xee = _0x48e4xbe, _0x48e4xef = _0x48e4xf4, _0x48e4xf0 = _0x48e4xf2;
- break;
- case 1:
- _0x48e4xee = _0x48e4xf3, _0x48e4xef = _0x48e4xbe, _0x48e4xf0 = _0x48e4xf2;
- break;
- case 2:
- _0x48e4xee = _0x48e4xf2, _0x48e4xef = _0x48e4xbe, _0x48e4xf0 = _0x48e4xf4;
- break;
- case 3:
- _0x48e4xee = _0x48e4xf2, _0x48e4xef = _0x48e4xf3, _0x48e4xf0 = _0x48e4xbe;
- break;
- case 4:
- _0x48e4xee = _0x48e4xf4, _0x48e4xef = _0x48e4xf2, _0x48e4xf0 = _0x48e4xbe;
- break;
- case 5:
- _0x48e4xee = _0x48e4xbe, _0x48e4xef = _0x48e4xf2, _0x48e4xf0 = _0x48e4xf3;
- break
- };
- return {
- r: Math.round(_0x48e4xee * 255),
- g: Math.round(_0x48e4xef * 255),
- b: Math.round(_0x48e4xf0 * 255)
- }
- }
- var logs = [];
- const log = function (_0x48e4xb9, _0x48e4x14c) {
- this.text = _0x48e4xb9;
- this.time = _0x48e4x14c
- };
- const hitboxes = ['generic', 'head', 'chest', 'stomach', 'left arm', 'right arm', 'left leg', 'right leg', 'body'];
- const get_hitbox = function (_0x48e4x9c) {
- return hitboxes[_0x48e4x9c] || 'Generic'
- };
- const hitlogs = function () {
- const _0x48e4x159 = Entity.GetEntityFromUserID(Event.GetInt('userid'));
- const _0x48e4xdc = Entity.GetEntityFromUserID(Event.GetInt('attacker'));
- const _0x48e4xb9 = '[Predictive] hurt ' + Entity.GetName(_0x48e4x159) + ' for ' + Event.GetInt('dmg_health') + ' in ' + get_hitbox(Event.GetInt('hitgroup'));
- if (Entity.IsLocalPlayer(_0x48e4xdc) && _0x48e4xdc != _0x48e4x159) {
- logs.push(new log(_0x48e4xb9, Globals.Tickcount()))
- }
- };
- const draw = function () {
- var _0x48e4x148 = HSVtoRGB(Global.Tickcount() % 350 / 350, 1, 1);
- const _0x48e4xba = Render.AddFont('Smallest Pixel-7', 8, 400);
- for (var _0x48e4x9c in logs) {
- logc = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'HitLogs Color');
- var _0x48e4x15a = Render.TextSizeCustom(logs[_0x48e4x9c].text, _0x48e4xba);
- Render.GradientRect(0, 4 - (_0x48e4x9c * -15), _0x48e4x15a[0] + 40, 15, 1, [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 150], [logc[0], logc[1], logc[2], 0]);
- Render.StringCustom(5, 5 - (_0x48e4x9c * -15), 0, logs[_0x48e4x9c].text, [_0x48e4x148.r, _0x48e4x148.g, _0x48e4x148.b, 255], _0x48e4xba);
- if (logs[_0x48e4x9c].time + 300 < Globals.Tickcount()) {
- logs.shift()
- }
- }
- };
- function onRender() {
- var _0x48e4x150 = Global.GetScreenSize();
- var _0x48e4xba = Render.AddFont('Small pixel', 7, 400);
- var _0x48e4x15b = Entity.GetLocalPlayer();
- entities = Entity.GetEntities();
- for (i = 0; i < entities.length; i++) {
- if (Entity.IsLocalPlayer(entities[i])) {
- var _0x48e4x15c = Local.GetRealYaw();
- var _0x48e4x15d = Local.GetFakeYaw();
- var _0x48e4x15e = UI.IsHotkeyActive('Anti-aim', 'Extra', 'Slow walk', 'Enabled');
- var _0x48e4x15f = Math.min(Math.abs(_0x48e4x15c - _0x48e4x15d) / 2, 60).toFixed(1);
- var _0x48e4x160 = Entity.GetProp(_0x48e4x15b, 'CBasePlayer', 'm_hGroundEntity');
- duckamount = Entity.GetProp(entities[i], 'CBasePlayer', 'm_flDuckAmount');
- if (duckamount > 0) {
- Render.StringCustom(_0x48e4x150[0] / 2, _0x48e4x150[1] / 2 + 40, 1, 'duck [ ' + _0x48e4x15f.toString() + ' ]', [0, 255, 0, 255], _0x48e4xba)
- } else {
- if (_0x48e4x160 == 'm_hGroundEntity') {
- Render.StringCustom(_0x48e4x150[0] / 2, _0x48e4x150[1] / 2 + 40, 1, 'air [ ' + _0x48e4x15f.toString() + ' ]', [0, 255, 0, 255], _0x48e4xba)
- } else {
- if (UI.IsHotkeyActive('Anti-aim', 'Extra', 'Slow walk', 'Enabled')) {
- Render.StringCustom(_0x48e4x150[0] / 2, _0x48e4x150[1] / 2 + 40, 1, 'slowwalk [ ' + _0x48e4x15f.toString() + ' ]', [0, 255, 0, 255], _0x48e4xba)
- } else {
- Render.StringCustom(_0x48e4x150[0] / 2, _0x48e4x150[1] / 2 + 40, 1, 'static [ ' + _0x48e4x15f.toString() + ' ]', [0, 255, 0, 255], _0x48e4xba)
- }
- }
- }
- }
- }
- }
- Cheat.RegisterCallback('Draw', 'onRender');
- Cheat.RegisterCallback('Draw', 'draw');
- Cheat.RegisterCallback('player_hurt', 'hitlogs');
- Cheat.RegisterCallback('Draw', 'drawner');
- Convar.SetString('fps_max', '400');
- UI.AddLabel('');
- UI.AddSliderInt('', -1, 0)
Advertisement
Add Comment
Please, Sign In to add comment