Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
SakhalData Class Reference
Inheritance diagram for SakhalData:
WorldData

Protected Member Functions

override void CalculateVolFog (float lerpValue, float windMagnitude, float changeTime)
override void CalculateWind (int newWeather, bool suddenChange, out float magnitude, out float direction)
override float GetAgentSpawnChance (eAgents agent)
override float GetColdAreaToolDamageModifier ()
bool LogWeatherData ()

Protected Attributes

const int BAD_WEATHER = 3
const int CLEAR_WEATHER = 1
 DEPRECATED (see WorldDataWeatherConstants).
const int CLOUDY_WEATHER = 2

Private Member Functions

override void Init ()
override void InitYieldBank ()
override void SetupLiquidTemperatures ()
override void SetupWeatherSettings ()
override bool WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time)
Private Member Functions inherited from WorldData
void WorldData ()
void BaseTempDebug (int month, int day)
float CalcBaseEnvironmentTemperature (float monthday, float daytime)
void CalculateVolFog (float lerpValue, float windMagnitude, float changeTime)
void CalculateWind (int newWeather, bool suddenChange, out float magnitude, out float direction)
float ComputeSnowflakeScale (Weather weather)
 Returns the desired snowflake scale based on weather simulation state.
void CreateYieldBank ()
float GetAgentSpawnChance (eAgents agent)
float GetApproxSunriseTime (float monthday)
float GetApproxSunsetTime (float monthday)
array< vectorGetArtyFiringPos ()
float GetBaseEnvTemperature ()
float GetBaseEnvTemperatureAtObject (notnull Object object)
float GetBaseEnvTemperatureAtPosition (vector pos)
float GetBaseEnvTemperatureExact (int month, int day, int hour, int minute)
CatchYieldBank GetCatchYieldBank ()
float GetColdAreaToolDamageModifier ()
float GetDayTemperature ()
int GetDaytime ()
TStringArray GetDefaultPRAPaths ()
float GetLiquidTypeEnviroTemperature (int liquidType)
float GetNightTemperature ()
int GetPollution ()
float GetTemperature (Object object, EEnvironmentTemperatureComponent properties=EEnvironmentTemperatureComponent.BASE)
 Return actual temperature of environment based on provided parameters.
float GetTemperatureComponentValue (float temperatureIn, EEnvironmentTemperatureComponent properties=0)
 Return value of queried EEnvironmentTemperatureComponent which can be used in future calculation(s).
float GetUniversalTemperatureSourceCapModifier ()
float GetWindCoef ()
void Init ()
void InitYieldBank ()
 override this to properly register world-specific yields
void SetupLiquidTemperatures ()
void SetupWeatherSettings ()
void UpdateBaseEnvTemperature (float timeslice)
void UpdateWeatherEffects (Weather weather, float timeslice)
 Updates local weather effects.
bool WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time)
float WindEffectTemperatureValue (float temperatureInput)

Private Attributes

const float COLD_AREA_TOOL_DMG_MODIF = 1.2
const float SPAWN_CHANCE_CHOLERA = 20
Private Attributes inherited from WorldData
int m_BadWeatherChance
 weather related
int m_Chance = 50
int m_ChoosenWeather = 1
int m_ClearWeatherChance
float m_DayTemperature = 10
 DEPRECATED.
ref TStringArray m_DefaultPlayerRestrictedAreas
bool m_EnTempUpdated
float m_EnvironmentTemperature
ref array< vectorm_FiringPos
bool m_IsSuddenChange
int m_LastWeather = 0
ref WorldDataLiquidSettings m_LiquidSettings
float m_MaxTemps [12]
float m_MinTemps [12]
float m_NightTemperature = 6
bool m_Pollution
int m_SameWeatherCnt = 0
int m_StepValue = 5
float m_Sunrise_Jan
float m_Sunrise_Jul
float m_Sunset_Jan
float m_Sunset_Jul
float m_Timer
float m_UniversalTemperatureSourceCapModifier
Weather m_Weather
ref WorldDataWeatherSettings m_WeatherDefaultSettings
float m_WorldWindCoef
ref CatchYieldBank m_YieldBank
float SUDDENCHANGE_LENGTH_MULTIPLIER = 0.4
float SUDDENCHANGE_TIME_MULTIPLIER = 0.2
float WIND_DIRECTION_TIME_MULTIPLIER = 0.05
float WIND_MAGNITUDE_TIME_MULTIPLIER = 0.1

Detailed Description

Definition at line 2 of file sakhal.c.

Member Function Documentation

◆ CalculateVolFog()

override void CalculateVolFog ( float lerpValue,
float windMagnitude,
float changeTime )
inlineprotected

Definition at line 657 of file sakhal.c.

References Easing::EaseInQuart(), Math::Lerp(), and WorldData::m_Weather.

Referenced by CalculateWind(), Init(), and WeatherOnBeforeChange().

◆ CalculateWind()

override void CalculateWind ( int newWeather,
bool suddenChange,
out float magnitude,
out float direction )
inlineprotected

◆ GetAgentSpawnChance()

override float GetAgentSpawnChance ( eAgents agent)
inlineprotected

Definition at line 669 of file sakhal.c.

References SPAWN_CHANCE_CHOLERA.

◆ GetColdAreaToolDamageModifier()

override float GetColdAreaToolDamageModifier ( )
inlineprotected

Definition at line 677 of file sakhal.c.

References COLD_AREA_TOOL_DMG_MODIF.

◆ Init()

◆ InitYieldBank()

override void InitYieldBank ( )
inlineprivate

Definition at line 85 of file sakhal.c.

References WorldData::m_YieldBank, and YieldItemJunk().

◆ LogWeatherData()

bool LogWeatherData ( )
inlineprotected

Definition at line 682 of file sakhal.c.

◆ SetupLiquidTemperatures()

override void SetupLiquidTemperatures ( )
inlineprivate

◆ SetupWeatherSettings()

override void SetupWeatherSettings ( )
inlineprivate

Definition at line 110 of file sakhal.c.

References WorldData::m_WeatherDefaultSettings.

◆ WeatherOnBeforeChange()

Field Documentation

◆ BAD_WEATHER

const int BAD_WEATHER = 3
protected

Definition at line 693 of file sakhal.c.

◆ CLEAR_WEATHER

const int CLEAR_WEATHER = 1
protected

DEPRECATED (see WorldDataWeatherConstants).

Definition at line 691 of file sakhal.c.

◆ CLOUDY_WEATHER

const int CLOUDY_WEATHER = 2
protected

Definition at line 692 of file sakhal.c.

Referenced by WeatherOnBeforeChange().

◆ COLD_AREA_TOOL_DMG_MODIF

const float COLD_AREA_TOOL_DMG_MODIF = 1.2
private

Definition at line 5 of file sakhal.c.

Referenced by GetColdAreaToolDamageModifier().

◆ SPAWN_CHANCE_CHOLERA

const float SPAWN_CHANCE_CHOLERA = 20
private

Definition at line 4 of file sakhal.c.

Referenced by GetAgentSpawnChance().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/classes/worlds/sakhal.c