Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_MoveRelativeManualCameraComponent.c
Go to the documentation of this file.
1
2
4
[
BaseContainerProps
(), SCR_BaseManualCameraComponentTitle()]
5
class
SCR_MoveRelativeManualCameraComponent
:
SCR_BaseManualCameraComponent
6
{
7
[
Attribute
(defvalue:
"25"
,
desc
:
"Speed coefficient."
)]
8
private
float
m_fSpeed;
9
10
//------------------------------------------------------------------------------------------------
11
override
void
EOnCameraFrame(
SCR_ManualCameraParam
param)
12
{
13
if
(!param.isManualInputEnabled)
return
;
14
15
vector
inputVector =
Vector
16
(
17
GetInputManager
().GetActionValue(
"ManualCameraMoveLateral"
),
18
GetInputManager
().GetActionValue(
"ManualCameraMoveVertical"
),
19
GetInputManager
().GetActionValue(
"ManualCameraMoveLongitudinal"
)
20
);
21
22
if
(inputVector !=
vector
.Zero)
23
{
24
inputVector[0] = inputVector[0] * param.multiplier[0] * m_fSpeed;
25
inputVector[1] = inputVector[1] * param.multiplier[1] * m_fSpeed;
26
inputVector[2] = inputVector[2] * param.multiplier[0] * m_fSpeed;
27
28
param.transform[3] = param.transform[3]
29
+ (param.transform[0] * inputVector[0])
30
+ (param.transform[1] * inputVector[1])
31
+ (param.transform[2] * inputVector[2]);
32
33
param.isManualInput =
true
;
34
param.isDirty =
true
;
35
}
36
}
37
38
//------------------------------------------------------------------------------------------------
39
override
bool
EOnCameraInit
()
40
{
41
return
true
;
42
}
43
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition
SCR_BaseManualCameraComponent.c:6
SCR_BaseManualCameraComponent::EOnCameraInit
bool EOnCameraInit()
SCR_BaseManualCameraComponent::GetInputManager
InputManager GetInputManager()
Definition
SCR_BaseManualCameraComponent.c:70
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition
SCR_ManualCameraParam.c:6
SCR_MoveRelativeManualCameraComponent
Basic camera movement and rotation.
Definition
SCR_MoveRelativeManualCameraComponent.c:6
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
Vector
proto native vector Vector(float x, float y, float z)
scripts
Game
Camera
Components
SCR_MoveRelativeManualCameraComponent.c
Generated by
1.17.0