Пример #1
0
/*
* SF_Music
*/
static void SF_Music_f( void )
{
	if( trap_Cmd_Argc() == 2 )
	{
		SF_StartBackgroundTrack( trap_Cmd_Argv( 1 ), trap_Cmd_Argv( 1 ), 0 );
	}
	else if( trap_Cmd_Argc() == 3 )
	{
		SF_StartBackgroundTrack( trap_Cmd_Argv( 1 ), trap_Cmd_Argv( 2 ), 0 );
	}
	else
	{
		Com_Printf( "music <intro|playlist> [loop|shuffle]\n" );
		return;
	}
}
Пример #2
0
/*
* S_Music
*/
static void SF_Music_f( void )
{
	if( trap_Cmd_Argc() < 2 )
	{
		Com_Printf( "music: <introfile|playlist> [loopfile|shuffle]\n" );
		return;
	}

	SF_StartBackgroundTrack( trap_Cmd_Argv( 1 ), trap_Cmd_Argv( 2 ), 0 );
}