Script/WeatherReference

From SF3
Revision as of 13:55, 27 June 2017 by Dave (talk | contribs)

Jump to: navigation, search

class WeatherReference

A script which handles the weather.

Class Methods

int GetWorldTimeMS () const
get the absolute time in milliseconds that has passed since the level has started
int GetDeterministicRandomInt (const int _iFrom, const int _iTo) const
returns a deterministic random integer in the range [_iFrom; _iTo[
void RestoreDefaultWeather ()
restore weather settings to default
float GetShadowStrength () const
get current shadow strength
float GetDefaultShadowStrength () const
get default shadow strength
void SetShadowStrength (const float _fValue)
set shadow strength
float GetRoughness () const
get current roughness
float GetDefaultRoughness () const
get default roughness
void SetRoughness (const float _fValue)
set roughness
float GetViewDependentRoughness () const
get current view dependent roughness
float GetDefaultViewDependentRoughness () const
get default view dependent roughness
void SetViewDependentRoughness (const float _fValue)
set view dependent roughness
float GetButtScale () const
get current butt scale
float GetDefaultButtScale () const
get default butt scale
void SetButtScale (const float _fValue)
set butt scale
float GetButtDensity () const
get current butt density
float GetDefaultButtDensity () const
get default butt density
void SetButtDensity (const float _fValue)
set butt scale
float GetButtStrength () const
get current butt strength
float GetDefaultButtStrength () const
get default butt strength
void SetButtStrength (const float _fValue)
set butt strength
void GetButtLayerSpeedA (float&out _fOutX, float&out _fOutZ) const
get current butt speed for layer A
void GetDefaultButtLayerSpeedA (float&out _fOutX, float&out _fOutZ) const
get default butt speed for layer A
void SetButtLayerSpeedA (const float _fX, const float _fZ)
set butt speed for layer A
void GetButtLayerSpeedB (float&out _fOutX, float&out _fOutZ) const
get current butt speed for layer B
void GetDefaultButtLayerSpeedB (float&out _fOutX, float&out _fOutZ) const
get default butt speed for layer B
void SetButtLayerSpeedB (const float _fX, const float _fZ)
set butt speed for layer B
bool IsEffectEnabled (const EWeatherEffect _Effect) const
is effect currently enabled?
bool IsEffectEnabledByDefault (const EWeatherEffect _Effect) const
is effect enabled by default?
void EnableEffect (const EWeatherEffect _Effect, const bool _bEnabled)
enable or disable effect
float GetEffectIntensity (const EWeatherEffect _Effect) const
get current effect intensity
float GetDefaultEffectIntensity (const EWeatherEffect _Effect) const
get default effect intensity
void SetEffectIntensity (const EWeatherEffect _Effect, const float _fValue)
set effect intensity

class WeatherReference

A script which handles the weather.

Class Methods

int GetWorldTimeMS () const
get the absolute time in milliseconds that has passed since the level has started
int GetDeterministicRandomInt (const int _iFrom, const int _iTo) const
returns a deterministic random integer in the range [_iFrom; _iTo[
void RestoreDefaultWeather ()
restore weather settings to default
float GetShadowStrength () const
get current shadow strength
float GetDefaultShadowStrength () const
get default shadow strength
void SetShadowStrength (const float _fValue)
set shadow strength
float GetRoughness () const
get current roughness
float GetDefaultRoughness () const
get default roughness
void SetRoughness (const float _fValue)
set roughness
float GetViewDependentRoughness () const
get current view dependent roughness
float GetDefaultViewDependentRoughness () const
get default view dependent roughness
void SetViewDependentRoughness (const float _fValue)
set view dependent roughness
float GetButtScale () const
get current butt scale
float GetDefaultButtScale () const
get default butt scale
void SetButtScale (const float _fValue)
set butt scale
float GetButtDensity () const
get current butt density
float GetDefaultButtDensity () const
get default butt density
void SetButtDensity (const float _fValue)
set butt scale
float GetButtStrength () const
get current butt strength
float GetDefaultButtStrength () const
get default butt strength
void SetButtStrength (const float _fValue)
set butt strength
void GetButtLayerSpeedA (float&out _fOutX, float&out _fOutZ) const
get current butt speed for layer A
void GetDefaultButtLayerSpeedA (float&out _fOutX, float&out _fOutZ) const
get default butt speed for layer A
void SetButtLayerSpeedA (const float _fX, const float _fZ)
set butt speed for layer A
void GetButtLayerSpeedB (float&out _fOutX, float&out _fOutZ) const
get current butt speed for layer B
void GetDefaultButtLayerSpeedB (float&out _fOutX, float&out _fOutZ) const
get default butt speed for layer B
void SetButtLayerSpeedB (const float _fX, const float _fZ)
set butt speed for layer B
bool IsEffectEnabled (const EWeatherEffect _Effect) const
is effect currently enabled?
bool IsEffectEnabledByDefault (const EWeatherEffect _Effect) const
is effect enabled by default?
void EnableEffect (const EWeatherEffect _Effect, const bool _bEnabled)
enable or disable effect
float GetEffectIntensity (const EWeatherEffect _Effect) const
get current effect intensity
float GetDefaultEffectIntensity (const EWeatherEffect _Effect) const
get default effect intensity
void SetEffectIntensity (const EWeatherEffect _Effect, const float _fValue)
set effect intensity