mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +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();
|
m_Menu.Init();
|
||||||
|
|
||||||
MsgFunc_ResetHUD( 0, 0, NULL );
|
MsgFunc_ResetHUD( 0, 0, NULL );
|
||||||
|
ClientCmd( "richpresence_gamemode\n" );
|
||||||
|
ClientCmd( "richpresence_update\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHud destructor
|
// CHud destructor
|
||||||
|
@ -87,6 +87,11 @@ int CHud::MsgFunc_GameMode( const char *pszName, int iSize, void *pbuf )
|
|||||||
BEGIN_READ( pbuf, iSize );
|
BEGIN_READ( pbuf, iSize );
|
||||||
m_Teamplay = READ_BYTE();
|
m_Teamplay = READ_BYTE();
|
||||||
|
|
||||||
|
if( m_Teamplay )
|
||||||
|
ClientCmd( "richpresence_gamemode Teamplay\n" );
|
||||||
|
else
|
||||||
|
ClientCmd( "richpresence_gamemode\n" );
|
||||||
|
ClientCmd( "richpresence_update\n" );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user