Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
FlashbangEffect Class Reference

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 1 of file flashbangeffect.c.

Constructor & Destructor Documentation

◆ FlashbangEffect()

void FlashbangEffect ( PlayerBase player,
bool visual = true )
inlineprotected

◆ ~FlashbangEffect()

Member Function Documentation

◆ ClearVisual()

void ClearVisual ( )
inlineprotected

Definition at line 149 of file flashbangeffect.c.

References m_Requester.

Referenced by ~FlashbangEffect().

◆ PlaySound()

◆ ResetAttenuationFilter()

void ResetAttenuationFilter ( )
inlineprotected

Definition at line 135 of file flashbangeffect.c.

References m_Player.

Referenced by Update().

◆ SetAttenuationFilter()

void SetAttenuationFilter ( )
inlineprotected

Definition at line 127 of file flashbangeffect.c.

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 )
inlineprotected

◆ SetVisual()

void SetVisual ( float val)
inlineprotected

Definition at line 157 of file flashbangeffect.c.

References m_DayTimeToggle, and m_Requester.

Referenced by Update().

◆ Stop()

void Stop ( )
inlineprotected

Definition at line 165 of file flashbangeffect.c.

References StopSound().

◆ StopSound()

void StopSound ( )
inlineprotected

Definition at line 140 of file flashbangeffect.c.

References SEffectManager::DestroyEffect(), and m_FlashbangEffectSound.

Referenced by Stop(), and Update().

◆ Update()

Field Documentation

◆ ALPHA_MAX

const float ALPHA_MAX = 1.0
protected

Definition at line 4 of file flashbangeffect.c.

Referenced by FlashbangEffect().

◆ ALPHA_MIN

const float ALPHA_MIN = 0.0
protected

Definition at line 3 of file flashbangeffect.c.

◆ m_AlphaMaxActual

float m_AlphaMaxActual
protected

Definition at line 13 of file flashbangeffect.c.

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

◆ m_BreakPoint

float m_BreakPoint
protected

Definition at line 9 of file flashbangeffect.c.

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

◆ m_DayTimeToggle

float m_DayTimeToggle
protected

Definition at line 11 of file flashbangeffect.c.

Referenced by FlashbangEffect(), and SetVisual().

◆ m_DeferAttenuation

ref Timer m_DeferAttenuation
protected

Definition at line 24 of file flashbangeffect.c.

Referenced by FlashbangEffect(), ~FlashbangEffect(), and SetAttenuationFilter().

◆ m_FlashbangEffectSound

EffectSound m_FlashbangEffectSound
protected

Definition at line 21 of file flashbangeffect.c.

Referenced by FlashbangEffect(), ~FlashbangEffect(), PlaySound(), and StopSound().

◆ m_HitDuration

float m_HitDuration
protected

SFX will be played ~0.5s AFTER VFX.

Definition at line 8 of file flashbangeffect.c.

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

◆ m_Initialized

bool m_Initialized
protected

Definition at line 18 of file flashbangeffect.c.

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

◆ m_Player

◆ m_ProgressMultiplier

float m_ProgressMultiplier
protected

Definition at line 15 of file flashbangeffect.c.

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

◆ m_Requester

PPERequester_FlashbangEffects m_Requester
protected

Definition at line 26 of file flashbangeffect.c.

Referenced by FlashbangEffect(), ClearVisual(), and SetVisual().

◆ m_SoundMaxActual

float m_SoundMaxActual
protected

Definition at line 14 of file flashbangeffect.c.

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

◆ m_SoundStopTime

float m_SoundStopTime
protected

Definition at line 22 of file flashbangeffect.c.

Referenced by PlaySound(), and Update().

◆ m_TimeActive

float m_TimeActive
protected

Definition at line 10 of file flashbangeffect.c.

Referenced by Update().

◆ m_Visual

bool m_Visual
protected

Definition at line 17 of file flashbangeffect.c.

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

◆ SOUND_DEFER_TIME

const float SOUND_DEFER_TIME = 0.4
protected

Definition at line 6 of file flashbangeffect.c.

Referenced by FlashbangEffect().


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