Add VClientEntityList003 interface

This commit is contained in:
Kawe Mazidjatari 2022-07-24 13:40:37 +02:00
parent f314b9b4e7
commit 81374e8682
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,8 @@
#pragma once
#ifndef DEDICATED // We should think about not including this file at all in dedicated tbh.
#include "public/include/client_class.h"
#endif
#include "public/include/icliententitylist.h"
#endif // !DEDICATED
enum class ClientFrameStage_t : int
{
@ -63,6 +64,9 @@ inline bool* cl_time_use_host_tickcount = nullptr;
inline CHLClient* gHLClient = nullptr;
inline CHLClient* g_pHLClient = nullptr;
#ifndef DEDICATED
inline IClientEntityList* g_pClientEntityList = nullptr;
#endif // !DEDICATED
///////////////////////////////////////////////////////////////////////////////
void CHLClient_Attach();

View File

@ -58,8 +58,9 @@ bool CModAppSystemGroup::Create(CModAppSystemGroup* pModAppSystemGroup)
#endif // DEDICATED
g_pConCommand->Init();
g_pFactory->GetFactoriesFromRegister();
#ifndef DEDICATED
g_pClientEntityList = g_pFactory->GetFactoryPtr("VClientEntityList003", false).RCast<IClientEntityList*>();
for (auto& map : g_pCVar->DumpToMap())
{
g_pConsole->m_vsvCommandBases.push_back(