Jump to content
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×