DayZ 1.24
Loading...
Searching...
No Matches
DayZIntroScenePC.c
Go to the documentation of this file.
2{
3 protected bool m_EnableClick;
4 protected bool m_RotatingCharacter;
7 protected float m_RotatingCharacterRot;
8 protected float m_Radius;
9 protected float m_Radius_original;
10 protected float m_DiffX;
11 protected float m_DeltaX;
12 protected float m_DeltaZ;
13 protected float m_Angle;
14 protected float m_Angle_offset = 0;
15 protected float m_NewX = 0;
16 protected float m_NewZ = 0;
17 protected float m_BlurValue;
18
19 protected ref OptionsMenu m_optmenu;
20
21 // ------------------------------------------------------------
23 {
24 SetClickEnable(true);
25
26 m_DeltaX = Math.AbsFloat(m_CharacterPos[0] - m_Camera.GetPosition()[0]);
27 m_DeltaZ = Math.AbsFloat(m_CharacterPos[2] - m_Camera.GetPosition()[2]);
28
29 if (!m_Radius || m_Radius == 0)
30 {
33 }
34 }
35
36 protected override void SetInitPostprocesses()
37 {
38 super.SetInitPostprocesses();
39
42
43 requester.SetVignetteIntensity(0.5);
44 }
45
46 // ------------------------------------------------------------
48 {
50 }
51
52 // ------------------------------------------------------------
54 {
55 return m_EnableClick;
56 }
57
58 // ------------------------------------------------------------
67
68 // ------------------------------------------------------------
74
75 // ------------------------------------------------------------
77 {
79 }
80
81 // ------------------------------------------------------------
83 {
84 if (m_Character && m_Character.GetCharacterObj())
85 {
88 float coef;
90
92
93 coef = (m_RotatingCharacterRot + (m_DiffX * 0.5)) / 360;
94 coef = coef - Math.Floor(coef);
95 m_CharacterRot[0] = coef * 360;
96
97 m_Character.GetCharacterObj().SetOrientation(m_CharacterRot);
98 }
99 }
100
101 // ------------------------------------------------------------
102 void Update()
103 {
106 }
107};
Super root of all classes in Enforce script.
Definition EnScript.c:11
vector m_CharacterPos
ref IntroSceneCharacter m_Character
vector m_CharacterRot
ref OptionsMenu m_optmenu
void SetClickEnable(bool enable)
override void SetInitPostprocesses()
Definition EnMath.c:7
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Floor(float f)
Returns floor of value.
static proto float Sqrt(float val)
Returns square root.
static proto float Pow(float v, float power)
Return power of v ^ power.
static proto float AbsFloat(float f)
Returns absolute value.
proto void GetMousePos(out int x, out int y)