SHARE
TWEET

pog esp

a guest Feb 27th, 2020 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. Original = @Giperfast.tk; @YarinDayan12; @Cheeseot.
  3. Shit Rewrite = @Dreammm.
  4. ]]
  5. local menu = gui.Reference("Visuals", "World", "Materials");
  6. local bloom = gui.Slider(menu, "Bloom", "Bloom", 20, 1, 100);
  7. local bloom_value = gui.Slider(menu, "Value", "Value", 1, 1, 100);
  8. local fogstart = gui.Slider(menu, "Fogstart", "FogStart", 100, 1, 1000);
  9. local fogend = gui.Slider(menu, "FogEnd", "FogEnd", 1000, 1, 1000);
  10. local maxdensity = gui.Slider(menu, "MaxDensity", "MaxDensity", 1, 1, 100);
  11. local ZoomScale = gui.Slider(menu, "ZoomScale", "ZoomScale", 1, 1, 100);
  12. local sli_exposure = gui.Slider(menu, "nex_bloom_exposure", "World Exposure", 100, 1, 100);
  13. local anime = gui.Checkbox(menu,"anime", "For Color Picker.", false ); -- For ColorPicker
  14. local Fogcolor = gui.ColorPicker(anime, "Fogcolor","FogColor", 255, 255, 255, 255 )
  15. local exposure
  16. callbacks.Register("Draw", "bloom", function()
  17.         r,g,b = Fogcolor:GetValue()
  18.         local CEnvTonemapController = entities.FindByClass("CEnvTonemapController")[1];
  19.         local CFogController = entities.FindByClass("CFogController")[1];
  20.  
  21.         if(CFogController) then
  22.             CFogController:SetProp("m_fog.enable", 1);
  23.             CFogController:SetProp("m_fog.start", fogstart:GetValue()/1);
  24.             CFogController:SetProp("m_fog.end", fogend:GetValue()/1);
  25.             CFogController:SetProp("m_fog.maxdensity", maxdensity:GetValue()/100);
  26.             CFogController:SetProp("m_fog.ZoomFogScale", ZoomScale:GetValue()/100);
  27.         end
  28.                 if(CEnvTonemapController) then
  29.  
  30.             CEnvTonemapController:SetProp("m_flCustomBloomScale", bloom:GetValue()/50);
  31.                         client.SetConVar("r_modelAmbientMin", bloom_value:GetValue()/1, true);
  32.             CEnvTonemapController:SetProp("m_bUseCustomAutoExposureMin", 1);
  33.             CEnvTonemapController:SetProp("m_bUseCustomAutoExposureMax", 1);
  34.             CEnvTonemapController:SetProp("m_flCustomAutoExposureMin", sli_exposure:GetValue()/100);
  35.             CEnvTonemapController:SetProp("m_flCustomAutoExposureMax", sli_exposure:GetValue()/100);
  36.             exposure = sli_exposure:GetValue()/100
  37.             client.SetConVar("fog_override", 1, true);
  38.             client.SetConVar("fog_enableskybox", 1, true);
  39.             client.SetConVar("fog_startskybox", fogstart:GetValue()/1, true);
  40.             client.SetConVar("fog_endskybox", fogend:GetValue()/1, true);
  41.             client.SetConVar("fog_maxdensityskybox", maxdensity:GetValue()/100, true );
  42.            
  43.             local temp = r.." "..g.." "..b
  44.             client.SetConVar("fog_color",temp, true);
  45.             client.SetConVar("fog_colorskybox",temp, true);
  46.         end
  47. end);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top