PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
FlashbangEffect Class Reference

Private Member Functions

void FlashbangEffect (PlayerBase player, bool visual=true)
 
void ~FlashbangEffect ()
 
void SetupFlashbangValues (float progress_mult=1.0, float visual_value_max=1.0, float sound_value_max=1.0)
 
protected void PlaySound ()
 
protected void SetAttenuationFilter ()
 
protected void ResetAttenuationFilter ()
 
protected void StopSound ()
 
protected void ClearVisual ()
 
protected void SetVisual (float val)
 
void Stop ()
 
void Update (float deltatime)
 

Private Attributes

protected const float ALPHA_MIN = 0.0
 
protected const float ALPHA_MAX = 1.0
 
protected const float SOUND_DEFER_TIME = 0.4
 
protected float m_HitDuration
 SFX will be played ~0.5s AFTER VFX.
 
protected float m_BreakPoint
 
protected float m_TimeActive
 
protected float m_DayTimeToggle
 
protected float m_AlphaMaxActual
 
protected float m_SoundMaxActual
 
protected float m_ProgressMultiplier
 
protected bool m_Visual
 
protected bool m_Initialized
 
protected PlayerBase m_Player
 
protected EffectSound m_FlashbangEffectSound
 
protected float m_SoundStopTime
 
protected ref Timer m_DeferAttenuation
 
protected PPERequester_FlashbangEffects m_Requester
 

Constructor & Destructor Documentation

◆ FlashbangEffect()

◆ ~FlashbangEffect()

Member Function Documentation

◆ ClearVisual()

protected void ClearVisual ( )
inlineprivate

References m_Requester.

Referenced by ~FlashbangEffect().

◆ PlaySound()

◆ ResetAttenuationFilter()

protected void ResetAttenuationFilter ( )
inlineprivate

References m_Player.

Referenced by Update().

◆ SetAttenuationFilter()

protected void SetAttenuationFilter ( )
inlineprivate

References m_DeferAttenuation, and m_Player.

Referenced by PlaySound().

◆ 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

References m_DayTimeToggle, and m_Requester.

Referenced by Update().

◆ Stop()

void Stop ( )
inlineprivate

References StopSound().

◆ StopSound()

protected void StopSound ( )
inlineprivate

◆ Update()

Field Documentation

◆ ALPHA_MAX

protected const float ALPHA_MAX = 1.0
private

Referenced by FlashbangEffect().

◆ 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

Referenced by FlashbangEffect(), and SetVisual().

◆ m_DeferAttenuation

protected ref Timer m_DeferAttenuation
private

◆ m_FlashbangEffectSound

protected EffectSound m_FlashbangEffectSound
private

◆ m_HitDuration

protected float m_HitDuration
private

SFX will be played ~0.5s AFTER VFX.

Referenced by FlashbangEffect(), SetupFlashbangValues(), and Update().

◆ 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

Referenced by PlaySound(), and Update().

◆ m_TimeActive

protected float m_TimeActive
private

Referenced by Update().

◆ m_Visual

protected bool m_Visual
private

◆ SOUND_DEFER_TIME

protected const float SOUND_DEFER_TIME = 0.4
private

Referenced by FlashbangEffect().


The documentation for this class was generated from the following file: