ForbodingAngel

Untitled

Aug 18th, 2015
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. function widget:GetInfo()
  2. return {
  3. name = "Graphics Settings (3 - Medium)",
  4. desc = "Sets graphics settings for you to predefined settings",
  5. author = "Forboding Angel",
  6. date = "01-21-2014",
  7. license = "GPL v2 or later",
  8. layer = 5,
  9. enabled = false
  10. }
  11. end
  12.  
  13. function widget:Initialize()
  14. Spring.SendCommands("3dtrees 1")
  15. Spring.SendCommands("advmapshading 1")
  16. Spring.SendCommands("advsky 0")
  17. Spring.SendCommands("advmodelshading 1")
  18. Spring.SendCommands("dynamicsky 0")
  19. Spring.SendCommands("dynamicsun 0")
  20. Spring.SendCommands("dynamicsunminelevation 0.3")
  21. Spring.SendCommands("fsaalevel 0")
  22. Spring.SendCommands("featuredrawdistance 999999")
  23. Spring.SendCommands("featurefadedistance 999999")
  24. Spring.SendCommands("grassdetail 0")
  25. Spring.SendCommands("grounddetail 32")
  26. Spring.SendCommands("maxnanoparticles 2000")
  27. Spring.SendCommands("maxparticles 5000")
  28. Spring.SendCommands("maxsounds 128")
  29. Spring.SendCommands("water 4")
  30. Spring.SendCommands("shadows 2 2048")
  31. --[[
  32. Spring.SetConfigInt("3dtrees",1)
  33. Spring.SetConfigInt("advsky",0)
  34. Spring.SetConfigInt("advmodelshading",1)
  35. Spring.SetConfigInt("dynamicsky",0)
  36. Spring.SetConfigInt("dynamicsun",0)
  37. Spring.SetConfigInt("dynamicsunminelevation",0)
  38. Spring.SetConfigInt("fsaalevel",0)
  39. Spring.SetConfigInt("featuredrawdistance",999999)
  40. Spring.SetConfigInt("featurefadedistance",999999)
  41. Spring.SetConfigInt("grassdetail",0)
  42. Spring.SetConfigInt("grounddetail",32)
  43. Spring.SetConfigInt("maxnanoparticles",2000)
  44. Spring.SetConfigInt("maxparticles",5000)
  45. Spring.SetConfigInt("maxsounds",128)
  46. ]]--
  47. widgetHandler:RemoveWidget()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment