DayZ 1.24
Loading...
Searching...
No Matches
DayZIntroScenePC Class Reference
Inheritance diagram for DayZIntroScenePC:
[legend]
Collaboration diagram for DayZIntroScenePC:
[legend]

Protected Member Functions

void DayZIntroScenePC ()
 
override void SetInitPostprocesses ()
 
void SetClickEnable (bool enable)
 
bool IsClickEnabled ()
 
void CharacterRotationStart ()
 
void CharacterRotationStop ()
 
bool IsRotatingCharacter ()
 
void CharacterRotate ()
 
void Update ()
 

Protected Attributes

bool m_EnableClick
 
bool m_RotatingCharacter
 
int m_RotatingCharacterMouseX
 
int m_RotatingCharacterMouseY
 
float m_RotatingCharacterRot
 
float m_Radius
 
float m_Radius_original
 
float m_DiffX
 
float m_DeltaX
 
float m_DeltaZ
 
float m_Angle
 
float m_Angle_offset = 0
 
float m_NewX = 0
 
float m_NewZ = 0
 
float m_BlurValue
 
ref OptionsMenu m_optmenu
 

Additional Inherited Members

- Private Member Functions inherited from DayZIntroScene
void DayZIntroScene ()
 
void ~DayZIntroScene ()
 
IntroSceneCharacter GetIntroCharacter ()
 
Camera GetIntroCamera ()
 
void ResetIntroCamera ()
 
void SetInitPostprocesses ()
 Since this can get created at the same time as DayZGame, non-static postprocesses need to be deffered.
 
void GetSelectedUserName ()
 
vector SwapYZ (vector vec)
 
vector SnapToGround (vector pos)
 
- Private Attributes inherited from DayZIntroScene
ref IntroSceneCharacter m_Character
 
Camera m_Camera
 
vector m_CameraTrans [4]
 
vector m_CharacterPos
 
vector m_CharacterRot
 
Weather m_Weather
 
vector m_Target
 
ref OptionsMenu m_OptionsMenu
 

Detailed Description

Definition at line 1 of file DayZIntroScenePC.c.

Constructor & Destructor Documentation

◆ DayZIntroScenePC()

void DayZIntroScenePC::DayZIntroScenePC ( )
inlineprotected

Definition at line 22 of file DayZIntroScenePC.c.

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 }
vector m_CharacterPos
void SetClickEnable(bool enable)
Definition EnMath.c:7
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.

References Math::AbsFloat(), DayZIntroScene::m_Camera, DayZIntroScene::m_CharacterPos, m_DeltaX, m_DeltaZ, m_Radius, m_Radius_original, Math::Pow(), SetClickEnable(), and Math::Sqrt().

Member Function Documentation

◆ CharacterRotate()

void DayZIntroScenePC::CharacterRotate ( )
inlineprotected

Definition at line 82 of file DayZIntroScenePC.c.

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 }
ref IntroSceneCharacter m_Character
vector m_CharacterRot
static proto float Floor(float f)
Returns floor of value.
proto void GetMousePos(out int x, out int y)

References Math::Floor(), GetMousePos(), DayZIntroScene::m_Character, DayZIntroScene::m_CharacterRot, m_DiffX, m_RotatingCharacterMouseX, and m_RotatingCharacterRot.

Referenced by Update().

◆ CharacterRotationStart()

◆ CharacterRotationStop()

void DayZIntroScenePC::CharacterRotationStop ( )
inlineprotected

Definition at line 69 of file DayZIntroScenePC.c.

70 {
72 m_RotatingCharacter = false;
73 }

References m_RotatingCharacter.

Referenced by UIScriptedMenu::OnMouseButtonUp().

◆ IsClickEnabled()

bool DayZIntroScenePC::IsClickEnabled ( )
inlineprotected

Definition at line 53 of file DayZIntroScenePC.c.

54 {
55 return m_EnableClick;
56 }

References m_EnableClick.

◆ IsRotatingCharacter()

bool DayZIntroScenePC::IsRotatingCharacter ( )
inlineprotected

Definition at line 76 of file DayZIntroScenePC.c.

77 {
79 }

References m_RotatingCharacter.

◆ SetClickEnable()

void DayZIntroScenePC::SetClickEnable ( bool enable)
inlineprotected

Definition at line 47 of file DayZIntroScenePC.c.

48 {
50 }

References m_EnableClick.

Referenced by DayZIntroScenePC().

◆ SetInitPostprocesses()

override void DayZIntroScenePC::SetInitPostprocesses ( )
inlineprotected

Definition at line 36 of file DayZIntroScenePC.c.

37 {
38 super.SetInitPostprocesses();
39
42
43 requester.SetVignetteIntensity(0.5);
44 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

◆ Update()

void DayZIntroScenePC::Update ( )
inlineprotected

Member Data Documentation

◆ m_Angle

float DayZIntroScenePC::m_Angle
protected

Definition at line 13 of file DayZIntroScenePC.c.

◆ m_Angle_offset

float DayZIntroScenePC::m_Angle_offset = 0
protected

Definition at line 14 of file DayZIntroScenePC.c.

◆ m_BlurValue

float DayZIntroScenePC::m_BlurValue
protected

Definition at line 17 of file DayZIntroScenePC.c.

◆ m_DeltaX

float DayZIntroScenePC::m_DeltaX
protected

Definition at line 11 of file DayZIntroScenePC.c.

Referenced by DayZIntroScenePC().

◆ m_DeltaZ

float DayZIntroScenePC::m_DeltaZ
protected

Definition at line 12 of file DayZIntroScenePC.c.

Referenced by DayZIntroScenePC().

◆ m_DiffX

float DayZIntroScenePC::m_DiffX
protected

Definition at line 10 of file DayZIntroScenePC.c.

Referenced by CharacterRotate().

◆ m_EnableClick

bool DayZIntroScenePC::m_EnableClick
protected

Definition at line 3 of file DayZIntroScenePC.c.

Referenced by IsClickEnabled(), and SetClickEnable().

◆ m_NewX

float DayZIntroScenePC::m_NewX = 0
protected

Definition at line 15 of file DayZIntroScenePC.c.

◆ m_NewZ

float DayZIntroScenePC::m_NewZ = 0
protected

Definition at line 16 of file DayZIntroScenePC.c.

◆ m_optmenu

ref OptionsMenu DayZIntroScenePC::m_optmenu
protected

Definition at line 19 of file DayZIntroScenePC.c.

◆ m_Radius

float DayZIntroScenePC::m_Radius
protected

Definition at line 8 of file DayZIntroScenePC.c.

Referenced by DayZIntroScenePC().

◆ m_Radius_original

float DayZIntroScenePC::m_Radius_original
protected

Definition at line 9 of file DayZIntroScenePC.c.

Referenced by DayZIntroScenePC().

◆ m_RotatingCharacter

bool DayZIntroScenePC::m_RotatingCharacter
protected

◆ m_RotatingCharacterMouseX

int DayZIntroScenePC::m_RotatingCharacterMouseX
protected

Definition at line 5 of file DayZIntroScenePC.c.

Referenced by CharacterRotate(), and CharacterRotationStart().

◆ m_RotatingCharacterMouseY

int DayZIntroScenePC::m_RotatingCharacterMouseY
protected

Definition at line 6 of file DayZIntroScenePC.c.

Referenced by CharacterRotationStart().

◆ m_RotatingCharacterRot

float DayZIntroScenePC::m_RotatingCharacterRot
protected

Definition at line 7 of file DayZIntroScenePC.c.

Referenced by CharacterRotate(), and CharacterRotationStart().


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