Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.85 KB | None | 0 0
  1. #include "Config.h"
  2.  
  3. #include "WndProc.h"
  4. #include "bass.h"
  5. #include "OutFontCompress.h"
  6. #include <fstream>
  7. #include <d3dx9.h>
  8. #pragma comment(lib, "bass.lib")
  9. // DirectX
  10. #include <d3d9.h>
  11. #include <d3dx9.h>
  12. #pragma comment(lib, "d3d9.lib")
  13. #pragma comment(lib, "d3dx9.lib")
  14. int radio_selected = 0;
  15. bool radio_paused;
  16. #using <system.dll>
  17. ATOM RegMyWindowClass(HINSTANCE, LPCTSTR);
  18.  
  19. IDirect3DTexture9* TitleTexture;
  20. int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  21. {
  22. LPCTSTR lpzClass = NAME;
  23. if (!RegMyWindowClass(hInstance, lpzClass))
  24. return 1;
  25. RECT screen_rect;
  26. GetWindowRect(GetDesktopWindow(), &amp;screen_rect);
  27. int x = screen_rect.right / 2 - 150;
  28. int y = screen_rect.bottom / 2 - 75;
  29.  
  30. HWND hWnd = CreateWindow(lpzClass, NAME, WS_POPUP, x, y, WINDOW_WIDTH, WINDOW_HEIGHT, NULL, NULL, hInstance, NULL);
  31. if (!hWnd) return 2;
  32.  
  33. LPDIRECT3D9 pD3D;
  34. if ((pD3D = Direct3DCreate9(D3D_SDK_VERSION)) == NULL)
  35. {
  36. UnregisterClass(lpzClass, hInstance);
  37. }
  38.  
  39. ZeroMemory(&amp;g_d3dpp, sizeof(g_d3dpp));
  40. g_d3dpp.Windowed = TRUE;
  41. g_d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
  42. g_d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;
  43. g_d3dpp.EnableAutoDepthStencil = TRUE;
  44. g_d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
  45. g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; // Present with vsync
  46. //g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // Present without vsync, maximum unthrottled framerate
  47.  
  48. if (pD3D-&gt;CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &amp;g_d3dpp, &amp;g_pd3dDevice) &lt; 0)
  49. {
  50.  
  51. pD3D-&gt;Release();
  52. UnregisterClass(lpzClass, hInstance);
  53. return 0;
  54.  
  55. }
  56.  
  57. // Setup ImGui binding
  58. ImGui_ImplDX9_Init(hWnd, g_pd3dDevice);
  59.  
  60. ImGuiStyle&amp; style = ImGui::GetStyle();
  61.  
  62. style.Alpha = 1.0f;
  63. style.WindowPadding = ImVec2(0, 0);
  64. style.WindowMinSize = ImVec2(32, 32);
  65. style.WindowRounding = 0.0f;
  66. style.WindowTitleAlign = ImVec2(0.0f, 0.5f);
  67. style.ChildWindowRounding = 0.0f;
  68. style.FramePadding = ImVec2(4, 3);
  69. style.FrameRounding = 0.0f;
  70. style.ItemSpacing = ImVec2(8, 8);
  71. style.ItemInnerSpacing = ImVec2(8, 8);
  72. style.TouchExtraPadding = ImVec2(0, 0);
  73. style.IndentSpacing = 21.0f;
  74. style.ColumnsMinSpacing = 0.0f;
  75. style.ScrollbarSize = 6.0f;
  76. style.ScrollbarRounding = 0.0f;
  77. style.GrabMinSize = 5.0f;
  78. style.GrabRounding = 0.0f;
  79. style.ButtonTextAlign = ImVec2(0.0f, 0.5f);
  80. style.DisplayWindowPadding = ImVec2(22, 22);
  81. style.DisplaySafeAreaPadding = ImVec2(4, 4);
  82. style.AntiAliasedLines = true;
  83. style.AntiAliasedShapes = false;
  84. style.CurveTessellationTol = 1.f;
  85.  
  86. static int hue = 140;
  87. static float col_main_sat = 180.f / 255.f;
  88. static float col_main_val = 161.f / 255.f;
  89. static float col_area_sat = 124.f / 255.f;
  90. static float col_area_val = 100.f / 255.f;
  91. static float col_back_sat = 59.f / 255.f;
  92. static float col_back_val = 40.f / 255.f;
  93.  
  94. ImVec4 col_text = ImColor::HSV(hue / 255.f, 20.f / 255.f, 235.f / 255.f);
  95. ImVec4 col_main = ImColor::HSV(hue / 255.f, col_main_sat, col_main_val);
  96. ImVec4 col_back = ImColor::HSV(hue / 255.f, col_back_sat, col_back_val);
  97. ImVec4 col_area = ImColor::HSV(hue / 255.f, col_area_sat, col_area_val);
  98.  
  99. ImVec4* colors = ImGui::GetStyle().Colors;
  100. colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
  101. colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f);
  102. colors[ImGuiCol_WindowBg] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  103. colors[ImGuiCol_PopupBg] = ImVec4(29 / 255.f, 24 / 255.f, 67 / 255.f, 1.0f);
  104. colors[ImGuiCol_Border] = ImVec4(30 / 255.f, 30 / 255.f, 41 / 255.f, 1.0f);
  105. colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
  106. colors[ImGuiCol_ChildWindowBg] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  107. colors[ImGuiCol_FrameBg] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  108. colors[ImGuiCol_FrameBgHovered] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  109. colors[ImGuiCol_FrameBgActive] = ImVec4(33 / 255.f, 35 / 255.f, 47 / 255.f, 1.0f);
  110. colors[ImGuiCol_TitleBgActive] = ImVec4(35 / 255.f, 35 / 255.f, 35 / 255.f, 1.0f);
  111. colors[ImGuiCol_TitleBg] = ImVec4(35 / 255.f, 35 / 255.f, 35 / 255.f, 1.0f);
  112. colors[ImGuiCol_TitleBgCollapsed] = ImVec4(35 / 255.f, 35 / 255.f, 35 / 255.f, 1.0f);
  113. colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f);
  114. colors[ImGuiCol_ScrollbarBg] = ImVec4(0.17f, 0.17f, 0.17f, 1.00f);
  115. colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.25f, 0.25f, 0.25f, 1.00f);
  116. colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.25f, 0.25f, 0.25f, 1.00f);
  117. colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.25f, 0.25f, 0.25f, 1.00f);
  118. colors[ImGuiCol_Button] = ImColor(225, 31, 92);
  119. colors[ImGuiCol_ButtonHovered] = ImColor(225, 31, 92);
  120. colors[ImGuiCol_ButtonActive] = ImVec4(135 / 255.f, 135 / 255.f, 135 / 255.f, 1.0f); //
  121. colors[ImGuiCol_Header] = ImColor(225, 31, 92); //multicombo, combo selected item color.
  122. colors[ImGuiCol_HeaderHovered] = ImColor(125, 21, 72);
  123. colors[ImGuiCol_HeaderActive] = ImColor(225, 31, 92);
  124. colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.25f);
  125. colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);
  126. colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);
  127. colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f);
  128. colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
  129. colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);
  130. colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
  131. colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);
  132. colors[ImGuiCol_CloseButton] = ImVec4(0, 0, 0, 0);
  133. colors[ImGuiCol_CloseButtonHovered] = ImVec4(0, 0, 0, 0);
  134.  
  135.  
  136.  
  137. const int TITLE_ICON_SIZEX = 30;
  138. const int TITLE_ICON_SIZEY = 25;
  139. if (TitleTexture == nullptr)
  140. D3DXCreateTextureFromFileInMemoryEx(g_pd3dDevice, _Bytes, 1435, TITLE_ICON_SIZEX, TITLE_ICON_SIZEY, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &amp;TitleTexture);
  141.  
  142. bool show_test_window = true;
  143. bool show_another_window = false;
  144. ImVec4 clear_col = ImColor(0, 0, 0, 255);
  145.  
  146. ImFont* Main;
  147. ImFont* Menu;
  148. ImFont* MainCaps;
  149. ImFont* Icons;
  150.  
  151. ImFontConfig config;
  152. config.OversampleH = 6;
  153. config.OversampleV = 6;
  154.  
  155. Main = ImGui::GetIO().Fonts-&gt;AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Medium.ttf", 15, &amp;config);
  156. MainCaps = ImGui::GetIO().Fonts-&gt;AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Medium.ttf", 19, &amp;config);
  157. Menu = ImGui::GetIO().Fonts-&gt;AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Medium.ttf", 13, &amp;config);
  158. Icons = ImGui::GetIO().Fonts-&gt;AddFontFromFileTTF("C:\\Windows\\Fonts\\URW Martin Gothic W01 Thin.ttf", 15, &amp;config);
  159.  
  160. // Main
  161. MSG msg;
  162. ZeroMemory(&amp;msg, sizeof(msg));
  163. ShowWindow(hWnd, SW_SHOWDEFAULT);
  164. UpdateWindow(hWnd);
  165. while (msg.message != WM_QUIT)
  166. {
  167. if (PeekMessage(&amp;msg, NULL, 0U, 0U, PM_REMOVE))
  168. {
  169. TranslateMessage(&amp;msg);
  170. DispatchMessage(&amp;msg);
  171. continue;
  172. }
  173.  
  174. ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
  175.  
  176. ImGui_ImplDX9_NewFrame();
  177. DWORD dwFlag = ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoTitleBar;
  178.  
  179. static bool open = true;
  180.  
  181. if (!open)
  182. ExitProcess(0);
  183. ImGui::GetStyle().Colors[ImGuiCol_CheckMark] = ImColor(225, 31, 92);
  184. ImGui::GetStyle().Colors[ImGuiCol_SliderGrab] = ImVec4(225 / 255.f, 31 / 255.f, 92 / 255.f, 1.f);
  185. ImGui::GetStyle().Colors[ImGuiCol_SliderGrabActive] = ImVec4(225 / 255.f, 31 / 255.f, 92 / 255.f, 1.f);
  186. ImGui::GetStyle().Colors[ImGuiCol_Border] = ImColor(65, 55, 67, 255);
  187. ImGui::Begin(NAME_LOADER, &amp;open, ImVec2(WINDOW_WIDTH, WINDOW_HEIGHT), 1.0f, dwFlag );
  188. {
  189. {
  190.  
  191. static int iPage = 3;
  192. if (iPage == 3)
  193. {
  194. ImGui::BeginChild(("Tabs"), ImVec2(0, 0), 0.9f, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
  195. {
  196. ImVec2 p = ImGui::GetCursorScreenPos();
  197. ImColor c = ImColor(32, 114, 247);
  198. static int page = 0;
  199. //title bar
  200.  
  201. bool backtrack;
  202. bool aim_at_backtrack;
  203. bool backtrack_visualize;
  204. bool aim_enabled;
  205. bool scope_aim;
  206. bool smoke_check;
  207. bool aim_silent_pistol;
  208. bool aim_silent_rifle;
  209. bool aim_silent_sniper;
  210. bool aim_silent_heavy;
  211. bool aim_silent_smg;
  212. bool aim_distance_based_fov;
  213. float aim_fov_pistol;
  214. float rcs_x_pistol;
  215. float rcs_y_pistol;
  216. float rcs_x_rifle;
  217. float rcs_y_rifle;
  218. float rcs_x_sniper;
  219. float rcs_y_sniper;
  220. float rcs_x_heavy;
  221. float rcs_y_heavy;
  222. float rcs_x_smg;
  223. float rcs_y_smg;
  224. float aim_smooth_pistol;
  225. float aim_fov_rifle;
  226. float aim_smooth_rifle;
  227. float aim_fov_sniper;
  228. float aim_smooth_sniper;
  229. float aim_fov_heavy;
  230. float aim_smooth_heavy;
  231. float aim_fov_smg;
  232. float aim_smooth_smg;
  233. int aim_bone_smg;
  234. int aim_bone_sniper;
  235. int aim_bone_pistol;
  236. int aim_mode ;
  237. int aim_bone_rifle ;
  238. int aim_bone_heavy;
  239. int aim_weapon ;
  240. bool aim_team_check;
  241.  
  242. ImGui::GetWindowDrawList()-&gt;AddRectFilledMultiColor(ImVec2(p.x, p.y + 52), ImVec2(p.x + ImGui::GetWindowWidth(), p.y + 62), ImColor(0, 0, 0, 255), ImColor(0, 0, 0, 255), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255));
  243. ImGui::GetWindowDrawList()-&gt;AddRectFilledMultiColor(ImVec2(p.x, p.y + 62), ImVec2(p.x + ImGui::GetWindowWidth(), p.y + 500), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255), ImColor(14, 13, 35, 255));
  244.  
  245. ImGui::GetWindowDrawList()-&gt;AddRectFilled(ImVec2(p.x, p.y + 52), ImVec2(p.x + ImGui::GetWindowWidth(), p.y - 3), ImColor(29, 27, 66));
  246. ImGui::GetWindowDrawList()-&gt;AddRectFilled(ImVec2(p.x, p.y + 12), ImVec2(p.x + ImGui::GetWindowWidth(), p.y - 3), ImColor(29, 27, 66));
  247. //draw gradient bellow title bar
  248. ImGui::GetWindowDrawList()-&gt;AddRectFilledMultiColor(ImVec2(p.x, p.y + 14), ImVec2(p.x + ImGui::GetWindowWidth(), p.y + 12), ImColor(167, 24, 71, 255), ImColor(58, 31, 87, 255), ImColor(58, 31, 87, 255), ImColor(167, 24, 71, 255));
  249. // ImGui::GetWindowDrawList()-&gt;AddRectFilled(ImVec2(p.x, p.y + 30), ImVec2(p.x + ImGui::GetWindowWidth(), p.y - 3), ImColor(30, 30, 39));
  250. //push font for window stuff
  251. ImGui::pushFont(MainCaps);
  252. //set cheat name position
  253. ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 22); //góra, dółx
  254. ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 7); //lewo prawo
  255. //render cheat name
  256. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  257.  
  258. ImGui::Text("KARRATY.CLUB");
  259. ImGui::SameLine();
  260. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  261.  
  262. ImGui::popFont();
  263. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 4); //góra, dół
  264.  
  265. ImGui::pushFont(Menu);
  266. if (ImGui::ButtonT("RAGE", ImVec2(50, 30), page, 0, ImColor(167, 24, 71), false)) page = 0; ImGui::SameLine(0, 0);
  267. if (ImGui::ButtonT("VISUALS", ImVec2(50, 30), page, 1, ImColor(167, 24, 71), false)) page = 1; ImGui::SameLine(0, 0);
  268. if (ImGui::ButtonT("MISC", ImVec2(50, 30), page, 2, ImColor(167, 24, 71), false)) page = 2; ImGui::SameLine(0, 0);
  269. if (ImGui::ButtonT("SKINS", ImVec2(50, 30), page, 3, ImColor(167, 24, 71), false)) page = 3; ImGui::SameLine(0, 0);
  270. if (ImGui::ButtonT("LEGIT", ImVec2(50, 30), page, 4, ImColor(167, 24, 71), false)) page = 4; ImGui::SameLine(0, 0);
  271.  
  272. ImGui::popFont();
  273.  
  274. ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 45); //góra, dół
  275. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 222); //lewo prawo
  276. ImGui::pushFont(Menu);
  277. ImGui::pushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  278.  
  279.  
  280. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(30 / 255.f, 30 / 255.f, 39 / 255.f, 1.0f));
  281.  
  282. ImGui::pushStyleColor(ImGuiCol_Border, ImVec4(0 / 255.f, 0 / 255.f, 0 / 255.f, 0.1f));
  283.  
  284. ImGui::popStyleColor();
  285. ImGui::popStyleColor();
  286. ImGui::popStyleVar();
  287.  
  288. static int test = 0;
  289. static int vispg = 0;
  290. static int mscpg = 0;
  291. static int skinpg = 0;
  292. static int cfgpg = 0;
  293.  
  294. switch (page) {
  295. case 0:
  296. ImGui::Dummy(ImVec2(0, -2)); ImGui::SameLine();
  297. ImGui::Dummy(ImVec2(0, 0)); ImGui::SameLine();
  298. ImGui::pushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  299.  
  300. //push window color for child
  301. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(32 / 255.f, 27 / 255.f, 68 / 255.f, 1.0f));
  302. //push border color for child
  303. ImGui::pushStyleColor(ImGuiCol_Border, ImVec4(61 / 255.f, 55 / 255.f, 85 / 255.f, 1.0f));
  304.  
  305. ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 0);
  306. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 153);
  307.  
  308. ImGui::BeginChild("##tab", ImVec2(576, 23), true , ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  309. {
  310. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 20);
  311. if (ImGui::ButtonT(" AIMBOT", ImVec2(50, 30), test, 0, ImColor(167, 24, 71), false)) test = 0; ImGui::SameLine(0, 0); //pistol
  312. if (ImGui::ButtonT("ANTI-AIM", ImVec2(50, 30), test, 1, ImColor(167, 24, 71), false)) test = 1; ImGui::SameLine(0, 0); //pistol
  313. if (ImGui::ButtonT("WEAPONS", ImVec2(53, 30), test, 2, ImColor(167, 24, 71), false)) test = 2; //rifle
  314.  
  315. }
  316. ImGui::EndChild();
  317.  
  318. ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 12);
  319.  
  320. ImGui::SetCursorPosY(ImGui::GetCursorPosY() -16);
  321.  
  322. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(27 / 255.f, 22 / 255.f, 54 / 255.f, 1.0f));
  323. ImGui::pushStyleColor(ImGuiCol_Border, ImVec4(61 / 255.f, 55 / 255.f, 85 / 255.f, 1.0f));
  324. ImGui::BeginChild("", ImVec2(576, 403), true); {
  325.  
  326. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  327.  
  328. ImVec2 winpos = ImGui::GetWindowPos();
  329.  
  330. switch (test) {
  331. case 0:
  332. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImColor(32, 28, 66));
  333. ImGui::pushStyleColor(ImGuiCol_FrameBg, ImColor(29, 24, 67));
  334. ImGui::pushStyleColor(ImGuiCol_Border, ImColor(53, 48, 83));
  335. ImGui::BeginChild("Aimbot", ImVec2(181, 378), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar );
  336. {
  337. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 9);
  338. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  339. ImGui::Checkbox("Aimbot", &amp;aim_enabled);
  340. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  341. ImGui::Checkbox("Autofire", &amp;aim_distance_based_fov);
  342. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  343. ImGui::Checkbox("Backtrack", &amp;scope_aim);
  344. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  345. ImGui::Checkbox("Resolver", &amp;smoke_check);
  346. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  347. ImGui::Checkbox("Override resolver", &amp;aim_team_check);
  348. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  349. ImGui::Checkbox("Fakelag compensation", &amp;backtrack);
  350. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  351. ImGui::Checkbox("Delay shot", &amp;aim_team_check);
  352. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  353. ImGui::Checkbox("Force baim", &amp;aim_team_check);
  354. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  355. ImGui::Checkbox("Remove spread", &amp;aim_team_check);
  356. }
  357. ImGui::EndChild();
  358.  
  359. ImGui::SameLine();
  360.  
  361. ImGui::BeginChild("Other", ImVec2(181, 378), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  362. {
  363. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 9);
  364. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  365. ImGui::Checkbox("Knifebot", &amp;aim_team_check);
  366. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  367. ImGui::Checkbox("Zeusbot", &amp;aim_team_check);
  368. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  369. ImGui::Checkbox("Extended backtrack", &amp;aim_team_check);
  370. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  371. ImGui::Checkbox("Ping spike", &amp;aim_team_check);
  372. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  373. ImGui::Checkbox("Philiptime", &amp;aim_team_check);
  374. }
  375. ImGui::EndChild();
  376.  
  377. ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 371);
  378.  
  379. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 100);
  380.  
  381. ImGui::BeginChild("##config", ImVec2(180, 92), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  382. {
  383. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  384. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  385. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  386. ImGui::Text("Slot");
  387. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  388. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  389. ImGui::Combo("##Slot", &amp;aim_mode, "Slot 1\0Slot 2"); //todo add custom bone selection - designer
  390. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  391. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  392. ImGui::Button(" Load config",ImVec2(115 , 16));
  393. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  394. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  395. ImGui::Button(" Save config", ImVec2(115, 16));
  396.  
  397. }
  398. ImGui::EndChild();
  399.  
  400. break;
  401. case 1:
  402. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImColor(32, 28, 66));
  403. ImGui::pushStyleColor(ImGuiCol_FrameBg, ImColor(29, 24, 67));
  404. ImGui::pushStyleColor(ImGuiCol_Border, ImColor(53, 48, 83));
  405. ImGui::BeginChild("Stand", ImVec2(181, 378), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  406. {
  407. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  408. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  409. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  410. ImGui::Text("Pitch");
  411. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  412. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  413. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  414. ImGui::Combo("##Slot123", &amp;aim_mode, "None\0Slot 2");
  415.  
  416.  
  417. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  418. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  419. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  420. ImGui::Text("Yaw");
  421. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  422. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  423. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  424. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2");
  425.  
  426. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  427. ImGui::Checkbox("Yaw add", &amp;aim_enabled);
  428. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  429. ImGui::Checkbox("At fov target", &amp;aim_enabled);
  430. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  431. ImGui::Checkbox("Freestand", &amp;aim_enabled);
  432. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  433. ImGui::Checkbox("Fake lag", &amp;aim_enabled);
  434. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  435. ImGui::Checkbox("Spin", &amp;aim_enabled);
  436. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  437. ImGui::Checkbox("Jitter", &amp;aim_enabled);
  438.  
  439. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  440. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  441. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  442. ImGui::Text("Lby");
  443. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  444. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  445. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  446. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  447.  
  448. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  449. ImGui::Checkbox("Hide when hittable", &amp;aim_enabled);
  450. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  451. ImGui::Checkbox("Limit delta", &amp;aim_enabled);
  452.  
  453. }
  454. ImGui::EndChild();
  455.  
  456. ImGui::SameLine();
  457.  
  458. ImGui::BeginChild("Moving", ImVec2(181, 190), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  459. {
  460. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  461. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  462. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  463. ImGui::Text("Pitch");
  464. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  465. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  466. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  467. ImGui::Combo("##Slot123", &amp;aim_mode, "None\0Slot 2");
  468.  
  469.  
  470. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  471. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  472. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  473. ImGui::Text("Yaw");
  474. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  475. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  476. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  477. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2");
  478.  
  479. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  480. ImGui::Checkbox("Yaw add", &amp;aim_enabled);
  481. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  482. ImGui::Checkbox("At fov target", &amp;aim_enabled);
  483. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  484. ImGui::Checkbox("Freestand", &amp;aim_enabled);
  485. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  486. ImGui::Checkbox("Fake lag", &amp;aim_enabled);
  487. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  488. ImGui::Checkbox("Spin", &amp;aim_enabled);
  489. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  490. ImGui::Checkbox("Jitter", &amp;aim_enabled);
  491. }
  492. ImGui::EndChild();
  493.  
  494. ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 182);
  495.  
  496. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 188);
  497.  
  498. ImGui::BeginChild("Air", ImVec2(181, 180), true, ImGuiWindowFlags_NoScrollbar);
  499. {
  500. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  501. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  502. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  503. ImGui::Text("Pitch");
  504. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  505. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  506. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  507. ImGui::Combo("##Slot123", &amp;aim_mode, "None\0Slot 2");
  508.  
  509.  
  510. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  511. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  512. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  513. ImGui::Text("Yaw");
  514. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  515. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  516. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  517. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2");
  518.  
  519. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  520. ImGui::Checkbox("Yaw add", &amp;aim_enabled);
  521. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  522. ImGui::SliderFloat("##Volume", &amp;aim_fov_heavy, 0.f, 1.f);
  523. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  524. ImGui::Checkbox("At fov target", &amp;aim_enabled);
  525. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  526. ImGui::Checkbox("Freestand", &amp;aim_enabled);
  527. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  528. ImGui::Checkbox("Fake lag", &amp;aim_enabled);
  529. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  530. ImGui::Checkbox("Spin", &amp;aim_enabled);
  531. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  532. ImGui::Checkbox("Jitter", &amp;aim_enabled);
  533.  
  534. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  535. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  536. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  537. ImGui::Text("Lby");
  538. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  539. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  540. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  541. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  542.  
  543. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  544. ImGui::Checkbox("Hide when hittable", &amp;aim_enabled);
  545. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  546. ImGui::Checkbox("Limit delta", &amp;aim_enabled);
  547. }
  548. ImGui::EndChild();
  549.  
  550.  
  551.  
  552. ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 371);
  553.  
  554. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 386);
  555.  
  556. ImGui::BeginChild("General", ImVec2(180, 278), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  557. {
  558.  
  559. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 9);
  560. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  561. ImGui::Checkbox("Anti-aim", &amp;aim_enabled);
  562. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  563. ImGui::Checkbox("Fakelag always on", &amp;aim_enabled);
  564.  
  565. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  566. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  567. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  568. ImGui::Text("Additional fakelag");
  569. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  570. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  571. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  572. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  573.  
  574. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  575. ImGui::Checkbox("Fakewalk", &amp;aim_enabled);
  576.  
  577. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  578. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  579. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 7);
  580. ImGui::Text("Indicators");
  581. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(255, 255, 255);
  582. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  583. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  584. ImGui::Combo("##Slot1234", &amp;aim_mode, "None\0Slot 2"); //todo add custom bone selection - designer
  585.  
  586. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  587. ImGui::Checkbox("Low performance mode", &amp;aim_enabled);
  588. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  589. ImGui::Checkbox("Antiaim override", &amp;aim_enabled);
  590. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  591. ImGui::Checkbox("Back", &amp;aim_enabled);
  592. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  593. ImGui::Checkbox("Left", &amp;aim_enabled);
  594. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  595. ImGui::Checkbox("Right", &amp;aim_enabled);
  596. }
  597. ImGui::EndChild();
  598.  
  599.  
  600. ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 371);
  601.  
  602. ImGui::SetCursorPosY(ImGui::GetCursorPosY());
  603.  
  604. ImGui::BeginChild("##config", ImVec2(180, 92), true, ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoScrollbar);
  605. {
  606. ImGui::GetStyle().Colors[ImGuiCol_Text] = ImColor(140, 135, 179);
  607. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 13);
  608. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  609. ImGui::Text("Slot");
  610. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  611. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 6);
  612. ImGui::Combo("##Slot", &amp;aim_mode, "Slot 1\0Slot 2"); //todo add custom bone selection - designer
  613. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  614. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  615. ImGui::Button(" Load config", ImVec2(115, 16));
  616. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7);
  617. ImGui::SetCursorPosY(ImGui::GetCursorPosY() - 3);
  618. ImGui::Button(" Save config", ImVec2(115, 16));
  619.  
  620. }
  621. ImGui::EndChild();
  622.  
  623. break;
  624. case 2:
  625.  
  626. break;
  627. case 3:
  628.  
  629. break;
  630. case 4:
  631.  
  632. break;
  633. case 5:
  634.  
  635. break;
  636. }
  637. }
  638. ImGui::EndChild();
  639. ImGui::popStyleColor();
  640. ImGui::popStyleColor();
  641. ImGui::popStyleVar();
  642.  
  643. break;
  644.  
  645. case 1:
  646. ImGui::Dummy(ImVec2(0, -2)); ImGui::SameLine();
  647. ImGui::Dummy(ImVec2(0, 0)); ImGui::SameLine();
  648. ImGui::pushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  649.  
  650. //push window color for child
  651. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(30 / 255.f, 30 / 255.f, 39 / 255.f, 1.0f));
  652. //push border color for child
  653. ImGui::pushStyleColor(ImGuiCol_Border, ImVec4(0 / 255.f, 0 / 255.f, 0 / 255.f, 0.1f));
  654.  
  655. ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 0); //góra, dół
  656. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 100); //lewo prawo
  657.  
  658. ImGui::BeginChild("", ImVec2(385, 190), true); {
  659. }
  660.  
  661. ImGui::EndChild();
  662. ImGui::popStyleColor();
  663. ImGui::popStyleColor();
  664. ImGui::popStyleVar();
  665.  
  666. break;
  667.  
  668. case 2:
  669. ImGui::Dummy(ImVec2(0, -2)); ImGui::SameLine();
  670. ImGui::Dummy(ImVec2(0, 0)); ImGui::SameLine();
  671. ImGui::pushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(16, 16));
  672.  
  673. //push window color for child
  674. ImGui::pushStyleColor(ImGuiCol_ChildWindowBg, ImVec4(30 / 255.f, 30 / 255.f, 39 / 255.f, 1.0f));
  675. //push border color for child
  676. ImGui::pushStyleColor(ImGuiCol_Border, ImVec4(0 / 255.f, 0 / 255.f, 0 / 255.f, 0.1f));
  677.  
  678. ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 0); //góra, dół
  679. ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 100); //lewo prawo
  680.  
  681. ImGui::BeginChild("", ImVec2(385, 190), true); {
  682. }
  683.  
  684. ImGui::EndChild();
  685. ImGui::popStyleColor();
  686. ImGui::popStyleColor();
  687. ImGui::popStyleVar();
  688.  
  689. break;
  690. }
  691.  
  692.  
  693. }
  694. ImGui::EndChild();
  695. }
  696. }
  697. }
  698. ImGui::End();
  699.  
  700.  
  701.  
  702. // Render
  703. g_pd3dDevice-&gt;SetRenderState(D3DRS_ZENABLE, false);
  704. g_pd3dDevice-&gt;SetRenderState(D3DRS_ALPHABLENDENABLE, false);
  705. g_pd3dDevice-&gt;SetRenderState(D3DRS_SCISSORTESTENABLE, false);
  706.  
  707. //D3DCOLOR clear_col_dx = D3DCOLOR_RGBA((int)(clear_color.x*255.0f), (int)(clear_color.y*255.0f), (int)(clear_color.z*255.0f), (int)(clear_color.w*255.0f));
  708. //g_pd3dDevice-&gt;Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, clear_col_dx, 1.0f, 0);
  709. if (g_pd3dDevice-&gt;BeginScene() &gt;= 0)
  710. {
  711. ImGui::Render();
  712. g_pd3dDevice-&gt;EndScene();
  713. }
  714. g_pd3dDevice-&gt;Present(NULL, NULL, NULL, NULL);
  715. }
  716.  
  717. ImGui_ImplDX9_Shutdown();
  718. if (g_pd3dDevice) g_pd3dDevice-&gt;Release();
  719. if (pD3D) pD3D-&gt;Release();
  720. UnregisterClass(NAME, hInstance);
  721.  
  722. return 0;
  723. }
  724.  
  725. //////////////////////////////////////////////////////////////////////////
  726. ATOM RegMyWindowClass(HINSTANCE hInst, LPCTSTR lpzClassName)
  727. {
  728. WNDCLASS wcWindowClass = { 0 };
  729. // message handling address
  730. wcWindowClass.lpfnWndProc = (WNDPROC)WndProc;
  731. // window style
  732. wcWindowClass.style = CS_HREDRAW | CS_VREDRAW;
  733. // application instance handle
  734. wcWindowClass.hInstance = hInst;
  735. // class name
  736. wcWindowClass.lpszClassName = lpzClassName;
  737. // cursor loading
  738. wcWindowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
  739. // color window
  740. wcWindowClass.hbrBackground = (HBRUSH)COLOR_APPWORKSPACE;
  741. return RegisterClass(&amp;wcWindowClass); // registration class
  742. }</system.dll></d3dx9.h></d3d9.h></d3dx9.h></fstream>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement