DayZ 1.24
Loading...
Searching...
No Matches
HitDirectionSpike.c
Go to the documentation of this file.
1
3{
5 {
6 typename type = HitDirectionImagesSpike;
8 return data;
9 }
10
12 {
13 //blobs move around the edges, the rest on elypsis
14 float distance_x = (m_DistanceAdjust * m_SizeXEnf) + (m_SizeXEnf / 2.5);
15 float distance_y = (m_DistanceAdjust * m_SizeYEnf) + (m_SizeYEnf / 2.5);
16 m_PosX = Math.Sin(m_AngleRad) * distance_x;
17 m_PosY = -Math.Cos(m_AngleRad) * distance_y;
18 }
19
20 override void SetIndicatorRotation(float timeslice = -1.0)
21 {
22 if (m_RotationOverride == HitDirectionConstants.ROTATION_DEFAULT)
23 m_LayoutRoot.SetRotation(0, 0, Math.RAD2DEG * m_AngleRad, true);
24 else
25 m_LayoutRoot.SetRotation(0, 0, m_RotationOverride, true);
26 }
27}
override HitDirectionImagesBase GetImageData()
override void FinalizePositionCalculation()
override void SetIndicatorRotation(float timeslice=-1.0)
Definition EnMath.c:7
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static const float RAD2DEG
Definition EnMath.c:16