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_CharacterSlowdownEasingSystem.c
Go to the documentation of this file.
1
2
class
SCR_CharacterSlowdownEasingSystem
:
GameSystem
3
{
4
protected
ref array<SCR_ChimeraCharacter>
m_aCharacters
= {};
5
6
[
Attribute
(defvalue:
"3"
,
desc
:
"Transition Strength"
,
params
:
"0 inf 0.01"
)]
7
protected
float
m_fTransitionStrength
;
8
9
//------------------------------------------------------------------------------------------------
10
override
static
void
InitInfo
(
WorldSystemInfo
outInfo)
11
{
12
outInfo.SetAbstract(
false
);
13
outInfo.SetLocation(
WorldSystemLocation
.Both);
14
outInfo.AddPoint(
WorldSystemPoint
.FixedFrame);
15
}
16
17
//------------------------------------------------------------------------------------------------
18
protected
override
void
OnInit
()
19
{
20
Enable(
false
);
21
}
22
23
//------------------------------------------------------------------------------------------------
24
protected
override
void
OnUpdatePoint
(
WorldUpdatePointArgs
args)
25
{
26
float
dt = args.GetTimeSliceSeconds();
27
28
for
(
int
idx
=
m_aCharacters
.Count() - 1;
idx
>= 0;
idx
--)
29
{
30
SCR_ChimeraCharacter character =
m_aCharacters
[
idx
];
31
if
(!character)
32
{
33
m_aCharacters
.Remove(
idx
);
34
continue
;
35
}
36
37
character.UpdateSlowdown(dt *
m_fTransitionStrength
);
38
}
39
}
40
41
//------------------------------------------------------------------------------------------------
44
void
Register
(notnull SCR_ChimeraCharacter character)
45
{
46
if
(!
m_aCharacters
.Contains(character))
47
m_aCharacters
.Insert(character);
48
49
if
(!
IsEnabled
())
50
Enable(
true
);
51
}
52
53
//------------------------------------------------------------------------------------------------
56
void
Unregister
(notnull SCR_ChimeraCharacter character)
57
{
58
if
(
m_aCharacters
.Contains(character))
59
m_aCharacters
.RemoveItem(character);
60
61
if
(
m_aCharacters
.IsEmpty())
62
Enable(
false
);
63
}
64
}
idx
int idx
Definition
AIControlComponentSerializer.c:13
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
GameSystem
Definition
GameSystem.c:16
SCR_CharacterSlowdownEasingSystem
A system to help with easing the slowdown effect applied to the character.
Definition
SCR_CharacterSlowdownEasingSystem.c:3
SCR_CharacterSlowdownEasingSystem::OnUpdatePoint
override void OnUpdatePoint(WorldUpdatePointArgs args)
Definition
SCR_CharacterSlowdownEasingSystem.c:24
SCR_CharacterSlowdownEasingSystem::Register
void Register(notnull SCR_ChimeraCharacter character)
Definition
SCR_CharacterSlowdownEasingSystem.c:44
SCR_CharacterSlowdownEasingSystem::OnInit
override void OnInit()
Definition
SCR_CharacterSlowdownEasingSystem.c:18
SCR_CharacterSlowdownEasingSystem::m_fTransitionStrength
float m_fTransitionStrength
Definition
SCR_CharacterSlowdownEasingSystem.c:7
SCR_CharacterSlowdownEasingSystem::Unregister
void Unregister(notnull SCR_ChimeraCharacter character)
Definition
SCR_CharacterSlowdownEasingSystem.c:56
SCR_CharacterSlowdownEasingSystem::InitInfo
static override void InitInfo(WorldSystemInfo outInfo)
Definition
SCR_CharacterSlowdownEasingSystem.c:10
SCR_CharacterSlowdownEasingSystem::m_aCharacters
ref array< SCR_ChimeraCharacter > m_aCharacters
Definition
SCR_CharacterSlowdownEasingSystem.c:4
WorldSystemInfo
Structure holding world system meta-information required by the engine.
Definition
WorldSystemInfo.c:14
WorldUpdatePointArgs
Structure holding extra data of WorldSystem update point.
Definition
WorldUpdatePointArgs.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
IsEnabled
int IsEnabled()
Returns true if the light is enabled.
Definition
SCR_BaseManualCameraComponent.c:239
WorldSystemPoint
WorldSystemPoint
Definition
WorldSystemPoint.c:13
WorldSystemLocation
WorldSystemLocation
Definition
WorldSystemLocation.c:13
scripts
Game
Systems
SCR_CharacterSlowdownEasingSystem.c
Generated by
1.17.0