Enumerations | |
enum | EUndergroundPresence { NONE , OUTER , TRANSITIONING , FULL } |
Functions | |
void | UndergroundHandlerClient (PlayerBase player) |
void | ~UndergroundHandlerClient () |
protected PPERUndergroundAcco | GetRequester () |
void | OnTriggerEnter (UndergroundTrigger trigger) |
void | OnTriggerLeave (UndergroundTrigger trigger) |
protected void | CalculateEyeAccoTarget () |
protected void | CalculateBreadCrumbs () |
protected void | CalculateLinePointFade () |
protected void | ProcessEyeAcco (float timeSlice) |
protected void | ProcessLighting (float timeSlice) |
protected void | ProcessSound (float timeSlice) |
void | Tick (float timeSlice) |
protected void | ApplyEyeAcco () |
protected void | UpdateNVGRequester (float value) |
protected bool | CalculateEyeAcco (float timeSlice) |
protected void | OnTriggerInsiderUpdate () |
protected void | SetUndergroundPresence (UndergroundTrigger trigger) |
protected void | EnableLights (bool enable) |
void | OnUpdateTimerEnd () |
void | OnUpdateTimerIn () |
void | OnUpdateTimerOut () |
protected void | PlayAmbientSound () |
protected void | StopAmbientSound () |
protected void | OnUndergroundPresenceUpdate (EUndergroundPresence newPresence, EUndergroundPresence oldPresence) |
Variables | |
enum EUndergroundPresence | LIGHT_BLEND_SPEED_IN = 5 |
const float | LIGHT_BLEND_SPEED_OUT = 1.75 |
const float | MAX_RATIO = 0.9 |
const float | RATIO_CUTOFF = 0 |
const float | DISTANCE_CUTOFF = 5 |
const float | ACCO_MODIFIER = 1 |
const float | DEFAULT_INTERPOLATION_SPEED = 7 |
const string | UNDERGROUND_LIGHTING = "dz\\data\\lighting\\lighting_underground.txt" |
protected ref AnimationTimer | m_AnimTimerLightBlend |
protected PlayerBase | m_Player |
protected PPERUndergroundAcco | m_Requester |
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 float | m_LightingLerp |
protected string | m_AmbientController |
protected EffectSound | m_AmbientSound |
protected UndergroundTrigger | m_BestTrigger |
protected UndergroundTrigger | m_TransitionalTrigger |
enum EUndergroundPresence |
protected void ApplyEyeAcco | ( | ) |
References DiagMenu::GetBool(), GetDayZGame(), GetRequester(), m_EyeAcco, m_LightingLerp, and UpdateNVGRequester().
Referenced by ProcessEyeAcco().
protected void CalculateBreadCrumbs | ( | ) |
References ACCO_MODIFIER, ARGB(), COLOR_RED, vector::Distance(), DISTANCE_CUTOFF, Debug::DrawLine(), Debug::DrawSphere(), DiagMenu::GetBool(), GetGame(), CGame::GetPlayer(), m_EyeAccoTarget, m_Player, m_TransitionalTrigger, MAX_RATIO, RATIO_CUTOFF, and DayZPhysics::RayCastBullet().
Referenced by CalculateEyeAccoTarget().
References Math::AbsFloat(), m_AccoInterpolationSpeed, m_EyeAcco, m_EyeAccoTarget, m_Player, and m_TransitionalTrigger.
Referenced by ProcessEyeAcco().
protected void CalculateEyeAccoTarget | ( | ) |
References CalculateBreadCrumbs(), CalculateLinePointFade(), and m_TransitionalTrigger.
Referenced by ProcessEyeAcco().
protected void CalculateLinePointFade | ( | ) |
References ACCO_MODIFIER, DbgUI::Begin(), COLOR_RED, COLOR_YELLOW, vector::DistanceSq(), Debug::DrawLine(), Debug::DrawSphere(), DbgUI::End(), DiagMenu::GetBool(), AnimationTimer::IsRunning(), Math::Lerp(), LIGHT_BLEND_SPEED_IN, LIGHT_BLEND_SPEED_OUT, m_AnimTimerLightBlend, m_EyeAccoTarget, m_LightingLerp, m_LightingLerpTarget, m_Player, m_TransitionalTrigger, AnimationTimer::Run(), String(), and DbgUI::Text().
Referenced by CalculateEyeAccoTarget().
protected void EnableLights | ( | bool | enable | ) |
Referenced by OnUndergroundPresenceUpdate().
protected PPERUndergroundAcco GetRequester | ( | ) |
References m_Requester.
Referenced by ApplyEyeAcco(), ProcessEyeAcco(), and Managed::RegisterRequester().
void OnTriggerEnter | ( | UndergroundTrigger | trigger | ) |
References m_InsideTriggers, and OnTriggerInsiderUpdate().
protected void OnTriggerInsiderUpdate | ( | ) |
References DEFAULT_INTERPOLATION_SPEED, m_AccoInterpolationSpeed, m_BestTrigger, m_EyeAccoTarget, m_InsideTriggers, m_TransitionalTrigger, and SetUndergroundPresence().
Referenced by OnTriggerEnter(), and OnTriggerLeave().
void OnTriggerLeave | ( | UndergroundTrigger | trigger | ) |
References m_InsideTriggers, and OnTriggerInsiderUpdate().
protected void OnUndergroundPresenceUpdate | ( | EUndergroundPresence | newPresence, |
EUndergroundPresence | oldPresence | ||
) |
References EnableLights(), GetGame(), CGame::GetWeather(), CGame::GetWorld(), LIGHT_BLEND_SPEED_IN, LIGHT_BLEND_SPEED_OUT, m_AnimTimerLightBlend, m_BestTrigger, m_LightingLerp, PlayAmbientSound(), AnimationTimer::Run(), World::SetUserLightingLerp(), StopAmbientSound(), and Weather::SuppressLightningSimulation().
Referenced by SetUndergroundPresence().
void OnUpdateTimerEnd | ( | ) |
void OnUpdateTimerIn | ( | ) |
References Easing::EaseInQuint(), AnimationTimer::GetValue(), m_AnimTimerLightBlend, and m_LightingLerp.
void OnUpdateTimerOut | ( | ) |
References Easing::EaseOutCubic(), AnimationTimer::GetValue(), m_AnimTimerLightBlend, and m_LightingLerp.
protected void PlayAmbientSound | ( | ) |
References m_AmbientController, m_AmbientSound, m_BestTrigger, m_Player, and SetSoundControllerOverride().
Referenced by OnUndergroundPresenceUpdate().
protected void ProcessEyeAcco | ( | float | timeSlice | ) |
References ApplyEyeAcco(), CalculateEyeAcco(), CalculateEyeAccoTarget(), GetRequester(), m_Player, and UpdateNVGRequester().
Referenced by Tick().
protected void ProcessLighting | ( | float | timeSlice | ) |
References DiagMenu::GetBool(), GetGame(), CGame::GetWorld(), m_LightingLerp, and World::SetUserLightingLerp().
Referenced by Tick().
protected void ProcessSound | ( | float | timeSlice | ) |
protected void SetUndergroundPresence | ( | UndergroundTrigger | trigger | ) |
References m_Player, and OnUndergroundPresenceUpdate().
Referenced by OnTriggerInsiderUpdate().
protected void StopAmbientSound | ( | ) |
References string::Empty, Empty, m_AmbientController, m_AmbientSound, m_Player, and SetSoundControllerOverride().
Referenced by OnUndergroundPresenceUpdate().
void Tick | ( | float | timeSlice | ) |
References DiagMenu::GetBool(), GetGame(), m_LightingLerp, m_Player, ProcessEyeAcco(), ProcessLighting(), and ProcessSound().
void UndergroundHandlerClient | ( | PlayerBase | player | ) |
protected void UpdateNVGRequester | ( | float | value | ) |
References m_NVRequester.
Referenced by ApplyEyeAcco(), and ProcessEyeAcco().
void ~UndergroundHandlerClient | ( | ) |
const float ACCO_MODIFIER = 1 |
Referenced by CalculateBreadCrumbs(), and CalculateLinePointFade().
const float DEFAULT_INTERPOLATION_SPEED = 7 |
Referenced by OnTriggerInsiderUpdate().
const float DISTANCE_CUTOFF = 5 |
Referenced by CalculateBreadCrumbs().
enum EUndergroundPresence LIGHT_BLEND_SPEED_IN = 5 |
Referenced by CalculateLinePointFade(), and OnUndergroundPresenceUpdate().
const float LIGHT_BLEND_SPEED_OUT = 1.75 |
Referenced by CalculateLinePointFade(), and OnUndergroundPresenceUpdate().
protected float m_AccoInterpolationSpeed |
Referenced by CalculateEyeAcco(), and OnTriggerInsiderUpdate().
protected string m_AmbientController |
Referenced by PlayAmbientSound(), and StopAmbientSound().
protected EffectSound m_AmbientSound |
protected ref AnimationTimer m_AnimTimerLightBlend |
Referenced by CalculateLinePointFade(), OnUndergroundPresenceUpdate(), OnUpdateTimerIn(), and OnUpdateTimerOut().
protected UndergroundTrigger m_BestTrigger |
Referenced by OnTriggerInsiderUpdate(), OnUndergroundPresenceUpdate(), PlayAmbientSound(), and ProcessSound().
protected float m_EyeAcco = 1 |
protected float m_EyeAccoTarget = 1 |
protected ref set<UndergroundTrigger> m_InsideTriggers = new set<UndergroundTrigger>() |
Referenced by OnTriggerEnter(), OnTriggerInsiderUpdate(), and OnTriggerLeave().
protected float m_LightingLerp |
protected float m_LightingLerpTarget |
Referenced by CalculateLinePointFade().
protected PPERequester_CameraNV m_NVRequester |
Referenced by UndergroundHandlerClient(), and UpdateNVGRequester().
protected PlayerBase m_Player |
protected PPERUndergroundAcco m_Requester |
protected UndergroundTrigger m_TransitionalTrigger |
const float MAX_RATIO = 0.9 |
Referenced by CalculateBreadCrumbs().
const float RATIO_CUTOFF = 0 |
Referenced by CalculateBreadCrumbs().
const string UNDERGROUND_LIGHTING = "dz\\data\\lighting\\lighting_underground.txt" |
Referenced by UndergroundHandlerClient().