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_VoiceoverData.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
[
BaseContainerProps
(configRoot:
true
)]
3
class
SCR_VoiceoverData
4
{
5
[
Attribute
()]
6
protected
ref array<ref SCR_VoiceoverLineStandalone>
m_aLines
;
7
8
[
Attribute
()]
9
protected
ref array<ref SCR_VoiceoverSequence>
m_aSequences
;
10
11
//------------------------------------------------------------------------------------------------
12
SCR_VoiceoverLineStandalone
GetLineByName
(
string
name)
13
{
14
foreach
(SCR_VoiceoverLineStandalone line :
m_aLines
)
15
{
16
if
(line.GetName() == name)
17
return
line;
18
}
19
20
return
null;
21
}
22
23
//------------------------------------------------------------------------------------------------
24
SCR_VoiceoverLineStandalone
GetLineBySoundEvent
(
string
eventName)
25
{
26
foreach
(SCR_VoiceoverLineStandalone line :
m_aLines
)
27
{
28
if
(line.GetSoundEventName() == eventName)
29
return
line;
30
}
31
32
return
null;
33
}
34
35
//------------------------------------------------------------------------------------------------
36
SCR_VoiceoverLine
GetLineBySoundEvent
(
string
eventName,
string
sequenceName)
37
{
38
SCR_VoiceoverSequence sequence =
GetSequenceByName
(sequenceName);
39
40
if
(!sequence)
41
return
null;
42
43
array<ref SCR_VoiceoverLine> lines = {};
44
sequence.GetLines(lines);
45
46
foreach
(
SCR_VoiceoverLine
line : lines)
47
{
48
if
(line.GetSoundEventName() == eventName)
49
return
line;
50
}
51
52
return
null;
53
}
54
55
//------------------------------------------------------------------------------------------------
56
SCR_VoiceoverSequence
GetSequenceByName
(
string
name)
57
{
58
foreach
(SCR_VoiceoverSequence sequence :
m_aSequences
)
59
{
60
if
(sequence.GetName() == name)
61
return
sequence;
62
}
63
64
return
null;
65
}
66
}
67
68
//------------------------------------------------------------------------------------------------
69
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleField
(
"m_sName"
)]
70
class
SCR_VoiceoverSequence
71
{
72
[
Attribute
(
""
)]
73
protected
string
m_sName
;
74
75
[
Attribute
()]
76
protected
ref array<ref SCR_VoiceoverLine>
m_aLines
;
77
78
//------------------------------------------------------------------------------------------------
79
string
GetName
()
80
{
81
return
m_sName
;
82
}
83
84
//------------------------------------------------------------------------------------------------
85
void
GetLines(out notnull array<ref SCR_VoiceoverLine> lines)
86
{
87
if
(!
m_aLines
)
88
return
;
89
90
foreach
(SCR_VoiceoverLine line :
m_aLines
)
91
{
92
lines.Insert(line);
93
}
94
}
95
}
96
97
//------------------------------------------------------------------------------------------------
98
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleField
(
"m_sSoundEventName"
)]
99
class
SCR_VoiceoverLine
100
{
101
[
Attribute
(
SCR_EVoiceoverActor
.ACTOR_1.ToString(), uiwidget:
UIWidgets
.ComboBox, enums: ParamEnumArray.FromEnum(
SCR_EVoiceoverActor
))]
102
protected
SCR_EVoiceoverActor
m_eActor
;
103
104
[
Attribute
(
""
,
desc
:
"Sound event name as defined in the appropriate .acp file in the actor's SCR_CommunicationSoundComponent."
)]
105
protected
string
m_sSoundEventName
;
106
107
[
Attribute
(
""
)]
108
protected
string
m_sSubtitleText
;
109
110
[
Attribute
(
""
,
desc
:
"Actor name to be shown in the subtitle."
)]
111
protected
string
m_sActorName
;
112
113
[
Attribute
(
"0"
,
desc
:
"Non-zero value overrides the maximum distance from the voiceover source at which a subtitle will still be displayed."
,
params
:
"0 inf 1"
)]
114
protected
int
m_iCustomSubtitleDistanceThreshold
;
115
116
[
Attribute
(
"0"
,
desc
:
"Non-zero value executes an animation command with this parameter upon event start."
)]
117
protected
int
m_iStartAnimCommandParameter
;
118
119
[
Attribute
(
"0"
,
desc
:
"Non-zero value executes an animation command with this parameter upon event finish."
)]
120
protected
int
m_iFinishAnimCommandParameter
;
121
122
[
Attribute
(
"1"
,
desc
:
"Interrupt the currently played line when this line starts playing."
)]
123
protected
bool
m_bInterruptCurrentLine
;
124
125
[
Attribute
(
"-1"
,
desc
:
"Non-negative value overrides the default pause between lines."
)]
126
protected
float
m_fPauseBeforeLine
;
127
128
//------------------------------------------------------------------------------------------------
129
SCR_EVoiceoverActor
GetActor
()
130
{
131
return
m_eActor
;
132
}
133
134
//------------------------------------------------------------------------------------------------
135
string
GetSoundEventName
()
136
{
137
return
m_sSoundEventName
;
138
}
139
140
//------------------------------------------------------------------------------------------------
141
string
GetSubtitleText
()
142
{
143
return
m_sSubtitleText
;
144
}
145
146
//------------------------------------------------------------------------------------------------
147
string
GetActorName
()
148
{
149
return
m_sActorName
;
150
}
151
152
//------------------------------------------------------------------------------------------------
153
int
GetCustomSubtitleDistanceThreshold
()
154
{
155
return
m_iCustomSubtitleDistanceThreshold
;
156
}
157
158
//------------------------------------------------------------------------------------------------
159
int
GetStartAnimCommandParameter
()
160
{
161
return
m_iStartAnimCommandParameter
;
162
}
163
164
//------------------------------------------------------------------------------------------------
165
int
GetFinishAnimCommandParameter
()
166
{
167
return
m_iFinishAnimCommandParameter
;
168
}
169
170
//------------------------------------------------------------------------------------------------
171
bool
InterruptCurrentLine
()
172
{
173
return
m_bInterruptCurrentLine
;
174
}
175
176
//------------------------------------------------------------------------------------------------
177
float
GetPauseBeforeLine
()
178
{
179
return
m_fPauseBeforeLine
;
180
}
181
}
182
183
//------------------------------------------------------------------------------------------------
184
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleField
(
"m_sName"
)]
185
class
SCR_VoiceoverLineStandalone :
SCR_VoiceoverLine
186
{
187
[
Attribute
(
""
)]
188
protected
string
m_sName
;
189
190
//------------------------------------------------------------------------------------------------
191
string
GetName
()
192
{
193
return
m_sName
;
194
}
195
}
196
197
enum
SCR_EVoiceoverActor
198
{
199
ACTOR_1
,
200
ACTOR_2
,
201
ACTOR_3
,
202
ACTOR_4
,
203
ACTOR_5
,
204
ACTOR_6
,
205
ACTOR_7
,
206
ACTOR_8
,
207
ACTOR_9
,
208
ACTOR_10
,
209
ACTOR_11
,
210
ACTOR_12
,
211
ACTOR_13
,
212
ACTOR_14
,
213
ACTOR_15
,
214
ACTOR_16
,
215
ACTOR_17
,
216
ACTOR_18
,
217
ACTOR_19
,
218
ACTOR_20
219
}
m_sName
LocalizedString m_sName
Definition
SCR_GroupIdentityComponent.c:19
m_aLines
ref array< ref MapLine > m_aLines
Definition
SCR_MapDrawingUI.c:217
GetName
string GetName()
Definition
SCR_NotificationSenderComponent.c:15
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
SCR_BaseContainerCustomTitleField
class SCR_VoiceoverData SCR_BaseContainerCustomTitleField("m_sName")
Definition
SCR_VoiceoverData.c:69
m_aSequences
ref array< ref SCR_VoiceoverSequence > m_aSequences
Definition
SCR_VoiceoverData.c:4
BaseContainerProps
class SCR_VoiceoverData BaseContainerProps()
SCR_EVoiceoverActor
SCR_EVoiceoverActor
Definition
SCR_VoiceoverData.c:198
ACTOR_6
@ ACTOR_6
Definition
SCR_VoiceoverData.c:204
ACTOR_10
@ ACTOR_10
Definition
SCR_VoiceoverData.c:208
ACTOR_1
@ ACTOR_1
Definition
SCR_VoiceoverData.c:199
ACTOR_5
@ ACTOR_5
Definition
SCR_VoiceoverData.c:203
ACTOR_19
@ ACTOR_19
Definition
SCR_VoiceoverData.c:217
ACTOR_13
@ ACTOR_13
Definition
SCR_VoiceoverData.c:211
ACTOR_14
@ ACTOR_14
Definition
SCR_VoiceoverData.c:212
ACTOR_11
@ ACTOR_11
Definition
SCR_VoiceoverData.c:209
ACTOR_2
@ ACTOR_2
Definition
SCR_VoiceoverData.c:200
ACTOR_12
@ ACTOR_12
Definition
SCR_VoiceoverData.c:210
ACTOR_16
@ ACTOR_16
Definition
SCR_VoiceoverData.c:214
ACTOR_15
@ ACTOR_15
Definition
SCR_VoiceoverData.c:213
ACTOR_9
@ ACTOR_9
Definition
SCR_VoiceoverData.c:207
ACTOR_3
@ ACTOR_3
Definition
SCR_VoiceoverData.c:201
ACTOR_4
@ ACTOR_4
Definition
SCR_VoiceoverData.c:202
ACTOR_7
@ ACTOR_7
Definition
SCR_VoiceoverData.c:205
ACTOR_17
@ ACTOR_17
Definition
SCR_VoiceoverData.c:215
ACTOR_20
@ ACTOR_20
Definition
SCR_VoiceoverData.c:218
ACTOR_8
@ ACTOR_8
Definition
SCR_VoiceoverData.c:206
ACTOR_18
@ ACTOR_18
Definition
SCR_VoiceoverData.c:216
SCR_VoiceoverData
Definition
SCR_VoiceoverData.c:4
SCR_VoiceoverData::m_aSequences
ref array< ref SCR_VoiceoverSequence > m_aSequences
Definition
SCR_VoiceoverData.c:9
SCR_VoiceoverData::GetLineBySoundEvent
SCR_VoiceoverLineStandalone GetLineBySoundEvent(string eventName)
Definition
SCR_VoiceoverData.c:24
SCR_VoiceoverData::GetSequenceByName
SCR_VoiceoverSequence GetSequenceByName(string name)
Definition
SCR_VoiceoverData.c:56
SCR_VoiceoverData::m_aLines
ref array< ref SCR_VoiceoverLineStandalone > m_aLines
Definition
SCR_VoiceoverData.c:6
SCR_VoiceoverData::GetLineByName
SCR_VoiceoverLineStandalone GetLineByName(string name)
Definition
SCR_VoiceoverData.c:12
SCR_VoiceoverData::GetLineBySoundEvent
SCR_VoiceoverLine GetLineBySoundEvent(string eventName, string sequenceName)
Definition
SCR_VoiceoverData.c:36
SCR_VoiceoverLine
Definition
SCR_VoiceoverData.c:100
SCR_VoiceoverLine::GetSoundEventName
string GetSoundEventName()
Definition
SCR_VoiceoverData.c:135
SCR_VoiceoverLine::GetPauseBeforeLine
float GetPauseBeforeLine()
Definition
SCR_VoiceoverData.c:177
SCR_VoiceoverLine::m_iCustomSubtitleDistanceThreshold
int m_iCustomSubtitleDistanceThreshold
Definition
SCR_VoiceoverData.c:114
SCR_VoiceoverLine::m_fPauseBeforeLine
float m_fPauseBeforeLine
Definition
SCR_VoiceoverData.c:126
SCR_VoiceoverLine::m_sActorName
string m_sActorName
Definition
SCR_VoiceoverData.c:111
SCR_VoiceoverLine::GetStartAnimCommandParameter
int GetStartAnimCommandParameter()
Definition
SCR_VoiceoverData.c:159
SCR_VoiceoverLine::m_bInterruptCurrentLine
bool m_bInterruptCurrentLine
Definition
SCR_VoiceoverData.c:123
SCR_VoiceoverLine::GetFinishAnimCommandParameter
int GetFinishAnimCommandParameter()
Definition
SCR_VoiceoverData.c:165
SCR_VoiceoverLine::GetSubtitleText
string GetSubtitleText()
Definition
SCR_VoiceoverData.c:141
SCR_VoiceoverLine::GetCustomSubtitleDistanceThreshold
int GetCustomSubtitleDistanceThreshold()
Definition
SCR_VoiceoverData.c:153
SCR_VoiceoverLine::InterruptCurrentLine
bool InterruptCurrentLine()
Definition
SCR_VoiceoverData.c:171
SCR_VoiceoverLine::m_sSubtitleText
string m_sSubtitleText
Definition
SCR_VoiceoverData.c:108
SCR_VoiceoverLine::GetActor
SCR_EVoiceoverActor GetActor()
Definition
SCR_VoiceoverData.c:129
SCR_VoiceoverLine::m_iStartAnimCommandParameter
int m_iStartAnimCommandParameter
Definition
SCR_VoiceoverData.c:117
SCR_VoiceoverLine::m_eActor
SCR_EVoiceoverActor m_eActor
Definition
SCR_VoiceoverData.c:102
SCR_VoiceoverLine::GetActorName
string GetActorName()
Definition
SCR_VoiceoverData.c:147
SCR_VoiceoverLine::m_sSoundEventName
string m_sSoundEventName
Definition
SCR_VoiceoverData.c:105
SCR_VoiceoverLine::m_iFinishAnimCommandParameter
int m_iFinishAnimCommandParameter
Definition
SCR_VoiceoverData.c:120
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Voiceover
SCR_VoiceoverData.c
Generated by
1.17.0