diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index e82679bf..86f0f6cd 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -428,6 +428,8 @@ void CHud::Init( void ) m_Menu.Init(); MsgFunc_ResetHUD( 0, 0, NULL ); + ClientCmd( "richpresence_gamemode\n" ); + ClientCmd( "richpresence_update\n" ); } // CHud destructor diff --git a/cl_dll/hud_msg.cpp b/cl_dll/hud_msg.cpp index 7cc2fbad..3c3b6f52 100644 --- a/cl_dll/hud_msg.cpp +++ b/cl_dll/hud_msg.cpp @@ -87,6 +87,11 @@ int CHud::MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf ) BEGIN_READ( pbuf, iSize ); m_Teamplay = READ_BYTE(); + if( m_Teamplay ) + ClientCmd( "richpresence_gamemode Teamplay\n" ); + else + ClientCmd( "richpresence_gamemode\n" ); + ClientCmd( "richpresence_update\n" ); return 1; }