Advertisement
Guest User

Aimware Lua Pack

a guest
Oct 18th, 2019
3,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.83 KB | None | 0 0
  1. -- stuff
  2. local draw_Line, draw_TextShadow, draw_Color, draw_Text, g_tickinterval, string_format, http_Get, file_Open, math_random, math_exp, math_rad, math_max, math_abs, math_tan, math_sin, math_cos, math_fmod, draw_GetTextSize, draw_FilledRect, draw_RoundedRect, draw_RoundedRectFill, draw_CreateFont, draw_SetFont, client_WorldToScreen, draw_GetScreenSize, client_GetConVar, client_SetConVar, client_exec, PlayerNameByUserID, PlayerIndexByUserID, entities_GetByIndex, GetLocalPlayer, gui_SetValue, gui_GetValue, LocalPlayerIndex, c_AllowListener, cb_Register, g_tickcount, g_realtime, g_curtime, g_absoluteframetime, g_maxclients, math_floor, math_ceil, math_sqrt, GetPlayerResources, entities_FindByClass, IsButtonPressed, IsButtonDown, client_ChatSay, vector_Distance, draw_OutlinedCircle, table_concat = draw.Line, draw.TextShadow, draw.Color, draw.Text, globals.TickInterval, string.format, http.Get, file.Open, math.random, math.exp, math.rad, math.max, math.abs, math.tan, math.sin, math.cos, math.fmod, draw.GetTextSize, draw.FilledRect, draw.RoundedRect, draw.RoundedRectFill, draw.CreateFont, draw.SetFont, client.WorldToScreen, draw.GetScreenSize, client.GetConVar, client.SetConVar, client.Command, client.GetPlayerNameByUserID, client.GetPlayerIndexByUserID, entities.GetByIndex, entities.GetLocalPlayer, gui.SetValue, gui.GetValue, client.GetLocalPlayerIndex, client.AllowListener, callbacks.Register, globals.TickCount, globals.RealTime, globals.CurTime, globals.AbsoluteFrameTime, globals.MaxClients, math.floor, math.ceil, math.sqrt, entities.GetPlayerResources, entities.FindByClass, input.IsButtonPressed, input.IsButtonDown, client.ChatSay, vector.Distance, draw.OutlinedCircle, table.concat
  3. -------------------- Auto Updater
  4. local sN, sF, vF, cV = GetScriptName(), "https://raw.githubusercontent.com/Zack2kl/Lua-Pack/master/Lua_Pack.lua", "https://raw.githubusercontent.com/Zack2kl/Lua-Pack/master/version.txt", "2.0.3"
  5. local auto_update = function() if not gui_GetValue("lua_allow_http") or not gui_GetValue("lua_allow_cfg") or sN:lower():find('beta') ~= nil then return end local nV = http_Get(vF) if cV ~= nV then local nS = http_Get(sF) local oS = file_Open(sN, "w") oS:Write(nS) oS:Close() print(sN,"updated from", cV, "to", nV) end end auto_update()
  6. -------------- References
  7. local Q = gui.Groupbox(gui.Reference("VISUALS", "Shared"), "Extra Features")
  8. local W = gui.Reference("VISUALS", "OTHER", "Options")
  9. local E = gui.Reference("VISUALS", "ENEMIES", "Options")
  10. local R = gui.Reference("VISUALS", "TEAMMATES", "Options")
  11. local T = gui.Groupbox(gui.Reference("MISC", "GENERAL", "Main"), "Extra Features")
  12. ------------- Listeners
  13. local listeners = {'round_end','round_freeze_end','round_prestart','round_start','bomb_beginplant','bomb_abortplant','bomb_planted','bomb_defused','bomb_exploded','bomb_begindefuse','bomb_abortdefuse','round_officially_ended','player_spawn','player_hurt','player_death','player_connect_full','smokegrenade_detonate','molotov_detonate','inferno_startburn','inferno_expire','inferno_extinguish','grenade_thrown','bullet_impact'}
  14. -------------- Font
  15. local F1 = draw_CreateFont("Verdana", 30)
  16. local F2 = draw_CreateFont("Verdana", 12)
  17. local F3 = draw_CreateFont("Verdana", 11)
  18. local F4 = draw_CreateFont("Tahoma", 13, 200)
  19. -------------- Better Grenades
  20. local better_grenades = gui.Checkbox(W, "esp_other_better_grenades", "Better Grenades", false)
  21. -------------- Hit Log
  22. local HitLog = gui.Checkbox(T, "msc_hitlog", "Hit Log", false)
  23. -------------- Auto Buy
  24. local AB_Show = gui.Checkbox(T, "msc_autobuy", "AutoBuy", false)
  25. local AB_W = gui.Window("AB_W", "Auto Buy", 100, 200, 200, 306)
  26. local AB_GB = gui.Groupbox(AB_W, "Auto Buy Settings", 16, 17)
  27. local AB_E = gui.Checkbox(AB_GB, "AB_Active", "Active", false)
  28. local PrimaryWeapons = gui.Combobox(AB_GB, "AB_Primary_Weapons", "Primary Weapons", "-", "AK | M4", "Scout", "SG553 | AUG", "AWP", "Auto")
  29. local SecondaryWeapons = gui.Combobox(AB_GB, "AB_Secondary_Weapons", "Secondary Weapons", "-", "Elite", "P250", "Tec-9 | Five-Seven", "R8 | Deagle")
  30. local AB_M = gui.Multibox(AB_GB, 'Gear')
  31. local Kev = gui.Checkbox(AB_M, "AB_Armor_K", "Kevlar", false)
  32. local Kev_Hel = gui.Checkbox(AB_M, "AB_Armor_KH", "Helmet", false)
  33. local Defuser = gui.Checkbox(AB_M, "AB_Defuser", "Defuse Kit", false)
  34. local GNade = gui.Checkbox(AB_M, "AB_GNade", "Grenade", false)
  35. local MNade = gui.Checkbox(AB_M, "AB_MNade", "Molotov", false)
  36. local SNade = gui.Checkbox(AB_M, "AB_SNade", "Smoke", false)
  37. local FNade = gui.Checkbox(AB_M, "AB_FNade", "Flashbang", false)
  38. local Zeus = gui.Checkbox(AB_M, "AB_Zeus", "Zeus", false)
  39. local AB_buyAbove = gui.Slider(AB_GB, 'AB_buyAboveAmount', 'Buy if $ is Above (value*1000)', 3.7, 0, 16)
  40. -------------- Spec List
  41. local SpectatorList = gui.Checkbox(T, "msc_speclist", "Spectators", false)
  42. -------------- Show Team Damage
  43. local TeamDamageShow = gui.Checkbox(T, "msc_showteamdmg", "Show Team Damage", false)
  44. -------------- View Model Extender
  45. local VM_Cache = function() xO = client_GetConVar("viewmodel_offset_x") yO = client_GetConVar("viewmodel_offset_y") zO = client_GetConVar("viewmodel_offset_z") fO = client_GetConVar("viewmodel_fov") end VM_Cache()
  46. local ViewModelShown = gui.Checkbox(T, "msc_vme", "Viewmodel Changer", false)
  47. local VM_W = gui.Window("VM_W", "Viewmodel Extender", 305,200,200,300)
  48. local VMStuff = gui.Groupbox(VM_W, "Viewmodel Stuff", 15, 14, 170, 240)
  49. local VM_e = gui.Checkbox(VMStuff, "msc_vme", "Enable", false)
  50. local xS = gui.Slider(VMStuff, "VM_X", "X", xO, -20, 20)
  51. local yS = gui.Slider(VMStuff, "VM_Y", "Y", yO, -100, 100)
  52. local zS = gui.Slider(VMStuff, "VM_Z", "Z", zO, -20, 20)
  53. local vfov = gui.Slider(VMStuff, "VM_fov", "Viewmodel FOV", fO, 0, 120)
  54. -------------- Sniper Crosshair
  55. local ComboCrosshair = gui.Combobox(Q, "vis_sniper_crosshair", "Sniper Crosshair", "Off", "Engine Crosshair", 'Engine Crosshair(+scoped)', "Aimware Crosshair", "Draw Crosshair")
  56. -------------- Bullet impacts
  57. local BulletImpacts_M = gui.Multibox(gui.Reference('VISUALS', 'MISC', 'Assistance'), 'Bullet Impact')
  58. local BulletImpacts_Local = gui.Checkbox(BulletImpacts_M, "vis_bullet_impact_local", "Local", false)
  59. local BulletImpacts_Enemy = gui.Checkbox(BulletImpacts_M, "vis_bullet_impact_enemy", "Enemy", false)
  60. local BulletImpacts_Team = gui.Checkbox(BulletImpacts_M, "vis_bullet_impact_team", "Team", false)
  61. local BulletImpacts_color_Local = gui.ColorEntry('clr_vis_bullet_impact_local', 'Bullet Impacts Local', 255,255,255,255)
  62. local BulletImpacts_color_Enemy = gui.ColorEntry('clr_vis_bullet_impact_enemy', 'Bullet Impacts Enemy', 255,140,140,255)
  63. local BulletImpacts_color_Team = gui.ColorEntry('clr_vis_bullet_impact_team', 'Bullet Impacts Team', 140,140,255,255)
  64. local BulletImpacts_Time = gui.Slider(gui.Reference('VISUALS', 'MISC', 'Assistance'), 'vis_bullet_impact_time', 'Bullet Impact Time', 4, 0, 10)
  65. -------------- Scoped FOV Fix
  66. local s_fovfix = gui.Checkbox(Q, "vis_fixfov", "Fix Scoped FOV", false)
  67. local new_fov_val, new_vmfov_val local set_fov = false
  68. -------------- Knife On Left Hand
  69. local K_O_L_H = gui.Checkbox(T, "msc_knifelefthand", "Knife On Left Hand", false)
  70. -------------- Bomb Timer
  71. local BombTimer = gui.Checkbox(W, "esp_other_better_c4timer", "Bomb Timer", false)
  72. -------------- Bomb Damage
  73. local Bomb_Damage = gui.Checkbox(W, "esp_other_bombdamage", "Bomb Damage", false)
  74. -------------- Chat Spammer
  75. local CC_Show = gui.Checkbox(T, "msc_chat_spams", "Chat Spams", false)
  76. local CC_W = gui.Window("CC_W", "Chat Spam", 510,200,200,285)
  77. local CC_G1 = gui.Groupbox(CC_W, "Chat Spams", 15, 15, 170, 224)
  78. local CC_Spams = gui.Combobox(CC_G1, "CC_Spam", "Spams", "Off", "Spam 1", "Spam 2", "Clear Chat")
  79. local CC_Spam_spd = gui.Slider(CC_G1, "CC_Spam_Speed", "Spam Speed", 67.5, 10, 250)
  80. local chatspam1txt = gui.Text(CC_G1, "Spam 1") local ChatSpam1 = gui.Editbox(CC_G1, "CC_Spam1", "Custom Chat Spam 1")
  81. local chatspam2txt = gui.Text(CC_G1, "Spam 2") local ChatSpam2 = gui.Editbox(CC_G1, "CC_Spam2", "Custom Chat Spam 2")
  82. -------------- Working Stattrak
  83. local Working_Stattrak = gui.Checkbox(T, "msc_stattrakcount", "Working Stattrak", false)
  84. -------------- Aspect Ratio Changer
  85. local aspect_ratio_check = gui.Checkbox(T, "msc_aspect_enable", "Aspect Ratio Changer", false)
  86. local aspect_ratio_reference = gui.Slider(T, "msc_aspect_value", "Force aspect ratio", 100, 1, 199) -- % times your original ratio
  87. -------------- Esp On Dead
  88. local ESP_On_Dead = gui.Checkbox(gui.Reference('VISUALS', 'ENEMIES', 'Filter'), 'lua_esp_on_dead', 'ESP On Dead', false)
  89. local alive_esp, dead_esp, visibility, loaded = {}, {}, nil, false
  90. local esp_on_dead_window = gui.Window('esp_on_dead_window', 'Esp On Dead', 200, 200, 242, 520)
  91. local esp_on_dead_group = gui.Groupbox(esp_on_dead_window, 'Options', 16, 16, 212, 457)
  92. local ESP_On_Dead_enabled = gui.Checkbox(esp_on_dead_group, 'lua_esp_on_dead_enabled', 'Active', false)
  93. local esp_elements = {box = gui.Combobox(esp_on_dead_group, 'esp_on_dead_box', 'Box', 'Off', '2D', '3D', 'Edges', 'Machine', 'Pentagon', 'Hexagon'),box_outline = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_box_outline', 'Box Outline', false),box_precise = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_box_precise', 'Box Precision', false),name = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_name', 'Name', false),health = gui.Combobox(esp_on_dead_group, 'esp_on_dead_health', 'Health', 'Off', 'Bar', 'Number', 'Both'),armor = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_armor', 'Armor', false),weapon = gui.Combobox(esp_on_dead_group, 'esp_on_dead_weapon', 'Weapon', 'Off', 'Show Active', 'Show All'),ammo = gui.Combobox(esp_on_dead_group, 'esp_on_dead_ammo', 'Ammo', 'Off', 'Number', 'Bar'),skeleton = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_skeleton', 'Skeleton', false),hitbox = gui.Combobox(esp_on_dead_group, 'esp_on_dead_hitbox', 'Hitbox', 'Off', 'White', 'Color'),chams = gui.Combobox(esp_on_dead_group, 'esp_on_dead_chams', 'Chams', 'Off', 'Color', 'Material', 'Color Wireframe', 'Mat Wireframe', 'Invisible', 'Metallic', 'Flat'),xqz = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_xqz', 'XQZ', false),glow = gui.Combobox(esp_on_dead_group, 'esp_on_dead_glow', 'Glow', 'Off', 'Team Color', 'Health Color'),headspot = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_headspot', 'Head Spot', false),aimpoints = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_aimpoints', 'Aim Points', false),hasc4 = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_hasc4', 'Has C4', false),hasdefuser = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_hasdefuser', 'Has Defuser', false),defusing = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_defusing', 'Is Defusing', false),flashed = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_flashed', 'Is Flashed', false),scoped = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_scoped', 'Is Scoped', false),reloading = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_reloading', 'Is Reloading', false),comprank = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_comprank', 'Competitive Rank', false),barrel = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_barrel', 'Barrel', false),money = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_money', 'Money', false),damage = gui.Checkbox(esp_on_dead_group, 'esp_on_dead_damage', 'Damage', false)}-------------- Engine Radar
  94. -------------- Engine Radar
  95. local ERadar = gui.Checkbox(Q, "esp_engine_radar", "Engine Radar", false)
  96. -------------- Team & Enemy Tracers
  97. local tracersEnemy = gui.Checkbox(E, "esp_enemy_tracer", "Tracers", false)
  98. local tracersTeam = gui.Checkbox(R, "esp_team_tracer", "Tracers", false)
  99. -------------- Team & Enemy & Other Distance + visible help
  100. local enemy_distance = gui.Checkbox(E, "esp_enemy_distance", "Distance", false)
  101. local team_distance = gui.Checkbox(R, "esp_team_distance", "Distance", false)
  102. local other_distance = gui.Checkbox(W, "esp_other_distance", "Distance", false)
  103. -------------- Full Bright
  104. local fBright = gui.Checkbox(Q, "vis_fullbright", "Full Bright", false)
  105. -------------- Disable Post Processing
  106. local DPP = gui.Checkbox(Q, "vis_disable_post", "Disable Post Processing", false)
  107. -------------- Zeusbot
  108. local zeusbot = gui.Checkbox(gui.Reference("LEGIT", "Extra"), "lbot_zeusbot_enable", "Zeusbot", false)
  109. local trige, trigaf, trighc, trigm local set_values = false
  110. -------------- Recoil Crosshair
  111. local RecoilCrosshair = gui.Checkbox(Q, "vis_recoilcrosshair", "Recoil Crosshair", false)
  112. local RecoilCrosshair_color = gui.ColorEntry("clr_vis_recoilcrosshair", "Recoil Crosshair", 255,255,255,255)
  113. -------------- Disable Fake angle ghost while in air/freezetime
  114. local fakeangleghost_M = gui.Multibox(gui.Reference("VISUALS", "MISC", "Yourself Extra"), 'Disable Fake Angle Ghost')
  115. local fakeangleghost_air = gui.Checkbox(fakeangleghost_M, 'vis_disable_fakeangleghost_inair', 'In Air', false)
  116. local fakeangleghost_freezeperiod = gui.Checkbox(fakeangleghost_M, 'vis_disable_fakeangleghost_on_freezeperiod', 'On Freeze Period', false)
  117. -------------- Name Steal fix
  118. local StealNameFix = gui.Checkbox(gui.Reference("MISC", "ENHANCEMENT", "Namestealer"), "msc_namestealer_fix", "Fix Name Steal", false)
  119. -------------- Ghost Mode
  120. local ghost_view = gui.Checkbox(gui.Reference("VISUALS", "MISC", "Yourself Extra"), 'vis_ghost', 'Ghost View', false)
  121. -------------- Fake ducking indicator
  122. local fake_duck_indicator = gui.Checkbox(E, 'esp_enemy_fakeduck', 'Is Fakeducking', false)
  123. local fake_duck_indicator_color = gui.ColorEntry('clr_esp_enemy_fakeduck', 'Fake duck', 100, 200, 100, 255) local storedTick, crouchedTicks = 0, {}
  124. -------------- Disable Fog
  125. local disable_fog = gui.Checkbox(gui.Reference('VISUALS', 'MISC', 'World'), 'vis_nofog', 'No Fog', false)
  126. -------------- Disable Shadows
  127. local disable_shadows = gui.Checkbox(gui.Reference('VISUALS', 'MISC', 'World'), 'vis_noshadows', 'No Shadows', false)
  128. -------------- Fix Bomb Planting
  129. local fixbombplant = gui.Checkbox(T, 'msc_bombplant_fix', 'Fix Bomb Planting', false)
  130. -------------- Flash Alpha
  131. local flash_alpha_enable = gui.Checkbox(gui.Reference('VISUALS', 'MISC', 'Removal'), 'vis_flash_alpha_enable', 'Flash Alpha Enable', false)
  132. local flash_alpha = gui.Slider(gui.Reference('VISUALS', 'MISC', 'Removal'), 'vis_flash_alpha', 'Flash Alpha', 255, 0, 255)
  133. -------------- Flash Check
  134. local flashCheck = gui.Checkbox(gui.Reference("LEGIT", "Extra"), 'vis_flash_check', 'Flash Check', false) local lb_val, lb_set = nil, false
  135. -------------- Skin Color Changer
  136. local skinComboBox = gui.Combobox(Q, 'vis_skin_color', 'Skin Color', 'Off', 'White', 'Black', 'Asian') local skin_colors={'0', '1', '3'}
  137. -------------------------------------------------------------------------------------------------------------------------------------------------------
  138.  
  139. -------------------------
  140. local distance3D = function(a, b) distance = vector_Distance(a, b) return {['normal']=distance, ['u']=string_format('%.0fu', distance), ['ft']=string_format('%.0fft', distance*0.083333), ['m']=string_format('%.1fm', distance/39.370)} end
  141. cb_Register("Draw", "Shows Menus", function() local menu_opened = gui.Reference("MENU"):IsActive() AB_W:SetActive(AB_Show:GetValue() and menu_opened) VM_W:SetActive(ViewModelShown:GetValue() and menu_opened) CC_W:SetActive(CC_Show:GetValue() and menu_opened) esp_on_dead_window:SetActive(ESP_On_Dead:GetValue() and menu_opened) end)
  142. local is_enemy = function(index) if entities_GetByIndex(index) == nil then return end return entities_GetByIndex(index):GetTeamNumber() ~= GetLocalPlayer():GetTeamNumber() end
  143. for i=1, #listeners do c_AllowListener(listeners[i]) end
  144.  
  145. -------------------- Grenade Timers
  146. local smokes, molotovs, flashes, grenades = {}, {}, {}, {}
  147. function Timers(e)
  148. if not better_grenades:GetValue() or e:GetName() ~= "round_prestart" and e:GetName() ~= "smokegrenade_detonate" and e:GetName() ~= "molotov_detonate" and e:GetName() ~= "inferno_startburn" and e:GetName() ~= "inferno_expire" and e:GetName() ~= "inferno_extinguish" and e:GetName() ~= "grenade_thrown" then return end local entityid = e:GetInt("entityid") local x = e:GetFloat("x") local y = e:GetFloat("y") local z = e:GetFloat("z") local userid_to_index = PlayerIndexByUserID(e:GetInt("userid")) local molotovs_n, smokes_n, flashes_n, grenades_n = #molotovs, #smokes, #flashes, #grenades
  149. if e:GetName() == "round_prestart" then smokes, molotovs = {}, {} end
  150. if e:GetName() == "smokegrenade_detonate" then smokes[smokes_n + 1] = {g_curtime(), entityid, x, y, z} end
  151. if e:GetName() == "molotov_detonate" then user_index = userid_to_index end if e:GetName() == "inferno_startburn" then molotovs[molotovs_n + 1] = {g_curtime(), entityid, x, y, z, user_index} end
  152. if e:GetName() == "inferno_expire" or e:GetName() == "inferno_extinguish" then for k, v in pairs(molotovs) do if v[2] == entityid then molotovs[k] = nil end end end
  153. if e:GetName() == "grenade_thrown" then randnumber = math_random(1, client_GetConVar("ammo_grenade_limit_total")*g_maxclients()) if e:GetString("weapon") == "flashbang" then flashes[flashes_n + 1] = {g_curtime(), randnumber * 1.77} end if e:GetString("weapon") == "hegrenade" then grenades[grenades_n + 1] = {g_curtime(), randnumber * 2.10} end end end
  154. function DrawTimers()
  155. if not better_grenades:GetValue() or GetLocalPlayer() == nil then return end
  156. for k, v in pairs(smokes) do if v[1] - g_curtime() + 17.6 > 0 then if distance3D({GetLocalPlayer():GetAbsOrigin()}, {v[3], v[4], v[5]}).normal > 5000 then return end local X, Y = client_WorldToScreen(v[3], v[4], v[5]) local smoke_timeleft = string_format("%0.1f", v[1] - g_curtime() + 17.6) if X ~= nil and Y ~= nil then draw_SetFont(F3) local tW, tH = draw_GetTextSize(smoke_timeleft) local tW2, tH2 = draw_GetTextSize("SMOKE") draw_Color(255, 255, 255, 255) draw_TextShadow(X - (tW/2), Y - (tH/2), smoke_timeleft) draw_Color(255, 255, 255, 255) draw_TextShadow(X - (tW2/2), Y - (tH2/2) + tH2, "SMOKE") end else smokes[k] = nil end end
  157. for k, v in pairs(molotovs) do if v[1] - g_curtime() + 7 > 0 then if distance3D({GetLocalPlayer():GetAbsOrigin()}, {v[3], v[4], v[5]}).normal > 5000 then return end local X, Y = client_WorldToScreen(v[3], v[4], v[5]) local molotov_timeleft = string_format("%0.1f", v[1] - g_curtime() + 7) if X ~= nil and Y ~= nil then draw_SetFont(F3) local tW, tH = draw_GetTextSize(molotov_timeleft) local tW2, tH2 = draw_GetTextSize("MOLLY") draw_Color(255, 255, 255, 255) draw_TextShadow(X - (tW/2), Y - (tH/2), molotov_timeleft) if not is_enemy(v[6]) then r, g, b, a = 153, 153, 255, 255 else r, g, b, a = 251, 82, 79, 255 end draw_Color(r, g, b, a) draw_TextShadow(X - (tW2/2), Y - (tH2/2) + tH2, "MOLLY") end else molotovs[k] = nil end end end
  158. function GFTimers(b)
  159. if not better_grenades:GetValue() or b:GetEntity():GetClass() ~= "CBaseCSGrenadeProjectile" then return end
  160. for k, v in pairs(flashes) do if v[1] - g_curtime() + 1.65 > 0 then if v[2] == randnumber * 1.77 then b:AddBarBottom(v[1] - g_curtime() + 1.65) end else flashes[k] = nil end end
  161. for k, v in pairs(grenades) do if v[1] - g_curtime() + 1.65 > 0 then if v[2] == randnumber * 2.10 then b:AddBarBottom(v[1] - g_curtime() + 1.65) end else grenades[k] = nil end end end
  162. cb_Register("Draw", DrawTimers) cb_Register("DrawESP", GFTimers) cb_Register("FireGameEvent", Timers)
  163.  
  164. -------------------- Auto Buy
  165. local primary_weapon, secondary_weapon = {'', 'buy "ak47"; ', 'buy "ssg08"; ', 'buy "sg556"; ', 'buy "awp"; ', 'buy "scar20"; '}, {'', 'buy "elite"; ', 'buy "p250"; ', 'buy "tec9"; ', 'buy "deagle"; '}
  166. function auto_buy(e)
  167. if not AB_E:GetValue() or GetLocalPlayer() == nil or e:GetName() ~= 'player_spawn' or PlayerIndexByUserID(e:GetInt('userid')) ~= LocalPlayerIndex() then return end local money = GetLocalPlayer():GetProp('m_iAccount')
  168. local buy_items = table_concat({primary_weapon[PrimaryWeapons:GetValue() + 1] or '', secondary_weapon[SecondaryWeapons:GetValue() + 1] or '', Kev:GetValue() and 'buy "vest"; ' or '', Kev_Hel:GetValue() and 'buy "vesthelm"; ' or '', Defuser:GetValue() and 'buy "defuser"; ' or '', GNade:GetValue() and 'buy "hegrenade"; ' or '', MNade:GetValue() and 'buy "molotov"; buy "incgrenade"; ' or '', SNade:GetValue() and 'buy "smokegrenade"; ' or '', FNade:GetValue() and 'buy "flashbang"; ' or '', Zeus:GetValue() and 'buy "taser"; ' or ''}, '')
  169. if money >= AB_buyAbove:GetValue()*1000 or money < 1 then client_exec(buy_items, true) end end
  170. cb_Register("FireGameEvent", auto_buy)
  171.  
  172. -------------------- View Model Extender | Spectator list fix / made by anue | Disable Post Processing | full bright | Engine Radar | Disable Fake angle ghost while in air/freeze time | ghost view | fake duck indicator | disable fog | disable shadows | Knife on Left Hand | Fix Bomb Planting | Scoped Fov Fix | zeusbot | flash alpha | model skin changer
  173. function VM_E() if VM_e:GetValue() then client_SetConVar("viewmodel_offset_x", xS:GetValue(), true) client_SetConVar("viewmodel_offset_y", yS:GetValue(), true) client_SetConVar("viewmodel_offset_z", zS:GetValue(), true) client_SetConVar("viewmodel_fov", vfov:GetValue(), true) else client_SetConVar("viewmodel_offset_x", xO, true) client_SetConVar("viewmodel_offset_y", yO, true) client_SetConVar("viewmodel_offset_z", zO, true) client_SetConVar("viewmodel_fov", fO, true) end end cb_Register("Draw", VM_E)
  174. function speclistfix(E) if not gui_GetValue("msc_showspec") or E:GetName() ~= "round_prestart" then return end client_exec("cl_fullupdate", true) end cb_Register("FireGameEvent", speclistfix)
  175. function Disable_stuff(e) if e:GetName() == 'round_start' then client_SetConVar("mat_postprocess_enable", DPP:GetValue() and 0 or 1, true) client_SetConVar("mat_fullbright", fBright:GetValue() and 1 or 0, true) local dis_fog = disable_fog:GetValue() and 0 or 1 client_SetConVar('fog_enable', dis_fog, true) client_SetConVar('fog_enableskybox', dis_fog, true) client_SetConVar('fog_enable_water_fog', dis_fog, true) client_SetConVar('fog_override', disable_fog:GetValue() and 1 or 0, true) local dis_shadow = disable_shadows:GetValue() and 0 or 1 client_SetConVar('cl_csm_static_prop_shadows', dis_shadow, true) client_SetConVar('cl_csm_shadows', dis_shadow, true) client_SetConVar('cl_csm_world_shadows', dis_shadow, true) client_SetConVar('cl_foot_contact_shadows', dis_shadow, true) client_SetConVar('cl_csm_viewmodel_shadows', dis_shadow, true) client_SetConVar('cl_csm_rope_shadows', dis_shadow, true) client_SetConVar('cl_csm_sprite_shadows', dis_shadow, true) end end cb_Register("FireGameEvent", Disable_stuff)
  176. function flashAlpha() if GetLocalPlayer() == nil then return end GetLocalPlayer():SetProp('m_flFlashMaxAlpha', flash_alpha_enable:GetValue() and flash_alpha:GetValue() or 255) end cb_Register('Draw', flashAlpha)
  177. function flashChecking() if GetLocalPlayer() == nil or not flashCheck:GetValue() then return end gui_SetValue('lbot_active', GetLocalPlayer():GetPropFloat('m_flFlashDuration') > 0 and 0 or 1) end cb_Register('Draw', flashChecking)
  178. function engineradar() for i, player in pairs(entities_FindByClass("CCSPlayer")) do player:SetProp("m_bSpotted", ERadar:GetValue() and 1 or 0) end end cb_Register("Draw", engineradar)
  179. function Disable_FakeAAGhost(UserCMD) if gui_GetValue("vis_fakeghost_client") ~= 0 then fake_ghost_client = gui_GetValue("vis_fakeghost_client") end if gui_GetValue("vis_fakeghost_server") ~= 0 then fake_ghost_server = gui_GetValue("vis_fakeghost_server") end if not fakeangleghost_air:GetValue() then return end if GetLocalPlayer():GetProp("m_fFlags") == 256 or GetLocalPlayer():GetProp("m_fFlags") == 262 then gui_SetValue("vis_fakeghost_client", 0) gui_SetValue("vis_fakeghost_server", 0) else if not FakeAAGhost2_round_end then gui_SetValue("vis_fakeghost_client", fake_ghost_client) gui_SetValue("vis_fakeghost_server", fake_ghost_server) end end end cb_Register("CreateMove", Disable_FakeAAGhost)
  180. function Disable_FakeAAGhost2(e) if not fakeangleghost_freezeperiod:GetValue() then return end if e:GetName() == "round_end" then gui_SetValue("vis_fakeghost_client", 0) gui_SetValue("vis_fakeghost_server", 0) FakeAAGhost2_round_end = true end if e:GetName() == "round_freeze_end" then gui_SetValue("vis_fakeghost_client", fake_ghost_client) gui_SetValue("vis_fakeghost_server", fake_ghost_server) FakeAAGhost2_round_end = false end end cb_Register("FireGameEvent", Disable_FakeAAGhost2)
  181. function ghostview() if GetLocalPlayer() == nil then return end if ghost_view:GetValue() then ghost = 1 else ghost = 0 end if GetLocalPlayer():GetProp('m_bIsPlayerGhost') ~= ghost then GetLocalPlayer():SetProp('m_bIsPlayerGhost', ghost) end end cb_Register("Draw", 'ghost view', ghostview)
  182. function fakeduck(b) if not fake_duck_indicator:GetValue() or GetLocalPlayer() == nil or b:GetEntity() == nil or not b:GetEntity():IsPlayer() or not b:GetEntity():IsAlive() then return end local entity, index = b:GetEntity(), b:GetEntity():GetIndex() local duckamount = entity:GetProp('m_flDuckAmount') local duckspeed = entity:GetProp('m_flDuckSpeed') local on_ground = entity:GetProp('m_fFlags') == 257 or entity:GetProp('m_fFlags') == 259 or entity:GetProp('m_fFlags') == 261 or entity:GetProp('m_fFlags') == 263 if crouchedTicks[index] == nil then crouchedTicks[index] = 0 end if duckspeed == 8 and duckamount > 0.01 and duckamount <= 0.9 and on_ground then if storedTick ~= g_tickcount() then crouchedTicks[index] = crouchedTicks[index] + 1 storedTick = g_tickcount() end if crouchedTicks[index] >= 5 then b:Color(fake_duck_indicator_color:GetValue()) b:AddTextBottom('FD') end else crouchedTicks[index] = 0 end end cb_Register('DrawESP', fakeduck)
  183. function on_knife_righthand() if not K_O_L_H:GetValue() or GetLocalPlayer() == nil then return end local weapon = GetLocalPlayer():GetPropEntity("m_hActiveWeapon") local alive = weapon ~= nil and GetLocalPlayer():IsAlive() local _val = alive and weapon:GetClass() == "CKnife" local command = string_format('cl_righthand %i', _val and 0 or 1) client_exec(command, true) end callbacks.Register("Draw", on_knife_righthand)
  184. function fix_bombplant(cmd) if not fixbombplant:GetValue() or not GetLocalPlayer():IsAlive() then return end local in_attack = cmd:GetButtons(1 << 0) local in_use = cmd:GetButtons(1 << 5) if not in_use or not in_attack then return end local weapon = GetLocalPlayer():GetPropEntity('m_hActiveWeapon') if weapon == nil then return end local in_zone = weapon:GetClass() == 'CC4' and GetLocalPlayer():GetPropInt('m_bInBombZone') == 1 if in_zone then cmd:SetButtons((1 << 0))cmd:SetButtons((1 << 5)) end end cb_Register('CreateMove', fix_bombplant)
  185. function scopefov() if not s_fovfix:GetValue() or GetLocalPlayer() == nil then return end local is_scoped = GetLocalPlayer():GetProp("m_bIsScoped") == 1 or GetLocalPlayer():GetProp("m_bIsScoped") == 257 if is_scoped then gui_SetValue("vis_view_fov", 0) gui_SetValue("vis_view_model_fov", 0) set_fov = true else if not set_fov then new_fov_val = gui_GetValue("vis_view_fov") new_vmfov_val = gui_GetValue("vis_view_model_fov") else gui_SetValue("vis_view_fov", new_fov_val) gui_SetValue("vis_view_model_fov", new_vmfov_val) set_fov = false end end end cb_Register("Draw", scopefov)
  186. function zeuslegit() if not zeusbot:GetValue() or GetLocalPlayer() == nil then return end local weapon = GetLocalPlayer():GetPropEntity("m_hActiveWeapon") local alive = weapon ~= nil and GetLocalPlayer():IsAlive() local ready = alive and weapon:GetClass() == "CWeaponTaser" if ready then gui_SetValue("lbot_trg_enable", 1) gui_SetValue("lbot_trg_autofire", 1) gui_SetValue("lbot_trg_hitchance", gui_GetValue("rbot_taser_hitchance")) gui_SetValue("lbot_trg_mode", 0) set_values = true else if not set_values then trige, trigaf, trighc, trigm = gui_GetValue("lbot_trg_enable"), gui_GetValue("lbot_trg_autofire"), gui_GetValue("lbot_trg_hitchance"), gui_GetValue("lbot_trg_mode") else gui_SetValue("lbot_trg_enable", trige) gui_SetValue("lbot_trg_autofire", trigaf) gui_SetValue("lbot_trg_hitchance", trighc) gui_SetValue("lbot_trg_mode", trigm) end end end cb_Register("Draw", zeuslegit)
  187. function model_skin_stuff(cmd) if GetLocalPlayer() == nil or skinComboBox:GetValue() == 0 then return end local val = tonumber(skin_colors[skinComboBox:GetValue()]) if client_GetConVar('r_skin') ~= val then client_SetConVar('r_skin', val, true) end end cb_Register("CreateMove", model_skin_stuff)
  188.  
  189. ------------------- Working Stattrak
  190. function StatTrak(e) if not Working_Stattrak:GetValue() or not gui_GetValue("skin_active") then return end if e:GetName() == "player_death" and PlayerIndexByUserID(e:GetInt("attacker")) == LocalPlayerIndex() and PlayerIndexByUserID(e:GetInt("userid")) ~= LocalPlayerIndex() and is_enemy(PlayerIndexByUserID(e:GetInt("userid"))) then if e:GetString("weapon") ~= "inferno" and e:GetString("weapon") ~= "hegrenade" and e:GetString("weapon") ~= "smokegrenade" and e:GetString("weapon") ~= "flashbang" and e:GetString("weapon") ~= "decoy" and e:GetString("weapon") ~= "knife" and e:GetString("weapon") ~= "knife_t" then local wep = string_format("skin_%s_stattrak", e:GetString("weapon")) if tonumber(gui_GetValue(wep)) > 0 then gui_SetValue(wep, math_floor(gui_GetValue(wep)) + 1) end end end if e:GetName() == "round_prestart" then client_exec("cl_fullupdate", true) end end cb_Register("FireGameEvent", StatTrak)
  191.  
  192. -------------------- Sniper Crosshair
  193. function ifCrosshair()
  194. if GetLocalPlayer() == nil or ComboCrosshair:GetValue() == 0 then return end local Weapon = GetLocalPlayer():GetPropEntity("m_hActiveWeapon") local Scoped = GetLocalPlayer():GetProp("m_bIsScoped") == 1 or GetLocalPlayer():GetProp("m_bIsScoped") == 257 if Weapon == nil then return end local cWep = Weapon:GetClass() local drawCrosshair = false
  195. if cWep == "CWeaponAWP" or cWep == "CWeaponSSG08" or cWep == "CWeaponSCAR20" or cWep == "CWeaponG3SG1" then drawCrosshair = true else drawCrosshair = false end local screenCenterX, screenY = draw_GetScreenSize() local scX, scY = screenCenterX / 2, screenY / 2
  196. if drawCrosshair and ComboCrosshair:GetValue() == 1 then gui_SetValue("esp_crosshair", false) if Scoped then client_SetConVar("weapon_debug_spread_show", 0, true) else client_SetConVar("weapon_debug_spread_show", 3, true) end
  197. elseif drawCrosshair and ComboCrosshair:GetValue() == 2 then gui_SetValue("esp_crosshair", false) client_SetConVar("weapon_debug_spread_show", 3, true)
  198. elseif drawCrosshair and ComboCrosshair:GetValue() == 3 then if Scoped then gui_SetValue("esp_crosshair", false) else client_SetConVar("weapon_debug_spread_show", 0, true) gui_SetValue("esp_crosshair", true) end
  199. elseif not drawCrosshair and ComboCrosshair:GetValue() == 3 then gui_SetValue("esp_crosshair", false)
  200. elseif drawCrosshair and ComboCrosshair:GetValue() == 4 then client_SetConVar("weapon_debug_spread_show", 0, true) gui_SetValue("esp_crosshair", false) draw_Color(255,255,255,255) draw_Line(scX, scY - 8, scX, scY + 8) --[[ line down ]] draw_Line(scX - 8, scY, scX + 8, scY) --[[ line across ]] end end
  201. cb_Register("Draw", ifCrosshair)
  202.  
  203. -------------------- HitLog
  204. local hit_logs, hitgroup_names = {}, {"head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg"}
  205. function hitlog(e)
  206. if not HitLog:GetValue() or e:GetName() ~= "player_hurt" or (PlayerIndexByUserID(e:GetInt("userid")) == LocalPlayerIndex() or PlayerIndexByUserID(e:GetInt("attacker")) ~= LocalPlayerIndex()) then return end
  207. local hit_logs_n = #hit_logs local log = string_format("Hit %s in the %s for %s damage (%s health remaining)", PlayerNameByUserID(e:GetInt("userid")), hitgroup_names[e:GetInt("hitgroup")] or "body", e:GetString("dmg_health"), e:GetString("health"))
  208. hit_logs[hit_logs_n + 1] = {g_curtime(), log} end
  209. local ScreenX, ScreenY = 8, 3
  210. function draw_hitlog()
  211. if not HitLog:GetValue() or GetLocalPlayer() == nil then return end local ScreenX,ScreenY = ScreenX,ScreenY
  212. for k, v in pairs(hit_logs) do local a = (v[1] - g_curtime() + 12) / 12 if 255*a > 67.5 then draw_SetFont(F4) local tW, tH = draw_GetTextSize(v[2]) draw_Color(255, 255, 255, 255*a) draw_TextShadow(ScreenX, ScreenY, v[2]) ScreenY = ScreenY + tH else hit_logs[k] = nil end end end
  213. cb_Register("Draw", draw_hitlog) cb_Register("FireGameEvent", hitlog)
  214.  
  215. -------------------- Bomb Timer & defuse timer & Bomb Damage
  216. local lerp_pos = function(x1, y1, z1, x2, y2, z2, percentage) local x = (x2 - x1) * percentage + x1 local y = (y2 - y1) * percentage + y1 local z = (z2 - z1) * percentage + z1 return x, y, z end
  217. local get_site_name = function(site) local a_x, a_y, a_z = GetPlayerResources():GetProp("m_bombsiteCenterA") local b_x, b_y, b_z = GetPlayerResources():GetProp("m_bombsiteCenterB") local site_x1, site_y1, site_z1 = site:GetMins() local site_x2, site_y2, site_z2 = site:GetMaxs() local site_x, site_y, site_z = lerp_pos(site_x1, site_y1, site_z1, site_x2, site_y2, site_z2, 0.5) local distance_a, distance_b = vector_Distance(site_x, site_y, site_z, a_x, a_y, a_z), vector_Distance(site_x, site_y, site_z, b_x, b_y, b_z) return distance_b > distance_a and "A" or "B" end
  218. function bombEvents(e)
  219. if not BombTimer:GetValue() or (e:GetName() ~= "bomb_beginplant" and e:GetName() ~= "bomb_abortplant" and e:GetName() ~= "bomb_planted" and e:GetName() ~= "bomb_begindefuse" and e:GetName() ~= "bomb_abortdefuse" and e:GetName() ~= "bomb_defused" and e:GetName() ~= 'bomb_exploded' and e:GetName() ~= "round_officially_ended" and e:GetName() ~= "round_prestart") then return end
  220. if e:GetName() == "bomb_beginplant" then planter = PlayerNameByUserID(e:GetInt("userid")) plantPercent = 0 plantingStarted = g_curtime() plantingSite = get_site_name(entities_GetByIndex(e:GetInt("site"))) drawPlant = true ScreenX,ScreenY = 20,60 end
  221. if e:GetName() == "bomb_abortplant" then drawPlant = false ScreenX,ScreenY = 8,3 end
  222. if e:GetName() == "bomb_planted" then drawPlant = false plantedPercent = 0 plantedAt = g_curtime() drawBombPlanted = true ScreenX,ScreenY = 20,60 end
  223. if e:GetName() == "bomb_begindefuse" then defuser = PlayerNameByUserID(e:GetInt("userid")) defusePercent = 0 defuseStarted = g_curtime() drawDefuse = true ScreenX,ScreenY = 20,90 end
  224. if e:GetName() == "bomb_abortdefuse" then drawDefuse = false ScreenX,ScreenY = 20,60 end
  225. if e:GetName() == "round_prestart" or e:GetName() == 'bomb_exploded' or e:GetName() == "bomb_defused" or e:GetName() == "round_officially_ended" then drawBombPlanted, drawDefuse, drawPlant = false, false, false ScreenX,ScreenY = 8,3 end end
  226. function drawBombTimers()
  227. if not BombTimer:GetValue() then return end local screenX, screenY = draw_GetScreenSize()
  228. if drawPlant then local plantTime = string_format("%s - %0.1fs", planter, plantingStarted - g_curtime() + 3.125) local plantingInfo = string_format("%s - Planting", plantingSite) local plantPercent = (g_curtime() - plantingStarted) / 3.125 draw_SetFont(F1) local tW, tH = draw_GetTextSize(plantingInfo) draw_Color(124, 195, 13, 255) draw_Text(20, 0, plantingInfo) draw_Color(255, 255, 255, 255) draw_Text(20, tH, plantTime) if plantPercent < 1 and plantPercent > 0 then local plantingBar = (1 - plantPercent) * screenY draw_Color(13, 13, 13, 70) draw_FilledRect(0, 0, 16, screenY) draw_Color(0, 150, 0, 255) draw_FilledRect(1, plantingBar, 15, screenY+plantingBar) end end
  229. if drawBombPlanted and entities_FindByClass("CPlantedC4")[1] ~= nil then local plantedBomb = entities_FindByClass("CPlantedC4") for i=1, #plantedBomb do bLength = plantedBomb[i]:GetPropFloat("m_flTimerLength") dLength = plantedBomb[i]:GetPropFloat("m_flDefuseLength") bSite = plantedBomb[i]:GetPropInt("m_nBombSite") == 0 and "A" or "B" end local plantedInfo = string_format("%s - %0.1fs", bSite, (plantedAt - g_curtime()) + bLength) local plantedPercent = (g_curtime() - plantedAt) / bLength if plantedAt - g_curtime() + bLength > 0 then draw_SetFont(F1) pTW, pTH = draw_GetTextSize(plantedInfo)
  230. if GetLocalPlayer():GetTeamNumber() == 3 and not GetLocalPlayer():GetPropBool("m_bHasDefuser") and (plantedAt - g_curtime()) + bLength < 10.1 or GetLocalPlayer():GetPropBool("m_bHasDefuser") and (plantedAt - g_curtime()) + bLength < 5.1 then r, g, b, a = 255,13,13,255 else r, g, b, a = 124, 195, 13, 255 end draw_Color(r, g, b, a) draw_Text(20, 0, plantedInfo) if plantedPercent < 1 and plantedPercent > 0 then local plantedBar = (1 - plantedPercent) * screenY draw_Color(13, 13, 13, 70) draw_FilledRect(0, 0, 16, screenY) draw_Color(0, 150, 0, 255) draw_FilledRect(1, screenY-plantedBar, 15, screenY) end end end
  231. if drawDefuse and entities_FindByClass("CPlantedC4")[1] ~= nil then local plantedBomb = entities_FindByClass("CPlantedC4") for i=1, #plantedBomb do dLength = plantedBomb[i]:GetPropFloat("m_flDefuseLength") end local defuseInfo = string_format("%s - %0.1fs", defuser, (defuseStarted - g_curtime()) + dLength) local defusePercent = (g_curtime() - defuseStarted) / dLength if (defuseStarted - g_curtime()) + dLength > 0 then draw_SetFont(F1) draw_Color(255, 255, 255, 255) draw_Text(20, pTH+pTH, defuseInfo) if defusePercent < 1 and defusePercent > 0 then local defuseBar = (1 - defusePercent) * screenY draw_Color(13, 13, 13, 70) draw_FilledRect(0, 0, 16, screenY) draw_Color(0, 0, 150, 255) draw_FilledRect(1, screenY-defuseBar, 15, screenY) end end end end
  232. function BombDamageIndicator()
  233. if not Bomb_Damage:GetValue() or entities_FindByClass("CPlantedC4")[1] == nil then return end local Bomb = entities_FindByClass("CPlantedC4")[1]
  234. if Bomb:GetPropBool("m_bBombTicking") and g_curtime() - 1 < Bomb:GetPropFloat("m_flC4Blow") and not Bomb:GetPropBool("m_bBombDefused") then local bDamage = DamagefromBomb(Bomb, GetLocalPlayer()) local bDmgInfo = string_format("-%i", bDamage)
  235. if bDamage >= GetLocalPlayer():GetHealth() then draw_SetFont(F1) draw_Color(255, 0, 0, 255) draw_Text(20, pTH, "FATAL")
  236. elseif bDamage < GetLocalPlayer():GetHealth() and bDamage - 1 > 0 then draw_SetFont(F1) draw_Color(255,255,255,255) draw_Text(20, pTH, bDmgInfo) end end end
  237. function DamagefromBomb(Bomb, Player)
  238. if not Bomb_Damage:GetValue() then return end local Bxyz = {Bomb:GetAbsOrigin()} local Pxyz = {Player:GetAbsOrigin()} local ArmorValue = Player:GetPropInt("m_ArmorValue") local C4Distance = math_sqrt((Bxyz[1] - Pxyz[1]) ^2 + (Bxyz[2] - Pxyz[2]) ^2 + (Bxyz[3] - Pxyz[3]) ^2) local d = ((C4Distance-75.68) / 789.2) local f1Damage = 450.7*math_exp(-d * d) if ArmorValue > 0 then local f1New = f1Damage * 0.5 local f1Armor = (f1Damage - f1New) * 0.5 if f1Armor > ArmorValue then f1Armor = ArmorValue * 2 f1New = f1Damage - f1Armor end f1Damage = f1New end
  239. return math_ceil(f1Damage + 0.5) end
  240. cb_Register("Draw", drawBombTimers) cb_Register("Draw", BombDamageIndicator) cb_Register("FireGameEvent", bombEvents)
  241.  
  242. -------------------- Chat Spams
  243. local c_spammedlast = g_realtime() + CC_Spam_spd:GetValue()/100
  244. function custom_chat()
  245. if CC_Spams:GetValue() == 0 or GetLocalPlayer() == nil then return end
  246. if CC_Spams:GetValue() == 1 and g_realtime() >= c_spammedlast then client_ChatSay(ChatSpam1:GetValue()) c_spammedlast = g_realtime() + CC_Spam_spd:GetValue()/100
  247. elseif CC_Spams:GetValue() == 2 and g_realtime() >= c_spammedlast then client_ChatSay(ChatSpam2:GetValue()) c_spammedlast = g_realtime() + CC_Spam_spd:GetValue()/100
  248. elseif CC_Spams:GetValue() == 3 and g_realtime() >= c_spammedlast then client_ChatSay("﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽ ﷽﷽﷽\n") c_spammedlast = g_realtime() + CC_Spam_spd:GetValue()/100 end end
  249. cb_Register("Draw", custom_chat)
  250.  
  251. -------------------- Aspect Ratio Changer
  252. local aspect_ratio_table = {}
  253. local gcd = function(m, n) while m ~= 0 do m, n = math_fmod(n, m), m end return n end
  254. local set_aspect_ratio = function(aspect_ratio_multiplier) local screen_width, screen_height = draw_GetScreenSize() local aspectratio_value = (screen_width*aspect_ratio_multiplier)/screen_height if aspect_ratio_multiplier == 1 then aspectratio_value = 0 end client_SetConVar( "r_aspectratio", tonumber(aspectratio_value), true) end
  255. local function on_aspect_ratio_changed() if not aspect_ratio_check:GetValue() then return end local screen_width, screen_height = draw_GetScreenSize() for i=1, 200 do local i2=i*0.01 i2 = 2 - i2 local divisor = gcd(screen_width*i2, screen_height) if screen_width*i2/divisor < 100 or i2 == 1 then aspect_ratio_table[i] = screen_width*i2/divisor .. ":" .. screen_height/divisor end end local aspect_ratio = aspect_ratio_reference:GetValue()*0.01 aspect_ratio = 2 - aspect_ratio set_aspect_ratio(aspect_ratio) end
  256. cb_Register("Draw", on_aspect_ratio_changed)
  257.  
  258. -------------------- Esp on dead
  259. local set_tables = function() visibility = gui_GetValue('esp_visibility_enemy') for var, val in pairs(esp_elements) do local aw_var = string_format('esp_enemy_%s', var) local aw_val = gui_GetValue(aw_var) local lua_val = val:GetValue() dead_esp[aw_var] = lua_val alive_esp[aw_var] = aw_val end end
  260. local esp_switch = function(from_table, to_table) for var, val in pairs(esp_elements) do local aw_var = string_format('esp_enemy_%s', var) local lua_var = string_format('esp_on_dead_%s', var) gui_SetValue(lua_var, from_table[aw_var]) end for var, val in pairs(to_table) do gui_SetValue(var, val) end end
  261. function esp_on_dead_draw(cmd) if not ESP_On_Dead_enabled:GetValue() then return end if GetLocalPlayer() == nil or not GetLocalPlayer():IsAlive() then return end set_tables() end
  262. function esp_on_dead_events(e) local event_name = e:GetName() local no_esp = not gui_GetValue('esp_filter_enemy') or not gui_GetValue('esp_active')
  263. if not ESP_On_Dead_enabled:GetValue() or no_esp or (event_name ~= 'player_death' and event_name ~= 'player_spawn') or PlayerIndexByUserID(e:GetInt('userid')) ~= LocalPlayerIndex() then return end if loaded then
  264. if event_name == 'player_death' then gui_SetValue('esp_visibility_enemy', 0) esp_switch(alive_esp, dead_esp) end
  265. if event_name == 'player_spawn' then gui_SetValue('esp_visibility_enemy', visibility) esp_switch(dead_esp, alive_esp) end end if not loaded then set_tables() loaded = true end end
  266. cb_Register('CreateMove', esp_on_dead_draw) cb_Register('FireGameEvent', esp_on_dead_events)
  267.  
  268. -------------------- Enemy & Team Tracers
  269. function Tracers()
  270. if GetLocalPlayer() == nil or (not tracersEnemy:GetValue() and not tracersTeam:GetValue()) then return end
  271. local sX, sY = draw_GetScreenSize() local players = entities_FindByClass("CCSPlayer") for i = 1, #players do local player = players[i] local pX, pY, pZ = client_WorldToScreen(player:GetAbsOrigin()) local playerindex = player:GetIndex()
  272. if tracersEnemy:GetValue() then if is_enemy(playerindex) and player:IsAlive() and pX ~= nil and pY ~= nil then draw_Color(255,0,0,255) draw_Line(sX/2, sY, pX, pY) end end
  273. if tracersTeam:GetValue() then if not is_enemy(playerindex) and player:IsAlive() and pX ~= nil and pY ~= nil and playerindex ~= LocalPlayerIndex() then draw_Color(0,0,255,255) draw_Line(sX/2, sY, pX, pY) end end end end
  274. cb_Register("Draw", Tracers)
  275.  
  276. -------------------- Enemy & Team & Other Distance
  277. function Distance(builder)
  278. if not enemy_distance:GetValue() and not team_distance:GetValue() and not other_distance:GetValue() then return end
  279. local ent = builder:GetEntity() local dist = distance3D({GetLocalPlayer():GetAbsOrigin()}, {ent:GetAbsOrigin()}).ft local playerindex = ent:GetIndex()
  280. if enemy_distance:GetValue() and ent:IsAlive() and ent:IsPlayer() and is_enemy(playerindex) then builder:Color(255, 255, 255, 255) builder:AddTextBottom(dist) end
  281. if team_distance:GetValue() and ent:IsAlive() and ent:IsPlayer() and not is_enemy(playerindex) and ent:GetIndex() ~= LocalPlayerIndex() then builder:Color(255, 255, 255, 255) builder:AddTextBottom(dist) end
  282. if other_distance:GetValue() and not ent:IsPlayer() then builder:Color(255, 255, 255, 255) builder:AddTextBottom(dist) end end
  283. cb_Register("DrawESP", "Distance ESP", Distance)
  284.  
  285. -------------------- Spectator list
  286. function SpecList()
  287. if not SpectatorList:GetValue() or GetLocalPlayer() == nil then return end local specX, specY = draw_GetScreenSize() local inbetween = 5 local players = entities_FindByClass("CCSPlayer") for i = 1, #players do local player = players[i] local playername = player:GetName() local playerindex = player:GetIndex() local bot = GetPlayerResources():GetPropInt("m_iPing", playerindex) == 0
  288. if not player:IsAlive() and not bot and player:GetPropEntity("m_hObserverTarget") ~= nil and playername ~= "GOTV" and playername ~= GetLocalPlayer():GetName() then
  289. local SpecTargetIndex = player:GetPropEntity("m_hObserverTarget"):GetIndex()
  290. if GetLocalPlayer():IsAlive() then if SpecTargetIndex == LocalPlayerIndex() then draw_SetFont(F2) local tW, tH = draw_GetTextSize(playername) draw_Color(255,255,255,255) draw_TextShadow( specX - 5 - tW, inbetween, playername) inbetween = inbetween + tH + 5 end
  291. elseif not GetLocalPlayer():IsAlive() then if GetLocalPlayer():GetPropEntity("m_hObserverTarget") ~= nil then local imSpeccing = GetLocalPlayer():GetPropEntity("m_hObserverTarget"):GetIndex()
  292. if SpecTargetIndex == imSpeccing then draw_SetFont(F2) local tW, tH = draw_GetTextSize(playername) draw_Color(255,255,255,255) draw_TextShadow(specX - 5 - tW, inbetween, playername) inbetween = inbetween + tH + 5 end end end end end end
  293. cb_Register("Draw", SpecList)
  294.  
  295. -------------------- Recoil Crosshair
  296. function RCC()
  297. if not RecoilCrosshair:GetValue() or GetLocalPlayer() == nil or not GetLocalPlayer():IsAlive() then return end local screenX, screenY = draw_GetScreenSize() local x = screenX/2 local y = screenY/2
  298. local recoil_scale = client_GetConVar("weapon_recoil_scale") local fov = gui_GetValue("vis_view_fov") if fov == 0 then fov = 90 end local weapon = GetLocalPlayer():GetPropEntity("m_hActiveWeapon") if weapon == nil then return end local weapon_name = weapon:GetClass()
  299. if weapon_name == "CWeaponAWP" or weapon_name == "CWeaponSSG08" or weapon:GetProp("m_flRecoilIndex") == 0 or gui_GetValue("rbot_active") and gui_GetValue("rbot_antirecoil") then return end local aim_punch_angle_pitch, aim_punch_angle_yaw = GetLocalPlayer():GetPropVector("localdata", "m_Local", "m_aimPunchAngle")
  300. if -aim_punch_angle_pitch >= 0.07 and -aim_punch_angle_pitch >= 0.07 then if gui_GetValue("vis_norecoil") then x = x - (((screenX/fov)* aim_punch_angle_yaw)*1.2)*(recoil_scale*0.5) y = y + (((screenY/fov)* aim_punch_angle_pitch)*2)*(recoil_scale*0.5) else x = x - (((screenX/fov)* aim_punch_angle_yaw)*0.6)*(recoil_scale*0.5) y = y + ((screenY/fov)* aim_punch_angle_pitch)*(recoil_scale*0.5) end
  301. draw_Color(RecoilCrosshair_color:GetValue()) draw_OutlinedCircle(x, y, 3) end end
  302. cb_Register("Draw", RCC)
  303.  
  304. -------------------- Name Steal fix
  305. local namesteal = {}
  306. function NameStealFix(e)
  307. if gui_GetValue("msc_namestealer_enable") ~= 0 then namesteal[1] = gui_GetValue("msc_namestealer_enable") end
  308. if not StealNameFix:GetValue() or GetLocalPlayer() == nil or GetLocalPlayer():GetTeamNumber() == 1 then return end
  309. if e:GetName() == "round_end" then gui_SetValue("msc_namestealer_enable", 0) end
  310. if e:GetName() == "round_start" then gui_SetValue("msc_namestealer_enable", namesteal[1]) end end cb_Register("FireGameEvent", NameStealFix)
  311.  
  312. -------------------- Show Team Damage
  313. local team_stuff = {0, 0}
  314. function KillsAndDamage(e)
  315. if PlayerIndexByUserID(e:GetInt("attacker")) == LocalPlayerIndex() and PlayerIndexByUserID(e:GetInt("userid")) ~= LocalPlayerIndex() and not is_enemy(PlayerIndexByUserID(e:GetInt("userid"))) then
  316. if e:GetName() == "player_hurt" then team_stuff[1] = team_stuff[1] + e:GetInt("dmg_health") end if e:GetName() == "player_death" then team_stuff[2] = team_stuff[2] + 1 end end
  317. if e:GetName() == "player_connect_full" then if PlayerIndexByUserID(e:GetInt("userid")) == LocalPlayerIndex() then team_stuff = {0, 0} end end end
  318. function DrawsTKsDMG() if not TeamDamageShow:GetValue() or GetLocalPlayer() == nil then return end local X, Y = draw_GetScreenSize() if team_stuff[1] >= 250 or team_stuff[2] >= 2 then r,g,b,a = 255,50,50,255 else r,g,b,a = 255,255,255,255 end draw_Color(r,g,b,a) draw_SetFont(F4) draw_TextShadow(5, Y/2-40, "Damage Done: ".. team_stuff[1]) draw_TextShadow(5, Y/2-30, "Teammates Killed: ".. team_stuff[2]) end
  319. cb_Register("Draw", DrawsTKsDMG) cb_Register("FireGameEvent", KillsAndDamage)
  320.  
  321. -------------------- ghetto Bullet impacts
  322. local bulletimpacts = {}
  323. function bulletimpact(e)
  324. if e:GetName() ~= "bullet_impact" or (not BulletImpacts_Local:GetValue() and not BulletImpacts_Enemy:GetValue() and not BulletImpacts_Team:GetValue()) then return end local x = e:GetFloat("x") local y = e:GetFloat("y") local z = e:GetFloat("z") local player_index = PlayerIndexByUserID(e:GetInt("userid")) local n_bulletimpacts = #bulletimpacts
  325. if BulletImpacts_Local:GetValue() then if player_index == LocalPlayerIndex() then bulletimpacts[n_bulletimpacts + 1] = {g_curtime(), x, y, z, BulletImpacts_color_Local:GetValue()} end end
  326. if BulletImpacts_Enemy:GetValue() then if is_enemy(player_index) then bulletimpacts[n_bulletimpacts + 1] = {g_curtime(), x, y, z, BulletImpacts_color_Enemy:GetValue()} end end
  327. if BulletImpacts_Team:GetValue() then if not is_enemy(player_index) and player_index ~= LocalPlayerIndex() then bulletimpacts[n_bulletimpacts + 1] = {g_curtime(), x, y, z, BulletImpacts_color_Team:GetValue()} end end end
  328. function showimpacts() if GetLocalPlayer() == nil or (not BulletImpacts_Local:GetValue() and not BulletImpacts_Enemy:GetValue() and not BulletImpacts_Team:GetValue()) then return end for k, v in pairs(bulletimpacts) do if g_curtime() - v[1] > BulletImpacts_Time:GetValue() or distance3D({GetLocalPlayer():GetAbsOrigin()}, {v[2], v[3], v[4]}).normal >= 2000 then bulletimpacts[k] = nil else local X, Y = client_WorldToScreen(v[2], v[3], v[4]) if X ~= nil and Y ~= nil then draw_Color(v[5], v[6], v[7], v[8]) draw_RoundedRect(X-3, Y-3, X+3, Y+3) end end end end
  329. cb_Register("Draw", showimpacts) cb_Register("FireGameEvent", bulletimpact)
  330.  
  331. -- Made By MasterPlayz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement