DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
KuruShake Class Reference

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< vectorm_Curve = new array<vector>
 

Constructor & Destructor Documentation

◆ KuruShake()

Member Function Documentation

◆ Update()

void Update ( float  delta_time,
out float  pos_x,
out float  pos_y 
)
inlineprivate

Field Documentation

◆ m_Curve

ref array<vector> m_Curve = new array<vector>
private

Referenced by KuruShake(), and Update().

◆ m_Player

PlayerBase m_Player
private

◆ m_RelativeTime

float m_RelativeTime
private

Referenced by Update().

◆ m_RelativeTime2

float m_RelativeTime2
private

Referenced by Update().

◆ m_ShakeStrength

float m_ShakeStrength
private

Referenced by KuruShake().

◆ m_Time

float m_Time
private

Referenced by Update().

◆ m_Time2

float m_Time2
private

Referenced by Update().

◆ RANDOM_RANGE_DEVIATION

const float RANDOM_RANGE_DEVIATION = 0.50
private

Referenced by KuruShake().

◆ RANDOM_RANGE_POINT

const float RANDOM_RANGE_POINT = 1
private

Referenced by KuruShake().

◆ SHAKE_DURATION_PHASE1

const float SHAKE_DURATION_PHASE1 = 0.01
private

Referenced by Update().

◆ SHAKE_STRENGTH_MAX

const float SHAKE_STRENGTH_MAX = 5
private

Referenced by KuruShake().

◆ SHAKE_STRENGTH_MIN

const float SHAKE_STRENGTH_MIN = 1
private

Referenced by KuruShake().


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