DIFF

class UndergroundHandlerClientSource

UndergroundBunkerHandlerClient UndergroundHandlerClient

Constructors 2

Constants 8

const float LIGHT_BLEND_SPEED_IN = 5
const float LIGHT_BLEND_SPEED_OUT = 1.75
const float MAX_RATIO = 0.9

how much max ratio between 0..1 can a single breadcrumb occupy

const float RATIO_CUTOFF = 0

what's the minimum ratio a breadcrumb needs to have to be considered when calculatiing accommodation

const float DISTANCE_CUTOFF = 5

we ignore breadcrumbs further than this distance

const float ACCO_MODIFIER = 1

when we calculate eye accommodation between 0..1 based on the breadcrumbs values and distances, we multiply the result by this modifier to get the final eye accommodation value

const float DEFAULT_INTERPOLATION_SPEED = 7
const string UNDERGROUND_LIGHTING = "dz\\data\\lighting\\lighting_underground.txt"

Members 14

protected ref AnimationTimer m_AnimTimerLightBlend
protected PPERUndergroundAcco m_Requester
Referenced by GetRequester()
protected PPERequester_CameraNV m_NVRequester
protected ref set<UndergroundTrigger> m_InsideTriggers = new set<UndergroundTrigger>()
protected float m_EyeAccoTarget = 1
protected float m_AccoInterpolationSpeed
protected float m_EyeAcco = 1
protected float m_LightingLerpTarget
protected string m_AmbientController

active sound controlelr for ambient

protected EffectSound m_AmbientSound

Methods 23

void OnTriggerLeave(UndergroundTrigger trigger)
protected void CalculateEyeAccoTarget()
Referenced by ProcessEyeAcco()
protected void ProcessLighting(float timeSlice)
Referenced by Tick()
protected void UpdateNVGRequester(float value)
Referenced by ApplyEyeAcco(), and ProcessEyeAcco()
protected bool CalculateEyeAcco(float timeSlice)
Referenced by ProcessEyeAcco()
void OnUpdateTimerEnd()
void OnUpdateTimerIn()
void OnUpdateTimerOut()
protected void StopAmbientSound()
protected void DisplayDebugInfo(float acco, float lighting)DIAG_DEVELOPER
Referenced by Tick()