Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MoveRelativeManualCameraComponent.c
Go to the documentation of this file.
1
2
4[BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Parent class from which all SCR_ManualCamera components inherit.
Parameter for carrying information between individual camera components.
SCR_FieldOfViewSettings Attribute
proto native vector Vector(float x, float y, float z)