DayZ 1.24
Loading...
Searching...
No Matches
HitDirectionSplash.c
Go to the documentation of this file.
1
3{
5 {
6 typename type = HitDirectionImagesSplash;
8 return data;
9 }
10
12 {
13 //blobs move around the edges, the rest on elypsis
14 m_PosX = m_PosXScreenEdge;
15 m_PosY = m_PosYScreenEdge;
16 }
17
18 override void SetIndicatorRotation(float timeslice = -1.0)
19 {
20 if (timeslice == -1.0) //does not rotate on dynamic mode update
21 {
22 if (m_RotationOverride == HitDirectionConstants.ROTATION_DEFAULT)
23 m_LayoutRoot.SetRotation(0, 0, Math.RandomIntInclusive(0, 359), true);
24 else
25 m_LayoutRoot.SetRotation(0, 0, m_RotationOverride, true);
26 }
27 }
28}
override HitDirectionImagesBase GetImageData()
override void FinalizePositionCalculation()
override void SetIndicatorRotation(float timeslice=-1.0)
Definition EnMath.c:7
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54