Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
John Mccalum

weather setting

Recommended Posts

Hi all here I am looking for rain on my server but I can not do it I have to change what in:

//INIT WEATHER BEFORE ECONOMY INIT------------------------
	Weather weather = g_Game.GetWeather();

	weather.MissionWeather(true);    // false = use weather controller from Weather.c

	weather.GetOvercast().Set( Math.RandomFloatInclusive(0.2, 0.3), 1, 0);
	weather.GetRain().Set( 0, 0.5, 1);
	weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.08), 1, 0);
	
	weather.GetRain().SetLimits( 0, 1 );

thank you in advance

Share this post


Link to post
Share on other sites

just download this...save your old file and replace it.

weather is stored in the events.bin.....

if u want the bad weather back just delte and restart the server or use the old backup file..

 

Share this post


Link to post
Share on other sites

 

Ah fuck....u WANT rain....

 

 

U have to edit the init.c.... this is the code from 0.63....

Edit it...start the server one time...let it run for a moment and restore the orginal init.c file.

(the weather is stored inside the events.bin)

 

void main() {
	Hive ce = CreateHive();
	if (ce)
		ce.InitOffline();

	Weather weather = g_Game.GetWeather();

	weather.GetOvercast().SetLimits(0.0, 1.0);
	weather.GetRain().SetLimits(0.0, 1.0);
	weather.GetFog().SetLimits(0.0, 0.25);

	weather.GetOvercast().SetForecastChangeLimits(0.0, 0.2);
	weather.GetRain().SetForecastChangeLimits(0.0, 0.1);
	weather.GetFog().SetForecastChangeLimits(0.15, 0.45);

	weather.GetOvercast().SetForecastTimeLimits(1800, 1800);
	weather.GetRain().SetForecastTimeLimits(600, 600);
	weather.GetFog().SetForecastTimeLimits(1800, 1800);

	weather.GetOvercast().Set(Math.RandomFloatInclusive(0.0, 0.3), 0, 0);
	weather.GetRain().Set(Math.RandomFloatInclusive(0.0, 0.2), 0, 0);
	weather.GetFog().Set(Math.RandomFloatInclusive(0.0, 0.1), 0, 0);

	weather.SetWindMaximumSpeed(15);
	weather.SetWindFunctionParams(0.1, 0.3, 50);

U have to edit...

weather.GetRain().SetLimits

weather.GetRain().SetForecastChangeLimits

weather.GetRain().SetForecastTimeLimits

weather.GetRain().Set( Math.RandomFloatInclusive

U have to play with this numbers.... double it

 

Share this post


Link to post
Share on other sites

Does this still work? On our server, we want to reduce the rain (or turn it off completely if possible). Can you help us? The reason for this request, is the past admins do not know why it rains in livonia 100% of the time...the rain actually never ever stops, so they want it off, or back to how it was originally or even less if possible.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×