DIFF

class DustEffectManager

Constructors 1

void DustEffectManager()

Constants 10

protected const float CLOUD_EFFECT_ORIGIN_HEIGHT = 1.5
protected const float CLOUD_EFFECT_SPEED_ADJUSTMENT = 3.5
protected const float GROUND_EFFECT_SPEED_COEFICIENT = 20
protected const float GROUND_EFFECT_SPEED_ADJUSTMENT = 3
protected const float GROUND_EFFECT_END_TEST_DISTANCE = 3
Referenced by CreateGroundEffect()
protected const float GROUND_EFFECT_WIND_BIAS_SPREAD_SCALE = 0.6
protected const float GROUND_EFFECT_WIND_BIAS_VARIATION_RANGE = 0.4
const float BASE_FREQUENCY = 500
const float CLOUD_BASE_FREQUENCY = 10
const float CLOUD_BASE_DURATION = 20

Members 33

protected static ref DustEffectManager m_Instance = NULL
protected bool m_EnableCloudEffect
protected int m_CloudEffectId
protected float m_CloudEffectBaseDistance
protected float m_CloudEffectCooldown
protected float m_CloudEffectCooldownMin
protected float m_CloudEffectCooldownMax
protected float m_CloudEffectThreshold
protected float m_CloudEffectDurationMin
protected float m_CloudEffectDurationMax
protected float m_CloudEffectDuration
protected bool m_CloudEffectReadFromSurface
protected bool m_EnableGroundEffect
protected float m_GroundEffectThreshold
protected float m_GroundEffectIntensity
protected float m_TimeFromLastGroundEffect
protected float m_GroundEffectWindWeight
protected bool m_GroundEffectTestEndPoint
protected float m_GroundEffectLifetimeMin
protected float m_GroundEffectLifetimeMax
protected float m_GroundEffectSizeMin
protected float m_GroundEffectSizeMax
protected bool m_EnableCeilingDustEffect = true

'on' by default

protected static ref map<int, string> m_ParticleIDEffectPairing

particleID, effect type>

float m_Intensity
float m_TimeFromLastEffect
float m_ActualGroundEffectPeriod
protected float m_TimeEffectCloud
protected float m_ActualDurationCloud
protected bool m_ActiveCloudEffect

Methods 60

protected void InitCeilingEffect()
Referenced by Init()
protected void RegisterCeilingPair(int particleID, string effectType)
Referenced by InitCeilingEffect()
void UpdateGroundEffect(float deltaT, float windStrength)
Referenced by Update()
void SetCloudEffectEnable(bool enable)
bool IsCloudEffectEnable()
void SetGroundEffectEnable(bool enable)
bool IsGroundEffectEnable()
void SetCloudEffectThreshold(float threshold)
float GetCloudEffectThreshold()
void SetCloudEffectDistance(float distance)
float GetCloudEffectDistance()
float GetCloudEffectCooldownMin()
void SetCloudEffectCooldownMin(float cooldown)
void SetCloudEffectCooldownMax(float cooldown)
void SetCloudEffectCooldown(float cooldown)
float GetCloudEffectCooldown()
float ComputeCloudEffectCooldown()
Referenced by UpdateCloudEffect()
float GetCloudEffectDurationMin()
void SetCloudEffectDurationMin(float duration)
void SetCloudEffectDurationMax(float duration)
void SetCloudEffectDuration(float duration)
float GetCloudEffectDuration()
float ComputeCloudEffectDuration()
Referenced by UpdateCloudEffect()
void SetCloudEffectReadFromSurfaceEnable(bool enable)
bool IsCloudEffectReadFromSurfaceEnable()
void SetGroundEffectThreshold(float threshold)
float GetGroundEffectThreshold()
float GetGroundEffectIntensity()
void SetGroundEffectRadius(float radius)
float GetGroundEffectRadius()
void SetGroundEffectWindWeight(float windWeight)
void SetGroundEffectEndPointTest(bool endPointtest)
Referenced by InitGroundEffect()
float GetGroundEffectWindWeight()
void SetGroundEffectReadFromSurfaceEnable(bool enable)
bool IsGroundEffectReadFromSurfaceEnable()
protected float ComputeWindBiasedValue(float windStrength, float minVal, float maxVal)
Referenced by CreateGroundEffect()
void SetGroundEffectLifetimeRange(float minLifetime, float maxLifetime)
float GetGroundEffectLifetimeMin()
float GetGroundEffectLifetimeMax()
void SetGroundEffectSizeRange(float minSize, float maxSize)
float GetGroundEffectSizeMin()
float GetGroundEffectSizeMax()
static void AdjustCeilingDustEffectFrequency(string surfaceType, int particleID, inout int min, inout int max)

optional adjustment of frequency by particleID

static string GetCeilingEffectType(int particleID)

Returns effect type paired to the particleID

References ErrorEx(), map.Get(), string.Empty
Show 1 more, m_ParticleIDEffectPairing
void SetCeilingDustEffectEnable(bool enable)