Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AccelerationManualCameraComponent.c
Go to the documentation of this file.
1
4
[
BaseContainerProps
(), SCR_BaseManualCameraComponentTitle()]
5
class
SCR_AccelerationManualCameraComponent
:
SCR_BaseManualCameraComponent
6
{
7
[
Attribute
(defvalue:
"0.11"
,
desc
:
"How long it takes to accelerate to full speed."
)]
8
private
float
m_fDuration;
9
10
private
float
m_fProgress;
11
12
//------------------------------------------------------------------------------------------------
13
override
void
EOnCameraFrame(
SCR_ManualCameraParam
param)
14
{
15
if
(param.isManualInput)
16
{
17
if
(m_fProgress < 1)
18
{
19
m_fProgress = Math.Min(m_fProgress + param.timeSlice /
m_fDuration
, 1);
20
param.transform[3] = vector.Lerp(param.transformOriginal[3], param.transform[3], m_fProgress);
21
}
22
}
23
else
24
{
25
m_fProgress = 0;
26
}
27
}
28
29
//------------------------------------------------------------------------------------------------
30
override
bool
EOnCameraInit()
31
{
32
return
true
;
33
}
34
}
m_fDuration
float m_fDuration
Definition:
SendGoalMessage.c:437
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition:
SCR_BaseManualCameraComponent.c:5
SCR_AccelerationManualCameraComponent
Basic camera speed acceleration.
Definition:
SCR_AccelerationManualCameraComponent.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_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition:
SCR_ManualCameraParam.c:5
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Camera
Components
SCR_AccelerationManualCameraComponent.c
Generated by
1.8.17