Advertisement
Guest User

Untitled

a guest
May 29th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. -- https://springrts.com/wiki/Springsettings.cfg
  2. -- https://springrts.com/wiki/UI_commands
  3.  
  4. -- <[KING]Silver> i think we chould add function to check what actuall settings player have
  5. -- <[KING]Silver> to let player recover old settings
  6.  
  7. -- Please make comments so other people can understand and change script.
  8. -- Also please correct comments if they are wrong.
  9.  
  10. function widget:GetInfo()
  11. return {
  12. name = "Framerate increase",
  13. desc = "Turns off shading and more.",
  14. author = "[KING]Antarac",
  15. version = "0.2",
  16. date = "May 26, 2017",
  17. license = "GNU GPL, v2 or later",
  18. layer = 0,
  19. enabled = true,
  20. }
  21. end
  22.  
  23. local SendCommands = Spring.SendCommands
  24. local CommandList = {
  25.  
  26. "Fps = 0", -- Shows Frames per second in the upper right corner of screen.
  27. "Clock = 0", -- Shows how long game is played already in the upper right corner of screen.
  28. "HardwareCursor 1", -- No Mouse lag. 1 = hardware cursor. 0 = spring cursor.
  29.  
  30. "AdvMapShading 0", -- Shading for maps.
  31. "AdvModelShading 0", -- Shading for models.
  32. "AdvSky 0", -- ?
  33. "AllowDeferredMapRendering 0", -- ?
  34. "AllowDeferredModelRendering 0", -- ?
  35. "BumpWaterBlurReflection 0", -- ?
  36. "BumpWaterRefraction 0", -- ?
  37. "DynamicClouds 0", -- ?
  38. "DynamicSky 0", -- ?
  39. "DynamicSun 0", -- ?
  40. "FSAALevel 0", -- ?
  41. "GrassDetail 0", -- ?
  42. "GroundDecals 0", -- Draws black paths after vehicle move or black smoky ground after explosion.
  43. "GroundDecalsParallaxMapping 0", -- ?
  44. "GroundDetail 40", -- Map gets to flat on 0.
  45. "HeightMapTexture 0", -- ?
  46. "HighResLos 0", -- ?
  47. "MaxDynamicMapLights 0", -- ?
  48. "MaxDynamicModelLights 0", -- ?
  49. "MaxNanoParticles 1", --The amount of Particles you can see from Construction units and Nanos.
  50. "MaxParticles 1", -- ?
  51. "Shadows 0", -- Shadows for all objects. 0 = turned off.
  52. "Water 0", -- ?
  53.  
  54. --"DrawTrees = 0",
  55. --"ShadowMapSize = 0
  56. --"SmoothLines = 0
  57. --"SmoothPoints = 0
  58. --"TeamNanoSpray = 0
  59. --"TreeRadius = 3000
  60. --"UnitIconDist = 10000
  61. --"VSync = -1
  62.  
  63. }
  64.  
  65. function widget:AddConsoleLine(msg, priority) -- Called when text is entered into the console (e.g. Spring.Echo).
  66. if msg == "low" then -- Type "/low" in the ingame chat(console) to activate the script.
  67. SendCommands(CommandList)
  68. end
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement