Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Save New Duplicate & Edit Just Text Twitter
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- void Initialize()
- {
- using fnCommandLine = ICommandLine * (__stdcall *)();
- g_CommandLine = reinterpret_cast<fnCommandLine>(GetProcAddress(GetModuleHandleA("tier0.dll"), "CommandLine"))();
- auto engineFactory = get_module_factory(GetModuleHandleW(L"engine.dll"));
- auto clientFactory = get_module_factory(GetModuleHandleW(L"client_panorama.dll"));
- auto valveStdFactory = get_module_factory(GetModuleHandleW(L"vstdlib.dll"));
- auto vguiFactory = get_module_factory(GetModuleHandleW(L"vguimatsurface.dll"));
- auto vgui2Factory = get_module_factory(GetModuleHandleW(L"vgui2.dll"));
- auto matSysFactory = get_module_factory(GetModuleHandleW(L"materialsystem.dll"));
- auto dataCacheFactory = get_module_factory(GetModuleHandleW(L"datacache.dll"));
- auto vphysicsFactory = get_module_factory(GetModuleHandleW(L"vphysics.dll"));
- auto pfnFactory = get_module_factory(GetModuleHandleW(L"inputsystem.dll"));
- SteamUserHandle hSteamUser = ((SteamUserHandle(__cdecl*)(void))GetProcAddress(GetModuleHandleA("steam_api.dll"), "SteamAPI_GetHSteamUser"))();
- SteamPipeHandle hSteamPipe = ((SteamPipeHandle(__cdecl*)(void))GetProcAddress(GetModuleHandleA("steam_api.dll"), "SteamAPI_GetHSteamPipe"))();
- auto SteamClient = ((ISteamClient*(__cdecl*)(void))GetProcAddress(GetModuleHandleA("steam_api.dll"), "SteamClient"))();
- auto SteamHTTP = SteamClient->GetISteamHTTP(hSteamUser, hSteamPipe, "STEAMHTTP_INTERFACE_VERSION002");
- g_SteamUser = (ISteamUser*)SteamClient->GetISteamUser(hSteamUser, hSteamPipe, "SteamUser019");
- auto SteamFriends = SteamClient->GetISteamFriends(hSteamUser, hSteamPipe, "SteamFriends015");
- auto SteamInventory = SteamClient->GetISteamInventory(hSteamUser, hSteamPipe, "STEAMINVENTORY_INTERFACE_V002");
- g_SteamGameCoordinator = (ISteamGameCoordinator*)SteamClient->GetISteamGenericInterface(hSteamUser, hSteamPipe, "SteamGameCoordinator001");
- g_CHLClient = get_interface<IBaseClientDLL>(clientFactory, "VClient018");
- g_EntityList = get_interface<IClientEntityList>(clientFactory, "VClientEntityList003");
- g_Prediction = get_interface<IPrediction>(clientFactory, "VClientPrediction001");
- g_GameMovement = get_interface<CGameMovement>(clientFactory, "GameMovement001");
- g_MdlCache = get_interface<IMDLCache>(dataCacheFactory, "MDLCache004");
- g_EngineClient = get_interface<IVEngineClient>(engineFactory, "VEngineClient014");
- g_MdlInfo = get_interface<IVModelInfoClient>(engineFactory, "VModelInfoClient004");
- g_MdlRender = get_interface<IVModelRender>(engineFactory, "VEngineModel016");
- g_InputSystem = get_interface<IInputSystem>(pfnFactory, "InputSystemVersion001");
- g_RenderView = get_interface<IVRenderView>(engineFactory, "VEngineRenderView014");
- g_EngineTrace = get_interface<IEngineTrace>(engineFactory, "EngineTraceClient004");
- g_DebugOverlay = get_interface<IVDebugOverlay>(engineFactory, "VDebugOverlay004");
- g_GameEvents = get_interface<IGameEventManager2>(engineFactory, "GAMEEVENTSMANAGER002");
- g_EngineSound = get_interface<IEngineSound>(engineFactory, "IEngineSoundClient003");
- g_MatSystem = get_interface<IMaterialSystem>(matSysFactory, "VMaterialSystem080");
- g_CVar = get_interface<ICvar>(valveStdFactory, "VEngineCvar007");
- g_VGuiPanel = get_interface<IPanel>(vgui2Factory, "VGUI_Panel009");
- g_VGuiSurface = get_interface<ISurface>(vguiFactory, "VGUI_Surface031");
- g_PhysSurface = get_interface<IPhysicsSurfaceProps>(vphysicsFactory, "VPhysicsSurfaceProps001");
- using fnCommandLine = ICommandLine * (__stdcall *)();
- g_CommandLine = reinterpret_cast< fnCommandLine >(GetProcAddress(GetModuleHandleA("tier0.dll"), "CommandLine"))();
- auto client = GetModuleHandleW(L"client_panorama.dll");
- auto engine = GetModuleHandleW(L"engine.dll");
- auto dx9api = GetModuleHandleW(L"shaderapidx9.dll");
- g_GlobalVars = **(CGlobalVarsBase***)(Utils::PatternScan(client, "A1 ? ? ? ? 5E 8B 40 10") + 1);
- g_ClientMode = *(IClientMode**)(Utils::PatternScan(client, "A1 ? ? ? ? 8B 80 ? ? ? ? 5D") + 1);
- g_Input = *(CInput**)(Utils::PatternScan(client, "B9 ? ? ? ? F3 0F 11 04 24 FF 50 10") + 1);
- g_MoveHelper = **(IMoveHelper***)(Utils::PatternScan(client, "8B 0D ? ? ? ? 8B 45 ? 51 8B D4 89 02 8B 01") + 2);
- g_GlowObjManager = *(CGlowObjectManager**)(Utils::PatternScan(client, "0F 11 05 ? ? ? ? 83 C8 01") + 3);
- g_ViewRender = *(IViewRender**)(Utils::PatternScan(client, "A1 ? ? ? ? B9 ? ? ? ? C7 05 ? ? ? ? ? ? ? ? FF 10") + 1);
- g_D3DDevice9 = **(IDirect3DDevice9***)(Utils::PatternScan(dx9api, "A1 ? ? ? ? 50 8B 08 FF 51 0C") + 1);
- g_ClientState = **(CClientState***)(Utils::PatternScan(engine, "A1 ? ? ? ? 8B 80 ? ? ? ? C3") + 1);
- g_LocalPlayer = *(C_LocalPlayer*)(Utils::PatternScan(client, "8B 0D ? ? ? ? 83 FF FF 74 07") + 2);
- g_MatchFramework = **(CMatchFramework***)(Utils::PatternScan(client, "8B 0D ? ? ? ? 53 56 57 8B 01 FF 50 34 8B D8") + 2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement