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_AccelerationManualCameraComponent.c
Go to the documentation of this file.
1
2
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
}
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
Math
Definition
Math.c:13
SCR_AccelerationManualCameraComponent
Basic camera speed acceleration.
Definition
SCR_AccelerationManualCameraComponent.c:6
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition
SCR_BaseManualCameraComponent.c:6
SCR_BaseManualCameraComponent::EOnCameraInit
bool EOnCameraInit()
SCR_ManualCameraParam
Parameter for carrying information between individual camera components.
Definition
SCR_ManualCameraParam.c:6
SCR_ManualCameraParam::timeSlice
float timeSlice
Frame time slice.
Definition
SCR_ManualCameraParam.c:9
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Camera
Components
SCR_AccelerationManualCameraComponent.c
Generated by
1.17.0