Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionAudioSystemPauseResume.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "If true, audio categories will be paused, otherwise they will be resumed")]
5 bool m_bPause;
6
7 [Attribute(desc: "SFX")]
8 bool m_bSFX;
9
10 [Attribute(desc: "Music")]
11 bool m_bMusic;
12
13 [Attribute(desc: "Voice Chat")]
14 bool m_bVoiceChat;
15
16 [Attribute(desc: "Dialog")]
17 bool m_bDialog;
18
19 [Attribute(desc: "UI")]
20 bool m_bUI;
21
22 //------------------------------------------------------------------------------------------------
23 override void OnActivate(IEntity object)
24 {
25 if (!CanActivate())
26 return;
27
28 int mastersMask;
29
30 //Eww
31 if (m_bSFX)
32 mastersMask |= (1 << AudioSystem.SFX);
33
34 if (m_bMusic)
35 mastersMask |= (1 << AudioSystem.Music);
36
37 if (m_bVoiceChat)
38 mastersMask |= (1 << AudioSystem.VoiceChat);
39
40 if (m_bDialog)
41 mastersMask |= (1 << AudioSystem.Dialog);
42
43 if (m_bUI)
44 mastersMask |= (1 << AudioSystem.UI);
45
46 if (m_bPause)
47 AudioSystem.Pause(mastersMask);
48 else
49 AudioSystem.Resume(mastersMask);
50 }
51}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute