DayZ-SA-Tomato
DayZ-SA-Tomato copied to clipboard
[Feature Request] Weather commands
This is the basis of the command, not sure if it works or not yet but I'm sure you can get it working if it doesn't. This is a Fog command, but adding a Weather menu including Sun, Overcast, Rain and Fog (Maybe even wind speed) would be perfect for users who want to host events for servers.
case M_RPCs.M_Admin_Menu_Fog:
if ( GetGame().IsServer() )
{
Admin = GetServerMission().IsAdminID(sender.GetName(), sender.GetPlainId());
if ( Admin != null )
{
Weather weather = GetGame().GetWeather();
weather.GetOvercast().SetLimits( 0.0 , 2.0 );
weather.GetFog().SetLimits( 0.0 , 2.0 );
weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.0 );
weather.GetFog().SetForecastChangeLimits( 0.0, 0.0 );
weather.GetOvercast().SetForecastTimeLimits( 1800 , 1800 );
weather.GetFog().SetForecastTimeLimits( 600 , 600 );
weather.GetOvercast().Set( 1.0, 2, 60*5) ;
weather.GetFog().Set( 1.0, 2, 60*5 );
}
}
if ( GetGame().IsClient() && GetGame().IsMultiplayer() )
{
}
break;