mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-25 03:09:24 +01:00
Add Steam Friends Rich Presence cmd calls.
This commit is contained in:
parent
738890287b
commit
e0cdfe9ae8
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user