DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Init()

override void SakhalData::Init ( )
inlineprivate

См. определение в файле Sakhal.c строка 28

29 {
30 super.Init();
31
32 // new temperature curve settings
33 m_Sunrise_Jan = 8.41;
34 m_Sunset_Jan = 15.58;
35 m_Sunrise_Jul = 3.75;
36 m_Sunset_Jul = 20.25;
37
38 int tempIdx;
39 m_MinTemps = {-6.5, -9.5, -6.5, -9.5, 2, 6, 9, 10, 6, 1, -5, -10}; //{-13, -11, -7, -3, 2, 6, 9, 10, 6, 1, -5, -10} original values
40 if (CfgGameplayHandler.GetEnvironmentMinTemps() && CfgGameplayHandler.GetEnvironmentMinTemps().Count() == 12)
41 {
42 for (tempIdx = 0; tempIdx < CfgGameplayHandler.GetEnvironmentMinTemps().Count(); tempIdx++)
43 {
44 m_MinTemps[tempIdx] = CfgGameplayHandler.GetEnvironmentMinTemps().Get(tempIdx);
45 }
46 }
47
48 m_MaxTemps = {-3, -5, -3, -5, 9, 14, 16, 17, 14, 8, 1, -3}; //{-6, -4, -1, 3, 9, 14, 16, 17, 14, 8, 1, -3} original values
49 if (CfgGameplayHandler.GetEnvironmentMaxTemps() && CfgGameplayHandler.GetEnvironmentMaxTemps().Count() == 12)
50 {
51 for (tempIdx = 0; tempIdx < CfgGameplayHandler.GetEnvironmentMaxTemps().Count(); tempIdx++)
52 {
53 m_MaxTemps[tempIdx] = CfgGameplayHandler.GetEnvironmentMaxTemps().Get(tempIdx);
54 }
55 }
56 m_Pollution = m_Pollution | EPollution.HEAVYMETAL;
57
59
61
64
65 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
66 {
67 m_Weather.SetDynVolFogHeightDensity( 1, 0 );
68 m_Weather.SetDynVolFogHeightBias( 0, 0 );
69 m_Weather.GetFog().Set(0,0,1000);
70 m_Weather.GetFog().SetLimits(0,0);
71 m_Weather.GetOvercast().SetLimits(0.07, 1);
72
73 if (GetGame().IsMultiplayer())
74 {
75 m_Weather.GetOvercast().Set(Math.RandomFloat(0,0.75),0,5); //forcing a random weather at a clean server start and an instant change for overcast
76 CalculateVolFog(m_Weather.GetSnowfall().GetActual(),m_Weather.GetWindSpeed(),0);
77 }
78
79 m_DefaultPlayerRestrictedAreas = {"pra/warheadstorage.json"};
80 }
81
82
83 }
@ Count
Определения RandomGeneratorSyncManager.c:8
override void CalculateVolFog(float lerpValue, float windMagnitude, float changeTime)
Определения Sakhal.c:657
bool m_Pollution
Определения WorldData.c:29
float m_Sunset_Jan
Определения WorldData.c:25
float m_Sunrise_Jan
Определения WorldData.c:24
int m_ClearWeatherChance
Определения WorldData.c:37
ref WorldDataWeatherSettings m_WeatherDefaultSettings
Определения WorldData.c:31
float m_TemperatureInsideBuildingsModifier
how many % of environment temperature can be lowered by clouds
Определения WorldData.c:10
float m_MaxTemps[12]
Определения WorldData.c:22
float m_MinTemps[12]
Определения WorldData.c:23
ref TStringArray m_DefaultPlayerRestrictedAreas
Определения WorldData.c:33
int m_BadWeatherChance
weather related
Определения WorldData.c:36
float m_UniversalTemperatureSourceCapModifier
Определения WorldData.c:41
Weather m_Weather
Определения WorldData.c:18
float m_Sunset_Jul
Определения WorldData.c:27
float m_Sunrise_Jul
Определения WorldData.c:26
proto native CGame GetGame()

Перекрестные ссылки CalculateVolFog(), Count, CfgGameplayHandler::GetEnvironmentMaxTemps(), CfgGameplayHandler::GetEnvironmentMinTemps(), GetGame(), WorldData::m_BadWeatherChance, WorldData::m_ClearWeatherChance, WorldData::m_DefaultPlayerRestrictedAreas, WorldData::m_MaxTemps, WorldData::m_MinTemps, WorldData::m_Pollution, WorldData::m_Sunrise_Jan, WorldData::m_Sunrise_Jul, WorldData::m_Sunset_Jan, WorldData::m_Sunset_Jul, WorldData::m_TemperatureInsideBuildingsModifier, WorldData::m_UniversalTemperatureSourceCapModifier, WorldData::m_Weather, WorldData::m_WeatherDefaultSettings и Math::RandomFloat().