Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MoveRelativeManualCameraComponent.c
Go to the documentation of this file.
1 
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_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_MoveRelativeManualCameraComponent
Basic camera movement and rotation.
Definition: SCR_MoveRelativeManualCameraComponent.c:5
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition: SCR_ManualCameraParam.c:5
GetInputManager
protected InputManager GetInputManager()
Definition: SCR_BaseManualCameraComponent.c:65
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468