36 lines
6.2 KiB
Plaintext
36 lines
6.2 KiB
Plaintext
#using scripts\shared\system_shared;
|
|
#using scripts\shared\util_shared;
|
|
|
|
|
|
|
|
#namespace music;
|
|
|
|
function autoexec __init__sytem__() { system::register("music",&__init__,undefined,undefined); }
|
|
|
|
function __init__()
|
|
{
|
|
level.activeMusicState = "";
|
|
level.nextMusicState = "";
|
|
level.musicStates = [];
|
|
|
|
util::register_system( "musicCmd", &musicCmdHandler );
|
|
}
|
|
|
|
|
|
function musicCmdHandler(clientNum, state, oldState)
|
|
{
|
|
if (state != "death")
|
|
{
|
|
level._lastMusicState = state;
|
|
}
|
|
|
|
state = ToLower(state);
|
|
soundsetmusicstate(state);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|