DayZ 1.24
|
Protected 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) |
void | PlaySound () |
void | SetAttenuationFilter () |
void | ResetAttenuationFilter () |
void | StopSound () |
void | ClearVisual () |
void | SetVisual (float val) |
void | Stop () |
void | Update (float deltatime) |
Protected Attributes | |
const float | ALPHA_MIN = 0.0 |
const float | ALPHA_MAX = 1.0 |
const float | SOUND_DEFER_TIME = 0.4 |
float | m_HitDuration |
SFX will be played ~0.5s AFTER VFX. | |
float | m_BreakPoint |
float | m_TimeActive |
float | m_DayTimeToggle |
float | m_AlphaMaxActual |
float | m_SoundMaxActual |
float | m_ProgressMultiplier |
bool | m_Visual |
bool | m_Initialized |
PlayerBase | m_Player |
EffectSound | m_FlashbangEffectSound |
float | m_SoundStopTime |
ref Timer | m_DeferAttenuation |
PPERequester_FlashbangEffects | m_Requester |
Definition at line 1 of file FlashbangEffect.c.
|
inlineprotected |
naive time of the day selector
-1: night; 1: day
Definition at line 28 of file FlashbangEffect.c.
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.
|
inlineprotected |
Definition at line 57 of file FlashbangEffect.c.
References ClearVisual(), SEffectManager::DestroyEffect(), m_DeferAttenuation, m_FlashbangEffectSound, m_Player, and m_Visual.
|
inlineprotected |
Definition at line 137 of file FlashbangEffect.c.
References m_Requester.
Referenced by ~FlashbangEffect().
|
inlineprotected |
Definition at line 86 of file FlashbangEffect.c.
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().
|
inlineprotected |
|
inlineprotected |
Definition at line 117 of file FlashbangEffect.c.
References m_DeferAttenuation, and m_Player.
Referenced by PlaySound().
|
inlineprotected |
Definition at line 72 of file FlashbangEffect.c.
References m_AlphaMaxActual, m_BreakPoint, m_HitDuration, m_Initialized, m_ProgressMultiplier, and m_SoundMaxActual.
Definition at line 143 of file FlashbangEffect.c.
References m_DayTimeToggle, and m_Requester.
Referenced by Update().
|
inlineprotected |
Definition at line 149 of file FlashbangEffect.c.
References StopSound().
|
inlineprotected |
Definition at line 128 of file FlashbangEffect.c.
References SEffectManager::DestroyEffect(), m_FlashbangEffectSound, and EffectSound::SoundStop().
Definition at line 154 of file FlashbangEffect.c.
References Math::Clamp(), Error(), Math::InverseLerp(), m_AlphaMaxActual, m_BreakPoint, m_HitDuration, m_Initialized, m_SoundStopTime, m_TimeActive, m_Visual, ResetAttenuationFilter(), SetVisual(), and StopSound().
Definition at line 4 of file FlashbangEffect.c.
Referenced by FlashbangEffect().
Definition at line 3 of file FlashbangEffect.c.
|
protected |
Definition at line 13 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), SetupFlashbangValues(), and Update().
|
protected |
Definition at line 9 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), SetupFlashbangValues(), and Update().
|
protected |
Definition at line 11 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), and SetVisual().
Definition at line 24 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), SetAttenuationFilter(), and ~FlashbangEffect().
|
protected |
Definition at line 21 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), PlaySound(), StopSound(), and ~FlashbangEffect().
|
protected |
SFX will be played ~0.5s AFTER VFX.
Definition at line 8 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), SetupFlashbangValues(), and Update().
|
protected |
Definition at line 18 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), PlaySound(), SetupFlashbangValues(), and Update().
|
protected |
Definition at line 20 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), PlaySound(), ResetAttenuationFilter(), SetAttenuationFilter(), and ~FlashbangEffect().
|
protected |
Definition at line 15 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), PlaySound(), and SetupFlashbangValues().
|
protected |
Definition at line 26 of file FlashbangEffect.c.
Referenced by ClearVisual(), FlashbangEffect(), and SetVisual().
|
protected |
Definition at line 14 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), PlaySound(), and SetupFlashbangValues().
|
protected |
Definition at line 22 of file FlashbangEffect.c.
Referenced by PlaySound(), and Update().
|
protected |
Definition at line 10 of file FlashbangEffect.c.
Referenced by Update().
|
protected |
Definition at line 17 of file FlashbangEffect.c.
Referenced by FlashbangEffect(), Update(), and ~FlashbangEffect().
Definition at line 6 of file FlashbangEffect.c.
Referenced by FlashbangEffect().