|
|
@ -78,6 +78,20 @@ int __MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf ) |
|
|
|
return gHUD.MsgFunc_GameMode( pszName, iSize, pbuf ); |
|
|
|
return gHUD.MsgFunc_GameMode( pszName, iSize, pbuf ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int __MsgFunc_PlayMP3( const char *pszName, int iSize, void *pbuf ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
BEGIN_READ( pbuf, iSize ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gEngfuncs.pfnPrimeMusicStream( READ_STRING(), 1 ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void __CmdFunc_StopMP3( void ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
gEngfuncs.pfnPrimeMusicStream( 0, 0 ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TFFree Command Menu
|
|
|
|
// TFFree Command Menu
|
|
|
|
void __CmdFunc_OpenCommandMenu( void ) |
|
|
|
void __CmdFunc_OpenCommandMenu( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -183,6 +197,9 @@ void CHud::Init( void ) |
|
|
|
// VGUI Menus
|
|
|
|
// VGUI Menus
|
|
|
|
HOOK_MESSAGE( VGUIMenu ); |
|
|
|
HOOK_MESSAGE( VGUIMenu ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HOOK_MESSAGE( PlayMP3 ); |
|
|
|
|
|
|
|
HOOK_COMMAND( "stopaudio", StopMP3 ); |
|
|
|
|
|
|
|
|
|
|
|
CVAR_CREATE( "hud_classautokill", "1", FCVAR_ARCHIVE | FCVAR_USERINFO ); // controls whether or not to suicide immediately on TF class switch
|
|
|
|
CVAR_CREATE( "hud_classautokill", "1", FCVAR_ARCHIVE | FCVAR_USERINFO ); // controls whether or not to suicide immediately on TF class switch
|
|
|
|
CVAR_CREATE( "hud_takesshots", "0", FCVAR_ARCHIVE ); // controls whether or not to automatically take screenshots at the end of a round
|
|
|
|
CVAR_CREATE( "hud_takesshots", "0", FCVAR_ARCHIVE ); // controls whether or not to automatically take screenshots at the end of a round
|
|
|
|
hud_textmode = CVAR_CREATE ( "hud_textmode", "0", FCVAR_ARCHIVE ); |
|
|
|
hud_textmode = CVAR_CREATE ( "hud_textmode", "0", FCVAR_ARCHIVE ); |
|
|
|