‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
music_shared.csc
Go to the documentation of this file.
1 #using scripts\shared\system_shared;
2 #using scripts\shared\util_shared;
3 
4 #insert scripts\shared\shared.gsh;
5 
6 #namespace music;
7 
8 ‪REGISTER_SYSTEM( "music", &‪__init__, undefined )
9 
10 function ‪__init__()
11 {
12  level.activeMusicState = "";
13  level.nextMusicState = "";
14  level.musicStates = [];
15 
17 }
18 
19 
20 function ‪musicCmdHandler(clientNum, state, oldState)
21 {
22  if (state != "death")
23  {
24  level._lastMusicState = state;
25  }
26 
27  state = ToLower(state);
28  soundsetmusicstate(state);
29 }
30 
31 
32 
33 
34 
35 
‪register_system
‪function register_system(sSysName, cbFunc)
Definition: util_shared.csc:1074
‪__init__
‪function __init__()
Definition: music_shared.csc:10
‪REGISTER_SYSTEM
‪#define REGISTER_SYSTEM(__sys, __func_init_preload, __reqs)
Definition: shared.gsh:204
‪musicCmdHandler
‪function musicCmdHandler(clientNum, state, oldState)
Definition: music_shared.csc:20