Advertisement
Dream1337

aaaaaaaaaaaa

Aug 3rd, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.17 KB | None | 0 0
  1.  
  2. Save New Duplicate & Edit Just Text Twitter
  3. 1
  4. 2
  5. 3
  6. 4
  7. 5
  8. 6
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13
  16. 14
  17. 15
  18. 16
  19. 17
  20. 18
  21. 19
  22. 20
  23. 21
  24. 22
  25. 23
  26. 24
  27. 25
  28. 26
  29. 27
  30. 28
  31. 29
  32. 30
  33. 31
  34. 32
  35. 33
  36. 34
  37. 35
  38. 36
  39. 37
  40. 38
  41. 39
  42. 40
  43. 41
  44. 42
  45. 43
  46. 44
  47. 45
  48. 46
  49. 47
  50. 48
  51. 49
  52. 50
  53. 51
  54. 52
  55. 53
  56. 54
  57. 55
  58. 56
  59. 57
  60. 58
  61. 59
  62. 60
  63. 61
  64. 62
  65. 63
  66. 64
  67. 65
  68. 66
  69.     void Initialize()
  70.     {
  71.  
  72.         using fnCommandLine = ICommandLine * (__stdcall *)();
  73.         g_CommandLine = reinterpret_cast<fnCommandLine>(GetProcAddress(GetModuleHandleA("tier0.dll"), "CommandLine"))();
  74.  
  75.             auto engineFactory = get_module_factory(GetModuleHandleW(L"engine.dll"));
  76.             auto clientFactory = get_module_factory(GetModuleHandleW(L"client_panorama.dll"));
  77.             auto valveStdFactory = get_module_factory(GetModuleHandleW(L"vstdlib.dll"));
  78.             auto vguiFactory = get_module_factory(GetModuleHandleW(L"vguimatsurface.dll"));
  79.             auto vgui2Factory = get_module_factory(GetModuleHandleW(L"vgui2.dll"));
  80.             auto matSysFactory = get_module_factory(GetModuleHandleW(L"materialsystem.dll"));
  81.             auto dataCacheFactory = get_module_factory(GetModuleHandleW(L"datacache.dll"));
  82.             auto vphysicsFactory = get_module_factory(GetModuleHandleW(L"vphysics.dll"));
  83.             auto pfnFactory = get_module_factory(GetModuleHandleW(L"inputsystem.dll"));
  84.  
  85.             SteamUserHandle hSteamUser = ((SteamUserHandle(__cdecl*)(void))GetProcAddress(GetModuleHandleA("steam_api.dll"), "SteamAPI_GetHSteamUser"))();
  86.             SteamPipeHandle hSteamPipe = ((SteamPipeHandle(__cdecl*)(void))GetProcAddress(GetModuleHandleA("steam_api.dll"), "SteamAPI_GetHSteamPipe"))();
  87.  
  88.             auto SteamClient = ((ISteamClient*(__cdecl*)(void))GetProcAddress(GetModuleHandleA("steam_api.dll"), "SteamClient"))();
  89.             auto SteamHTTP = SteamClient->GetISteamHTTP(hSteamUser, hSteamPipe, "STEAMHTTP_INTERFACE_VERSION002");
  90.             g_SteamUser = (ISteamUser*)SteamClient->GetISteamUser(hSteamUser, hSteamPipe, "SteamUser019");
  91.             auto SteamFriends = SteamClient->GetISteamFriends(hSteamUser, hSteamPipe, "SteamFriends015");
  92.             auto SteamInventory = SteamClient->GetISteamInventory(hSteamUser, hSteamPipe, "STEAMINVENTORY_INTERFACE_V002");
  93.             g_SteamGameCoordinator = (ISteamGameCoordinator*)SteamClient->GetISteamGenericInterface(hSteamUser, hSteamPipe, "SteamGameCoordinator001");
  94.  
  95.             g_CHLClient = get_interface<IBaseClientDLL>(clientFactory, "VClient018");
  96.             g_EntityList = get_interface<IClientEntityList>(clientFactory, "VClientEntityList003");
  97.             g_Prediction = get_interface<IPrediction>(clientFactory, "VClientPrediction001");
  98.             g_GameMovement = get_interface<CGameMovement>(clientFactory, "GameMovement001");
  99.             g_MdlCache = get_interface<IMDLCache>(dataCacheFactory, "MDLCache004");
  100.             g_EngineClient = get_interface<IVEngineClient>(engineFactory, "VEngineClient014");
  101.             g_MdlInfo = get_interface<IVModelInfoClient>(engineFactory, "VModelInfoClient004");
  102.             g_MdlRender = get_interface<IVModelRender>(engineFactory, "VEngineModel016");
  103.             g_InputSystem = get_interface<IInputSystem>(pfnFactory, "InputSystemVersion001");
  104.             g_RenderView = get_interface<IVRenderView>(engineFactory, "VEngineRenderView014");
  105.             g_EngineTrace = get_interface<IEngineTrace>(engineFactory, "EngineTraceClient004");
  106.             g_DebugOverlay = get_interface<IVDebugOverlay>(engineFactory, "VDebugOverlay004");
  107.             g_GameEvents = get_interface<IGameEventManager2>(engineFactory, "GAMEEVENTSMANAGER002");
  108.             g_EngineSound = get_interface<IEngineSound>(engineFactory, "IEngineSoundClient003");
  109.             g_MatSystem = get_interface<IMaterialSystem>(matSysFactory, "VMaterialSystem080");
  110.             g_CVar = get_interface<ICvar>(valveStdFactory, "VEngineCvar007");
  111.             g_VGuiPanel = get_interface<IPanel>(vgui2Factory, "VGUI_Panel009");
  112.             g_VGuiSurface = get_interface<ISurface>(vguiFactory, "VGUI_Surface031");
  113.             g_PhysSurface = get_interface<IPhysicsSurfaceProps>(vphysicsFactory, "VPhysicsSurfaceProps001");
  114.  
  115.             using fnCommandLine = ICommandLine * (__stdcall *)();
  116.             g_CommandLine = reinterpret_cast< fnCommandLine >(GetProcAddress(GetModuleHandleA("tier0.dll"), "CommandLine"))();
  117.  
  118.             auto client = GetModuleHandleW(L"client_panorama.dll");
  119.             auto engine = GetModuleHandleW(L"engine.dll");
  120.             auto dx9api = GetModuleHandleW(L"shaderapidx9.dll");
  121.  
  122.             g_GlobalVars = **(CGlobalVarsBase***)(Utils::PatternScan(client, "A1 ? ? ? ? 5E 8B 40 10") + 1);
  123.             g_ClientMode = *(IClientMode**)(Utils::PatternScan(client, "A1 ? ? ? ? 8B 80 ? ? ? ? 5D") + 1);
  124.             g_Input = *(CInput**)(Utils::PatternScan(client, "B9 ? ? ? ? F3 0F 11 04 24 FF 50 10") + 1);
  125.             g_MoveHelper = **(IMoveHelper***)(Utils::PatternScan(client, "8B 0D ? ? ? ? 8B 45 ? 51 8B D4 89 02 8B 01") + 2);
  126.             g_GlowObjManager = *(CGlowObjectManager**)(Utils::PatternScan(client, "0F 11 05 ? ? ? ? 83 C8 01") + 3);
  127.             g_ViewRender = *(IViewRender**)(Utils::PatternScan(client, "A1 ? ? ? ? B9 ? ? ? ? C7 05 ? ? ? ? ? ? ? ? FF 10") + 1);
  128.             g_D3DDevice9 = **(IDirect3DDevice9***)(Utils::PatternScan(dx9api, "A1 ? ? ? ? 50 8B 08 FF 51 0C") + 1);
  129.             g_ClientState = **(CClientState***)(Utils::PatternScan(engine, "A1 ? ? ? ? 8B 80 ? ? ? ? C3") + 1);
  130.             g_LocalPlayer = *(C_LocalPlayer*)(Utils::PatternScan(client, "8B 0D ? ? ? ? 83 FF FF 74 07") + 2);
  131.             g_MatchFramework = **(CMatchFramework***)(Utils::PatternScan(client, "8B 0D ? ? ? ? 53 56 57 8B 01 FF 50 34 8B D8") + 2);
  132.  
  133.        
  134.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement