diff --git a/mp/game/FortressForever/gameinfo.txt b/mp/game/FortressForever/gameinfo.txt index 3d9ff710..ce0df1ef 100644 --- a/mp/game/FortressForever/gameinfo.txt +++ b/mp/game/FortressForever/gameinfo.txt @@ -1,8 +1,8 @@ "GameInfo" { - game "FF test" - title "FF test" - title2 "FF test" + game "FortressForever" + title "Fortress Forever" + title2 "" type multiplayer_only nomodels 0 nohimodel 1 @@ -15,8 +15,10 @@ FileSystem - { - SteamAppId 243750 + { + // this is Source SDK Base 2013 MP + //SteamAppId 243750 + SteamAppId 253530 // // The code that loads this file automatically does a few things here: diff --git a/mp/src/game/client/cdll_client_int.cpp b/mp/src/game/client/cdll_client_int.cpp index 62920ddc..20a05c7b 100644 --- a/mp/src/game/client/cdll_client_int.cpp +++ b/mp/src/game/client/cdll_client_int.cpp @@ -849,6 +849,7 @@ extern IGameSystem *ViewportClientSystem(); //----------------------------------------------------------------------------- ISourceVirtualReality *g_pSourceVR = NULL; +#include "steam/steam_api.h" // Purpose: Called when the DLL is first loaded. // Input : engineFactory - // Output : int @@ -871,7 +872,27 @@ int CHLClient::Init( CreateInterfaceFn appSystemFactory, CreateInterfaceFn physi ConnectTier3Libraries( &appSystemFactory, 1 ); #ifndef NO_STEAM + //assert ( false ); ClientSteamContext().Activate(); + uint32 appId = steamapicontext->SteamUtils()->GetAppID(); + char msg[128]; + Q_snprintf(msg, 128,"Steam AppID = %i\n", appId); + DevMsg(msg); + /* + // careful: you might want to use a long long if you're a internet celeb like squeek + int numFriends = steamapicontext->SteamFriends()->GetFriendCount(k_EFriendFlagImmediate); + for (int i = 0; i < numFriends; i++) + { + CSteamID steamFrendzor = steamapicontext->SteamFriends()->GetFriendByIndex(i, k_EFriendFlagImmediate); + AccountID_t acctId = steamFrendzor.GetAccountID(); + //const char *steamName = steamapicontext->SteamFriends()->GetFriendPersonaName(steamFrendzor); + if (acctId == 5800795) + { + //5800795 is my old steam acct running on my laptop to test this shit + steamapicontext->SteamFriends()->InviteUserToGame(steamFrendzor, "connect 1.2.3.4;password barf"); + } + + }*/ #endif // We aren't happy unless we get all of our interfaces.