15 string root_path =
"cfgCharacterScenes " +
g_Game.GetWorldName();
17 int count =
g_Game.ConfigGetChildrenCount(root_path);
18 int index =
Math.RandomInt(0, count - 1);
20 g_Game.ConfigGetChildName(root_path, index, childName);
22 string scene_path = root_path +
" " + childName;
27 g_Game.ConfigGetIntArray(scene_path +
" date", date);
28 float fov =
g_Game.ConfigGetFloat(scene_path +
" fov");
29 float overcast =
g_Game.ConfigGetFloat(scene_path +
" overcast");
30 float rain =
g_Game.ConfigGetFloat(scene_path +
" rain");
31 float snowfall =
g_Game.ConfigGetFloat(scene_path +
" snowfall");
32 float fog =
g_Game.ConfigGetFloat(scene_path +
" fog");
34 if (
g_Game.ConfigIsExisting(scene_path +
" windspeed") ) windspeed =
g_Game.ConfigGetFloat(scene_path +
" windspeed");
35 g_Game.ConfigGetFloatArray(scene_path +
" storm", storm);
39 if (world && date.Count() >= 5)
41 world.SetDate(date.Get(0), date.Get(1), date.Get(2), date.Get(3), date.Get(4));
73 m_Weather.GetOvercast().SetLimits( overcast, overcast );
74 m_Weather.GetRain().SetLimits( rain, rain );
75 m_Weather.GetSnowfall().SetLimits( snowfall, snowfall );
78 m_Weather.GetOvercast().Set( overcast, 0, 0);
80 m_Weather.GetSnowfall().Set( snowfall, 0, 0);
83 if ( storm.Count() == 3 )
85 m_Weather.SetStorm(storm.Get(0),storm.Get(1),storm.Get(2));
88 if ( windspeed != -1 )