diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index 3f5fbed..6a2f751 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -695,6 +695,12 @@ void CHud :: Init( void ) ServersInit(); MsgFunc_ResetHUD(0, 0, NULL ); + +#ifdef STEAM_RICH_PRESENCE + gEngfuncs.pfnClientCmd("richpresence_gamemode\n"); // reset + + gEngfuncs.pfnClientCmd("richpresence_update\n"); +#endif } // CHud destructor diff --git a/cl_dll/hud_msg.cpp b/cl_dll/hud_msg.cpp index d52730d..0ab2b8a 100644 --- a/cl_dll/hud_msg.cpp +++ b/cl_dll/hud_msg.cpp @@ -119,6 +119,15 @@ int CHud :: MsgFunc_GameMode(const char *pszName, int iSize, void *pbuf ) BEGIN_READ( pbuf, iSize ); m_Teamplay = READ_BYTE(); +#ifdef STEAM_RICH_PRESENCE + if (m_Teamplay) + gEngfuncs.pfnClientCmd("richpresence_gamemode Teamplay\n"); + else + gEngfuncs.pfnClientCmd("richpresence_gamemode\n"); // reset + + gEngfuncs.pfnClientCmd("richpresence_update\n"); +#endif + return 1; }