Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Weather commands #1

Open
Peinful opened this issue Nov 27, 2018 · 1 comment
Open

[Feature Request] Weather commands #1

Peinful opened this issue Nov 27, 2018 · 1 comment

Comments

@Peinful
Copy link

Peinful commented Nov 27, 2018

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;
@Peinful Peinful changed the title Weather commands [Feature Request] Weather commands Nov 27, 2018
@SchnitzelPommes
Copy link
Member

Will check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants