Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.88 KB | None | 0 0
  1. local type = type;
  2. local next = next;
  3.  
  4.  
  5.  
  6.  
  7. chat.AddText(Color(35,125,255), "Cloud.Hack", Color( 255,255,255 ), " LOADED!")
  8. chat.AddText(Color(255,255,255), "I love the clouds", Color( 35,125,255 )," Coded By NEX")
  9.  
  10. MsgC( Color( 0,125,255 ), [[
  11. _____ _ _ _____ _
  12. / __ \ | | | / ___| | |
  13. | / \/ | ___ _ _ __| | \ `--. __ _ _ _ __ _ __| |
  14. | | | |/ _ \| | | |/ _` | `--. \/ _` | | | |/ _` |/ _` |
  15. | \__/\ | (_) | |_| | (_| |_/\__/ / (_| | |_| | (_| | (_| |
  16. \____/_|\___/ \__,_|\__,_(_)____/ \__, |\__,_|\__,_|\__,_|
  17. | |
  18. Made by NEX |_|
  19. ------------------------------------------------------------
  20.  
  21. ]])
  22.  
  23. -- Everything Works Btw (: --
  24. MsgC( Color( 0,125,255 ), [[
  25. Changelog/Updates
  26. - Added a shit ton of angles - NEX
  27. - Added AAA - NEX
  28. - Added More angles - NEX
  29. - New Bhop and Autostrafe - NEX
  30. - Added more to aaa - NEX
  31. - Added Fake Lag - NEX
  32. - Added Fake Lag Prediction - NEX
  33. - Added Prediction - NEX
  34. - Added T Finder - NEX
  35. - Minor Menu changes - NEX
  36. - Huge Menu changes - NEX
  37. - Added WireFrame Viewmodel - NEX
  38. - Minor Menu changes - NEX
  39. - Added Crosshair - NEX
  40. - Added Watermark - NEX
  41. - Added "p100 Prediction" - NEX
  42. - Nice Menu fix's - NEX
  43. -
  44. --] ^ All Updates ^ [--
  45.  
  46. ]])
  47.  
  48.  
  49. --] Changelog/Updates [--
  50. -- Added a shit ton of angles - NEX
  51. -- Added AAA - NEX
  52. -- Added More angles - NEX
  53. -- New Bhop and Autostrafe - NEX
  54. -- Added more to aaa - NEX
  55. -- Added Fake Lag - NEX
  56. -- Added Fake Lag Prediction - NEX
  57. -- Added Prediction - NEX
  58. -- Added T Finder - NEX
  59. -- Minor Menu changes - NEX
  60. -- Huge Menu changes - NEX
  61. -- Added WireFrame Viewmodel - NEX
  62. -- Menu Changes - NEX
  63. -- Added Crosshair - NEX
  64. -- Added Watermark - NEX
  65. -- Menu Fix's - NEX
  66. --] Updates are nice [--
  67.  
  68. --] To do list ]--
  69. -- No Visual Recoil
  70. -- No Hands
  71. -- Viewmodel Chams
  72. -- A Better Prediction
  73. -- Upgrading AAA
  74. -- Better Fakelag Prediction
  75. -- Improving Aimbot
  76. --
  77. --
  78. --
  79. --
  80. --
  81. --
  82. --
  83. --
  84. --] Everything I wanted done is done! ]--
  85.  
  86. MsgC(Color(200,200,200), "Cloud.Hack", Color( 255, 255, 255), " Loaded")
  87. MsgN("")
  88.  
  89.  
  90. local type = type;
  91. local next = next;
  92.  
  93. local function Copy(tt, lt)
  94. local copy = {}
  95. if lt then
  96. if type(tt) == "table" then
  97. for k,v in next, tt do
  98. copy[k] = Copy(k, v)
  99. end
  100. else
  101. copy = lt
  102. end
  103. return copy
  104. end
  105. if type(tt) != "table" then
  106. copy = tt
  107. else
  108. for k,v in next, tt do
  109. copy[k] = Copy(k, v)
  110. end
  111. end
  112. return copy
  113. end
  114.  
  115. local surface = Copy(surface);
  116. local vgui = Copy(vgui);
  117. local input = Copy(input);
  118. local Color = Color;
  119. local ScrW, ScrH = ScrW, ScrH;
  120. local gui = Copy(gui);
  121. local math = Copy(math);
  122. local file = Copy(file);
  123. local util = Copy(util);
  124.  
  125. surface.CreateFont("WATERMARK", {font = "Trebuchet", size = 25, weight = 550})
  126. surface.CreateFont("WATERMARK2", {font = "Trebuchet", size = 25, weight = 550})
  127. surface.CreateFont("WATERMARK3", {font = "Razer Regular", size = 25, weight = 550})
  128.  
  129. surface.CreateFont("Cloudyou", {
  130. font = "Console",
  131. size = 13,
  132. weight = 900,
  133. shadow = true,
  134. antialias = false,
  135. });
  136.  
  137. surface.CreateFont("Cloudyou2", {
  138. font = "Console",
  139. size = 13,
  140. weight = 900,
  141. shadow = false,
  142. antialias = false,
  143. });
  144.  
  145. local options = {
  146. ["HVH"] = {
  147. {
  148. {"Aimbot", 20, 20, 350, 270, 200},
  149. {"Enabled", "Checkbox", false, 0},
  150. {"Silent", "Checkbox", false, 0},
  151. {"Autofire", "Checkbox", false, 0},
  152. {"Autosnap", "Checkbox", false, 0},
  153. {"AutoPistol", "Checkbox", false, 0},
  154. {"Non-Sticky", "Checkbox", false, 0},
  155. {"Bullettime", "Checkbox", false, 0},
  156. {"AutoWall", "Checkbox", false, 0},
  157. {"Fakelag Prediction", "Checkbox", false, 0},
  158. {"AAA", "Checkbox", false, 0},
  159. },
  160. {
  161. {"Target", 20, 300, 350, 180, 210},
  162. {"Selection", "Selection", "Distance", {"Distance", "Health", "Nextshot"}, 100 },
  163. {"Bodyaim", "Checkbox", false, 0},
  164. {"Ignore Bots", "Checkbox", false, 0},
  165. {"Ignore Team", "Checkbox", false, 0},
  166. {"Ignore Friends", "Checkbox", false, 0},
  167. {"Snapline", "Checkbox", false, 0},
  168. },
  169. {
  170. {"Accuracy", 380, 310, 350, 170, 200},
  171. {"Ignore Cloud.Hack", "Checkbox", false, 0},
  172. {"Anti Spread", "Checkbox", false, 0},
  173. {"Anti Recoil", "Checkbox", false, 0},
  174. },
  175. {
  176. {"Anti-Aim", 380, 20, 350, 280, 140},
  177. {"Enabled", "Checkbox", false, 0},
  178. {"X", "Selection", "Emotion", {"Not", "Slick", "NEX", "Demolisher", "Anti p$ilent", "Aftermath", "Cloud", "Squad", "Dank", "Up", "Down", "Jitter", "Emotion"}, 150},
  179. {"Y", "Selection", "Emotion", {"Not", "Sly", "NEX", "Aftermath", "God", "Anti Spine", "Rand0m", "Forward", "Backwards", "Jitter", "TJitter", "Sideways", "Emotion", "Static", "Towards Players"}, 150},
  180. {"Max Y", "Slider", 50, 360, 150},
  181. {"Min Y", "Slider", 0, 360, 150},
  182. {"Emotion Randomcoin X", "Slider", 50, 100, 150},
  183. {"Emotion Randomcoin Y", "Slider", 20, 100, 150},
  184. {"FakeLag", "Checkbox", false, 0},
  185. {"FakeLag Choke", "Slider", 0, 14, 150},
  186. {"FakeLag Send", "Slider", 0, 14, 150},
  187. },
  188. },
  189. ["Visuals"] = {
  190. {
  191. {"ESP", 20, 20, 350, 240, 220},
  192. {"Enabled", "Checkbox", false, 54},
  193. {"Box", "Checkbox", false, 54},
  194. {"Box Type", "Selection", "2D Box", {"2D Box", "3D Box"}, 68},
  195. {"Name", "Checkbox", false, 54},
  196. {"Health", "Checkbox", false, 54},
  197. {"Weapon", "Checkbox", false, 54},
  198. {"XQZ", "Checkbox", false, 54},
  199. {"Chams", "Checkbox", false, 54},
  200. {"Skeleton", "Checkbox", false, 54},
  201. },
  202. {
  203. {"Filter", 20, 280, 350, 180, 220},
  204. {"Enemies only", "Checkbox", false, 54},
  205. {"Distance", "Checkbox", false, 54},
  206. {"Max Distance", "Slider", 0, 10000, 68},
  207. },
  208. {
  209. {"Misc", 380, 20, 350, 190, 220},
  210. {"Thirdperson", "Checkbox", false, 54},
  211. {"Watermark", "Checkbox", false, 54},
  212. {"Crosshair", "Checkbox", false, 54},
  213. },
  214. },
  215. ["Misc"] = {
  216. {
  217. {"Misc", 10, 20, 350, 190, 220},
  218. {"Bunnyhop", "Checkbox", false, 54},
  219. {"Autostrafe", "Checkbox", false, 54},
  220. {"Kill Spam", "Checkbox", false, 54},
  221. {"DisconnectSpam", "Checkbox", false, 54},
  222. {"Wireframe Viewmodel", "Checkbox", false, 54},
  223.  
  224.  
  225. },
  226. {
  227. {"TTT", 10, 219, 350, 190, 220},
  228. {"T Finder", "Checkbox", false, 54},
  229.  
  230.  
  231. },
  232. },
  233. ["Colors"] = {
  234. {
  235. {"Box - Team", 20, 20, 250, 175, 130},
  236. {"R", "Slider", 255, 255, 88},
  237. {"G", "Slider", 255, 255, 88},
  238. {"B", "Slider", 0, 255, 88},
  239. },
  240. {
  241. {"Box - Enemy", 20, 205, 250, 175, 130},
  242. {"R", "Slider", 180, 255, 88},
  243. {"G", "Slider", 200, 255, 88},
  244. {"B", "Slider", 0, 255, 88},
  245. },
  246. {
  247. {"Chams - Team", 290, 20, 250, 175, 130},
  248. {"Visible R", "Slider", 0, 255, 88},
  249. {"Visible G", "Slider", 255, 255, 88},
  250. {"Visible B", "Slider", 0, 255, 88},
  251. {"Not Visible R", "Slider", 0, 255, 88},
  252. {"Not Visible G", "Slider", 0, 255, 88},
  253. {"Not Visible B", "Slider", 255, 255, 88},
  254. },
  255.  
  256. {
  257. {"Chams - Enemy", 290, 205, 250, 175, 130},
  258. {"Visible R", "Slider", 255, 255, 88},
  259. {"Visible G", "Slider", 0, 255, 88},
  260. {"Visible B", "Slider", 0, 255, 88},
  261. {"Not Visible R", "Slider", 180, 255, 88},
  262. {"Not Visible G", "Slider", 200, 255, 88},
  263. {"Not Visible B", "Slider", 0, 255, 88},
  264. },
  265. },
  266. };
  267.  
  268. local order = {
  269. "HVH",
  270. "Visuals",
  271. "Misc",
  272. "Colors",
  273. };
  274.  
  275. local function updatevar( men, sub, lookup, new )
  276. for aa,aaa in next, options[men] do
  277. for key, val in next, aaa do
  278. if(aaa[1][1] != sub) then continue; end
  279. if(val[1] == lookup) then
  280. val[3] = new;
  281. end
  282. end
  283. end
  284. end
  285.  
  286. local function loadconfig()
  287. if(!file.Exists("Cloud.Hack.txt", "DATA")) then return; end
  288. local tab = util.JSONToTable( file.Read("Cloud.Hack.txt", "DATA") );
  289. local cursub;
  290. for k,v in next, tab do
  291. if(!options[k]) then continue; end
  292. for men, subtab in next, v do
  293. for key, val in next, subtab do
  294. if(key == 1) then cursub = val[1]; continue; end
  295. updatevar(k, cursub, val[1], val[3]);
  296. end
  297. end
  298. end
  299. end
  300.  
  301. local function gBool(men, sub, lookup)
  302. if(!options[men]) then return; end
  303. for aa,aaa in next, options[men] do
  304. for key, val in next, aaa do
  305. if(aaa[1][1] != sub) then continue; end
  306. if(val[1] == lookup) then
  307. return val[3];
  308. end
  309. end
  310. end
  311. end
  312.  
  313. local function gOption(men, sub, lookup)
  314. if(!options[men]) then return ""; end
  315. for aa,aaa in next, options[men] do
  316. for key, val in next, aaa do
  317. if(aaa[1][1] != sub) then continue; end
  318. if(val[1] == lookup) then
  319. return val[3];
  320. end
  321. end
  322. end
  323. return "";
  324. end
  325.  
  326. local function gInt(men, sub, lookup)
  327. if(!options[men]) then return 0; end
  328. for aa,aaa in next, options[men] do
  329. for key, val in next, aaa do
  330. if(aaa[1][1] != sub) then continue; end
  331. if(val[1] == lookup) then
  332. return val[3];
  333. end
  334. end
  335. end
  336. return 0;
  337. end
  338.  
  339. local function saveconfig()
  340. file.Write("Cloud.Hack.txt", util.TableToJSON(options));
  341. end
  342.  
  343. local mousedown;
  344. local candoslider;
  345. local drawlast;
  346.  
  347. local visible = {};
  348.  
  349. for k,v in next, order do
  350. visible[v] = false;
  351. end
  352.  
  353. local function DrawBackground(w, h)
  354. surface.SetDrawColor(0, 0, 0, 90);
  355. surface.DrawRect(0, 0, w, h);
  356.  
  357. local curcol = Color(35,125,255);
  358.  
  359. for i = 0, 30 do
  360. surface.SetDrawColor(curcol);
  361. curcol.r = curcol.r - 1;
  362. surface.DrawLine(0, i, w, i);
  363. end
  364.  
  365. surface.SetDrawColor(curcol);
  366.  
  367. surface.SetFont("Cloudyou");
  368.  
  369. local tw, th = surface.GetTextSize("beast.lua for Garry's Mod");
  370.  
  371. surface.SetTextPos(5, 15 - th / 2);
  372.  
  373. surface.SetTextColor(255, 255, 255);
  374.  
  375. surface.DrawText("beast.lua for Garry's Mod");
  376.  
  377. surface.DrawRect(0, 31, 5, h - 31);
  378. surface.DrawRect(0, h - 5, w, h);
  379. surface.DrawRect(w - 5, 31, 5, h);
  380. end
  381.  
  382. local function MouseInArea(minx, miny, maxx, maxy)
  383. local mousex, mousey = gui.MousePos();
  384. return(mousex < maxx && mousex > minx && mousey < maxy && mousey > miny);
  385. end
  386.  
  387. local function DrawOptions(self, w, h)
  388. local mx, my = self:GetPos();
  389.  
  390. local sizeper = (w - 10) / #order;
  391.  
  392. local maxx = 0;
  393.  
  394. for k,v in next, order do
  395. local bMouse = MouseInArea(mx + 5 + maxx, my + 31, mx + 5 + maxx + sizeper, my + 31 + 30);
  396. if(visible[v]) then
  397. local curcol = Color(255, 255, 255, 90);
  398. for i = 0, 30 do
  399. surface.SetDrawColor(curcol);
  400. curcol.r, curcol.g, curcol.b = curcol.r + 3, curcol.g + 3, curcol.b + 3;
  401. surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
  402. end
  403. elseif(bMouse) then
  404. local curcol = Color(255, 255, 255, 90);
  405. for i = 0, 30 do
  406. surface.SetDrawColor(curcol);
  407. curcol.r, curcol.g, curcol.b = curcol.r - 1.7, curcol.g - 1.7, curcol.b - 1.7;
  408. surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
  409. end
  410. else
  411. local curcol = Color(235, 235, 235);
  412. for i = 0, 30 do
  413. surface.SetDrawColor(curcol);
  414. curcol.r, curcol.g, curcol.b = curcol.r - 1.7, curcol.g - 1.7, curcol.b - 1.7;
  415. surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
  416. end
  417. end
  418. if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown && !visible[v]) then
  419. local nb = visible[v];
  420. for key,val in next, visible do
  421. visible[key] = false;
  422. end
  423. visible[v] = !nb;
  424. end
  425. surface.SetFont("Cloudyou2");
  426. surface.SetTextColor(255, 255, 255);
  427. local tw, th = surface.GetTextSize(v);
  428. surface.SetTextPos( 5 + maxx + sizeper / 2 - tw / 2, 31 + 15 - th / 2 );
  429. surface.DrawText(v);
  430. maxx = maxx + sizeper;
  431. end
  432. end
  433.  
  434. local function DrawCheckbox(self, w, h, var, maxy, posx, posy, dist)
  435. surface.SetFont("Cloudyou2");
  436. surface.SetTextColor(255, 255, 255);
  437. surface.SetTextPos( 5 + posx + 15 + 5, 61 + posy + maxy );
  438. local tw, th = surface.GetTextSize(var[1]);
  439. surface.DrawText(var[1]);
  440.  
  441. surface.SetDrawColor(255, 255, 255);
  442.  
  443. surface.DrawOutlinedRect( 5 + posx + 15 + 5 + dist + var[4], 61 + posy + maxy + 2, 14, 14);
  444.  
  445. local mx, my = self:GetPos();
  446.  
  447. local bMouse = MouseInArea(mx + 5 + posx + 15 + 5, my + 61 + posy + maxy, mx + 5 + posx + 15 + 5 + dist + 14 + var[4], my + 61 + posy + maxy + 16);
  448.  
  449. if(bMouse) then
  450. surface.DrawRect( 5 + posx + 15 + 5 + dist + 2 + var[4], 61 + posy + maxy + 4, 10, 10);
  451. end
  452.  
  453. if(var[3]) then
  454. surface.SetDrawColor(200, 200, 200);
  455. surface.DrawRect( 5 + posx + 15 + 5 + dist + 2 + var[4], 61 + posy + maxy + 4, 10, 10);
  456. surface.SetDrawColor(93, 0, 0);
  457. surface.DrawOutlinedRect( 5 + posx + 15 + 5 + dist + 2 + var[4], 61 + posy + maxy + 4, 10, 10);
  458. end
  459.  
  460. if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown && !drawlast) then
  461. var[3] = !var[3];
  462. end
  463. end
  464.  
  465. local function DrawSlider(self, w, h, var, maxy, posx, posy, dist)
  466. local curnum = var[3];
  467. local max = var[4];
  468. local size = var[5];
  469. surface.SetFont("Cloudyou2");
  470. surface.SetTextColor(255, 255, 255);
  471. surface.SetTextPos( 5 + posx + 15 + 5, 61 + posy + maxy );
  472. surface.DrawText(var[1]);
  473.  
  474. local tw, th = surface.GetTextSize(var[1]);
  475.  
  476. surface.SetDrawColor(255, 255, 255);
  477.  
  478. surface.DrawRect( 5 + posx + 15 + 5 + dist, 61 + posy + maxy + 9, size, 2);
  479.  
  480. local ww = math.ceil(curnum * size / max);
  481.  
  482. surface.SetDrawColor(255, 255, 255);
  483.  
  484. surface.DrawRect( 3 + posx + 15 + 5 + dist + ww, 61 + posy + maxy + 9 - 5, 4, 12);
  485.  
  486. surface.SetDrawColor(0, 0, 0);
  487.  
  488. local tw, th = surface.GetTextSize(curnum..".00");
  489.  
  490. surface.DrawOutlinedRect( 3 + posx + 15 + 5 + dist + ww, 61 + posy + maxy + 4, 4, 12);
  491.  
  492. surface.SetTextPos( 5 + posx + 15 + 5 + dist + (size / 2) - tw / 2, 61 + posy + maxy + 16);
  493.  
  494. surface.DrawText(curnum..".00");
  495.  
  496. local mx, my = self:GetPos();
  497.  
  498. local bMouse = MouseInArea(5 + posx + 15 + 5 + dist + mx, 61 + posy + maxy + 9 - 5 + my, 5 + posx + 15 + 5 + dist + mx + size, 61 + posy + maxy + 9 - 5 + my + 12);
  499.  
  500. if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !drawlast && !candoslider) then
  501. local mw, mh = gui.MousePos();
  502.  
  503. local new = math.ceil( ((mw - (mx + posx + 25 + dist - size)) - (size + 1)) / (size - 2) * max);
  504. var[3] = new;
  505. end
  506. end
  507.  
  508. local notyetselected;
  509.  
  510. local function DrawSelect(self, w, h, var, maxy, posx, posy, dist)
  511.  
  512. local size = var[5];
  513. local curopt = var[3];
  514.  
  515. surface.SetFont("Cloudyou2");
  516. surface.SetTextColor(255, 255, 255);
  517. surface.SetTextPos( 5 + posx + 15 + 5, 61 + posy + maxy );
  518. local tw, th = surface.GetTextSize(var[1]);
  519. surface.DrawText(var[1]);
  520.  
  521. surface.SetDrawColor(163, 163, 163);
  522.  
  523. surface.DrawOutlinedRect( 25 + posx + dist, 61 + posy + maxy, size, 16);
  524.  
  525. local mx, my = self:GetPos();
  526.  
  527. local bMouse = MouseInArea( mx + 25 + posx + dist, my + 61 + posy + maxy, mx + 25 + posx + dist + size, my + 61 + posy + maxy + 16)
  528.  
  529. local check = dist..posy..posx..w..h..maxy;
  530.  
  531. if(bMouse || notyetselected == check) then
  532.  
  533. surface.DrawRect(25 + posx + dist + 2, 61 + posy + maxy + 2, size - 4, 12);
  534.  
  535. end
  536.  
  537. local tw, th = surface.GetTextSize(curopt);
  538.  
  539. surface.SetTextPos( 25 + posx + dist + 5, 61 + posy + maxy + 6 - th / 2 + 2);
  540.  
  541. surface.DrawText(curopt);
  542.  
  543. if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !drawlast && !mousedown || notyetselected == check) then
  544. notyetselected = check;
  545. drawlast = function()
  546. local maxy2 = 16;
  547. for k,v in next, var[4] do
  548. surface.SetDrawColor(163, 163, 163);
  549. surface.DrawRect( 25 + posx + dist, 61 + posy + maxy + maxy2, size, 16);
  550. local bMouse2 = MouseInArea( mx + 25 + posx + dist, my + 61 + posy + maxy + maxy2, mx + 25 + posx + dist + size, my + 61 + posy + maxy + 16 + maxy2)
  551. if(bMouse2) then
  552. surface.SetDrawColor(255, 255,255);
  553. surface.DrawRect( 25 + posx + dist, 61 + posy + maxy + maxy2, size, 16);
  554. end
  555. local tw, th = surface.GetTextSize(v);
  556. surface.SetTextPos( 25 + posx + dist + 5, 61 + posy + maxy + 6 - th / 2 + 2 + maxy2);
  557. surface.DrawText(v);
  558. maxy2 = maxy2 + 16;
  559. if(bMouse2 && input.IsMouseDown(MOUSE_LEFT) && !mousedown) then
  560. var[3] = v;
  561. notyetselected = nil;
  562. drawlast = nil;
  563. return;
  564. end
  565. end
  566. local bbMouse = MouseInArea( mx + 25 + posx + dist, my + 61 + posy + maxy, mx + 25 + posx + dist + size, my + 61 + posy + maxy + maxy2);
  567. if(!bbMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown) then
  568. notyetselected = nil;
  569. drawlast = nil;
  570. return;
  571. end
  572. end
  573. end
  574.  
  575.  
  576. end
  577.  
  578. local function DrawSubSub(self, w, h, k, var)
  579. local opt, posx, posy, sizex, sizey, dist = var[1][1], var[1][2], var[1][3], var[1][4], var[1][5], var[1][6];
  580.  
  581. surface.SetDrawColor(163, 163, 163);
  582.  
  583. local startpos = 61 + posy;
  584.  
  585. surface.SetTextColor(255, 255,255);
  586.  
  587. surface.SetFont("Cloudyou2");
  588.  
  589. local tw, th = surface.GetTextSize(opt);
  590.  
  591. surface.DrawLine( 5 + posx, startpos, 5 + posx + 15, startpos);
  592.  
  593. surface.SetTextPos( 5 + posx + 15 + 5, startpos - th / 2 );
  594.  
  595. surface.DrawLine( 5 + posx + 15 + 5 + tw + 5, startpos, 5 + posx + sizex, startpos);
  596.  
  597. surface.DrawLine( 5 + posx, startpos, 5 + posx, startpos + sizey);
  598.  
  599. surface.DrawLine(5 + posx, startpos + sizey, 5 + posx + sizex, startpos + sizey );
  600.  
  601. surface.DrawLine( 5 + posx + sizex, startpos, 5 + posx + sizex, startpos + sizey);
  602.  
  603. surface.DrawText(opt);
  604.  
  605. local maxy = 15;
  606.  
  607. for k,v in next, var do
  608. if(k == 1) then continue; end
  609. if(v[2] == "Checkbox") then
  610. DrawCheckbox(self, w, h, v, maxy, posx, posy, dist);
  611. elseif(v[2] == "Slider") then
  612. DrawSlider(self, w, h, v, maxy, posx, posy, dist);
  613. elseif(v[2] == "Selection") then
  614. DrawSelect(self, w, h, v, maxy, posx, posy, dist);
  615. end
  616. maxy = maxy + 25;
  617. end
  618. end
  619.  
  620. local function DrawSub(self, w, h)
  621. for k, v in next, visible do
  622. if(!v) then continue; end
  623. for _, var in next, options[k] do
  624. DrawSubSub(self, w, h, k, var);
  625. end
  626. end
  627. end
  628.  
  629. local function DrawSaveButton(self, w, h)
  630. local curcol = Color(235, 235, 235);
  631. local mx, my = self:GetPos();
  632. local bMouse = MouseInArea(mx + 30, my + h - 50, mx + 30 + 200, my + h - 50 + 30);
  633. if(bMouse) then
  634. curcol = Color(255, 255,255);
  635. end
  636. for i = 0, 30 do
  637. surface.SetDrawColor(curcol);
  638. surface.DrawLine( 30, h - 50 + i, 30 + 200, h - 50 + i );
  639. for k,v in next, curcol do
  640. curcol[k] = curcol[k] - 2;
  641. end
  642. end
  643. surface.SetFont("Cloudyou2");
  644. surface.SetTextColor(255, 255, 255);
  645. local tw, th = surface.GetTextSize("Save Configuration");
  646. surface.SetTextPos( 30 + 100 - tw / 2, h - 50 + 15 - th / 2 );
  647. surface.DrawText("Save Configuration");
  648. if(bMouse && input.IsMouseDown(MOUSE_LEFT)) then
  649. saveconfig();
  650. end
  651. end
  652.  
  653. local function DrawLoadButton(self, w, h)
  654. local curcol = Color(235, 235, 235);
  655. local mx, my = self:GetPos();
  656. local bMouse = MouseInArea(mx + 250, my + h - 50, mx + 250 + 200, my + h - 50 + 30);
  657. if(bMouse) then
  658. curcol = Color(200,200,200);
  659. end
  660. for i = 0, 30 do
  661. surface.SetDrawColor(curcol);
  662. surface.DrawLine( 250, h - 50 + i, 250 + 200, h - 50 + i );
  663. for k,v in next, curcol do
  664. curcol[k] = curcol[k] - 2;
  665. end
  666. end
  667. surface.SetFont("Cloudyou2");
  668. surface.SetTextColor(255, 255, 255);
  669. local tw, th = surface.GetTextSize("Load Configuration");
  670. surface.SetTextPos( 300 + 50 - tw / 2, h - 50 + 15 - th / 2 );
  671. surface.DrawText("Load Configuration");
  672. if(bMouse && input.IsMouseDown(MOUSE_LEFT)) then
  673. loadconfig();
  674. end
  675. end
  676.  
  677. loadconfig();
  678.  
  679. local insertdown2, insertdown, menuopen;
  680.  
  681. local function menu()
  682. local frame = vgui.Create("DFrame");
  683. frame:SetSize(900, 600);
  684. frame:Center();
  685. frame:SetTitle("");
  686. frame:MakePopup();
  687. frame:ShowCloseButton(false);
  688.  
  689. frame.Paint = function(self, w, h)
  690. if(candoslider && !mousedown && !drawlast && !input.IsMouseDown(MOUSE_LEFT)) then
  691. candoslider = false;
  692. end
  693. DrawBackground(w, h);
  694. DrawOptions(self, w, h);
  695. DrawSub(self, w, h);
  696. DrawSaveButton(self, w, h);
  697. DrawLoadButton(self, w, h);
  698. if(drawlast) then
  699. drawlast();
  700. candoslider = true;
  701. end
  702. mousedown = input.IsMouseDown(MOUSE_LEFT);
  703. end
  704.  
  705. frame.Think = function()
  706. if (input.IsKeyDown(KEY_INSERT) && !insertdown2) then
  707. frame:Remove();
  708. menuopen = false;
  709. candoslider = false;
  710. drawlast = nil;
  711. end
  712. end
  713. end
  714.  
  715. local function Think()
  716. if (input.IsKeyDown(KEY_INSERT) && !menuopen && !insertdown) then
  717. menuopen = true;
  718. insertdown = true;
  719. menu();
  720. elseif (!input.IsKeyDown(KEY_INSERT) && !menuopen) then
  721. insertdown = false;
  722. end
  723. if (input.IsKeyDown(KEY_INSERT) && insertdown && menuopen) then
  724. insertdown2 = true;
  725. else
  726. insertdown2 = false;
  727. end
  728. end
  729.  
  730. hook.Add("Think", "", Think);
  731.  
  732. --[[
  733. Actual codens
  734. ]]
  735.  
  736. local FindMetaTable = FindMetaTable;
  737.  
  738. local em = FindMetaTable"Entity";
  739. local pm = FindMetaTable"Player";
  740. local cm = FindMetaTable"CUserCmd";
  741. local wm = FindMetaTable"Weapon";
  742. local am = FindMetaTable"Angle";
  743. local vm = FindMetaTable"Vector";
  744.  
  745. local Vector = Vector;
  746. local player = Copy(player);
  747. local Angle = Angle;
  748. local me = LocalPlayer();
  749. local render = Copy(render);
  750. local cma = Copy(cam);
  751. local Material = Material;
  752. local CreateMaterial = CreateMaterial;
  753.  
  754. --[[
  755. esp
  756. ]]
  757.  
  758. local function Filter(v)
  759. local enemy = gBool("Visuals", "Filter", "Enemies only");
  760. local dist = gBool("Visuals", "Filter", "Distance")
  761. if(enemy) then
  762. if(pm.Team(v) == pm.Team(me)) then return false; end
  763. end
  764. if(dist) then
  765. local maxdist = gBool("Visuals", "Filter", "Max Distance");
  766. if( vm.Distance( em.GetPos(v), em.GetPos(me) ) > (maxdist * 5) ) then return false; end
  767. end
  768. return true;
  769. end
  770.  
  771.  
  772. local chamsmat = CreateMaterial("a", "VertexLitGeneric", {
  773. ["$ignorez"] = 1,
  774. ["$model"] = 1,
  775. ["$basetexture"] = "models/debug/debugwhite",
  776. });
  777.  
  778. local chamsmat2 = CreateMaterial("@", "vertexlitgeneric", {
  779. ["$ignorez"] = 0,
  780. ["$model"] = 1,
  781. ["$basetexture"] = "models/debug/debugwhite",
  782. });
  783.  
  784. local function GetChamsColor(v, vis)
  785. local pre = "Chams - Enemy";
  786. if(pm.Team(v) == pm.Team(me)) then
  787. pre = "Chams - Team";
  788. end
  789. if(vis) then
  790. local r = gInt("Colors", pre, "Visible R") / 255;
  791. local g = gInt("Colors", pre, "Visible G") / 255;
  792. local b = gInt("Colors", pre, "Visible B") / 255;
  793. return r,g,b;
  794. end
  795. local r = gInt("Colors", pre, "Not Visible R") / 255;
  796. local g = gInt("Colors", pre, "Not Visible G") / 255;
  797. local b = gInt("Colors", pre, "Not Visible B") / 255;
  798. return r,g,b;
  799. end
  800.  
  801. local function Chams(v)
  802. if(gBool("Visuals", "ESP", "XQZ")) then
  803. cam.Start3D();
  804. cam.IgnoreZ(true);
  805. em.DrawModel(v);
  806. cam.IgnoreZ(false);
  807. cam.End3D();
  808. end
  809. if(gBool("Visuals", "ESP", "Chams")) then
  810. cam.Start3D();
  811.  
  812. render.MaterialOverride(chamsmat);
  813. render.SetColorModulation(GetChamsColor(v));
  814.  
  815. em.DrawModel(v);
  816.  
  817. render.SetColorModulation(GetChamsColor(v, true));
  818. render.MaterialOverride(chamsmat2);
  819.  
  820. em.DrawModel(v);
  821.  
  822. cam.End3D();
  823. end
  824. end
  825.  
  826. local function GetColor(v)
  827. if(pm.Team(v) == pm.Team(me)) then
  828. local r = gInt("Colors", "Box - Team", "R");
  829. local g = gInt("Colors", "Box - Team", "G");
  830. local b = gInt("Colors", "Box - Team", "B");
  831. return(Color(r, g, b, 220));
  832. end
  833. local r = gInt("Colors", "Box - Enemy", "R");
  834. local g = gInt("Colors", "Box - Enemy", "G");
  835. local b = gInt("Colors", "Box - Enemy", "B");
  836. return(Color(r, g, b, 220));
  837. end
  838.  
  839. local function ESP(v)
  840. local pos = em.GetPos(v);
  841. local pos, pos2 = vm.ToScreen(pos - Vector(0, 0, 5)), vm.ToScreen( pos + Vector(0, 0, 70 ) );
  842. local h = pos.y - pos2.y;
  843. local w = h / 2.2;
  844. if(gBool("Visuals", "ESP", "Box") && gOption("Visuals", "ESP", "Box Type") == "2D Box") then
  845.  
  846. surface.SetDrawColor(GetColor(v));
  847. surface.DrawOutlinedRect( pos.x - w / 2, pos.y - h, w, h);
  848. surface.SetDrawColor(0, 0, 0, 220);
  849. surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
  850. surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
  851.  
  852. end
  853.  
  854. if(gBool("Visuals", "ESP", "Health")) then
  855. local hp = em.Health(v) * h / 100;
  856. if(hp > h) then hp = h; end
  857. local diff = h - hp;
  858. surface.SetDrawColor(0, 0, 0, 255);
  859. surface.DrawRect(pos.x - w / 2 - 5, pos.y - h - 1, 3, h + 2);
  860. surface.SetDrawColor( ( 100 - em.Health(v) ) * 2.55, em.Health(v) * 2.55, 0, 255);
  861. surface.DrawRect(pos.x - w / 2 - 4, pos.y - h + diff, 1, hp);
  862. end
  863.  
  864.  
  865.  
  866. surface.SetFont("BudgetLabel");
  867.  
  868. surface.SetTextColor(39,214,65, 200);
  869.  
  870. if(gBool("Visuals", "ESP", "Name")) then
  871.  
  872. local tw, th = surface.GetTextSize(pm.Name(v));
  873.  
  874. surface.SetTextPos( pos.x - tw / 2, pos.y - h + 2 - th );
  875.  
  876. surface.DrawText(pm.Name(v));
  877.  
  878. end
  879.  
  880. if(gBool("Visuals", "ESP", "Weapon")) then
  881.  
  882. local w = pm.GetActiveWeapon(v);
  883. if(w && em.IsValid(w)) then
  884. local tw, th = surface.GetTextSize(em.GetClass(w));
  885. surface.SetTextPos( pos.x - tw / 2, pos.y - th / 2 + 5 );
  886. surface.DrawText(em.GetClass(w));
  887. end
  888.  
  889. end
  890.  
  891. if(gBool("Visuals", "ESP", "Skeleton")) then
  892. local origin = em.GetPos(v);
  893. for i = 1, em.GetBoneCount(v) do
  894. local parent = em.GetBoneParent(v, i);
  895. if(!parent) then continue; end
  896. local bonepos, parentpos = em.GetBonePosition(v, i), em.GetBonePosition(v, parent);
  897. if(!bonepos || !parentpos || bonepos == origin) then continue; end
  898. local bs, ps = vm.ToScreen(bonepos), vm.ToScreen(parentpos);
  899. surface.SetDrawColor(0,0,0,150);
  900. surface.DrawLine(bs.x, bs.y, ps.x, ps.y);
  901. end
  902. end
  903.  
  904. end
  905.  
  906. local aimtarget;
  907.  
  908.  
  909. hook.Add("HUDPaint", "", function()
  910. if(aimtarget && gBool("HVH", "Target", "Snapline")) then
  911. local pos = vm.ToScreen(em.LocalToWorld(aimtarget, em.OBBCenter(aimtarget)));
  912. surface.SetDrawColor(0,0,0,150);
  913. surface.DrawLine(ScrW() / 2, ScrH() / 2, pos.x, pos.y);
  914. end
  915. if(!gBool("Visuals", "ESP", "Enabled")) then return; end
  916. for k,v in next, player.GetAll() do
  917. if(!em.IsValid(v) || em.Health(v) < 1 || v == me || em.IsDormant(v)) then continue; end
  918. if(!Filter(v)) then continue; end
  919. ESP(v);
  920. end
  921. end);
  922.  
  923. hook.Add("RenderScreenspaceEffects", "", function()
  924. if(!gBool("Visuals", "ESP", "Enabled")) then return; end
  925. for k,v in next, player.GetAll() do
  926. if(!em.IsValid(v) || em.Health(v) < 1 || v == me || em.IsDormant(v)) then continue; end
  927. if(!Filter(v)) then continue; end
  928. Chams(v);
  929. end
  930. end);
  931.  
  932. saveconfig();
  933.  
  934. --[[
  935. Clouds
  936. ]]
  937.  
  938. local fa;
  939. local aa;
  940.  
  941. local function FixMovement(ucmd, aaaaa)
  942. --local move = Vector(cm.GetForwardMove(ucmd), cm.GetSideMove(ucmd), 0);
  943. --local move = am.Forward( vm.Angle(move) + ( cm.GetViewAngles(ucmd) - fa ) ) * vm.Length(move);
  944. local move = Vector(cm.GetForwardMove(ucmd), cm.GetSideMove(ucmd), cm.GetUpMove(ucmd));
  945. local speed = math.sqrt(move.x * move.x + move.y * move.y);
  946. local ang = vm.Angle(move);
  947. local yaw = math.rad(cm.GetViewAngles(ucmd).y - fa.y + ang.y);
  948. cm.SetForwardMove(ucmd, (math.cos(yaw) * speed) * ( aaaaa && -1 || 1 ));
  949. cm.SetSideMove(ucmd, math.sin(yaw) * speed);
  950. --cm.SetForwardMove(ucmd, move.x);
  951. --cm.SetSideMove(ucmd, (aaaaa && move.y * -1 || move.y));
  952. end
  953.  
  954. local function Clamp(val, min, max)
  955. if(val < min) then
  956. return min;
  957. elseif(val > max) then
  958. return max;
  959. end
  960. return val;
  961. end
  962.  
  963. local function NormalizeAngle(ang)
  964. ang.x = math.NormalizeAngle(ang.x);
  965. ang.p = math.Clamp(ang.p, -89, 89);
  966. end
  967.  
  968. --[[
  969. aimer
  970. ]]
  971.  
  972. local table = Copy(table);
  973. local dists = {};
  974.  
  975. local function GetPos(v)
  976.  
  977. if(gBool("HVH", "Target", "Bodyaim")) then return( em.LocalToWorld(v, em.OBBCenter(v)) ); end
  978.  
  979. local eyes = em.LookupAttachment(v, "eyes");
  980.  
  981. if(!eyes) then return( em.LocalToWorld(v, em.OBBCenter(v)) ); end
  982.  
  983. local pos = em.GetAttachment(v, eyes);
  984.  
  985. if(!pos) then return( em.LocalToWorld(v, em.OBBCenter(v)) ); end
  986.  
  987. return(pos.Pos);
  988. end
  989.  
  990. local aimignore;
  991.  
  992. local function Valid(v)
  993. if(!v || !em.IsValid(v) || v == me || em.Health(v) < 1 || em.IsDormant(v) || pm.Team(v) == 1002 || (v == aimignore && gOption("HVH", "Target", "Selection") == "Nextshot")) then return false; end
  994. if(gBool("HVH", "Target", "Ignore Bots")) then
  995. if(pm.IsBot(v)) then return false; end
  996. end
  997. if(gBool("HVH", "Target", "Ignore Team")) then
  998. if(pm.Team(v) == pm.Team(me)) then return false; end
  999. end
  1000. if(gBool("HVH", "Target", "Ignore Friends")) then
  1001. if(pm.GetFriendStatus(v) == "friend") then return false; end
  1002. end
  1003. local tr = {
  1004. start = em.EyePos(me),
  1005. endpos = GetPos(v),
  1006. mask = MASK_SHOT,
  1007. filter = {me, v},
  1008. };
  1009. return(util.TraceLine(tr).Fraction == 1);
  1010. end
  1011.  
  1012. local function fakelagPredict(v)
  1013. if(!gBool("HvH", "Fakelag Prediction")) then return; end
  1014. if(!fakelagBucket[v]) then
  1015. fakelagBucket[v] = {
  1016. EntM.GetVelocity(v),
  1017. EntM.GetPos(v),
  1018. 0,
  1019. };
  1020. end
  1021.  
  1022. local oldVel = fakelagBucket[v][1];
  1023. local oldPos = fakelagBucket[v][2];
  1024.  
  1025. fakelagBucket[v][1] = EntM.GetVelocity(v);
  1026. fakelagBucket[v][2] = EntM.GetPos(v);
  1027.  
  1028. if(oldVel == nullVel) then
  1029. fakelagBucket[v][3] = 0;
  1030. return;
  1031. end
  1032.  
  1033. if(fakelagBucket[v][1] == oldVel && oldPos == fakelagBucket[v][2]) then
  1034. fakelagBucket[v][3] = fakelagBucket[v][3] + 1;
  1035.  
  1036. return(oldVel + (oldVel * (engine.TickInterval() * fakelagBucket[v][3])));
  1037. else
  1038. fakelagBucket[v][3] = 0;
  1039. end
  1040. end
  1041.  
  1042. local fakeLag_Tbl = {};
  1043. local FakeLagPrediction = function(v,vec)
  1044.  
  1045. local newVec = vec;
  1046.  
  1047. if(!fakeLag_Tbl[v:SteamID()]) then
  1048. fakeLag_Tbl[v:SteamID()] = {};
  1049. fakeLag_Tbl[v:SteamID()]["pos"] = v:GetPos();
  1050. fakeLag_Tbl[v:SteamID()]["opos"] = v:GetPos();
  1051. fakeLag_Tbl[v:SteamID()]["correct"] = 0;
  1052. else
  1053. fakeLag_Tbl[v:SteamID()]["opos"] = fakeLag_Tbl[v:SteamID()]["pos"];
  1054. fakeLag_Tbl[v:SteamID()]["pos"] = v:GetPos();
  1055. end
  1056.  
  1057. if( v:GetVelocity()[1] != 0 && fakeLag_Tbl[v:SteamID()]["opos"][1] == fakeLag_Tbl[v:SteamID()]["pos"][1]) then
  1058. fakeLag_Tbl[v:SteamID()]["correct"] = fakeLag_Tbl[v:SteamID()]["correct"] + 1 + engine.TickInterval();
  1059. newVec.x = newVec.x + fakeLag_Tbl[v:SteamID()]["correct"];
  1060. notification.AddLegacy( "Fakelag Corrected", NOTIFY_GENERIC , 0.7 )
  1061. return newVec;
  1062. else
  1063. fakeLag_Tbl[v:SteamID()]["correct"] = 0;
  1064. end
  1065. return vec;
  1066. end
  1067.  
  1068. function predict(cmd,target, predPos)
  1069. predPos = predPos + (ply:GetVelocity() * engine.TickInterval() * RealFrameTime() ) - (me:GetVelocity(me) * engine.TickInterval() * RealFrameTime() )
  1070. return predPos
  1071. end
  1072.  
  1073. local function gettarget()
  1074.  
  1075. local opt = gOption("HVH", "Target", "Selection");
  1076.  
  1077. local sticky = gOption("HVH", "Aimbot", "Non-Sticky");
  1078.  
  1079. if(opt == "Distance") then
  1080.  
  1081. if( !sticky && Valid(aimtarget) ) then return; end
  1082.  
  1083. dists = {};
  1084.  
  1085. for k,v in next, player.GetAll() do
  1086. if(!Valid(v)) then continue; end
  1087. dists[#dists + 1] = { vm.Distance( em.GetPos(v), em.GetPos(me) ), v };
  1088. end
  1089.  
  1090. table.sort(dists, function(a, b)
  1091. return(a[1] < b[1]);
  1092. end);
  1093.  
  1094. aimtarget = dists[1] && dists[1][2] || nil;
  1095.  
  1096. elseif(opt == "Health") then
  1097.  
  1098. if( !sticky && Valid(aimtarget) ) then return; end
  1099.  
  1100. dists = {};
  1101.  
  1102. for k,v in next, player.GetAll() do
  1103. if(!Valid(v)) then continue; end
  1104. dists[#dists + 1] = { em.Health(v), v };
  1105. end
  1106.  
  1107. table.sort(dists, function(a, b)
  1108. return(a[1] < b[1]);
  1109. end);
  1110.  
  1111. aimtarget = dists[1] && dists[1][2] || nil;
  1112.  
  1113. elseif(opt == "Nextshot") then
  1114. if( !sticky && Valid(aimtarget) ) then return; end
  1115. aimtarget = nil;
  1116. local allplys = player.GetAll();
  1117. local avaib = {};
  1118. for k,v in next,allplys do
  1119. avaib[math.random(100)] = v;
  1120. end
  1121.  
  1122. for k,v in next, avaib do
  1123. if(Valid(v)) then
  1124. aimtarget = v;
  1125. end
  1126. end
  1127. end
  1128.  
  1129. end
  1130.  
  1131.  
  1132. local cones = {};
  1133.  
  1134. local pcall = pcall;
  1135. local require = require;
  1136.  
  1137. local nullvec = Vector() * -1;
  1138.  
  1139. local IsFirstTimePredicted = IsFirstTimePredicted;
  1140. local CurTime = CurTime;
  1141. local servertime=0;
  1142. local bit = Copy(bit);
  1143. pcall(require, "dickwrap");
  1144. pcall(require, "aaa");
  1145. pcall(require, "name_enabler" );
  1146. pcall(require, "bsendpacket" );
  1147.  
  1148. hook.Add("Move", "", function()
  1149. if(!IsFirstTimePredicted()) then return; end
  1150. servertime = CurTime();
  1151. end);
  1152.  
  1153.  
  1154. GAMEMODE["EntityFireBullets"] = function(self, p, data)
  1155. aimignore = aimtarget;
  1156. local w = pm.GetActiveWeapon(me);
  1157. local Spread = data.Spread * -1;
  1158. if(!w || !em.IsValid(w) || cones[em.GetClass(w)] == Spread || Spread == nullvec) then return; end
  1159. cones[em.GetClass(w)] = Spread;
  1160. end
  1161.  
  1162. local function PredictSpread(ucmd, ang)
  1163. local w = pm.GetActiveWeapon(me);
  1164. if(!w || !em.IsValid(w) || !cones[em.GetClass(w)] || !gBool("HVH", "Accuracy", "Anti Spread")) then return am.Forward(ang); end
  1165. return(dickwrap.Predict(ucmd, am.Forward(ang), cones[em.GetClass(w)]));
  1166. end
  1167.  
  1168. local function Autofire(ucmd)
  1169. if(pm.KeyDown(me, 1) && gBool("HVH", "Aimbot", "AutoPistol")) then
  1170. cm.SetButtons(ucmd, bit.band( cm.GetButtons(ucmd), bit.bnot( 1 ) ) );
  1171. else
  1172. cm.SetButtons(ucmd, bit.bor( cm.GetButtons(ucmd), 1 ) );
  1173. end
  1174. end
  1175.  
  1176. local function fasAutowall(wep, startPos, aimPos, ply)
  1177. if(!autowall:GetBool()) then return false; end
  1178. local traces = {};
  1179. local me = me;
  1180. local traceResults = {};
  1181. local dir = (aimPos - startPos):GetNormalized();
  1182. traces[1] = { start = startPos, filter = me, mask = trace_normal, endpos = aimPos, };
  1183. traceResults[1] = util.TraceLine(traces[1]);
  1184. if(NoPenetration[traceResults[1].MatType]) then return false; end
  1185. if((-dir):DotProduct(traceResults[1].HitNormal) <= .26) then return false; end
  1186. traces[2] = { start = traceResults[1].HitPos, endpos = traceResults[1].HitPos + dir * wep.PenStr * (PenMod[traceResults[1].MatType] || 1) * wep.PenMod, filter = me, mask = trace_walls, };
  1187. traceResults[2] = util.TraceLine(traces[2]);
  1188. traces[3] = { start = traceResults[2].HitPos, endpos = traceResults[2].HitPos + dir * .1, filter = me, mask = trace_normal, };
  1189. traceResults [3] = util.TraceLine(traces[3]);
  1190. traces[4] = { start = traceResults[2].HitPos, endpos = aimPos, filter = me, mask = MASK_SHOT, };
  1191. traceResults[4] = util.TraceLine(traces[4]);
  1192. if(traceResults[4].Entity != ply) then return false; end
  1193. return(!traceResults[3].Hit);
  1194. end
  1195.  
  1196. local function IsVisible(ply, pos)
  1197. local trace = {
  1198. start = me:EyePos(),
  1199. endpos = pos,
  1200. filter = {ply, me},
  1201. mask = MASK_SHOT,
  1202. };
  1203.  
  1204. if (util.TraceLine(trace).Fraction == 1 ) then
  1205. return true;
  1206. else
  1207. local wep = me:GetActiveWeapon();
  1208. if(wep && wep:IsValid() && wep.PenStr) then
  1209. return fasAutowall(wep, trace.start, trace.endpos, ply);
  1210. end
  1211. end
  1212.  
  1213. return false;
  1214. end
  1215.  
  1216.  
  1217. /* AAA */
  1218. local function AAA()
  1219. for k,v in next, player.GetAll() do
  1220. if(v == me) then continue; end
  1221. local correctedpitch = v:EyeAngles().x;
  1222. local correctedyaw = v:EyeAngles().y;
  1223.  
  1224. local sid = v:SteamID();
  1225. if(!aaaTable[sid]) then
  1226. aaaTable[sid] = {["friend"] = false, ["pitch"] = 0, ["yaw"] = 0};
  1227. end
  1228.  
  1229. local tab = aaaTable[sid];
  1230.  
  1231. if(tab["pitch"] == 0) then //auto
  1232. if(correctedpitch >= 89 && correctedpitch < 180) then
  1233. correctedpitch = 89;
  1234. elseif(correctedpitch >= 180 && correctedpitch < 290) then
  1235. correctedpitch = -89;
  1236. end
  1237. elseif(tab["pitch"] == 1) then //down
  1238. correctedpitch = 89;
  1239. elseif(tab["pitch"] == -22.001) then //Aden
  1240. correctedpitch = 180;
  1241. elseif(tab["pitch"] == -541) then //AntiKaliCheat
  1242. if(correctedpitch >= 360 && correctedpitch < 180 && correctedpitch != 181 && correctedpitch ) then
  1243. correctedpitch = 89;
  1244. elseif(correctedpitch >= 181) then
  1245. correctedpitch = -89;
  1246. end
  1247. elseif(tab["pitch"] == -629) then //AntiKaliCheat2
  1248. if(correctedpitch >= 360 && correctedpitch < 180 && correctedpitch != 181 && correctedpitch ) then
  1249. correctedpitch = 89;
  1250. elseif(correctedpitch >= 181) then
  1251. correctedpitch = -89;
  1252. end
  1253. elseif(tab["pitch"] == -541) then //Dank Angle -- FUCKED RED take it up the ass
  1254. correctedpitch = 360;
  1255. elseif(tab["pitch"] == 629) then //SS/Aftermat
  1256. if(correctedpitch >= 360 && correctedpitch < -360 && correctedpitch != 360 && correctedpitch ) then
  1257. correctedpitch = -360;
  1258. correctedpitch = -360;
  1259. end
  1260. elseif(tab["pitch"] == 6) then // up
  1261. correctedpitch = -89;
  1262. end
  1263.  
  1264. if(tab["yaw"] == 0) then //auto
  1265. elseif(tab["yaw"] == -541) then -- idk
  1266. correctedyaw = correctedyaw - 90;
  1267. elseif(tab["yaw"] == -333.0001) then -- lol
  1268. correctedyaw = correctedyaw - 90;
  1269. elseif(tab["yaw"] == -23.001) then -- kek ily Not
  1270. correctedyaw = -correctedyaw - 90;
  1271. elseif(tab["yaw"] == -630) then -- Rip Older Aftermath
  1272. correctedyaw = correctedyaw - 90;
  1273. elseif(tab["yaw"] == -540) then -- Rip Red
  1274. correctedyaw = correctedyaw - 90;
  1275. elseif(tab["yaw"] == 373) then -- Seems like a good yaw
  1276. correctedyaw = correctedyaw - 90;
  1277. elseif(tab["yaw"] == 180) then
  1278. correctedyaw = correctedyaw + 90;
  1279. else
  1280. correctedyaw = correctedyaw - 180;
  1281. end
  1282.  
  1283. pitcharray[v:EntIndex()] = correctedpitch;
  1284.  
  1285. v:SetPoseParameter("aim_pitch", correctedpitch);
  1286. v:SetPoseParameter("body_yaw", 0);
  1287. v:SetPoseParameter("aim_yaw", 0);
  1288. v:InvalidateBoneCache();
  1289. v:SetRenderAngles(Angle(0, math.NormalizeAngle(correctedyaw), 0));
  1290. end
  1291. end
  1292.  
  1293. local function WeaponCanFire()
  1294. local w = pm.GetActiveWeapon(me);
  1295. if(!w || !em.IsValid(w) || !gBool("HVH", "Aimbot", "Bullettime")) then return true; end
  1296. return( servertime >= wm.GetNextPrimaryFire(w) );
  1297. end
  1298.  
  1299. local steamIds = {
  1300. ["STEAM_0:1:162853159"] = true, -- Not
  1301. ["STEAM_0:0:98867301"] = true, -- NEX
  1302. ["STEAM_0:0:1795412883"] = true, -- Red|Cloud.Squad
  1303. ["STEAM_0:0:94897427"] = true, -- Anatrax
  1304. ["STEAM_0:1:33821779"] = true, -- akaBlades
  1305. };
  1306.  
  1307. local function Valid(v)
  1308. if(!EntM.IsValid(v)) then return false; end
  1309. if(v == me) then return false; end
  1310. if(EntM.Health(v) < 1) then return false; end
  1311. if(EntM.IsDormant(v)) then return false; end
  1312.  
  1313. if(PlyM.Team(v) == TEAM_SPECTATOR) then return false; end
  1314. if(PlyM.Team(v) == TEAM_CONNECTING) then return false; end
  1315. if(gBool("Aimbot", "Accuracy", "Ignore Cloud.Hack") && steamIds[PlyM.SteamID(v)]) then return false; end
  1316. end
  1317.  
  1318. local function bunnyHop(cmd)
  1319. if(!gBool("Misc", "Bunnyhop")) then return; end
  1320. if(CmdM.KeyDown(cmd, 2) && !EntM.IsOnGround(me)) then
  1321. CmdM.RemoveKey(cmd, 2);
  1322. end
  1323. end
  1324.  
  1325. local fakeLagSwitch;
  1326. local sendCount, chokeCount = 0, 0;
  1327.  
  1328. local function fakelag()
  1329. if(!gBool("HvH", "Fakelag")) then
  1330. sendCount = 0;
  1331. chokeCount = 0;
  1332. fakeLagSwitch = false;
  1333. return;
  1334. end
  1335.  
  1336. local send = gBool("HvH", "Fakelag Send");
  1337. local choke = gBool("HvH", "Fakelag Choke");
  1338.  
  1339. if(fakeLagSwitch) then
  1340. if(sendCount >= send) then
  1341. fakeLagSwitch = false;
  1342. sendCount = 0;
  1343. chokeCount = 0;
  1344. else
  1345. sendCount = sendCount + 1;
  1346. end
  1347. else
  1348. if(chokeCount >= choke) then
  1349. fakeLagSwitch = true;
  1350. sendCount = 0;
  1351. chokeCount = 0;
  1352. else
  1353. bSendPacket = false;
  1354. chokeCount = chokeCount + 1;
  1355. end
  1356. end
  1357. end
  1358.  
  1359. local matOverlay = Material( "sprites/glow08" )
  1360. local matTraitor = Material( "sprites/dot" )
  1361. local twep = { "weapon_ttt_c4", "weapon_ttt_knife", "weapon_ttt_phammer", "weapon_ttt_sipistol", "weapon_ttt_flaregun", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_teleport", "(Disguise)" ,"spiderman's_swep", "weapon_ttt_trait_defilibrator", "weapon_ttt_xbow", "weapon_ttt_dhook", "weapon_awp", "weapon_jihadbomb", "weapon_ttt_knife", "weapon_ttt_c4", "weapon_ttt_decoy", "weapon_ttt_flaregun", "weapon_ttt_phammer", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_sipistol", "weapon_ttt_teleport", "weapon_ttt_awp", "weapon_ttt_silencedsniper", "weapon_ttt_turtlenade", "weapon_ttt_death_station", "weapon_ttt_sg552", "weapon_ttt_tripmine"}
  1362.  
  1363. for _,v in pairs(player.GetAll()) do
  1364. v.HatTraitor = nil
  1365. end
  1366. for _,v in pairs(ents.GetAll()) do
  1367. v.HatESPTracked = nil
  1368. end
  1369.  
  1370. hook.Add("PostDrawOpaqueRenderables", "wire_animations_idle", function()
  1371. if GAMEMODE.round_state != ROUND_ACTIVE then
  1372. for _,v in pairs(player.GetAll()) do
  1373. v.HatTraitor = nil
  1374. end
  1375. for _,v in pairs(ents.GetAll()) do
  1376. v.HatESPTracked = nil
  1377. end
  1378. return
  1379. end
  1380. for _,v in pairs( ents.GetAll() ) do
  1381. if v and IsValid(v) and (table.HasValue(twep, v:GetClass()) and !v.HatESPTracked) then
  1382. local pl = v.Owner
  1383. if pl and IsValid(pl) and pl:IsTerror() then
  1384. if pl:IsDetective() then
  1385. v.HatESPTracked = true
  1386. else
  1387. v.HatESPTracked = true
  1388. pl.HatTraitor = true
  1389. chat.AddText( pl, Color(220,35,35), " is a ",Color(220,35,35), "TRAITOR",Color(220,35,35), " with a ",Color(255,0,0),v:GetClass().."!")
  1390. end
  1391. end
  1392. end
  1393. end
  1394.  
  1395.  
  1396.  
  1397. end)
  1398.  
  1399. local duckTime = 0
  1400. local function Bunnyhop(ucmd)
  1401. local duckEstimate = math.Round(58 + 1 / engine.TickInterval())
  1402. if(not gBool( "Misc", "Bunnyhop") or em.GetMoveType(me) == MOVETYPE_NOCLIP or me:Health() < 1) then return end
  1403. if(not me:IsOnGround()) then
  1404. ucmd:RemoveKey(2)
  1405. duckTime = duckTime + 1
  1406. if(ucmd:GetMouseX() > 1 or ucmd:GetMouseX() < -1) then
  1407. if(ucmd:GetMouseX() < 0) then
  1408. ucmd:SetSideMove(-400)
  1409. else
  1410. ucmd:SetSideMove(400)
  1411. end
  1412. else
  1413. ucmd:SetForwardMove(5850 / me:GetVelocity():Length2D())
  1414. ucmd:SetSideMove((ucmd:CommandNumber() % 2) == 0 and -400 or 400)
  1415. end
  1416. else
  1417. if(ucmd:KeyDown(2)) then
  1418. ucmd:SetForwardMove(400)
  1419. end
  1420. if(ucmd:KeyDown(IN_JUMP)) then
  1421. ucmd:SetForwardMove(10000)
  1422. end
  1423. end
  1424. end
  1425.  
  1426. local function Autostrafe(ucmd)
  1427. if (!LocalPlayer():IsTyping() && !LocalPlayer():IsOnGround() && LocalPlayer():Alive()) then
  1428. ucmd:RemoveKey(2)
  1429. if (ucmd:GetMouseX() < 0) then
  1430. ucmd:SetSideMove(-31 ^ 2 + 39) // extra memey take that ari
  1431. elseif(ucmd:GetMouseX() > 0) then
  1432. ucmd:SetSideMove(31 ^ 2 + 39)
  1433. end
  1434. end
  1435. end
  1436. hook.Add('CreateMove','',pBhoop)
  1437.  
  1438.  
  1439. local function WeaponShootable()
  1440. local wep = pm.GetActiveWeapon(me);
  1441. if( em.IsValid(wep) ) then // I would never get lazy..
  1442. local n = string.lower(wep:GetPrintName())
  1443. if( wep:Clip1() <= 0 ) then
  1444. return false;
  1445. end
  1446.  
  1447.  
  1448.  
  1449. if( string.find(n,"knife") or string.find(n,"grenade") or string.find(n,"sword") or string.find(n,"bomb") or string.find(n,"ied") or string.find(n,"c4") or string.find(n,"slam") or string.find(n,"climb") or string.find(n,"hand") or string.find(n,"fist") ) then
  1450. return false;
  1451. end
  1452.  
  1453.  
  1454. return true;
  1455. end
  1456. end
  1457.  
  1458. local function PredictPos(pos)
  1459. local myvel = LocalPlayer():GetVelocity()
  1460. local pos = pos - (myvel * engine.TickInterval());
  1461. return pos;
  1462. end
  1463.  
  1464. local function aimer(ucmd)
  1465. if(cm.CommandNumber(ucmd) == 0 || !gBool("HVH", "Aimbot", "Enabled")) then return; end
  1466. gettarget();
  1467. aa = false;
  1468. if(aimtarget && (input.IsKeyDown(KEY_LALT) || gBool("HVH", "Aimbot", "Autosnap")) && WeaponCanFire() && WeaponShootable() ) then
  1469. aa = true;
  1470. local pos = GetPos(aimtarget) - em.EyePos(me);
  1471. PredictPos(pos);
  1472. local ang = vm.Angle( PredictSpread(ucmd, vm.Angle(pos)));
  1473. NormalizeAngle(ang);
  1474. cm.SetViewAngles(ucmd, ang);
  1475. if(gBool("HVH", "Aimbot", "Autofire")) then
  1476. Autofire(ucmd);
  1477. end
  1478. if(gBool("HVH", "Aimbot", "Silent")) then
  1479. FixMovement(ucmd);
  1480. else
  1481. fa = ang;
  1482. end
  1483. end
  1484. end
  1485.  
  1486. --[[
  1487. antiaimer
  1488. ]]
  1489.  
  1490.  
  1491.  
  1492. local ox=-181;
  1493. local oy=0;
  1494.  
  1495. local function RandCoin()
  1496. local randcoin = math.random(0,1);
  1497. if(randcoin == 1) then return 1; else return -1; end
  1498. end
  1499.  
  1500. local function GetX()
  1501. local opt = gOption("HVH", "Anti-Aim", "X");
  1502. if(opt == "Emotion") then
  1503. local randcoin = gInt("HVH", "Anti-Aim", "Emotion Randomcoin X");
  1504. if( math.random(100) < randcoin ) then
  1505. ox = RandCoin() * 181;
  1506. end
  1507. elseif( opt == "Demolisher" ) then
  1508. ox = -629;
  1509. elseif( opt == "Anti p$ilent" ) then
  1510. ox = -142 + 85.001;
  1511. elseif( opt == "NEX" ) then
  1512. ox = -617;
  1513. elseif( opt == "Aftermath" ) then
  1514. ox = -629;
  1515. elseif( opt == "Slick" ) then
  1516. ox = -181.000005;
  1517. elseif( opt == "Cloud" ) then
  1518. ox = -630;
  1519. elseif( opt == "Squad" ) then
  1520. ox = 531;
  1521. elseif( opt == "Dank" ) then
  1522. ox = -541;
  1523. elseif( opt == "Up" ) then
  1524. ox = -181;
  1525. elseif( opt == "Down" ) then
  1526. ox = 181;
  1527. elseif(opt == "Jitter") then
  1528. ox = ox * -1;
  1529. elseif(opt == "Not") then
  1530. ox = -518
  1531. end
  1532. end
  1533.  
  1534. local function GetClosest()
  1535. local ddists = {};
  1536.  
  1537. local closest;
  1538.  
  1539. for k,v in next, player.GetAll() do
  1540. if(!Valid(v)) then continue; end
  1541. ddists[#ddists + 1] = { vm.Distance( em.GetPos(v), em.GetPos(me) ), v };
  1542. end
  1543.  
  1544. table.sort(ddists, function(a, b)
  1545. return(a[1] < b[1]);
  1546. end);
  1547.  
  1548. closest = ddists[1] && ddists[1][2] || nil;
  1549.  
  1550. if(!closest) then return fa.y; end
  1551.  
  1552. local pos = em.GetPos(closest);
  1553.  
  1554. local pos = vm.Angle(pos - em.EyePos(me));
  1555.  
  1556. return( pos.y );
  1557. end
  1558.  
  1559. local function GetY()
  1560. local opt = gOption("HVH", "Anti-Aim", "Y");
  1561. if(opt == "Emotion") then
  1562. local randcoin = gInt("HVH", "Anti-Aim", "Emotion Randomcoin Y");
  1563. if( math.random(100) < randcoin ) then
  1564. oy = fa.y + math.random(-180, 180);
  1565. end
  1566. elseif( opt == "Eye Angles" ) then
  1567. oy = fa.y;
  1568. elseif( opt == "NEX" ) then
  1569. oy = fa.y -541 + math.random(-540, -629);
  1570. elseif( opt == "Random" ) then
  1571. oy = fa.y + math.random(0, 10);
  1572. elseif( opt == "Aftermath" ) then
  1573. oy = fa.y -630;
  1574. elseif( opt == "Sly" ) then
  1575. oy = fa.y -180;
  1576. elseif( opt == "Not" ) then
  1577. oy = fa.y -56.002;
  1578. elseif( opt == "God" ) then
  1579. oy = fa.y -232.1230 - 631.220000 - 24 + -631.210000;
  1580. elseif( opt == "Anti Spine" ) then
  1581. oy = fa.y - 360 + math.random(-180, -205);
  1582. elseif( opt == "Sideways" ) then
  1583. oy = fa.y - 90;
  1584. elseif(opt == "Jitter") then
  1585. oy = fa.y + math.random(-90, 90);
  1586. elseif(opt == "TJitter") then
  1587. oy = fa.y - 180 + math.random(-90, 90);
  1588. elseif(opt == "Static") then
  1589. oy = 0;
  1590. elseif(opt == "Forward") then
  1591. oy = fa.y;
  1592. elseif(opt == "Backwards") then
  1593. oy = fa.y - 180;
  1594. elseif(opt == "Towards Players") then
  1595. oy = GetClosest();
  1596. end
  1597. end
  1598.  
  1599. local function walldetect()
  1600. local eye = em.EyePos(me);
  1601. local tr = util.TraceLine({
  1602. start = eye,
  1603. endpos = (eye + (am.Forward(fa) * 10)),
  1604. mask = MASK_ALL,
  1605. });
  1606. if(tr.Hit) then
  1607. ox = -181;
  1608. oy = -90;
  1609. end
  1610. end
  1611.  
  1612. local function antiaimer(ucmd)
  1613. if( (cm.CommandNumber(ucmd) == 0 && !gBool("Visuals", "Misc", "Thirdperson")) || cm.KeyDown(ucmd, 1) || cm.KeyDown(ucmd, 32) || aa || !gBool("HVH", "Anti-Aim", "Enabled")) then return; end
  1614. GetX();
  1615. GetY();
  1616. walldetect();
  1617. local aaang = Angle(ox, oy, 0);
  1618. cm.SetViewAngles(ucmd, aaang);
  1619. FixMovement(ucmd, true);
  1620. end
  1621.  
  1622. local function GetAngle(ang)
  1623. if(!gBool("HVH", "Accuracy", "Anti Recoil")) then return ang + pm.GetPunchAngle(me); end
  1624. return ang;
  1625. end
  1626.  
  1627. local function AutoPistol(cmd)
  1628. if(!gBool("HVH", "Aimbot", "AutoPistol")) then return; end
  1629. if(PlyM.KeyDown(me, 1)) then
  1630. CmdM.RemoveKey(cmd, 1);
  1631. end
  1632. end
  1633.  
  1634. local function Cloud(ucmd)
  1635. if(!fa) then fa = cm.GetViewAngles(ucmd); end
  1636. fa = fa + Angle(cm.GetMouseY(ucmd) * .023, cm.GetMouseX(ucmd) * -.023, 0);
  1637. NormalizeAngle(fa);
  1638. if(cm.CommandNumber(ucmd) == 0) then
  1639. cm.SetViewAngles(ucmd, GetAngle(fa));
  1640. return;
  1641. end
  1642. if(cm.KeyDown(ucmd, 1)) then
  1643. local ang = GetAngle(vm.Angle( PredictSpread(ucmd, fa ) ) );
  1644. NormalizeAngle(ang);
  1645. cm.SetViewAngles(ucmd, ang);
  1646. end
  1647. if(cm.KeyDown(ucmd, 2) && !em.IsOnGround(me)) then
  1648. cm.SetButtons(ucmd, bit.band( cm.GetButtons(ucmd), bit.bnot( 2 ) ) );
  1649. end
  1650. end
  1651.  
  1652. hook.Add("CreateMove", "", function(ucmd)
  1653. Autostrafe(ucmd)
  1654. bunnyHop(ucmd)
  1655. Cloud(ucmd);
  1656. aimer(ucmd);
  1657. antiaimer(ucmd);
  1658. end);
  1659.  
  1660.  
  1661. /* DisconnectSpam */
  1662.  
  1663. gameevent.Listen("player_disconnect");
  1664.  
  1665. hook.Add("player_disconnect", "", function()
  1666. if(!gBool("Misc", "Misc", "DisconnectSpam")) then return; end
  1667. RunConsoleCommand("say", "[Cloud.Hack] Rage quit?");
  1668. end);
  1669.  
  1670. hook.Add( "HUDPaint", "Watermark", function()
  1671. if(!gBool("Visuals", "Misc", "Watermark")) then return; end
  1672. rainbow = {}
  1673. rainbow.R = math.sin(CurTime() * 4) * 127 + 128
  1674. rainbow.G = math.sin(CurTime() * 4 + 2) * 127 + 128
  1675. rainbow.B = math.sin(CurTime() * 4 + 4) * 127 + 128
  1676.  
  1677. local h = ScrH() / 1
  1678. local w = ScrW() / 5
  1679. draw.SimpleText("Cloud.", "WATERMARK", 10, 25, Color(255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM)
  1680. draw.SimpleText("Hack", "WATERMARK", 70, 25, Color(35,125,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM)
  1681. draw.SimpleText(1, "WATERMARK", 10, 44, Color(35,125,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM)
  1682. draw.SimpleText(".", "WATERMARK", 21, 44, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM)
  1683. draw.SimpleText(5, "WATERMARK", 27, 44, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM)
  1684. end)
  1685.  
  1686. local function HideThings( name )
  1687. if(!gBool("Visuals", "Misc", "Crosshair")) then return; end
  1688. if(name == "CHudCrosshair") then
  1689. return false
  1690. end
  1691. -- We don't return anything here otherwise it will overwrite all other
  1692. -- HUDShouldDraw hooks.
  1693. end
  1694. hook.Add( "HUDShouldDraw", "HideThings", HideThings )
  1695.  
  1696. hook.Add( "HUDPaint", "Crosshair", function() -- Taken from death.bot thanks i guess. probs taken from like luabot :)
  1697. blue = {}
  1698. blue.R = math.sin(CurTime() * 2) * 120 + 420
  1699. blue.G = math.sin(CurTime() * 2 + 4) * 127 + 128
  1700. blue.B = math.sin(CurTime() * 2 + 4) * 127 + 128
  1701. if(!gBool("Visuals", "Misc", "Crosshair")) then return; end
  1702. surface.SetDrawColor(255,255,255) -- rainbow.R, rainbow.G, rainbow.B
  1703. local x = ScrW() * 0.5
  1704. local y = ScrH() * 0.5
  1705. surface.DrawLine( x + 12, y, x - 12, y )
  1706. surface.DrawLine( x, y + 12, x, y - 12 )
  1707. surface.SetDrawColor( 35,125,255 ) -- rainbow.R, rainbow.G, rainbow.B
  1708. local x = ScrW() * 0.5
  1709. local y = ScrH() * 0.5
  1710. surface.DrawLine( x + 10, y, x - 10, y )
  1711. surface.DrawLine( x, y + 10, x, y - 10 )
  1712. end)
  1713.  
  1714. local wireframeMat = Material("models/wireframe");
  1715.  
  1716. hook.Add("PreDrawViewModel", "", function()
  1717. if(!gBool("Misc", "Misc", "Wireframe Viewmodel")) then return; end
  1718. render.MaterialOverride(wireframeMat);
  1719. render.SetColorModulation(0,0,0);
  1720. end);
  1721.  
  1722. hook.Add("CalcView", "", function(p, o, a, f)
  1723. return({
  1724. angles = GetAngle(fa),
  1725. origin = (gBool("Visuals", "Misc", "Thirdperson") && o + am.Forward(fa) * -150 || o),
  1726. fov = f,
  1727. });
  1728. end);
  1729.  
  1730. hook.Add("ShouldDrawLocalPlayer", "", function()
  1731. return(gBool("Visuals", "Misc", "Thirdperson"));
  1732. end);
  1733.  
  1734.  
  1735. function fakeqacpart() -- credits onix idk if it works though
  1736. net.Start( "screengrab_part")
  1737. net.WriteUInt( 4, 32 )
  1738. net.WriteData( "000000000000000000000000", 4 )
  1739. net.SendToServer()
  1740. end
  1741.  
  1742. if (string.find(string.lower(_SOURCE), "lua/includes/extentions/client/vehicle.lua")) then
  1743. return false
  1744. end
  1745.  
  1746. --[[
  1747. We want the string library's extension to be loaded
  1748. --]]
  1749.  
  1750. if (!string.Comma) then return end
  1751.  
  1752. local script, source = _SCRIPT, _SOURCE:lower()
  1753.  
  1754. --[[
  1755. Awesome Anti-Cheat Plugin (AACP)
  1756. --]]
  1757.  
  1758. if (source:find("cl_anticheat.lua") and script:find("Awesome AntiCheat Plugin - AACP") or source:find("cl_settingsderma.lua")) then
  1759. return false
  1760. end
  1761.  
  1762. --[[
  1763. Blade Anti-Cheat (BAC)
  1764. --]]
  1765.  
  1766. if (source:find("cl_draw_check.lua") or script:find("Blade AntiCheat?")) then
  1767. return false
  1768. end
  1769.  
  1770. --[[
  1771. Daz Anti-Cheat (DAC)
  1772. http://pastebin.com/BfKAZBgF
  1773. --]]
  1774.  
  1775. if (source:find("cl_dazanticheat.lua")) then
  1776. return false
  1777. end
  1778.  
  1779. --[[
  1780. Fish Anti-Cheat (FAC)
  1781. --]]
  1782.  
  1783. if (script:find("//---Fish's AntiCheat---//")) then
  1784. usermessage.Hook("facSTL", function()
  1785. net.Start("ferpHUDSqu")
  1786. net.WriteTable({})
  1787. net.WriteString("garrysmod")
  1788. net.SendToServer()
  1789. end)
  1790.  
  1791. return false
  1792. end
  1793.  
  1794. --[[
  1795. Flow Network Anti-Cheat (FNAC)
  1796. --]]
  1797.  
  1798. if (source:find("fuckme.lua") and script:find("mrand()")) then
  1799. return false
  1800. end
  1801.  
  1802. --[[
  1803. GmodZ Anti-Cheat
  1804. --]]
  1805.  
  1806. if (script:find("mAC_Ban") or timer.Exists("testing123")) then
  1807. timer.Destroy("testing123")
  1808. return false
  1809. end
  1810.  
  1811.  
  1812.  
  1813.  
  1814. --[[
  1815. LeyAC
  1816. http://facepunch.com/showthread.php?t=1426843
  1817. --]]
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825. timer.Destroy( "AntiCheatTimer" )
  1826.  
  1827. local OriginalGetConVarNumber = GetConVarNumber;
  1828.  
  1829. function GetConVarNumber( name )
  1830. if ( name == "sv_allowcslua" ) then
  1831. return 0;
  1832. else
  1833. return OriginalGetConVarNumber( name );
  1834. end
  1835. end
  1836.  
  1837.  
  1838. if ( not CLIENT ) then return end
  1839.  
  1840. local printShit = true
  1841.  
  1842. local hooker = hook.GetTable
  1843. local receive = net.Receive
  1844. local sendtoserv = net.SendToServer
  1845. local writeint = net.WriteInt
  1846. local writebit = net.WriteBit
  1847.  
  1848. local start = net.Start
  1849.  
  1850. local prant = print
  1851. local hairs = pairs
  1852. local undack = unpack
  1853.  
  1854. local info = debug.getinfo
  1855.  
  1856. local shitfunc = function()
  1857.  
  1858. if ( not printShit ) then return end
  1859.  
  1860. prant("Fuck the cvar check")
  1861.  
  1862. end
  1863.  
  1864. local shitfunc2 = function()
  1865.  
  1866. local poop = readint(10)
  1867.  
  1868. start("Debug1")
  1869.  
  1870. writeint(poop, 16)
  1871.  
  1872. sendtoserv()
  1873.  
  1874. if ( not printShit ) then return end
  1875.  
  1876. prant("Spoofed Ping")
  1877.  
  1878. end
  1879.  
  1880.  
  1881. hooker()["Think"]["penis"] = function()
  1882.  
  1883. hook.Remove("OnGamemodeLoaded", "___scan_g_init")
  1884. hooker()["OnGamemodeLoaded"]["___scan_g_init"] = shitfunc
  1885. receive("Debug2", shitfunc2)
  1886. receive("gcontrol_vars", shitfunc)
  1887. receive("control_vars", shitfunc)
  1888. receive("checksaum", shitfunc)
  1889.  
  1890. net.Receivers["Debug2"] = shitfunc2
  1891. net.Receivers["gcontrol_vars"] = shitfunc
  1892. net.Receivers["control_vars"] = shitfunc
  1893. net.Receivers["checksaum"] = shitfunc
  1894.  
  1895. end
  1896.  
  1897. hook.Remove("OnGamemodeLoaded", "___scan_g_init")
  1898. hooker()["OnGamemodeLoaded"]["___scan_g_init"] = shitfunc
  1899. receive("Debug2", shitfunc2)
  1900. receive("gcontrol_vars", shitfunc)
  1901. receive("control_vars", shitfunc)
  1902. receive("checksaum", shitfunc)
  1903.  
  1904. net.Receivers["Debug2"] = shitfunc2
  1905. net.Receivers["gcontrol_vars"] = shitfunc
  1906. net.Receivers["control_vars"] = shitfunc
  1907. net.Receivers["checksaum"] = shitfunc
  1908.  
  1909.  
  1910. start("gcontrol_vars")
  1911. writebit()
  1912. sendtoserv()
  1913.  
  1914. function pairs( ... )
  1915.  
  1916. local tbl = { ... }
  1917.  
  1918. local dbg = info(2)
  1919. if ( dbg ) then
  1920. local src = dbg.short_src
  1921. if src:find("cl_qac") then
  1922. return hairs( { } ) -- nop
  1923. end
  1924.  
  1925. end
  1926.  
  1927. return hairs(undack(tbl))
  1928. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement