class FlashbangEffectSource
Constructors 2
void FlashbangEffect(PlayerBase player, bool visual = true)Referenced by PlayerBase.SpawnFlashbangEffect()
void ~FlashbangEffect()naive time of the day selector -1: night; 1: day
Constants 3
protected const float ALPHA_MIN = 0.0protected const float ALPHA_MAX = 1.0Referenced by FlashbangEffect()
protected const float SOUND_DEFER_TIME = 0.4SFX will be played ~0.5s AFTER VFX
Referenced by FlashbangEffect()
Members 14
protected float m_HitDurationprotected float m_BreakPointprotected float m_DayTimeToggleprotected float m_AlphaMaxActualactual max alpha of the effect
protected float m_SoundMaxActualactual max volume of the sound
protected float m_ProgressMultiplierprotected bool m_Visualprotected bool m_Initializedprotected PlayerBase m_PlayerReferenced by ~FlashbangEffect(), FlashbangEffect(), PlaySound()
Show 2 more
, ResetAttenuationFilter(), and SetAttenuationFilter()protected EffectSound m_FlashbangEffectSoundprotected float m_SoundStopTimeprotected ref Timer m_DeferAttenuationprotected PPERequester_FlashbangEffects m_RequesterMethods 9
void SetupFlashbangValues(float progress_mult = 1.0, float visual_value_max = 1.0, float sound_value_max = 1.0)References m_AlphaMaxActual, m_BreakPoint, m_HitDuration
Show 3 more
, m_Initialized, m_ProgressMultiplier, and m_SoundMaxActualReferenced by FlashGrenade.OnExplosionEffects()
protected void PlaySound()References Math.Clamp(), SEffectManager.CreateSound(), Error()
Show 19 more
, MiscGameplayFunctions.GetHeadBonePos(), EffectSound.IsPlaying(), Effect.SetAttachedLocalPos(), SetAttenuationFilter(), EffectSound.SetAutodestroy(), EffectSound.SetParent(), EffectSound.SetSoundFadeIn(), EffectSound.SetSoundFadeOut(), EffectSound.SetSoundLoop(), EffectSound.SetSoundMaxVolume(), EffectSound.SetSoundWaveKind(), EffectSound.SoundPlay(), Object.WorldToModel(), m_FlashbangEffectSound, m_Initialized, m_Player, m_ProgressMultiplier, m_SoundMaxActual, and m_SoundStopTimeprotected void SetAttenuationFilter()References Man.GetMasterAttenuation(), TimerBase.IsRunning(), Man.SetMasterAttenuation()
Show 2 more
, m_DeferAttenuation, and m_PlayerReferenced by PlaySound()
protected void ResetAttenuationFilter()Referenced by Update()
protected void StopSound()protected void ClearVisual()Referenced by ~FlashbangEffect()
protected void SetVisual(float val)References PPERequesterBase.IsRequesterRunning(), PPERequester_FlashbangEffects.SetFlashbangIntensity(), m_DayTimeToggle
Show 1 more
, m_RequesterReferenced by Update()
void Stop()References StopSound()
void Update(float deltatime)References Math.Clamp(), Error(), Math.InverseLerp()
Show 10 more
, ResetAttenuationFilter(), SetVisual(), StopSound(), m_AlphaMaxActual, m_BreakPoint, m_HitDuration, m_Initialized, m_SoundStopTime, m_TimeActive, and m_VisualReferenced by PlayerBase.EOnPostFrame()