Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GameEndMusic.c
Go to the documentation of this file.
1
class
SCR_GameEndMusic
:
ScriptedMusic
2
{
3
MusicManager m_MusicManager;
4
5
//~ Delay to make sure the OnSpawn music is played correctly after the respawn menu music
6
protected
void
OnGameEnd(
string
audioString)
7
{
8
SetName(audioString);
9
m_MusicManager
.Play(audioString);
10
}
11
12
override
void
Init()
13
{
14
ChimeraWorld
world =
GetGame
().GetWorld();
15
16
if
(!world)
17
return
;
18
19
m_MusicManager
= world.GetMusicManager();
20
if
(!
m_MusicManager
)
21
return
;
22
23
24
SCR_GameOverScreenManagerComponent.s_OnEndGame.Insert(OnGameEnd);
25
}
26
27
override
void
OnDelete()
28
{
29
SCR_GameOverScreenManagerComponent.s_OnEndGame.Remove(OnGameEnd);
30
}
31
}
ChimeraWorld
Definition:
ChimeraWorld.c:12
GetGame
ArmaReforgerScripted GetGame()
Definition:
game.c:1424
ScriptedMusic
Definition:
ScriptedMusic.c:12
SCR_GameEndMusic
Definition:
SCR_GameEndMusic.c:1
m_MusicManager
protected MusicManager m_MusicManager
Definition:
SCR_CharacterTriggerEntity.c:70
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Music
SCR_GameEndMusic.c
Generated by
1.8.17