Hellstyrant

Weather

Jul 16th, 2017
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. class Weather
  2. {
  3. /*
  4. You can define multiple "keyframes" for the weather to change. The server will pick
  5. a keyframe randomly to simulate the weather. It will change the weather-keyframes
  6. based on the following interval
  7. */
  8. interval = 30;
  9.  
  10. /*
  11. Add the keyframes here. The server will pick one random, so if you want one
  12. weather type of be more dominant compared to others, add it multiple times
  13. */
  14. //keyframes[] = {"Sunny", "Cloudy", "Thunderstorm"};
  15. keyframes[] = {"Sunny", "Cloudy", "Thunderstorm"};
  16.  
  17. /*
  18. This is a keyframe. Look up the BIKI to get more details about the parameters
  19.  
  20. Be sure to design the fog settings at a view distance of 1,600m as this is the
  21. limit in multiplayer by default
  22.  
  23. https://community.bistudio.com/wiki/fogParams
  24. https://community.bistudio.com/wiki/overcast
  25. https://community.bistudio.com/wiki/setWaves
  26. https://community.bistudio.com/wiki/setWindStr
  27. https://community.bistudio.com/wiki/setGusts
  28. https://community.bistudio.com/wiki/setRain
  29. https://community.bistudio.com/wiki/setLightnings
  30. https://community.bistudio.com/wiki/setRainbow
  31. */
  32. class Sunny
  33. {
  34. fogValue = 0.1;
  35. fogDecay = 0.2;
  36. fogBase = 5;
  37. overcast = 0.2;
  38. waves = 0.2;
  39. wind = 0.25;
  40. gusts = 0.1;
  41. rain = 0;
  42. lightnings = 0;
  43. rainbows = 0;
  44. };
  45.  
  46. class Cloudy
  47. {
  48. fogValue = 0.2;
  49. fogDecay = 0.1;
  50. fogBase = 5;
  51. overcast = 0.4;
  52. waves = 0.4;
  53. wind = 0.25;
  54. gusts = 0.5;
  55. rain = 0.1;
  56. lightnings = 0.1;
  57. rainbows = 1;
  58. };
  59.  
  60. class Thunderstorm
  61. {
  62. fogValue = 0.7;
  63. fogDecay = 0.2;
  64. fogBase = 5;
  65. overcast = 1;
  66. waves = 1;
  67. wind = 0.25;
  68. gusts = 0.5;
  69. rain = 1;
  70. lightnings = 1;
  71. rainbows = 0.5;
  72. };
  73. };
Advertisement
Add Comment
Please, Sign In to add comment