RealWeather
О материале
«RealWeather» — материал мастерской DayZ. Оружие, транспорт, территории и моды для серверов. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
RealWeather
This mod is server-side only. Please don't be stupid and don't make your players download something they won't need. The mod sets server's weather based on the one from an IRL City.
For support, please join the "DayZ Modders" discord and use the "#real-weather" channel. https://discord.gg/cksvfcV
Setup
Create a "RealWeather.json" file with the following content, inside your server's profile folder (the file is created by the mod if you start the server without creating it yourself) :
{
"app_id": "CHANGE_ME",
"query": "CHANGE_ME",
"requestInterval": 10,
"weatherChangeTime": 60
}
Replace app_id with a OpenWeatherMap AppId and "query" with the name of the city that you want to base your server's weather on. See Current > By City Name for detailed infos. You can adjust "requestInterval" that is the time in minutes between each API call and weather change (you can't go under 10 minutes because API never updates that fast) and "weatherChangeTime" that is the time in seconds for the weather's transition.
To finish, change "weather.MissionWeather(false);" in your init.c file to "weather.MissionWeather(true);", and comment any weather changing line, so that only RealWeather can alter your server's weather.
To Do : • Better storms (based on API's responses codes and not random values) • Handle multi-weathers responses from API
Support @ https://paypal.me/GrosTon1
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.