--by pavetr.top/ds -- Оптимизированная Система ( От TheRedGrouning, nasvaykid, Просто:) ) -- Не нужно саморучно менять автора -- Если вы не знакомы с lua, то не советуется изменять серьёзные настройки. -- Данная панель создана для мультиплеера или локального использования -- Версия используемого меню - V10 local fps_blue = Color(255, 255, 255) local fps_xer = Color(159, 121, 238, 240) local fps_xer2 = Color(159, 121, 238, 255) local fps_she = Color(77, 175, 124, 150) local fps_rex = Color(77, 175, 124, 0) local fps_rexb = Color(100, 149, 237, 225) --77,175,124,225 local fps_rex2 = Color(131, 111, 255) local fps_dima = Color(67, 110, 238, 100) if CLIENT then local eyepos = Vector() local eyeangles = Angle() local eyefov = 90 hook.Add("RenderScene", "Eye", function(origin, angles, fov) eyepos = origin eyeangles = angles eyefov = fov end) function EyePos() return eyepos end function EyeAngles() return eyeangles end function EyeFov() return eyefov end hook.Remove("RenderScreenspaceEffects", "RenderColorModify") hook.Remove("RenderScreenspaceEffects", "RenderBloom") hook.Remove("RenderScreenspaceEffects", "RenderToyTown") hook.Remove("RenderScreenspaceEffects", "RenderTexturize") hook.Remove("RenderScreenspaceEffects", "RenderSunbeams") hook.Remove("RenderScreenspaceEffects", "RenderSobel") hook.Remove("RenderScreenspaceEffects", "RenderSharpen") hook.Remove("RenderScreenspaceEffects", "RenderMaterialOverlay") hook.Remove("RenderScreenspaceEffects", "RenderMotionBlur") hook.Remove("RenderScene", "RenderStereoscopy") hook.Remove("RenderScene", "RenderSuperDoF") hook.Remove("GUIMousePressed", "SuperDOFMouseDown") hook.Remove("GUIMouseReleased", "SuperDOFMouseUp") hook.Remove("PreventScreenClicks", "SuperDOFPreventClicks") hook.Remove("PostRender", "RenderFrameBlend") hook.Remove("PreRender", "PreRenderFrameBlend") hook.Remove("Think", "DOFThink") hook.Remove("RenderScreenspaceEffects", "RenderBokeh") hook.Remove("NeedsDepthPass", "NeedsDepthPass_Bokeh") hook.Remove("PostDrawEffects", "RenderWidgets") hook.Remove("PostDrawEffects", "RenderHalos") local function a() surface.CreateFont("ara", { font = "Arial", size = 14, weight = 560, blursize = 0, scanlines = 0, antialias = true }) function re(b, d) RunConsoleCommand(b, d) end; re("r_decals", "5") re("mp_decals", "0") function c(e) chat.AddText(e) end; local tsmp = timer.Simple; function urg(f) gui.OpenURL(f) end; function drb(g, h, i, j, k, l) draw.RoundedBox(g, h, i, j, k, l) end; local m = timer.Simple; m(12, function() end) local n = vgui.Create("DFrame") n:SetPos(ScrW() / 3 - n:GetWide() / 3, ScrH() / 3 - n:GetTall() / 3) n:SetSize(470, 250) n:SetTitle("") n:SetVisible(true) n:SetDraggable(false) n:MakePopup() n:ShowCloseButton(false) n.Paint = function(o, p, h) drb(5, 2, 2, p - 4, h - 4, Color(225, 225, 225, 180)) drb(5, 0, 0, p, h, Color(93, 71, 139, 242)) end; local b = vgui.Create("DButton", n) b:SetText("🔒") b:SetToolTip("*** Лицензия: Предоставлены все права на публикацию в формате других языков ***\n *** Версия: Standart Community ***") b:SetTextColor(fps_blue) b:SetPos(389, 5) b:SetSize(10, 10) b.Paint = function(d, c, e) drb(5, 0, 0, c, e, Color(0, 205, 102, 240)) end; local b = vgui.Create("DButton", n) b:SetText("Инструменты") b:SetTextColor(fps_blue) b:SetPos(6, 20) b:SetSize(95, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() n:SetVisible(false) local q = vgui.Create("DFrame") q:SetPos(ScrW() / 3 - q:GetWide() / 3, ScrH() / 3 - q:GetTall() / 3) q:SetSize(490, 237) q:SetTitle(" ") q:SetVisible(true) q:ShowCloseButton(false) q:SetDraggable(false) q:MakePopup() q.Paint = function(o, p, h) drb(5, 2, 2, p - 4, h - 4, Color(225, 225, 225, 180)) drb(5, 0, 0, p, h, Color(93, 71, 139, 240)) end; local sky1 = vgui.Create("DCheckBoxLabel", q) sky1:SetConVar("r_3dsky") sky1:SetText("SKYBOX") sky1:SetToolTip("НЕ ДОЛЖНО СТОЯТЬ ГАЛОЧКИ\n- Отключает отображение скайбокса за границами карты") sky1:SetPos(352, 110) sky1:SizeToContents() local rende1 = vgui.Create("DCheckBoxLabel", q) rende1:SetConVar("r_renderoverlayfragment") rende1:SetText("Постеры") rende1:SetToolTip("- НЕ ДОЛЖНО СТОЯТЬ ГАЛОЧКИ\n- Отключает мусорные постеры по всей карте, не касается граффити") rende1:SetPos(418, 110) rende1:SizeToContents() but = vgui.Create("DButton", q) but:SetText("Кэширование") but:SetToolTip("Это высокоскоростной уровень хранения, на котором требуемый набор данных, как правило, временного характера.\nДоступ к данным на этом уровне осуществляется значительно быстрее, чем к основному месту их хранения.\nС помощью кэширования становится возможным эффективное повторное использование ранее полученных или вычисленных данных.") but:SetTextColor(fps_blue) but:SetPos(10, 5) but:SetSize(130, 20) but.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but:GetWide(), but:GetTall()) if but:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but.DoClick = function() but:SetText("Кэширование - ВКЛ") re("mat_bufferprimitives", "1") end; but.DoRightClick = function() but:SetText("Кэширование") re("mat_bufferprimitives", "0") end; but2 = vgui.Create("DButton", q) but2:SetText("[&] Тестовые Функции") but2:SetTextColor(fps_blue) but2:SetPos(10, 33) but2:SetSize(130, 20) but2.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but2:GetWide(), but2:GetTall()) if but2:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but2.DoClick = function() but2:SetText("Активировано") re("r_shadowmaxrendered", "0") re("mat_wateroverlaysize", "1") re("r_drawbatchdecals", "0") re("r_bloomtintexponent", "0") re("r_bloomtintb", "0") re("r_bloomtintr", "0") re("r_bloomtintg", "0") re("r_RainSimulate", "0") re("R_maxnewsamples", "2") re("G_ragdoll_lvfadespeed", "1") re("G_ragdoll_fadespeed", "1") re("Ragdoll_sleepaftertime", "0") re("r_renderoverlayfragment", "0") re("r_staticprop_lod", "3") re("rope_averagelight", "0") re("gmod_mcore_test", "1") re("fog_enableskybox", "0") re("fog_enable_water_fog", "0") re("fog_enable", "0") end; but3 = vgui.Create("DButton", q) but3:SetText("Объекты карты") but3:SetTextColor(fps_blue) but3:SetPos(10, 61) but3:SetSize(130, 20) but3.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but3:GetWide(), but3:GetTall()) if but3:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but3.DoClick = function() but3:SetText("Активировано") re("props_break_max_pieces", "0") re("cl_drawspawneffect", "0") re("props_break_max_pieces_perframe", "0") re("cl_ejectbrass", "0") re("cl_phys_props_enable", "0") re("r_decalstaticprops", "0") re("r_drawmodeldecals", "0") re("r_DrawRain", "0") re("cl_ejectbrass", "0") re("r_maxmodeldecal", "0") end; but3.DoRightClick = function() but3:SetText("Объекты карты") re("props_break_max_pieces", "-1") re("cl_drawspawneffect", "1") re("props_break_max_pieces_perframe", "1") re("cl_ejectbrass", "1") re("cl_phys_props_enable", "1") re("r_decalstaticprops", "1") re("r_drawmodeldecals", "1") re("r_DrawRain", "1") re("cl_ejectbrass", "1") re("r_maxmodeldecal", "1") end; but4 = vgui.Create("DButton", q) but4:SetText("Игровые отражения") but4:SetTextColor(fps_blue) but4:SetPos(10, 117) but4:SetSize(130, 20) but4.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but4:GetWide(), but4:GetTall()) if but4:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but4.DoClick = function() but4:SetText("И.Отражения - ВКЛ") re("mat_specular", "0") end; but4.DoRightClick = function() but4:SetText("Игровые отражения") re("mat_specular", "1") end; but5 = vgui.Create("DButton", q) but5:SetText("Оптимизация стрельбы") but5:SetTextColor(fps_blue) but5:SetPos(10, 89) but5:SetSize(130, 20) but5.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but5:GetWide(), but5:GetTall()) if but5:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but5.DoClick = function() but5:SetText("Активировано") re("r_novis", "0") re("r_drawparticles", "0") re("cl_wpn_sway_interp", "0") re("M9KGasEffect", "0") re("r_decals", "0") re("mp_decals", "0") re("cl_tfa_fx_impact_enabled", "0") re("cl_tfa_fx_gasblur", "0") re("cl_tfa_fx_muzzlesmoke", "0") end; but5.DoRightClick = function() but5:SetText("Оптимизация стрельбы") re("r_novis", "1") re("M9KGasEffect", "1") re("cl_wpn_sway_interp", "0.1") re("r_drawparticles", "1") re("r_decals", "10") re("mp_decals", "10") end; gut = vgui.Create("DButton", q) gut:SetText("Сглаживание") gut:SetTextColor(fps_blue) gut:SetPos(150, 5) gut:SetSize(130, 20) gut.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, gut:GetWide(), gut:GetTall()) if gut:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end; gut.DoClick = function() chat.AddText("- Сглаживание, способно вызвать маленький подфриз. Но повысит ваш FPS\nАКТИВАЦИЯ: Правая кнопка мыши") end gut.DoRightClick = function() gut:SetText("Сглаживание - ВКЛ") re("mat_antialias", "0") end end; local blark2 = vgui.Create("DButton", q) blark2:SetText("🔒") blark2:SetTextColor(fps_blue) blark2:SetPos(270, 37) blark2:SetSize(10, 10) blark2.Paint = function(d, e, c) drb(5, 0, 0, e, c, Color(159, 121, 238, 240)) end; blark2.DoClick = function() c("* Активирует тестовый игровой режим, возможен вылет для очень-очень слабых ПК. ") end; gut2 = vgui.Create("DButton", q) gut2:SetText("Ассистент") gut2:SetTextColor(fps_blue) gut2:SetPos(150, 33) gut2:SetSize(115, 20) gut2.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, gut2:GetWide(), gut2:GetTall()) if gut2:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; gut2.DoClick = function() gut2:SetText("Ассистент - ВКЛ") re("studio_queue_mode", "1") end; gut3 = vgui.Create("DButton", q) gut3:SetText("Верёвка") gut3:SetTextColor(fps_blue) gut3:SetPos(150, 61) gut3:SetSize(130, 20) gut3.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, gut3:GetWide(), gut3:GetTall()) if gut3:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; gut3.DoClick = function() gut3:SetText("Верёвка - ВКЛ") re("r_drawropes", "0") end; gut3.DoRightClick = function() gut3:SetText("Верёвка") re("r_drawropes", "1") end; gut4 = vgui.Create("DButton", q) gut4:SetText("Отключение крови") gut4:SetTextColor(fps_blue) gut4:SetPos(150, 89) gut4:SetSize(130, 20) gut4.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, gut4:GetWide(), gut4:GetTall()) if gut4:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; gut4.DoClick = function() gut4:SetText("Откл.Крови - ВКЛ") re("violence_hgibs", "0") re("violence_ablood", "0") re("violence_agibs", "0") re("violence_hblood", "0") end; gut4.DoRightClick = function() gut4:SetText("Отключение крови") re("violence_hgibs", "1") re("violence_ablood", "1") re("violence_agibs", "1") re("violence_hblood", "1") end; gutd = vgui.Create("DButton", q) gutd:SetText("Фикс звуков LFS Pack's") gutd:SetTextColor(fps_blue) gutd:SetPos(150, 117) gutd:SetSize(130, 20) gutd.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, gutd:GetWide(), gutd:GetTall()) if gutd:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; gutd.DoClick = function() rende1:SetVisible(false) sky1:SetVisible(false) local kar = vgui.Create("DNumSlider", q) kar:SetPos(250, 100) kar:SetSize(270, 50) kar:SetText("") kar:SetMin(0) kar:SetMax(1) kar:SetDecimals(0) kar:SetConVar("lfs_volume") gutd:SetVisible(false) nutz = vgui.Create("DButton", q) nutz:SetText("Удалить слайдер") nutz:SetTextColor(fps_blue) nutz:SetPos(150, 117) nutz:SetSize(130, 20) nutz.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, nutz:GetWide(), nutz:GetTall()) if nutz:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; nutz.DoClick = function() gutd:SetVisible(true) nutz:SetVisible(false) kar:SetVisible(false) rende1:SetVisible(true) sky1:SetVisible(true) end c("По умолчанию выставлено - 0.5\nВы можете выключить полностью вытянув слайдер на 1\nИли поменять вручную через команду lfs_volume (0.1-1") re("lfs_volume", "0.5") end; ful = vgui.Create("DButton", q) ful:Dock(BOTTOM) ful:SetText("Активировать Всё (кроме Разделов, Тестовые Функции, Сглаживание)") ful:SetTextColor(fps_blue) ful:SetPos(63, 148) ful:SetSize(160, 27) ful.Paint = function(b, d, c) surface.SetDrawColor(fps_rexb) surface.DrawRect(0, 0, ful:GetWide(), ful:GetTall()) if ful:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; ful.DoClick = function() ful:SetText("Вы успешно активировали весь функционал (+)") re("mat_bloomscale", "0") re("mat_bufferprimitives", "1") re("lfs_volume", "0,7") re("r_3dsky", "0") re("studio_queue_mode", "1") re("violence_hgibs", "0") re("violence_ablood", "0") re("violence_agibs", "0") re("violence_hblood", "0") re("gmod_mcore_test", "1") re("mat_queue_mode", "-1") re("props_break_max_pieces", "0") re("props_break_max_pieces_perframe", "0") re("cl_ejectbrass", "0") re("cl_phys_props_enable", "0") re("r_decalstaticprops", "0") re("r_drawmodeldecals", "0") re("r_DrawRain", "0") re("cl_ejectbrass", "0") re("r_maxmodeldecal", "0") re("mat_specular", "0") re("r_drawropes", "0") re("M9KGasEffect", "0") re("r_decals", "0") re("mp_decals", "0") end; local b = vgui.Create("DButton", q) b:SetText("Раздел #1\nТекстурирование +") b:SetTextColor(fps_blue) b:SetPos(6, 160) b:SetSize(110, 40) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() q:SetVisible(false) local r = vgui.Create("DFrame") r:SetPos(ScrW() / 3 - r:GetWide() / 3, ScrH() / 3 - r:GetTall() / 3) r:SetSize(470, 276) r:SetTitle("Панель настройки моделей/текстур") r:SetVisible(true) r:SetDraggable(false) r:ShowCloseButton(false) r:MakePopup() r.Paint = function(o, p, h) drb(5, 2, 2, p - 4, h - 4, Color(225, 225, 225, 180)) drb(5, 0, 0, p, h, Color(93, 71, 139, 240)) end; local a = vgui.Create("DCheckBoxLabel", r) a:SetConVar("r_shadows") a:SetText("Фонарик") a:SetPos(230, 8) a:SizeToContents() local a = vgui.Create("DCheckBoxLabel", r) a:SetConVar("mat_filterlightmaps") a:SetText("Кубики") a:SetPos(310, 8) a:SizeToContents() local b = vgui.Create("DNumSlider", r) b:SetPos(-45, 59) b:SetSize(270, 50) b:SetText(" Текстуры") b:SetMin(-0) b:SetMax(5) b:SetDecimals(0) b:SetConVar("mat_picmip") b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; local b = vgui.Create("DNumSlider", r) b:SetPos(-45, 109) b:SetSize(270, 50) b:SetText(" Модели") b:SetMin(-0) b:SetMax(8) b:SetDecimals(0) b:SetConVar("r_lod") b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; local b = vgui.Create("DNumSlider", r) b:SetPos(-45, 159) b:SetSize(270, 50) b:SetText(" Глаза") b:SetMin(0) b:SetMax(1) b:SetDecimals(0) b:SetConVar("r_eyes") b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; local b = vgui.Create("DModelPanel", r) b:SetSize(200, 150) b:SetPos(232, 58) b:SetModel(LocalPlayer():GetModel()) function b:LayoutEntity(d) return end; local c = b.Entity:GetBonePosition(b.Entity:LookupBone("ValveBiped.Bip01_Head1")) b:SetLookAt(c) b:SetCamPos(c - Vector(-15, 0, 0)) local b = vgui.Create("DButton", r) b:SetText("Пиксели") b:SetTextColor(fps_blue) b:SetPos(5, 220) b:SetSize(80, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("mat_filtertextures", "0") end; b.DoRightClick = function() re("mat_filtertextures", "1") end; local b = vgui.Create("DButton", r) b:SetText("Освещение") b:SetTextColor(fps_blue) b:SetPos(95, 220) b:SetSize(80, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("mat_filterlightmaps", "0") end; b.DoRightClick = function() re("mat_filterlightmaps", "1") end; local b = vgui.Create("DButton", r) b:SetText("Тени") b:SetTextColor(fps_blue) b:SetPos(184, 220) b:SetSize(80, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("r_shadows", "0") chat.AddText("* При включении этой функции, перестаёт работать фонарик. Пропишите r_shadows 1 для возврата") end; b.DoRightClick = function() re("r_shadows", "1") end; local b = vgui.Create("DButton", r) b:SetText("Оптимизация глаз") b:SetTextColor(fps_blue) b:SetPos(273, 220) b:SetSize(104, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("r_eyeglintlodpixels", "1") re("r_eyemove", "1") re("r_eyesize", "1") re("blink_duration", "1") end; b.DoRightClick = function() re("r_eyeglintlodpixels", "0") re("r_eyemove", "0") re("r_eyesize", "0") re("blink_duration", "0") end local b = vgui.Create("DButton", r) b:SetText("Ножницы") b:SetTextColor(fps_blue) b:SetPos(385, 220) b:SetSize(80, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("r_drawentities", "0") end; b.DoRightClick = function() re("r_drawentities", "1") end local b = vgui.Create("DButton", r) b:SetText("Активировать Всё (кроме Пиксели, Ножницы)") b:Dock(BOTTOM) b:SetTextColor(fps_blue) b:SetPos(385, 220) b:SetSize(80, 26) b.Paint = function(d, c, e) surface.SetDrawColor(fps_rexb) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() b:SetText("Вы активировали Всё - кроме (Пиксели, Ножницы)") re("r_eyes", "0") re("r_lod", "2") re("mat_filterlightmaps", "0") re("r_shadows", "0") re("r_eyeglintlodpixels", "1") re("r_eyemove", "1") re("r_eyesize", "1") re("blink_duration", "1") end; b.DoRightClick = function() b:SetText("Активировать Всё (кроме Пиксели, Ножницы)") re("r_eyes", "1") re("r_lod", "0") re("mat_filtertextures", "1") re("mat_filterlightmaps", "1") re("r_shadows", "1") re("r_eyeglintlodpixels", "0") re("r_eyemove", "0") re("r_eyesize", "0") re("blink_duration", "0") end; local b = vgui.Create("DButton", r) b:SetText("Вернуться") b:SetTextColor(fps_blue) b:SetPos(384, 5) b:SetSize(80, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() r:Close() q:SetVisible(true) end end; local b = vgui.Create("DButton", q) b:SetText(" Раздел #2\n Дополнительно ФПС") b:SetTextColor(fps_blue) b:SetPos(128, 160) b:SetSize(110, 40) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() q:SetVisible(false) local s = vgui.Create("DFrame") s:SetPos(ScrW() / 3 - s:GetWide() / 3, ScrH() / 3 - s:GetTall() / 3) s:SetSize(474, 240) s:SetTitle("Некоторые функции активируются в Фаст-Оптимизации") s:SetVisible(true) s:SetDraggable(true) s:ShowCloseButton(false) s:MakePopup() s.Paint = function(o, p, h) drb(5, 2, 2, p - 4, h - 4, Color(225, 225, 225, 180)) drb(5, 0, 0, p, h, Color(93, 71, 139, 240)) end; but8 = vgui.Create("DButton", s) but8:SetText("Водные отражения") but8:SetTextColor(fps_blue) but8:SetPos(8, 130) but8:SetSize(110, 25) but8.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but8:GetWide(), but8:GetTall()) if but8:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but8.DoClick = function() but8:SetText("Активировано") re("r_WaterDrawReflection", "0") end; but8.DoRightClick = function() but8:SetText("Водные отражения") re("r_WaterDrawReflection", "1") end; but8r = vgui.Create("DButton", s) but8r:SetText("Фаст выгрузка bump") but8r:SetTextColor(fps_blue) but8r:SetPos(129, 130) but8r:SetSize(110, 25) but8r.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but8r:GetWide(), but8r:GetTall()) if but8r:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but8r.DoClick = function() but8r:SetText("Активировано") re("mat_fastnobump", "0") re("mat_bumpmap", "0") end; but8r.DoRightClick = function() but8r:SetText("Фаст выгрузка bump") re("mat_fastnobump", "1") re("mat_bumpmap", "1") end; but9 = vgui.Create("DButton", s) but9:SetText("Ухудшение Sound's") but9:SetTextColor(fps_blue) but9:SetPos(250, 130) but9:SetSize(110, 27) but9.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but9:GetWide(), but9:GetTall()) if but9:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but9.DoClick = function() but9:SetText("Активировано") re("dsp_enhance_stereo", "0") end but9.DoRightClick = function() but9:SetText("Ухудшение Sound's") re("dsp_enhance_stereo", "1") end bj = vgui.Create("DButton", s) bj:SetText("Очистка деталей") bj:SetTextColor(fps_blue) bj:SetPos(370, 160) bj:SetSize(97, 27) bj.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, bj:GetWide(), bj:GetTall()) if bj:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; bj.DoClick = function() c("- Вы очистили мусор на всей карте") re("r_cleardecals", "0") bj = vgui.Create("DButton", s) bj:SetText("Очистка деталей") bj:SetTextColor(fps_blue) bj:SetPos(370, 160) bj:SetSize(97, 27) bj.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, bj:GetWide(), bj:GetTall()) if bj:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end end; buth9 = vgui.Create("DButton", s) buth9:SetText("Оптимизация Сети") buth9:SetTextColor(fps_blue) buth9:SetPos(370, 130) buth9:SetSize(97, 27) buth9.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, buth9:GetWide(), buth9:GetTall()) if buth9:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; buth9.DoRightClick = function() buth9:SetText("Активировано") re("rate", "100000") re("cl_predictweapons", "1") re("cl_predict", "1") re("cl_interp_ratio", "1") re("cl_interp", "0") re("ex_interp", "0.01") re("cl_updaterate", "102") re("cl_cmdrate", "66") end buth9.DoClick = function() c("ПРЕДУПРЕЖДЕНИЕ:Старые системы защиты (Античит) могут блокировать за использование этой функции. Используйте Правую Кнопку мыши - для активации") end; but10 = vgui.Create("DButton", s) but10:SetText("Выражения NPC") but10:SetTextColor(fps_blue) but10:SetPos(8, 160) but10:SetSize(110, 27) but10.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but10:GetWide(), but10:GetTall()) if but10:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but10.DoClick = function() but10:SetText("Установлено") re("ai_expression_optimization", "0") end; but10.DoRightClick = function() but10:SetText("Выражения NPC") re("ai_expression_optimization", "1") end; but11 = vgui.Create("DButton", s) but11:SetText("Алгоритм Z (Вкл/Выкл)") but11:Dock(TOP) but11:SetTextColor(fps_blue) but11:SetPos(365, 105) but11:SetSize(95, 27) but11.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 3, but11:GetWide(), but11:GetTall()) if but11:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 3, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but11.DoClick = function() re("r_fastzreject", "0") end; but11.DoRightClick = function() re("r_fastzreject", "-1") end; buth = vgui.Create("DButton", s) buth:SetText("Вертикальная Синхронизация (Вкл/Выкл)") buth:Dock(TOP) buth:SetTextColor(fps_blue) buth:SetPos(365, 105) buth:SetSize(95, 27) buth.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 3, buth:GetWide(), buth:GetTall()) if buth:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 3, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 3, d, c) end end; buth.DoClick = function() re("mat_vsync", "0") end; buth.DoRightClick = function() re("mat_vsync", "1") end; spra = vgui.Create("DButton", s) spra:SetText("Запрос параметров запуска игры (Справка)") spra:Dock(TOP) spra:SetTextColor(fps_blue) spra:SetPos(365, 105) spra:SetSize(95, 27) spra.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 3, spra:GetWide(), spra:GetTall()) if spra:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 3, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 3, d, c) end end; spra.DoClick = function() c("Установить параметры запуска: -applaunch 300 -gl -processheap -d3d9ex\n(Важно отметить, что это ухудшит графику, но даст хороший буст FPS\n(Не забудьте активировать {x86-64} при поддержки этих версий)") end; but12 = vgui.Create("DButton", s) but12:SetText("Фаст обработка") but12:SetTextColor(fps_blue) but12:SetPos(129, 160) but12:SetSize(110, 27) but12.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but12:GetWide(), but12:GetTall()) if but12:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but12.DoClick = function() but12:SetText("Установлено") re("snd_mix_async", "0") end; but12.DoRightClick = function() but12:SetText("Фаст обработка") re("snd_mix_asynct", "1") end; but13 = vgui.Create("DButton", s) but13:SetText("Отрисовка объектов") but13:SetTextColor(fps_blue) but13:SetPos(250, 160) but13:SetSize(110, 27) but13.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, but13:GetWide(), but13:GetTall()) if but13:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; but13.DoClick = function() but13:SetText("Установлено") re("cl_detaildist", "1000") end; but13.DoRightClick = function() but13:SetText("Отрисовка объектов") re("cl_detaildist", "2400") end; xet = vgui.Create("DButton", s) xet:SetText("Активировать Всё (кроме Оптимизация Сети)") xet:Dock(BOTTOM) xet:SetTextColor(fps_blue) xet:SetPos(100, 160) xet:SetSize(180, 30) xet.Paint = function(b, d, c) surface.SetDrawColor(fps_rexb) surface.DrawRect(0, 0, xet:GetWide(), xet:GetTall()) if xet:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; xet.DoClick = function() xet:SetText("Вы активировали Всё - кроме (Оптимизация Сети)") re("r_cleardecals", "0") re("r_dopixelvisibility", "0") re("mat_clipz", "0") re("menu_cleanupgmas") re("dsp_enhance_stereo", "0") re("r_fastzreject", "0") re("mat_fastnobump", "0") re("mat_bumpmap", "0") re("ai_expression_optimization", "0") re("snd_mix_async", "0") re("cl_detaildist", "1000") re("r_WaterDrawReflection", "0") end; local b = vgui.Create("DButton", s) b:SetText("Вернуться") b:SetTextColor(fps_blue) b:SetPos(388, 5) b:SetSize(80, 20) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, xet:GetWide(), xet:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() s:Close() q:SetVisible(true) end end; local b = vgui.Create("DButton", q) b:SetText(" Раздел #3\nУскорение Windows ") b:SetTextColor(fps_blue) b:SetPos(251, 160) b:SetSize(110, 40) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() urg("https://www.youtube.com/watch?v=ADI5KqwmjQI") end; b.DoRightClick = function() c("[+] Вы выключили HDR карты") re("mat_hdr_level", "0") end; local bloom = vgui.Create("DButton", q) bloom:SetText("Выключить Bloom") bloom:SetTextColor(fps_blue) bloom:SetPos(355, 78) bloom:SetSize(130, 20) bloom.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, bloom:GetWide(), bloom:GetTall()) if bloom:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; bloom.DoRightClick = function() bloom:SetText("Выключить Bloom") re("mat_bloomscale", "1") end bloom.DoClick = function() bloom:SetText("Выключен Bloom") re("mat_bloomscale", "0") end; local b = vgui.Create("DButton", q) b:SetText("Раздел #4\nБыстрый запуск <>") b:SetTextColor(fps_blue) b:SetPos(374, 160) b:SetSize(110, 40) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() local fast = vgui.Create("DFrame") fast:Dock(BOTTOM) fast:SetSize(15, 30) fast:SetTitle(" ") fast:SetVisible(true) fast:SetDraggable(false) fast:ShowCloseButton(false) fast.Paint = function(o, p, h) drb(1, 0, 0, p, h, Color(93, 71, 139, 142)) end b.DoRightClick = function() fast:SetVisible(false) end local opn = vgui.Create("DButton", fast) opn:SetText("Открыть FPSFIXV10 (Левая кнопка мыши - открыть меню, Правая кнопка мыши - закрыть меню)") opn:SetTextColor(fps_blue) opn:Dock(BOTTOM) opn:SetPos(405, 5) opn:SetSize(80, 22) opn.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, opn:GetWide(), opn:GetTall()) if opn:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end opn.DoClick = function() RunConsoleCommand("fpsfix") end opn.DoRightClick = function() fast:Close() end end end; local f = vgui.Create("DButton", q) f:SetText("Вернуться") f:SetTextColor(fps_blue) f:SetPos(405, 5) f:SetSize(80, 20) f.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, f:GetWide(), f:GetTall()) if f:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; f.DoClick = function() q:Close() n:SetVisible(true) end end; local b = vgui.Create("DButton", n) b:SetText("Процессоры") b:SetTextColor(fps_blue) b:SetPos(6, 180) b:SetSize(95, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() n:SetVisible(false) local t = vgui.Create("DFrame") t:SetPos(ScrW() / 3 - t:GetWide() / 3, ScrH() / 3 - t:GetTall() / 3) t:SetTitle("< Unknown Command > - при отсутствии поддержки") t:SetVisible(true) t:SetDraggable(true) t:MakePopup() t:ShowCloseButton(false) t:SetSize(500, 244) t.Paint = function(b, d, c) drb(5, 2, 2, d - 4, c - 4, Color(225, 225, 225, 180)) drb(5, 0, 0, d, c, Color(93, 71, 139, 242)) end; local b = vgui.Create("DButton", t) b:SetText("В главное меню") b:Dock(BOTTOM) b:SetTextColor(fps_blue) b:SetPos(334, 5) b:SetSize(95, 35) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 3, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 3, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() t:Close() n:SetVisible(true) end; local u = vgui.Create("DButton", t) u:SetText("Активировать Всё (?)") u:SetTextColor(fps_blue) u:Dock(BOTTOM) u:SetPos(6, 60) u:SetSize(95, 35) u.Paint = function(b, d, c) surface.SetDrawColor(fps_rexb) surface.DrawRect(0, 3, u:GetWide(), u:GetTall()) if u:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 3, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; u.DoClick = function() u:SetText("Ускорители вашего процессора - Активированы (+)") re("r_mmx", "1") re("r_sse", "1") re("r_sse2", "1") re("cl_detail_max_sway", "0") re("r_cheapwaterend", "0") re("mat_forceaniso", "0") re("r_3dnow", "1") b.DoRightClick = function() re("r_mmx", "0") re("r_sse", "0") re("r_sse2", "0") re("cl_detail_max_sway", "1") re("r_cheapwaterend", "1") re("mat_forceaniso", "1") re("r_3dnow", "0") end end; local b = vgui.Create("DButton", t) b:SetText("Поддержка SSE") b:SetTextColor(fps_blue) b:SetPos(110, 60) b:Dock(LEFT) b:SetSize(125, 35) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 3, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 3, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("r_sse", "1") re("r_sse2", "1") b.RightDoClick = function() re("r_sse", "0") re("r_sse2", "0") end end; local b = vgui.Create("DButton", t) b:SetText("Технология AMD") b:Dock(LEFT) b:SetTextColor(fps_blue) b:SetPos(214, 60) b:SetSize(125, 35) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(2, 3, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(2, 3, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("r_3dnow", "1") b.RightDoClick = function() re("r_3dnow", "0") end end; local b = vgui.Create("DButton", t) b:SetText("Поддержка MMX") b:SetTextColor(fps_blue) b:Dock(LEFT) b:SetPos(214, 60) b:SetSize(125, 35) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(2, 3, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(2, 3, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("r_mmx", "1") b.DoRightClick = function() re("r_mmx", "0") end end local b = vgui.Create("DButton", t) b:SetText("Оператор BLD") b:SetTextColor(fps_blue) b:Dock(LEFT) b:SetPos(318, 60) b:SetSize(115, 35) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(2, 3, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(2, 3, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("cl_detail_max_sway", "0") re("r_cheapwaterend", "0") re("mat_forceaniso", "0") b.DoRightClick = function() re("cl_detail_max_sway", "1") re("r_cheapwaterend", "1") re("mat_forceaniso", "1") end end end; local blark = vgui.Create("DButton", n) blark:SetText("🔒") blark:SetTextColor(fps_blue) blark:SetPos(104, 227) blark:SetSize(10, 10) blark.Paint = function(d, e, c) drb(5, 0, 0, e, c, Color(159, 121, 238, 240)) end; blark.DoClick = function() c("* Графики - это счётчики FPS, также показывают тикрейт сервера. ") end; local b = vgui.Create("DButton", n) b:SetText("Графики") b:SetTextColor(fps_blue) b:SetPos(6, 220) b:SetSize(95, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() local por = vgui.Create("DButton", n) por:SetText("Заблокировано") por:SetTextColor(fps_blue) por:SetPos(6, 220) por:SetSize(95, 25) por.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, por:GetWide(), por:GetTall()) if por:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; blark:SetVisible(false) b.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; n:SetSize(470, 310) local bei = vgui.Create("DButton", n) bei:SetText("Рисунок #3") bei:SetTextColor(fps_blue) bei:SetPos(208, 280) bei:SetSize(95, 25) bei.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, bei:GetWide(), bei:GetTall()) if bei:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; bei.DoClick = function() re("cl_showfps", "1") end; bei.DoRightClick = function() re("cl_showfps", "0") end local bd = vgui.Create("DNumSlider", n) bd:SetPos(217, 245) bd:SetSize(280, 50) bd:SetText(" POS") bd:SetMin(0) bd:SetMax(2) bd:SetDecimals(0) bd:SetConVar("net_graphpos") local b = vgui.Create("DButton", n) b:SetText("Закрыть") b:SetTextColor(fps_blue) b:SetPos(103, 220) b:SetSize(95, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() por:SetVisible(false) bd:SetVisible(false) ble:SetVisible(false) blark:SetVisible(true) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b:SetVisible(false) n:SetSize(470, 250) end; local b = vgui.Create("DButton", n) b:SetText("Рисунок #1") b:SetTextColor(fps_blue) b:SetPos(6, 280) b:SetSize(95, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("net_graph", "1") end; b.DoRightClick = function() re("net_graph", "0") end local b = vgui.Create("DButton", n) b:SetText("Рисунок #2") b:SetTextColor(fps_blue) b:SetPos(107, 280) b:SetSize(95, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() re("net_graph", "3") end; b.DoRightClick = function() re("net_graph", "0") end end; local b = vgui.Create("DLabel", n) b:SetPos(200, 98) b:SetText("▬▬▬▬▬▬") b:SetSize(320, 50) local b = vgui.Create("DLabel", n) b:SetPos(25, 27) b:SetText("▬▬▬▬▬") b:SetSize(300, 50) local b = vgui.Create("DButton", n) b:SetText("🔒") b:SetTextColor(fps_blue) b:SetPos(355, 228) b:SetSize(10, 10) b.Paint = function(d, e, c) drb(5, 0, 0, e, c, Color(159, 121, 238, 240)) end; b.DoClick = function() c("* Повторное открытие панели > Пропишите в консоль fpsfix ") end; local b = vgui.Create("DButton", n) b:SetText("🔒") b:SetTextColor(fps_blue) b:SetPos(104, 188) b:SetSize(10, 10) b.Paint = function(d, e, c) drb(5, 0, 0, e, c, Color(159, 121, 238, 240)) end; b.DoClick = function() c("* Открытие этой панели грозит понижением ФПС на время показа МЕНЮ, после закрытия, фпс стабилизируется. ") end local b = vgui.Create("DLabel", n) b:SetPos(25, 187) b:SetText("▬▬▬▬▬") b:SetSize(300, 50) local b = vgui.Create("DButton", n) b:SetText("FPSFIX V10") b:SetTextColor(fps_blue) b:SetPos(406, 2) b:SetSize(62, 15) b.Paint = function(d, e, c) drb(5, 0, 0, e, c, Color(159, 121, 238, 240)) end; b.DoClick = function() c("by TheRedGrouning") end; local b = vgui.Create("DLabel", n) b:SetPos(310, 90) b:SetSize(295, 25) b:SetColor(Color(255, 255, 255, 255)) b:SetFont("default") b:SetText("- ШАГ #1") local b = vgui.Create("DLabel", n) b:SetPos(310, 132) b:SetSize(295, 25) b:SetColor(Color(255, 255, 255, 255)) b:SetFont("default") b:SetText("- ШАГ #2") local b = vgui.Create("DButton", n) b:SetText("(?) Помощь") b:SetTextColor(fps_blue) b:SetPos(255, 220) b:SetFont("ara") b:SetSize(98, 25) b.Paint = function(d, e, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, e, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, e, c) end end; b.DoClick = function() local help = vgui.Create("DFrame") help:SetPos(ScrW() / 3 - help:GetWide() / 3, ScrH() / 3 - help:GetTall() / 3) help:SetSize(520, 265) help:SetTitle("") help:SetVisible(true) help:SetDraggable(false) help:MakePopup() help:ShowCloseButton(false) help.Paint = function(o, p, h) drb(11, 2, 2, p - 4, h - 4, Color(225, 225, 225, 180)) drb(5, 0, 0, p, h, Color(93, 71, 139, 250)) end local b = vgui.Create("DLabel", help) b:SetPos(5, 10) b:SetText("УПРАВЛЕНИЕ МЕНЮ: RIGHT(Правая кнопка мыши) - Деактивация") b:SetFont("ara") b:SetSize(520, 80) local b = vgui.Create("DLabel", help) b:SetPos(5, 67) b:SetText("Один из способов Оптимизации (От разработчика)\n1. Перейдите в меню FPSFIX * Активируйте Оптимизация ALL, +20FPS,Обычная\n2. Перейдите в Процессоры - Активировать Всё\n3. Перейдите в Инструменты - Активировать Всё\n4. Перейдите в Раздел #1-2 - Активировать Всё\n4. Для удобного запуска меню, используйте Раздел #4 - Быстрый запуск\nЗакройте все открытые браузеры, Дискорд(если не играете с друзьями)") b:SetFont("ara") b:SetSize(560, 97) local b = vgui.Create("DLabel", help) b:SetPos(5, -6) b:SetText("УПРАВЛЕНИЕ МЕНЮ: LEFT(Левая кнопка мыши) - Активация") b:SetFont("ara") b:SetSize(520, 84) xet = vgui.Create("DButton", help) xet:SetText("Вернуться") xet:Dock(BOTTOM) xet:SetTextColor(fps_blue) xet:SetPos(100, 160) xet:SetSize(180, 30) xet.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, xet:GetWide(), xet:GetTall()) if xet:IsHovered() then surface.SetDrawColor(fps_dima) surface.DrawRect(0, 0, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, d, c) end end; xet.DoClick = function() help:SetVisible(false) end hxm = vgui.Create("DButton", help) hxm:SetText("Видео-Обучение") hxm:Dock(BOTTOM) hxm:Dock(BOTTOM) hxm:SetTextColor(fps_blue) hxm:SetPos(100, 160) hxm:SetSize(180, 30) hxm.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, -3, hxm:GetWide(), hxm:GetTall()) if hxm:IsHovered() then surface.SetDrawColor(fps_dima) surface.DrawRect(0, -3, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, -3, d, c) hxm.DoClick = function() urg("https://youtu.be/AiZ0M8jF6YE") end end end xet2 = vgui.Create("DButton", help) xet2:SetText("Тех.Поддержка") xet2:Dock(BOTTOM) xet2:Dock(BOTTOM) xet2:SetTextColor(fps_blue) xet2:SetPos(100, 160) xet2:SetSize(180, 30) xet2.Paint = function(b, d, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, -3, xet2:GetWide(), xet2:GetTall()) if xet2:IsHovered() then surface.SetDrawColor(fps_dima) surface.DrawRect(0, -3, d, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, -3, d, c) xet2.DoClick = function() urg("https://steamcommunity.com/workshop/filedetails/discussion/2170353172/2795000119896874007/") end end end; end local akl = vgui.Create("DButton", n) akl:SetText("Выключить") akl:SetTextColor(fps_blue) akl:SetPos(370, 220) akl:SetFont("ara") akl:SetSize(95, 25) akl.Paint = function(d, e, c) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, akl:GetWide(), akl:GetTall()) if akl:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, e, c) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, e, c) end end; akl.DoClick = function() timer.Remove("tsmp") n:Close() c("* Открыть меню снова - пропишите в консоль fpsfix!!") end local b = vgui.Create("DButton", n) b:SetText("Обычная Оптимизация") b:SetTextColor(fps_blue) b:SetPos(170, 132) b:SetSize(130, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() b:SetVisible(false) local mar = vgui.Create("DButton", n) mar:SetText("Оптимизация...") mar:SetTextColor(fps_blue) mar:SetPos(170, 132) mar:SetSize(130, 24) mar.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, mar:GetWide(), mar:GetTall()) if mar:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end re("cl_playerspraydisable", "1") re("rope_smooth", "0") re("cl_disable_ragdolls", "1") re("cl_detail_avoid_radius", "0") re("r_cheapwaterend", "0") re("ai_expression_optimization", "0") re("mat_bloom_scalefactor_scalar", "0") re("lod_transitiondist", "0") local kedr = vgui.Create("DButton", n) kedr:SetText("Заблокировано") kedr:SetTextColor(fps_blue) kedr:SetPos(170, 90) kedr:SetSize(130, 25) kedr.Paint = function(d, c, e) surface.SetDrawColor(fps_xer2) surface.DrawRect(0, 0, kedr:GetWide(), kedr:GetTall()) if kedr:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; dop:SetVisible(false) akl:SetVisible(false) tsmp(3, function() re("cl_new_impact_effects", "0") re("g_ragdoll_maxcount", "0") re("cl_forcepreload", "1") re("r_3dsky", "0") re("mat_disable_bloom", "1") re("r_propsmaxdist", "600") re("cl_phys_props_max", "100") re("datacachesize", "212") re("fps_max", "800") end) tsmp(6, function() re("cl_threaded_bone_setup", "0") re("r_threaded_renderables", "0") re("M9KGasEffect", "0") re("gmod_mcore_test", "1") re("r_teeth", "0") re("r_flex", "0") re("cl_tfa_fx_impact_enabled", "0") re("cl_tfa_fx_gasblur", "0") re("cl_tfa_fx_muzzlesmoke", "0") re("cl_ejectbrass", "0") re("r_DrawRain", "0") tsmp(3, function() b.Paint = function(d, c, e) surface.SetDrawColor(fps_rex2) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(147, 112, 219) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end kedr:SetVisible(false) mar:SetVisible(false) b:SetVisible(true) b:SetText("Активировано <>") dop:SetVisible(true) akl:SetVisible(true) end) re("props_break_max_pieces", "0") re("props_break_max_pieces_perframe", "0") end) local bx = vgui.Create("DButton", n) bx:SetText("[FIX] +20FPS") bx:SetTextColor(fps_blue) bx:SetPos(180, 65) bx:SetSize(110, 20) bx.DoClick = function() bx:SetVisible(false) re("r_spray_lifetime", "0") re("cl_pred_optimize", "2") re("cl_lagcompensation", "1") re("mat_trilinear", "0") c("- Вы использовали усиление +20FPS") end bx.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, bx:GetWide(), bx:GetTall()) if bx:IsHovered() then surface.SetDrawColor(68, 189, 50, 200) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(140, 122, 230) surface.DrawRect(0, 0, c, e) end end end; b.DoRightClick = function() b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end b:SetText("Обычная Оптимизация") re("cl_playerspraydisable", "0") re("cl_disable_ragdolls", "0") re("cl_detail_avoid_radius", "30") re("r_cheapwaterend", "1") re("ai_expression_optimization", "1") re("lod_transitiondist", "1") re("mat_bloom_scalefactor_scalar", "1") re("cl_new_impact_effects", "1") re("props_break_max_pieces", "1") re("cl_forcepreload", "0") re("props_break_max_pieces_perframe", "1") re("g_ragdoll_maxcount", "1") re("r_dynamic", "1") re("r_3dsky", "1") re("r_propsmaxdist", "1200") re("datacachesize", "300") re("cl_phys_props_max", "300") re("fps_max", "300") re("cl_threaded_bone_setup", "1") re("r_threaded_renderables", "1") re("M9KGasEffect", "1") re("r_teeth", "1") re("gmod_mcore_test", "-1") re("r_flex", "1") re("cl_tfa_fx_impact_enabled", "1") re("cl_tfa_fx_gasblur", "1") re("cl_tfa_fx_muzzlesmoke", "1") re("cl_ejectbrass", "1") re("mat_disable_bloom", "0") re("r_DrawRain", "1") end local b = vgui.Create("DButton", n) b:SetText("Оптимизация ALL") b:SetTextColor(fps_blue) b:SetPos(170, 90) b:SetSize(130, 25) b.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; b.DoClick = function() b:SetVisible(false) local mar2 = vgui.Create("DButton", n) mar2:SetText("Оптимизирую вас...") mar2:SetTextColor(fps_blue) mar2:SetPos(170, 90) mar2:SetSize(130, 25) mar2.Paint = function(d, c, e) surface.SetDrawColor(fps_xer) surface.DrawRect(0, 0, mar2:GetWide(), mar2:GetTall()) if mar2:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end dop:SetVisible(false) akl:SetVisible(false) re("cl_detail_max_sway", "0") re("r_cheapwaterend", "0") local kedr2 = vgui.Create("DButton", n) kedr2:SetText("Заблокировано") kedr2:SetTextColor(fps_blue) kedr2:SetPos(170, 132) kedr2:SetSize(130, 25) kedr2.Paint = function(d, c, e) surface.SetDrawColor(fps_xer2) surface.DrawRect(0, 0, kedr2:GetWide(), kedr2:GetTall()) if kedr2:IsHovered() then surface.SetDrawColor(fps_she) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end; tsmp(2, function() re("cl_threaded_bone_setup", "1") re("r_threaded_renderables", "1") re("cl_forcepreload", "1") re("mat_disable_bloom", "1") re("cl_smooth", "0") re("r_lod", "2") end) tsmp(6, function() akl:SetVisible(true) b.Paint = function(d, c, e) surface.SetDrawColor(fps_rex2) surface.DrawRect(0, 0, b:GetWide(), b:GetTall()) if b:IsHovered() then surface.SetDrawColor(147, 112, 219) surface.DrawRect(0, 0, c, e) else surface.SetDrawColor(fps_rex) surface.DrawRect(0, 0, c, e) end end dop:SetVisible(true) kedr2:SetVisible(false) mar2:SetVisible(false) b:SetVisible(true) b:SetText("Активировано <>") re("mat_envmaptgasize", "1") re("sv_forcepreload", "1") re("r_threaded_particles", "1") m(3, function() re("mem_max_heapsize_dedicated", "4096") re("datacachesize", "4096") re("cl_ejectbrass", "0") end) re("muzzleflash_light", "0") re("r_drawflecks", "0") re("r_occlusion", "1") re("fog_enable", "0") end) m(5, function() re("r_eyemove", "0") re("mat_motion_blur_forward_enabled", "0") re("r_shadows", "0") re("r_waterforceexpensive", "0") re("r_shadowrendertotexture", "0") re("r_flex", "0") re("mat_max_worldmesh_vertices", "512") re("mat_parallaxmap", "0") re("mat_queue_mode", "2") re("snd_mix_async", "1") re("cl_phys_props_enable", "0") re("cl_pushaway_force", "0") re("cl_show_splashes", "0") end) end; end; hook.Add("InitPostEntity", "MultiRenderingPopup", function() timer.Simple(1, function() a() end) end) concommand.Add("fpsfix", a) end