◆ FlashbangEffect()
naive time of the day selector
-1: night; 1: day
References ALPHA_MAX, Class::CastTo(), g_Game, m_AlphaMaxActual, m_BreakPoint, m_DayTimeToggle, m_DeferAttenuation, m_FlashbangEffectSound, m_HitDuration, m_Initialized, m_Player, m_ProgressMultiplier, m_Requester, m_SoundMaxActual, m_Visual, and SOUND_DEFER_TIME.
◆ ~FlashbangEffect()
◆ ClearVisual()
protected void ClearVisual |
( |
| ) |
|
|
inlineprivate |
◆ PlaySound()
protected void PlaySound |
( |
| ) |
|
|
inlineprivate |
References Math::Clamp(), SEffectManager::CreateSound(), Error(), EffectSound::IsPlaying(), m_FlashbangEffectSound, m_Initialized, m_Player, m_ProgressMultiplier, m_SoundMaxActual, m_SoundStopTime, SetAttenuationFilter(), EffectSound::SetAutodestroy(), EffectSound::SetParent(), EffectSound::SetSoundFadeIn(), EffectSound::SetSoundFadeOut(), EffectSound::SetSoundLoop(), EffectSound::SetSoundMaxVolume(), EffectSound::SetSoundWaveKind(), and EffectSound::SoundPlay().
◆ ResetAttenuationFilter()
protected void ResetAttenuationFilter |
( |
| ) |
|
|
inlineprivate |
◆ SetAttenuationFilter()
protected void SetAttenuationFilter |
( |
| ) |
|
|
inlineprivate |
◆ SetupFlashbangValues()
void SetupFlashbangValues |
( |
float |
progress_mult = 1.0 , |
|
|
float |
visual_value_max = 1.0 , |
|
|
float |
sound_value_max = 1.0 |
|
) |
| |
|
inlineprivate |
◆ SetVisual()
protected void SetVisual |
( |
float |
val | ) |
|
|
inlineprivate |
◆ Stop()
◆ StopSound()
protected void StopSound |
( |
| ) |
|
|
inlineprivate |
◆ Update()
void Update |
( |
float |
deltatime | ) |
|
|
inlineprivate |
References Math::Clamp(), Error(), Math::InverseLerp(), m_AlphaMaxActual, m_BreakPoint, m_HitDuration, m_Initialized, m_SoundStopTime, m_TimeActive, m_Visual, ResetAttenuationFilter(), SetVisual(), and StopSound().
◆ ALPHA_MAX
protected const float ALPHA_MAX = 1.0 |
|
private |
◆ ALPHA_MIN
protected const float ALPHA_MIN = 0.0 |
|
private |
◆ m_AlphaMaxActual
protected float m_AlphaMaxActual |
|
private |
◆ m_BreakPoint
protected float m_BreakPoint |
|
private |
◆ m_DayTimeToggle
protected float m_DayTimeToggle |
|
private |
◆ m_DeferAttenuation
protected ref Timer m_DeferAttenuation |
|
private |
◆ m_FlashbangEffectSound
◆ m_HitDuration
protected float m_HitDuration |
|
private |
◆ m_Initialized
protected bool m_Initialized |
|
private |
◆ m_Player
◆ m_ProgressMultiplier
protected float m_ProgressMultiplier |
|
private |
◆ m_Requester
protected PPERequester_FlashbangEffects m_Requester |
|
private |
◆ m_SoundMaxActual
protected float m_SoundMaxActual |
|
private |
◆ m_SoundStopTime
protected float m_SoundStopTime |
|
private |
◆ m_TimeActive
protected float m_TimeActive |
|
private |
◆ m_Visual
◆ SOUND_DEFER_TIME
protected const float SOUND_DEFER_TIME = 0.4 |
|
private |
The documentation for this class was generated from the following file: