mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
MUSICPOS console command
This commit is contained in:
parent
e2c40e63cf
commit
9604fe2e22
1 changed files with 9 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ static void Command_Playintro_f(void);
|
||||||
|
|
||||||
static void Command_Displayplayer_f(void);
|
static void Command_Displayplayer_f(void);
|
||||||
static void Command_Tunes_f(void);
|
static void Command_Tunes_f(void);
|
||||||
|
static void Command_GetMusicposition_f(void);
|
||||||
static void Command_RestartAudio_f(void);
|
static void Command_RestartAudio_f(void);
|
||||||
|
|
||||||
static void Command_ExitLevel_f(void);
|
static void Command_ExitLevel_f(void);
|
||||||
|
|
@ -686,6 +687,7 @@ void D_RegisterClientCommands(void)
|
||||||
|
|
||||||
COM_AddCommand("displayplayer", Command_Displayplayer_f);
|
COM_AddCommand("displayplayer", Command_Displayplayer_f);
|
||||||
COM_AddCommand("tunes", Command_Tunes_f);
|
COM_AddCommand("tunes", Command_Tunes_f);
|
||||||
|
COM_AddCommand("musicpos", Command_GetMusicposition_f);
|
||||||
COM_AddCommand("restartaudio", Command_RestartAudio_f);
|
COM_AddCommand("restartaudio", Command_RestartAudio_f);
|
||||||
CV_RegisterVar(&cv_resetmusic);
|
CV_RegisterVar(&cv_resetmusic);
|
||||||
|
|
||||||
|
|
@ -4049,6 +4051,13 @@ static void Command_Tunes_f(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void Command_GetMusicposition_f(void)
|
||||||
|
{
|
||||||
|
UINT32 position = 0;
|
||||||
|
position = S_GetPositionMusic();
|
||||||
|
CONS_Printf(M_GetText("%d\n"), position);
|
||||||
|
}
|
||||||
|
|
||||||
static void Command_RestartAudio_f(void)
|
static void Command_RestartAudio_f(void)
|
||||||
{
|
{
|
||||||
if (dedicated) // No point in doing anything if game is a dedicated server.
|
if (dedicated) // No point in doing anything if game is a dedicated server.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue