Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
hitdirectionsplash.c
Go to the documentation of this file.
1
2
class
HitDirectionEffectSplash
extends
HitDirectionEffectBase
3
{
4
override
HitDirectionImagesBase
GetImageData
()
5
{
6
typename
type = HitDirectionImagesSplash;
7
HitDirectionImagesSplash data = HitDirectionImagesSplash.Cast(type.Spawn());
8
return
data;
9
}
10
11
override
void
FinalizePositionCalculation
()
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
{
24
m_LayoutRoot
.SetRotation(0,0,
Math
.
RandomIntInclusive
(0,359),
true
);
25
}
26
else
27
{
28
m_LayoutRoot
.SetRotation(0,0,
m_RotationOverride
,
true
);
29
}
30
}
31
}
32
}
HitDirectionEffectBase
Definition
hitdirectionarrow.c:3
HitDirectionEffectBase::GetImageData
override HitDirectionImagesBase GetImageData()
Definition
hitdirectionsplash.c:4
HitDirectionEffectBase::m_PosY
float m_PosY
Definition
hitdirectionbase.c:23
HitDirectionEffectBase::FinalizePositionCalculation
override void FinalizePositionCalculation()
Definition
hitdirectionsplash.c:11
HitDirectionEffectBase::SetIndicatorRotation
override void SetIndicatorRotation(float timeslice=-1.0)
Definition
hitdirectionsplash.c:18
HitDirectionEffectBase::m_RotationOverride
static int m_RotationOverride
Definition
hitdirectionbase.c:177
HitDirectionEffectBase::m_PosXScreenEdge
float m_PosXScreenEdge
Definition
hitdirectionbase.c:24
HitDirectionEffectBase::m_LayoutRoot
Widget m_LayoutRoot
Definition
hitdirectionbase.c:14
HitDirectionEffectBase::m_PosYScreenEdge
float m_PosYScreenEdge
Definition
hitdirectionbase.c:25
HitDirectionEffectBase::m_PosX
float m_PosX
Definition
hitdirectionbase.c:22
HitDirectionImagesBase
Definition
hitdirectionimagesbase.c:3
Math
Definition
enmath.c:7
Math::RandomIntInclusive
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition
enmath.c:54
Games
Dayz
scripts
4_world
classes
hitindication
hitdirectionsplash.c
Generated by
1.17.0