DayZ 1.24
|
Private Member Functions | |
void | KuruShake (PlayerBase player, float amount) |
void | Update (float delta_time, out float pos_x, out float pos_y) |
Private Attributes | |
const float | RANDOM_RANGE_POINT = 1 |
const float | RANDOM_RANGE_DEVIATION = 0.50 |
const float | SHAKE_DURATION_PHASE1 = 0.01 |
const float | SHAKE_STRENGTH_MIN = 1 |
const float | SHAKE_STRENGTH_MAX = 5 |
PlayerBase | m_Player |
float | m_Time |
float | m_Time2 |
float | m_RelativeTime |
float | m_RelativeTime2 |
float | m_ShakeStrength |
ref array< vector > | m_Curve = new array<vector> |
Definition at line 1 of file KuruShake.c.
|
inlineprivate |
Definition at line 19 of file KuruShake.c.
References Math::Lerp(), m_Curve, m_ShakeStrength, RANDOM_RANGE_DEVIATION, RANDOM_RANGE_POINT, Math::RandomFloat(), Math::Randomize(), SHAKE_STRENGTH_MAX, and SHAKE_STRENGTH_MIN.
Definition at line 48 of file KuruShake.c.
References Math3D::Curve(), Easing::EaseInQuint(), Math::InverseLerp(), m_Curve, m_RelativeTime, m_RelativeTime2, m_Time, m_Time2, and SHAKE_DURATION_PHASE1.
Definition at line 17 of file KuruShake.c.
Referenced by KuruShake(), and Update().
|
private |
Definition at line 9 of file KuruShake.c.
|
private |
Definition at line 12 of file KuruShake.c.
Referenced by Update().
|
private |
Definition at line 13 of file KuruShake.c.
Referenced by Update().
|
private |
Definition at line 14 of file KuruShake.c.
Referenced by KuruShake().
|
private |
Definition at line 10 of file KuruShake.c.
Referenced by Update().
|
private |
Definition at line 11 of file KuruShake.c.
Referenced by Update().
Definition at line 4 of file KuruShake.c.
Referenced by KuruShake().
Definition at line 3 of file KuruShake.c.
Referenced by KuruShake().
Definition at line 5 of file KuruShake.c.
Referenced by Update().
Definition at line 7 of file KuruShake.c.
Referenced by KuruShake().
Definition at line 6 of file KuruShake.c.
Referenced by KuruShake().