mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-06-07 17:17:50 -05:00
40 lines
786 B
Plaintext
40 lines
786 B
Plaintext
/*******************************************************************
|
|
* Decompiled By: Bog
|
|
* Decompiled File: maps\mp\_music.gsc
|
|
* Game: Call of Duty: Black Ops 2
|
|
* Platform: PC
|
|
* Function Count: 2
|
|
* Decompile Time: 0 ms
|
|
* Timestamp: 10/28/2023 12:11:00 AM
|
|
*******************************************************************/
|
|
|
|
#include maps/mp/_utility;
|
|
|
|
//Function Number: 1
|
|
music_init()
|
|
{
|
|
/#
|
|
assert(level.clientscripts);
|
|
#/
|
|
level.musicstate = "";
|
|
registerclientsys("musicCmd");
|
|
}
|
|
|
|
//Function Number: 2
|
|
setmusicstate(state,player)
|
|
{
|
|
if(IsDefined(level.musicstate))
|
|
{
|
|
if(IsDefined(player))
|
|
{
|
|
setclientsysstate("musicCmd",state,player);
|
|
return;
|
|
}
|
|
else if(level.musicstate != state)
|
|
{
|
|
setclientsysstate("musicCmd",state);
|
|
}
|
|
}
|
|
|
|
level.musicstate = state;
|
|
} |