Advertisement
Guest User

aimware lua v5 viewmodel good shit

a guest
Feb 28th, 2020
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. local visuals_menu = gui.Reference("VISUALS", "OTHER", "Effects")
  2. local visuals_custom_viewmodel_editor = gui.Checkbox( visuals_menu, "lua_custom_viewmodel_editor", "Custom Viewmodel Editor", 0 );
  3. local xO = client.GetConVar("viewmodel_offset_x");
  4. local yO = client.GetConVar("viewmodel_offset_y");
  5. local zO = client.GetConVar("viewmodel_offset_z");
  6. local fO = client.GetConVar("viewmodel_fov");
  7. local xS = gui.Slider(visuals_menu, "lua_x", "X", xO, -20, 20);
  8. local yS = gui.Slider(visuals_menu, "lua_y", "Y", yO, -100, 100);
  9. local zS = gui.Slider(visuals_menu, "lua_z", "Z", zO, -20, 20);
  10. local vfov = gui.Slider(visuals_menu, "vfov", "Viewmodel FOV", fO, 0, 120);
  11. local function Visuals_Viewmodel()
  12.  
  13. if visuals_custom_viewmodel_editor:GetValue() then
  14. client.SetConVar("viewmodel_offset_x", xS:GetValue(), true);
  15. client.SetConVar("viewmodel_offset_y", yS:GetValue(), true);
  16. client.SetConVar("viewmodel_offset_z", zS:GetValue(), true);
  17. client.SetConVar("viewmodel_fov", vfov:GetValue(), true);
  18. end
  19. end
  20. local function Visuals_Disable_Post_Processing()
  21. if visuals_disable_post_processing:GetValue() then
  22. client.SetConVar( "mat_postprocess_enable", 0, true );
  23. else
  24. client.SetConVar( "mat_postprocess_enable", 1, true );
  25. end
  26. end
  27.  
  28. callbacks.Register("Draw", "Custom Viewmodel Editor", Visuals_Viewmodel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement