![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Protected Member Functions | |
| void | ShockHandler (PlayerBase player) |
| float | AddEffectBobbing (float baseVal) |
| adds bobbing, also clamps to valid range | |
| float | BaseEffectIntensityCalc () |
| float | GetCurrentShock () |
| float | GetShock () |
| float | SetMultiplier (float mult) |
| void | SetShock (float dealtShock) |
| void | Synchronize () |
| void | Update (float deltaT) |
Protected Attributes | |
| float | m_CumulatedShock |
| float | m_LastEffectIntensityValue |
| ref Param1< float > | m_Param |
| PlayerBase | m_Player |
| float | m_Shock |
| float | m_ShockValueMax |
| float | m_ShockValueThreshold |
| Deprecated. | |
| const float | UPDATE_THRESHOLD = 3 |
| const float | VALUE_CHECK_INTERVAL = 0.95 |
Private Member Functions | |
| void | CheckValue (bool forceUpdate) |
| void | DealShock () |
| float | LerpVignette (float x, float y, float deltaT) |
| float | NormalizeShockVal (float shock) |
| void | ShockHitEffect (float compareBase) |
| Deprecated. | |
Private Attributes | |
| const int | HEAVY_SHOCK_HIT = 100 |
| Deprecated. | |
| const int | INTENSITY_FACTOR = 1 |
| const int | LIGHT_SHOCK_HIT = 33 |
| float | m_LerpRes |
| Deprecated. | |
| float | m_PrevVignette |
| float | m_PulseTimer |
| PPERequester_TunnelVisionEffects | m_Requester |
| float | m_ShockMultiplier = 1 |
| float | m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1 |
| works ok on server, but does nothing for client. See deprecated stuff. | |
| const int | MID_SHOCK_HIT = 67 |
| Deprecated. | |
| const float | PULSE_AMPLITUDE = 0.05 |
| const float | PULSE_PERIOD = 0.5 |
| const float | SMOOTHING_MAX_DECR = 0.01 |
| const float | SMOOTHING_MAX_INCR = 0.05 |
| const int | VIGNETTE_INTENSITY_MAX = 1 |
| const int | VIGNETTE_INTENSITY_MAX_TOTAL = 2 |
Definition at line 1 of file shockhandler.c.
|
inlineprotected |
Definition at line 31 of file shockhandler.c.
References m_Param, m_Player, m_PrevVignette, m_Requester, m_ShockValueMax, and m_ShockValueThreshold.
adds bobbing, also clamps to valid range
Definition at line 150 of file shockhandler.c.
References Math::Clamp(), m_Player, m_PulseTimer, m_ShockValueMax, PULSE_AMPLITUDE, PULSE_PERIOD, and VIGNETTE_INTENSITY_MAX_TOTAL.
Referenced by Update().
|
inlineprotected |
Definition at line 136 of file shockhandler.c.
References Math::Clamp(), Easing::EaseInQuart(), m_LastEffectIntensityValue, m_Player, NormalizeShockVal(), SMOOTHING_MAX_DECR, and SMOOTHING_MAX_INCR.
Referenced by Update().
|
inlineprivate |
Definition at line 108 of file shockhandler.c.
References DealShock(), g_Game, m_CumulatedShock, m_Player, m_PrevVignette, m_Shock, m_ShockMultiplier, NormalizeShockVal(), Synchronize(), and UPDATE_THRESHOLD.
Referenced by SetShock(), and Update().
|
inlineprivate |
Definition at line 101 of file shockhandler.c.
References g_Game, m_CumulatedShock, and m_Player.
Referenced by CheckValue().
|
inlineprotected |
Definition at line 84 of file shockhandler.c.
References m_Player.
|
inlineprotected |
Definition at line 89 of file shockhandler.c.
References m_Shock.
Definition at line 176 of file shockhandler.c.
References Math::Lerp(), x, and y.
Definition at line 169 of file shockhandler.c.
References INTENSITY_FACTOR, and m_ShockValueMax.
Referenced by BaseEffectIntensityCalc(), and CheckValue().
Definition at line 163 of file shockhandler.c.
References m_ShockMultiplier.
|
inlineprotected |
Definition at line 94 of file shockhandler.c.
References CheckValue(), and m_Shock.
|
inlineprivate |
Deprecated.
Deprecated
Definition at line 193 of file shockhandler.c.
References HEAVY_SHOCK_HIT, LIGHT_SHOCK_HIT, m_CumulatedShock, m_Player, MID_SHOCK_HIT, and UPDATE_THRESHOLD.
|
inlineprotected |
Definition at line 131 of file shockhandler.c.
References m_Player, and DayZPlayerSyncJunctures::SendShock().
Referenced by CheckValue().
|
inlineprotected |
Definition at line 44 of file shockhandler.c.
References AddEffectBobbing(), BaseEffectIntensityCalc(), CheckValue(), g_Game, m_Param, m_Player, m_PrevVignette, m_PulseTimer, m_Requester, m_ShockValueMax, m_TimeSinceLastTick, and VALUE_CHECK_INTERVAL.
|
private |
|
private |
Definition at line 5 of file shockhandler.c.
Referenced by NormalizeShockVal().
|
private |
Definition at line 186 of file shockhandler.c.
Referenced by ShockHitEffect().
|
protected |
Definition at line 17 of file shockhandler.c.
Referenced by CheckValue(), DealShock(), and ShockHitEffect().
|
protected |
Definition at line 15 of file shockhandler.c.
Referenced by BaseEffectIntensityCalc().
|
private |
Deprecated.
Definition at line 190 of file shockhandler.c.
|
protected |
Definition at line 27 of file shockhandler.c.
Referenced by ShockHandler(), and Update().
|
protected |
Definition at line 29 of file shockhandler.c.
Referenced by ShockHandler(), AddEffectBobbing(), BaseEffectIntensityCalc(), CheckValue(), DealShock(), GetCurrentShock(), ShockHitEffect(), Synchronize(), and Update().
|
private |
Definition at line 20 of file shockhandler.c.
Referenced by ShockHandler(), CheckValue(), and Update().
|
private |
Definition at line 23 of file shockhandler.c.
Referenced by AddEffectBobbing(), and Update().
|
private |
Definition at line 26 of file shockhandler.c.
Referenced by ShockHandler(), and Update().
|
protected |
Definition at line 14 of file shockhandler.c.
Referenced by CheckValue(), GetShock(), and SetShock().
|
private |
Definition at line 19 of file shockhandler.c.
Referenced by CheckValue(), and SetMultiplier().
|
protected |
Definition at line 16 of file shockhandler.c.
Referenced by ShockHandler(), AddEffectBobbing(), NormalizeShockVal(), and Update().
|
protected |
|
private |
works ok on server, but does nothing for client. See deprecated stuff.
Definition at line 18 of file shockhandler.c.
Referenced by Update().
|
private |
|
private |
Definition at line 12 of file shockhandler.c.
Referenced by AddEffectBobbing().
|
private |
Definition at line 11 of file shockhandler.c.
Referenced by AddEffectBobbing().
|
private |
Definition at line 9 of file shockhandler.c.
Referenced by BaseEffectIntensityCalc().
|
private |
Definition at line 8 of file shockhandler.c.
Referenced by BaseEffectIntensityCalc().
|
protected |
Definition at line 3 of file shockhandler.c.
Referenced by CheckValue(), and ShockHitEffect().
|
protected |
Definition at line 4 of file shockhandler.c.
Referenced by Update().
|
private |
Definition at line 6 of file shockhandler.c.
|
private |
Definition at line 7 of file shockhandler.c.
Referenced by AddEffectBobbing().