@@ -69,7 +69,6 @@ class GameSessionConfiguration_t
6969
7070SH_DECL_HOOK3_void (IServerGameDLL, GameFrame, SH_NOATTRIB, 0 , bool , bool , bool );
7171SH_DECL_HOOK0_void (IServerGameDLL, GameServerSteamAPIActivated, SH_NOATTRIB, 0 );
72- SH_DECL_HOOK0_void (IServerGameDLL, GameServerSteamAPIDeactivated, SH_NOATTRIB, 0 );
7372SH_DECL_HOOK1_void (IServerGameDLL, ApplyGameSettings, SH_NOATTRIB, 0 , KeyValues*);
7473SH_DECL_HOOK4_void (IServerGameClients, ClientActive, SH_NOATTRIB, 0 , CPlayerSlot, bool , const char *, uint64);
7574SH_DECL_HOOK5_void (IServerGameClients, ClientDisconnect, SH_NOATTRIB, 0 , CPlayerSlot, ENetworkDisconnectionReason, const char *, uint64, const char *);
@@ -102,8 +101,6 @@ IGameEventSystem* g_gameEventSystem = nullptr;
102101IGameEventManager2* g_gameEventManager = nullptr ;
103102CGameEntitySystem* g_pEntitySystem = nullptr ;
104103IVEngineServer2* g_pEngineServer2 = nullptr ;
105- ISteamHTTP* g_http = nullptr ;
106- CSteamGameServerAPIContext g_steamAPI;
107104CCSGameRules* g_pGameRules = nullptr ; // Will be null between map end & new map startup, null check if necessary!
108105CSpawnGroupMgrGameSystem* g_pSpawnGroupMgr = nullptr ; // Will be null between map end & new map startup, null check if necessary!
109106
@@ -190,7 +187,6 @@ bool CS2Fixes::Load(PluginId id, ISmmAPI* ismm, char* error, size_t maxlen, bool
190187
191188 SH_ADD_HOOK (IServerGameDLL, GameFrame, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_GameFramePost), true );
192189 SH_ADD_HOOK (IServerGameDLL, GameServerSteamAPIActivated, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_GameServerSteamAPIActivated), false );
193- SH_ADD_HOOK (IServerGameDLL, GameServerSteamAPIDeactivated, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_GameServerSteamAPIDeactivated), false );
194190 SH_ADD_HOOK (IServerGameDLL, ApplyGameSettings, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_ApplyGameSettings), false );
195191 SH_ADD_HOOK (IServerGameClients, ClientActive, g_pSource2GameClients, SH_MEMBER (this , &CS2Fixes::Hook_ClientActive), true );
196192 SH_ADD_HOOK (IServerGameClients, ClientDisconnect, g_pSource2GameClients, SH_MEMBER (this , &CS2Fixes::Hook_ClientDisconnect), true );
@@ -400,10 +396,6 @@ bool CS2Fixes::Load(PluginId id, ISmmAPI* ismm, char* error, size_t maxlen, bool
400396 g_pVoteManager->VoteManager_Init ();
401397
402398 g_pIdleSystem->Reset ();
403-
404- g_steamAPI.Init ();
405- g_http = g_steamAPI.SteamHTTP ();
406-
407399 g_playerManager->OnSteamAPIActivated ();
408400
409401 if (g_cvarVoteManagerEnable.Get () && !g_pMapVoteSystem->IsMapListLoaded ())
@@ -421,7 +413,6 @@ bool CS2Fixes::Unload(char* error, size_t maxlen)
421413{
422414 SH_REMOVE_HOOK (IServerGameDLL, GameFrame, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_GameFramePost), true );
423415 SH_REMOVE_HOOK (IServerGameDLL, GameServerSteamAPIActivated, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_GameServerSteamAPIActivated), false );
424- SH_REMOVE_HOOK (IServerGameDLL, GameServerSteamAPIDeactivated, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_GameServerSteamAPIDeactivated), false );
425416 SH_REMOVE_HOOK (IServerGameDLL, ApplyGameSettings, g_pSource2Server, SH_MEMBER (this , &CS2Fixes::Hook_ApplyGameSettings), false );
426417 SH_REMOVE_HOOK (IServerGameClients, ClientActive, g_pSource2GameClients, SH_MEMBER (this , &CS2Fixes::Hook_ClientActive), true );
427418 SH_REMOVE_HOOK (IServerGameClients, ClientDisconnect, g_pSource2GameClients, SH_MEMBER (this , &CS2Fixes::Hook_ClientDisconnect), true );
@@ -669,9 +660,6 @@ void CS2Fixes::Hook_CTriggerGravityEndTouch(CBaseEntity* pOther)
669660}
670661void CS2Fixes::Hook_GameServerSteamAPIActivated ()
671662{
672- g_steamAPI.Init ();
673- g_http = g_steamAPI.SteamHTTP ();
674-
675663 g_playerManager->OnSteamAPIActivated ();
676664
677665 if (g_cvarVoteManagerEnable.Get () && !g_pMapVoteSystem->IsMapListLoaded ())
@@ -680,13 +668,6 @@ void CS2Fixes::Hook_GameServerSteamAPIActivated()
680668 RETURN_META (MRES_IGNORED);
681669}
682670
683- void CS2Fixes::Hook_GameServerSteamAPIDeactivated ()
684- {
685- g_http = nullptr ;
686-
687- RETURN_META (MRES_IGNORED);
688- }
689-
690671void CS2Fixes::Hook_PostEvent (CSplitScreenSlot nSlot, bool bLocalOnly, int nClientCount, const uint64* clients,
691672 INetworkMessageInternal* pEvent, const CNetMessage* pData, unsigned long nSize, NetChannelBufType_t bufType)
692673{
0 commit comments