Advertisement
Mister_Stefan

PerformanceLua V5(Aimware)

Oct 15th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. local ref = gui.Reference("Visuals", "Other", "Effects")
  2. local noshadows_checkbox = gui.Checkbox(ref, "noshadows", "No Shadows", false)
  3.  
  4. local function noshadows()
  5.     if noshadows_checkbox:GetValue() then
  6.         client.SetConVar("r_shadows", 0, true);
  7.         client.SetConVar("cl_csm_static_prop_shadows", 0, true );
  8.         client.SetConVar("cl_csm_shadows", 0, true );
  9.         client.SetConVar("cl_csm_world_shadows", 0, true );
  10.         client.SetConVar("cl_foot_contact_shadows", 0, true );
  11.         client.SetConVar("cl_csm_viewmodel_shadows", 0, true );
  12.         client.SetConVar("cl_csm_rope_shadows", 0, true );
  13.         client.SetConVar("cl_csm_sprite_shadows", 0, true );
  14.             else
  15.             client.SetConVar("r_shadows", 1, true);
  16.             client.SetConVar("cl_csm_static_prop_shadows", 1, true );
  17.             client.SetConVar("cl_csm_shadows", 1, true );
  18.             client.SetConVar("cl_csm_world_shadows", 1, true );
  19.             client.SetConVar("cl_foot_contact_shadows", 1, true );
  20.             client.SetConVar("cl_csm_viewmodel_shadows", 1, true );
  21.             client.SetConVar("cl_csm_rope_shadows", 1, true );
  22.             client.SetConVar("cl_csm_sprite_shadows", 1, true );
  23.     end
  24. end
  25.  
  26. noshadows()
  27.  
  28. local function event(e)
  29. if e:GetName() == "round_start" then
  30.     noshadows()
  31.     end        
  32. end
  33.  
  34. client.AllowListener("round_start")
  35. callbacks.Register ("FireGameEvent", event)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement