Advertisement
cesigleywv

dayz server weather

Dec 6th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. void main()
  2. {
  3.  
  4. Hive ce = CreateHive();
  5. if ( ce )
  6. ce.InitOffline();
  7.  
  8. Weather weather = g_Game.GetWeather();
  9.  
  10. weather.GetOvercast().SetLimits( 0.5 , 0.5 );
  11. weather.GetRain().SetLimits( 0.0 , 0.0 );
  12. weather.GetFog().SetLimits( 0.0 , 0.25 );
  13.  
  14. weather.GetOvercast().SetForecastChangeLimits( 0.5, 0.5 );
  15. weather.GetRain().SetForecastChangeLimits( 0.0, 0.0 );
  16. weather.GetFog().SetForecastChangeLimits( 0.15, 0.45 );
  17.  
  18. weather.GetOvercast().SetForecastTimeLimits( 1800 , 1800 );
  19. weather.GetRain().SetForecastTimeLimits( 300 , 300 );
  20. weather.GetFog().SetForecastTimeLimits( 1800 , 1800 );
  21.  
  22. weather.GetOvercast().Set( Math.RandomFloatInclusive(0.0, 0.3), 0, 0);
  23. weather.GetRain().Set( Math.RandomFloatInclusive(0.0, 0.0), 0, 0);
  24. weather.GetFog().Set( Math.RandomFloatInclusive(0.0, 0.1), 0, 0);
  25.  
  26. weather.SetWindMaximumSpeed(15);
  27. weather.SetWindFunctionParams(0.1, 0.3, 50);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement