DayZ 1.24
|
Protected Member Functions | |
void | ShockHandler (PlayerBase player) |
void | Update (float deltaT) |
float | GetCurrentShock () |
float | GetShock () |
void | SetShock (float dealtShock) |
void | Synchronize () |
float | SetMultiplier (float mult) |
Protected Attributes | |
float | m_Shock |
float | m_ShockValueMax |
float | m_ShockValueThreshold |
PlayerBase | m_Player |
const float | UPDATE_THRESHOLD = 3 |
const float | VALUE_CHECK_INTERVAL = 0.95 |
float | m_CumulatedShock |
ref Param1< float > | m_Param |
Private Member Functions | |
void | DealShock () |
void | CheckValue (bool forceUpdate) |
float | NormalizeShockVal (float shock) |
float | LerpVignette (float x, float y, float deltaT) |
void | ShockHitEffect (float compareBase) |
Private Attributes | |
float | m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1 |
float | m_ShockMultiplier = 1 |
float | m_PrevVignette |
float | m_LerpRes |
const int | LIGHT_SHOCK_HIT = 33 |
const int | MID_SHOCK_HIT = 67 |
const int | HEAVY_SHOCK_HIT = 100 |
const int | INTENSITY_FACTOR = 1 |
const float | PULSE_PERIOD = 0.5 |
const float | PULSE_AMPLITUDE = 0.05 |
float | m_PulseTimer |
Definition at line 1 of file ShockHandler.c.
|
inlineprotected |
Definition at line 28 of file ShockHandler.c.
References m_Param, m_Player, m_PrevVignette, m_ShockValueMax, and m_ShockValueThreshold.
Definition at line 118 of file ShockHandler.c.
References DealShock(), GetGame(), m_CumulatedShock, m_Player, m_PrevVignette, m_Shock, m_ShockMultiplier, NormalizeShockVal(), Synchronize(), and UPDATE_THRESHOLD.
Referenced by SetShock(), and Update().
|
inlineprivate |
Definition at line 111 of file ShockHandler.c.
References GetGame(), m_CumulatedShock, and m_Player.
Referenced by CheckValue().
|
inlineprotected |
Definition at line 94 of file ShockHandler.c.
References m_Player.
|
inlineprotected |
Definition at line 163 of file ShockHandler.c.
References Math::Lerp(), x, and y.
Referenced by Update().
Definition at line 156 of file ShockHandler.c.
References INTENSITY_FACTOR, and m_Player.
Referenced by CheckValue(), and Update().
Definition at line 150 of file ShockHandler.c.
References m_ShockMultiplier.
Definition at line 171 of file ShockHandler.c.
References HEAVY_SHOCK_HIT, LIGHT_SHOCK_HIT, m_CumulatedShock, m_Player, MID_SHOCK_HIT, and UPDATE_THRESHOLD.
Referenced by Update().
|
inlineprotected |
Definition at line 145 of file ShockHandler.c.
References m_Player, and DayZPlayerSyncJunctures::SendShock().
Referenced by CheckValue().
Definition at line 38 of file ShockHandler.c.
References CheckValue(), Easing::EaseInQuart(), GetGame(), LerpVignette(), m_LerpRes, m_Param, m_Player, m_PrevVignette, m_PulseTimer, m_ShockValueMax, m_ShockValueThreshold, m_TimeSinceLastTick, NormalizeShockVal(), PULSE_AMPLITUDE, PULSE_PERIOD, ShockHitEffect(), and VALUE_CHECK_INTERVAL.
Definition at line 18 of file ShockHandler.c.
Referenced by ShockHitEffect().
Definition at line 19 of file ShockHandler.c.
Referenced by NormalizeShockVal().
Definition at line 16 of file ShockHandler.c.
Referenced by ShockHitEffect().
|
protected |
Definition at line 10 of file ShockHandler.c.
Referenced by CheckValue(), DealShock(), and ShockHitEffect().
|
private |
Definition at line 14 of file ShockHandler.c.
Referenced by Update().
Definition at line 26 of file ShockHandler.c.
Referenced by ShockHandler(), and Update().
|
protected |
Definition at line 6 of file ShockHandler.c.
Referenced by CheckValue(), DealShock(), GetCurrentShock(), NormalizeShockVal(), ShockHandler(), ShockHitEffect(), Synchronize(), and Update().
|
private |
Definition at line 13 of file ShockHandler.c.
Referenced by CheckValue(), ShockHandler(), and Update().
|
private |
Definition at line 24 of file ShockHandler.c.
Referenced by Update().
|
protected |
Definition at line 3 of file ShockHandler.c.
Referenced by CheckValue(), GetShock(), and SetShock().
|
private |
Definition at line 12 of file ShockHandler.c.
Referenced by CheckValue(), and SetMultiplier().
|
protected |
Definition at line 4 of file ShockHandler.c.
Referenced by ShockHandler(), and Update().
|
protected |
Definition at line 5 of file ShockHandler.c.
Referenced by ShockHandler(), and Update().
|
private |
Definition at line 11 of file ShockHandler.c.
Referenced by Update().
Definition at line 17 of file ShockHandler.c.
Referenced by ShockHitEffect().
Definition at line 23 of file ShockHandler.c.
Referenced by Update().
Definition at line 22 of file ShockHandler.c.
Referenced by Update().
Definition at line 8 of file ShockHandler.c.
Referenced by CheckValue(), and ShockHitEffect().
Definition at line 9 of file ShockHandler.c.
Referenced by Update().