Code:
DynAppSysV ClientViewfactory ( "client.dll" );
DynAppSysV EngineViewfactory ( "engine.dll" );
DynAppSysV VGuiViewfactory ( "vguimatsurface.dll" );
DynAppSysV VGui2Viewfactory ( "vgui2.dll" );
DynAppSysV MatSysViewfactory ( "materialsystem.dll" );
DynAppSysV PhysSurface ( "vphysics.dll" );
MetroEntList = (Source::IClientEntityList*) ClientViewfactory.Get("VClientEntityList");
m_pEngineTrace = (Source::IEngineTrace*) EngineViewfactory.Get("EngineTraceClient");
m_pModelRender = (Source::VModelRend*) EngineViewfactory.Get("VEngineModel");
m_pRenderView = (Source::RenderVVIEW*) EngineViewfactory.Get("VEngineRenderView");
m_pMatSystem = (Source::MaterialsiSystem*) MatSysViewfactory.Get("VMaterialSystem");
m_pPhysSurface = (Source::IPhysicsSurfProps*) PhysSurface.Get("VPhysicsSurfProps");
m_pClient = (Source::IBaseClientDLL*) ClientViewfactory.Get ( "VClient" );
m_pEngine = (Source::IVEngineClient*) EngineViewfactory.Get ( "VEngineClient" );
m_pPanel = (Source::PanelI*) VGui2Viewfactory.Get ( "VGUI_Panel" );
m_pSurface = (Source::SurfI*) VGuiViewfactory.Get ( "VGUI_Surface" );
m_pModelInfo = (Source::IVModelInfo*) EngineViewfactory.Get ( "VModelInfoClient" );
m_pServer = **(Source::CGlobalVarsBase***) (PatternScanning("client.dll", "A1 ?? ?? ?? ?? 8B 4D FC 8B 55 08") + 1);
m_pInput = *( Source::CInput** ) ( PatternScanning( "client.dll", "B9 ?? ?? ?? ?? FF 75 08 E8 ?? ?? ?? ?? 8B 06" ) + 1 );