|
|
@ -67,6 +67,10 @@ void WeatherManager::setFallbackWeather(Weather& weather,const std::string& name
|
|
|
|
weather.mGlareView = mFallback->getFallbackFloat("Weather_"+upper+"_Glare_View");
|
|
|
|
weather.mGlareView = mFallback->getFallbackFloat("Weather_"+upper+"_Glare_View");
|
|
|
|
weather.mCloudTexture = mFallback->getFallbackString("Weather_"+upper+"_Cloud_Texture");
|
|
|
|
weather.mCloudTexture = mFallback->getFallbackString("Weather_"+upper+"_Cloud_Texture");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const float fStromWindSpeed = mStore->get<ESM::GameSetting>().find("fStromWindSpeed")->getFloat();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
weather.mIsStorm = weather.mWindSpeed > fStromWindSpeed;
|
|
|
|
|
|
|
|
|
|
|
|
bool usesPrecip = mFallback->getFallbackBool("Weather_"+upper+"_Using_Precip");
|
|
|
|
bool usesPrecip = mFallback->getFallbackBool("Weather_"+upper+"_Using_Precip");
|
|
|
|
if (usesPrecip)
|
|
|
|
if (usesPrecip)
|
|
|
|
weather.mRainEffect = "meshes\\raindrop.nif";
|
|
|
|
weather.mRainEffect = "meshes\\raindrop.nif";
|
|
|
@ -80,7 +84,6 @@ Rain Height Max=700 ?
|
|
|
|
Rain Threshold=0.6 ?
|
|
|
|
Rain Threshold=0.6 ?
|
|
|
|
Max Raindrops=650 ?
|
|
|
|
Max Raindrops=650 ?
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
weather.mIsStorm = (name == "ashstorm" || name == "blight");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mWeatherSettings[name] = weather;
|
|
|
|
mWeatherSettings[name] = weather;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -113,8 +116,8 @@ float WeatherManager::calculateAngleFade (const std::string& moonName, float ang
|
|
|
|
return 1.f;
|
|
|
|
return 1.f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
WeatherManager::WeatherManager(MWRender::RenderingManager* rendering,MWWorld::Fallback* fallback) :
|
|
|
|
WeatherManager::WeatherManager(MWRender::RenderingManager* rendering, MWWorld::Fallback* fallback, MWWorld::ESMStore* store) :
|
|
|
|
mHour(14), mWindSpeed(0.f), mIsStorm(false), mStormDirection(0,1,0), mFallback(fallback),
|
|
|
|
mHour(14), mWindSpeed(0.f), mIsStorm(false), mStormDirection(0,1,0), mFallback(fallback), mStore(store),
|
|
|
|
mRendering(rendering), mCurrentWeather("clear"), mNextWeather(""), mFirstUpdate(true),
|
|
|
|
mRendering(rendering), mCurrentWeather("clear"), mNextWeather(""), mFirstUpdate(true),
|
|
|
|
mRemainingTransitionTime(0), mThunderFlash(0), mThunderChance(0), mThunderChanceNeeded(50),
|
|
|
|
mRemainingTransitionTime(0), mThunderFlash(0), mThunderChance(0), mThunderChanceNeeded(50),
|
|
|
|
mTimePassed(0), mWeatherUpdateTime(0), mThunderSoundDelay(0)
|
|
|
|
mTimePassed(0), mWeatherUpdateTime(0), mThunderSoundDelay(0)
|
|
|
|