Bifi

Wetter verändern

2 posts in this topic

Hallo Community

Ich habe folgendes gefunden in der config.cpp, die im Exile_server_config vorhanden ist.

class Weather
 {
  /*
   You can define multiple "keyframes" for the weather to change. The server will pick
   a keyframe randomly to simulate the weather. It will change the weather-keyframes
   based on the following interval
  */
  interval = 30;
 
  /*
   Add the keyframes here. The server will pick one random, so if you want one
   weather type of be more dominant compared to others, add it multiple times
  */
  keyframes[] = {"Sunny", "Cloudy", "Thunderstorm"};
 
  /*
   This is a keyframe. Look up the BIKI to get more details about the parameters
 
   Be sure to design the fog settings at a view distance of 1,600m as this is the
   limit in multiplayer by default
 
   https://community.bistudio.com/wiki/fogParams
   https://community.bistudio.com/wiki/overcast
   https://community.bistudio.com/wiki/setWaves
   https://community.bistudio.com/wiki/setWindStr
   https://community.bistudio.com/wiki/setGusts
   https://community.bistudio.com/wiki/setRain
   https://community.bistudio.com/wiki/setLightnings
   https://community.bistudio.com/wiki/setRainbow
  */
  class Sunny
  {
   fogValue = 0.1;
   fogDecay = 0.2;
   fogBase = 5;
   overcast = 0.2;
   waves = 0.2;
   wind = 0.25;
   gusts = 0.1;
   rain = 0;
   lightnings = 0;
   rainbows = 0;
  };
 
  class Cloudy
  {
   fogValue = 0.2;
   fogDecay = 0.1;
   fogBase = 5;
   overcast = 0.4;
   waves = 0.4;
   wind = 0.25;
   gusts = 0.5;
   rain = 0.1;
   lightnings = 0.1;
   rainbows = 1;
  };
 
  class Thunderstorm
  {
   fogValue = 0.7;
   fogDecay = 0.2;
   fogBase = 5;
   overcast = 1;
   waves = 1;
   wind = 0.25;
   gusts = 0.5;
   rain = 1;
   lightnings = 1;
   rainbows = 0.5;
  };
 

Meine frage ist nun, kann ich da einfach eine "selbst definierte class" anwenden?

Zum Beispiel:

keyframes[] = {"Sunny", "Cloudy", "Thunderstorm", "Meinwetter"};
class Meinwetter
		{
			fogValue = 0.7;
			fogDecay = 0.2;
			fogBase = 5;
			overcast = 1;
			waves = 1;
			wind = 0.50;
			gusts = 0.5;
			rain = 1;
			lightnings = 1;
			rainbows = 1;
		};

Würde das so funktionieren, oder Muss das irgendwo anders noch definiert werden?

Grüße

Bifi

Edited by Bifi

Share this post


Link to post
Share on other sites
Advertisement

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.