Cavadus Posted January 18, 2016 Report Share Posted January 18, 2016 So, working with: // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>} In EpochConfig.hpp. I'm looking for a darker atmosphere on my Esseker server so I want it to be overcast most of the time, good chance for rain, medium chance for fog, and cold-ish (above freezing, probably in the 40s to 50s fahrenheit). I ran across this thread but it wasn't much help. That dude was obsessed with fog; I'm not. Any ideas for a ballpark setup? Link to comment Share on other sites More sharing options...
He-Man Posted January 19, 2016 Report Share Posted January 19, 2016 Changing weather in epochconfig.hpp can only set static weather! To change the random weather, you have to change the Weather code: Look in @epochhive\addons\a3_epoch_server_settings\EpochEvents\ChangeWeather.sqf You can change for example: _fog = if (isNil "_fogOVRD") then { [random 0.2, random 0.2, random 20] } else { _fogOVRD }; _rain = if (isNil "_rainOVRD") then { random 1 } else { _rainOVRD }; _overcast = if (isNil "_overcastOVRD") then { random 1 } else { _overcastOVRD }; to: _fog = if (isNil "_fogOVRD") then { [random 0.4, random 0.4, random 15] } else { _fogOVRD }; _rain = if (isNil "_rainOVRD") then { 0.4 + random 0.6 } else { _rainOVRD }; _overcast = if (isNil "_overcastOVRD") then { 0.4 + random 0.6 } else { _overcastOVRD }; This will only work, if you have NOT overwritten the weather with static weather in epochconfig! WeatherStaticForecast[] = {}; For fog, I'm not sure, what the parameters exactly do. Try it by yourself and check https://community.bistudio.com/wiki/setFog_array Cavadus 1 Link to comment Share on other sites More sharing options...
Cavadus Posted January 19, 2016 Author Report Share Posted January 19, 2016 Awesome! Thanks, man! Link to comment Share on other sites More sharing options...
Cavadus Posted January 20, 2016 Author Report Share Posted January 20, 2016 What about the temp setting? Definitely want to make it colder. Link to comment Share on other sites More sharing options...
He-Man Posted January 21, 2016 Report Share Posted January 21, 2016 _rnd_temp = if (sunOrMoon < 1) then { (random 35) + 15 } else { (random 75) + 50 }; sunormoon <1 --> Nighttime! Nighttime = 15-50° Fahrenheit = -9,4 - 18,3 °C Daytime = 50-125° Fahrenheit = 10 - 51,7 °C Change it... Link to comment Share on other sites More sharing options...
Cavadus Posted January 22, 2016 Author Report Share Posted January 22, 2016 Okay, so looking at: _rnd_temp = if (sunOrMoon < 1) then { (random 35) + 15 } else { (random 40) + 20 }; I read this as base temp at night 35 (+/- 15 degrees so between 20 and 50) and during the day 40 degrees (+/- 20 so 20 to 60 degrees). Is that correct? Because those are the current settings on my server and it's 75 degrees outside right now during the day which seems impossible. Double checked my EpochConfig.hpp and it reads: WeatherStaticForecast[] = {}; Link to comment Share on other sites More sharing options...
He-Man Posted January 22, 2016 Report Share Posted January 22, 2016 Base temp is the fix value. In your example 15 / 20 °F. To this Base temp, there will be added a random value of 0-35°F at night / 0-40 °F at day. I'm not sure, but it seems, that the weather changer works first time after xxx Minutes. Before this time, this script does nothing. And note: That is not °C ! It's °Fahrenheit! Link to comment Share on other sites More sharing options...
Cavadus Posted January 22, 2016 Author Report Share Posted January 22, 2016 Dang, so the configured weather only takes effect after the first scheduled weather change? Think I have that set on a 2 hour cycle. Anyway to make it pop as soon as the server starts? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now