Advertisement
wifiboost

Acebot

Jul 13th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 189.93 KB | None | 0 0
  1. local s, odium = pcall( collectgarbage, 'odium' ) /*=======================================================================
  2.  
  3.  
  4.  
  5. ▄████████ ▄████████ ▄████████ ▀█████████▄ ▄██████▄ ███
  6.  
  7. ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀█████████▄
  8.  
  9. ███ ███ ███ █▀ ███ █▀ ███ ███ ███ ███ ▀███▀▀██
  10.  
  11. ███ ███ ███ ▄███▄▄▄ ▄███▄▄▄██▀ ███ ███ ███ ▀
  12.  
  13. ▀███████████ ███ ▀▀███▀▀▀ ▀▀███▀▀▀██▄ ███ ███ ███
  14.  
  15. ███ ███ ███ █▄ ███ █▄ ███ ██▄ ███ ███ ███
  16.  
  17. ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
  18.  
  19. ███ █▀ ████████▀ ██████████ ▄█████████▀ ▀██████▀ ▄████▀
  20.  
  21.  
  22.  
  23. A revolutionary lua multihack created by LegendofRobbo
  24.  
  25. Designed for usage with Project Odium
  26.  
  27. Lick my taint dumb nigger
  28.  
  29.  
  30.  
  31. Copyrighted by MingeTec Inc - putting pubbies their place since 2013
  32.  
  33.  
  34.  
  35. =======================================================================*/
  36.  
  37.  
  38.  
  39. --local odium = jit.status( "_O" )
  40.  
  41.  
  42.  
  43. local AB = AB or {}
  44.  
  45. /*
  46.  
  47. AB.Version = "1.10 - May 26 2017"
  48.  
  49. AB.LatestChanges = {
  50.  
  51. "More reliable targeting on aimbot, shouldn't snap to random targets anymore",
  52.  
  53. "Added spectator detection window, moved spectator and witness detection to utility tab",
  54.  
  55. "Added file protection for the acebot settings file",
  56.  
  57. "Improved ent marker with class searching algorithm",
  58.  
  59. "Added invalid's cac UD bhop script",
  60.  
  61. "Added sticky targeting setting to aimbot",
  62.  
  63. "Namestealer no longer saves between sessions",
  64.  
  65. "Added big secret feature",
  66.  
  67. }
  68.  
  69. */
  70.  
  71. AB.Version = "1.11 - Jul 04 2017"
  72.  
  73. AB.LatestChanges = {
  74.  
  75. "Rewrote xray core to be 100% screengrab safe",
  76.  
  77. "Changed notification system over to aegis.Notify",
  78.  
  79. "Minor performance tweaks",
  80.  
  81. }
  82.  
  83.  
  84.  
  85. MsgC( Color( 0, 150, 250 ), "==========>----- Acebot Initialized (Version "..AB.Version..") -----<==========\n" )
  86.  
  87. MsgC( Color( 0, 150, 250 ), "Latest Changes:\n" )
  88.  
  89. for k, v in SortedPairs(AB.LatestChanges, false) do
  90.  
  91. MsgC( Color( 150, 200, 250 ), v.."\n" )
  92.  
  93.  
  94.  
  95. end
  96.  
  97.  
  98.  
  99. AB.Changelog = {
  100.  
  101. " ===== 1.09 (May 11 2017) ===== ",
  102.  
  103. "Fixed silent aim to have proper movement correction",
  104.  
  105. "Added aimbot auto-trigger setting",
  106.  
  107. "Made aimbot kick into rage mode targeting at 180 FOV (experimental)",
  108.  
  109. "Added in-hud freecam",
  110.  
  111. " ===== 1.08 (Apr 28 2017) ===== ",
  112.  
  113. "Rewrote aimbot core systems to be faster, more efficient and more stable",
  114.  
  115. "Made silent aim correctly choke bsendpacket",
  116.  
  117. "Added adaptive body targeting",
  118.  
  119. "Deprecated aegis_printlogs",
  120.  
  121. "Made everything on ESP derender when offscreen to boost fps",
  122.  
  123. " ===== 1.07 (Apr 21 2017) ===== ",
  124.  
  125. "Stopped aimbot from locking on to spawn protected players in darkrp",
  126.  
  127. "Added darkrp arrest dodger",
  128.  
  129. "Added random rpname on death option",
  130.  
  131. "Added suicide when physgunned option",
  132.  
  133. "Added ace_base_set, ace_base_remove and ace_base_setsize",
  134.  
  135. " ===== 1.06 (Apr 5 2017) ===== ",
  136.  
  137. "Added promotional chatspam",
  138.  
  139. "Added m9k wallbang mode",
  140.  
  141. "Added proper aimbot bind key mode",
  142.  
  143. "Numerical variables now save properly between sessions",
  144.  
  145. " ===== 1.05 (Mar 24 2017) ===== ",
  146.  
  147. "Added more insult modes",
  148.  
  149. "Added silent aim",
  150.  
  151. "Added esp range slider",
  152.  
  153. "Cleaned up aimbot core",
  154.  
  155. "Added pattern matching to chat spammer",
  156.  
  157. "Added clientside flashlight",
  158.  
  159. " ===== 1.04 (Mar 12 2017) ===== ",
  160.  
  161. "Added spread compensation to aimbot for xtreme accuracy",
  162.  
  163. "Added ace_insult4",
  164.  
  165. " ===== 1.03 (Feb 8 2017) ===== ",
  166.  
  167. "Added more aegis debug commands",
  168.  
  169. "Expanded insult generator",
  170.  
  171. "Added wraith vision mode",
  172.  
  173. "Added ace_exploit_rapeconsole",
  174.  
  175. " ===== 1.02 (Feb 8 2017) ===== ",
  176.  
  177. "Fixed 180up",
  178.  
  179. "Fixed error that would occasionally happen and betray our presence to server admins",
  180.  
  181. " ===== 1.01 (Nov 15 2016) ===== ",
  182.  
  183. "Added /PM Spam mode",
  184.  
  185. "Fixed innocent roleplayer printing a bunch of crap",
  186.  
  187. "Added ace_insult3 and crash jackson macros",
  188.  
  189. "Fixed TTT lua errors",
  190.  
  191. " ===== 1.00 (Aug 30 2016) ===== ",
  192.  
  193. "Finalized menu theme",
  194.  
  195. "Added bhop basic auto strafe",
  196.  
  197. "Added vote spammer module",
  198.  
  199. "Changed namestealer to use the new odium lua API",
  200.  
  201. "Added options for disabling squares and player names on the ESP",
  202.  
  203. "Fixed rear vision mirror",
  204.  
  205. " ===== 0.98 (Jul 29 2016) ===== ",
  206.  
  207. "Added more insult fragments to ace_insult",
  208.  
  209. "Added propkill visual settings",
  210.  
  211. " ===== 0.97 (Jul 20 2016) ===== ",
  212.  
  213. "Added entity scanner mode, allows you to gather advanced information and use bd macros directly on a target",
  214.  
  215. "Added ace_innocent_roleplayer and ace_random_rpname for hiding from admins",
  216.  
  217. "Backdoor CP now checks if backdoor is functional before a message is sent",
  218.  
  219. "Namestealer should be more reliable now",
  220.  
  221. "Better tooltips on some menu buttons",
  222.  
  223. "More changes to backdoor CP",
  224.  
  225. " ===== 0.96 (Jun 14 2016) ===== ",
  226.  
  227. "Added more backdoor macros",
  228.  
  229. "Added ace_180up_vertical_angle command for people who like to adjust their launch angles",
  230.  
  231. " ===== 0.95 (Apr 22 2016) ===== ",
  232.  
  233. "Improved backdoor macro menu with more macros and fixes for old ones",
  234.  
  235. "Fixed ace_pk_180up not looking up",
  236.  
  237. " ===== 0.94 (Mar 25 2016) ===== ",
  238.  
  239. "Added support for the cw2 base for the inspect weapon menu",
  240.  
  241. "Triggerbot now uses the same targeting logic as aimbot",
  242.  
  243. "Further unfucked the aimbot and added more options",
  244.  
  245. "Added damage hitmarker function to crosshair",
  246.  
  247. "Fixed ab_init not being called, should fix the TTT traitor detector",
  248.  
  249. "Added random insult mode to chat spammer",
  250.  
  251. " ===== 0.93b (Mar 15 2016) ===== ",
  252.  
  253. "Made ace_insult and ace_insult2 more savage",
  254.  
  255. "Added a couple more macros to the entfinder",
  256.  
  257. "Changed draw order so ESP draws over the top of xray",
  258.  
  259. "Minor backend cleanup",
  260.  
  261. " ===== 0.93 (Mar 11 2016) ===== ",
  262.  
  263. "Added easy macros to the ent finder menu",
  264.  
  265. "Fixed broken calcview hook",
  266.  
  267. "Made aimbot refresh its target buffer when in fire only on snap mode",
  268.  
  269. " ===== 0.92 (Mar 08 2016) ===== ",
  270.  
  271. "Fixed a bunch of error spew",
  272.  
  273. "Updated aegis detours system to detect anticheats and have proper logs",
  274.  
  275. " ===== 0.91 (Mar 07 2016) ===== ",
  276.  
  277. "Made chat spammer option always default to off and not get saved",
  278.  
  279. "Added TTT traitor detection system (fucking finally)",
  280.  
  281. "Got target highlighting system working",
  282.  
  283. "Improved the fucked up aimbot a bit more",
  284.  
  285. "Removed a bunch of bugged and unused options from the aimbot control panel",
  286.  
  287. "Removed broken and dated minge alts system",
  288.  
  289. " ===== 0.90 (Feb 26 2016) ===== ",
  290.  
  291. "Lubed my anus for project odium",
  292.  
  293. "Fixed the janky inspect weapon script and moved it to utilities",
  294.  
  295. "Improved the acebot console with live updates and better logging",
  296.  
  297. "Added chat spammer",
  298.  
  299. " ===== 0.84b (Jan 28 2016) ===== ",
  300.  
  301. "Minor system fixes, passing invalid players etc",
  302.  
  303. " ===== 0.84a (Jan 23 2016) ===== ",
  304.  
  305. "Removed inject SCI function since it's now built into wraithnet",
  306.  
  307. "Improved headshot accuracy for aimbot",
  308.  
  309. "Added the option to target heads or centre of mass for aimbot",
  310.  
  311. "Added teleport, gas, become unbannable macros, extended range on most trace based macros",
  312.  
  313. " ===== Alpha phase (June 2015 - Jan 2016) ===== ",
  314.  
  315. "Acebot created, cac bypassed, many shitRP servers pooped on",
  316.  
  317. }
  318.  
  319.  
  320.  
  321. AB.Vars = AB.Vars or {}
  322.  
  323. AB.NumberVars = AB.NumberVars or {} -- need a seperate table here coz im a lazy cunt
  324.  
  325. AB.Buddies = AB.Buddies or {}
  326.  
  327. AB.Targets = AB.Targets or {}
  328.  
  329. AB.TheyHaveEyesEverywhere = AB.TheyHaveEyesEverywhere or {}
  330.  
  331. AB.Witnesses = AB.Witnesses or {}
  332.  
  333. AB.Debug = AB.Debug or {}
  334.  
  335. AB.MarkedEnts = AB.MarkedEnts or {}
  336.  
  337. AB.Traitors = AB.Traitors or {}
  338.  
  339. AB.RenderPanic = false
  340.  
  341. AB.NameStealName = "Garry :D"
  342.  
  343. AB.NameStealPlayer = LocalPlayer()
  344.  
  345. AB.CrossHairAlpha = 0
  346.  
  347. AB.ScrollDelta = 0 -- lets you set mouse wheel scroll from outside of createmove
  348.  
  349. AB.AimbotBone = "ValveBiped.Bip01_Head1"
  350.  
  351. AB.ViewAngle = Angle(0,0,0)
  352.  
  353. AB.AimbotTarget = game.GetWorld()
  354.  
  355. AB.AimbotPreviewTarget = -1
  356.  
  357. AB.HoldingProp = game.GetWorld()
  358.  
  359. AB.ChatSpamText = "@getodium"
  360.  
  361. AB.OPhysColor = Vector( GetConVarString( "cl_weaponcolor" ) ) or Vector( 1,1,1 )
  362.  
  363. AB.CurrentBase = 0
  364.  
  365. AB.BaseAreaSize = 10
  366.  
  367. AB.InternalFakeAngles = 0
  368.  
  369. AB.MemoryDebug = {
  370.  
  371. ["hud"] = 0,
  372.  
  373. ["logic"] = 0,
  374.  
  375. ["aimbot"] = 0,
  376.  
  377. }
  378.  
  379. AB.Freecam = false
  380.  
  381. AB.FreecamCoordinates = { pos = Vector( 0, 0, 0 ), ang = Angle( 0, 0, 0 ) }
  382.  
  383.  
  384.  
  385. -- general settings
  386.  
  387. AB.Vars.Notifications = AB.Vars.Notifications or true
  388.  
  389.  
  390.  
  391. -- vision
  392.  
  393. AB.Vars.Vision = AB.Vars.Vision or true
  394.  
  395. AB.Vars.ShowESP = AB.Vars.ShowESP or true
  396.  
  397. AB.Vars.ShowDead = AB.Vars.ShowDead or false
  398.  
  399. AB.Vars.ShowHP = AB.Vars.ShowHP or false
  400.  
  401. AB.Vars.ShowFriends = AB.Vars.ShowFriends or true
  402.  
  403. AB.Vars.ShowTargets = AB.Vars.ShowTargets or true
  404.  
  405. AB.Vars.TeamColors = AB.Vars.TeamColors or false
  406.  
  407. AB.Vars.ShowRanks = AB.Vars.ShowRanks or true
  408.  
  409. AB.Vars.ShowTraitors = AB.Vars.ShowTraitors or true
  410.  
  411. AB.Vars.ShowDistance = AB.Vars.ShowDistance or false
  412.  
  413. AB.Vars.ESPProps = AB.Vars.ESPProps or false
  414.  
  415. AB.Vars.Entfinder = AB.Vars.Entfinder or false
  416.  
  417. AB.Vars.Vizlines = AB.Vars.Vizlines or false
  418.  
  419. AB.Vars.BoundingBox = AB.Vars.BoundingBox or false
  420.  
  421. AB.Vars.BoundingBox3d = AB.Vars.BoundingBox3d or false
  422.  
  423. AB.Vars.VSquares = AB.Vars.VSquares or true
  424.  
  425. AB.Vars.VNames = AB.Vars.VNames or true
  426.  
  427. AB.Vars.PKVelocity = AB.Vars.PKVelocity or false
  428.  
  429. AB.Vars.PKChams = AB.Vars.PKChams or false
  430.  
  431. AB.Vars.PKPropCam = AB.Vars.PKPropCam or false
  432.  
  433. AB.Vars.PKPropBeams = AB.Vars.PKPropBeams or false
  434.  
  435. AB.Vars.PKPlayerBeams = AB.Vars.PKPlayerBeams or false
  436.  
  437. AB.Vars.PKVerticalBeams = AB.Vars.PKVerticalBeams or false
  438.  
  439. AB.Vars.CSFlashlight = AB.Vars.CSFlashlight or false
  440.  
  441. AB.NumberVars.VisionDist = AB.NumberVars.VisionDist or 2000
  442.  
  443.  
  444.  
  445. -- utility
  446.  
  447.  
  448.  
  449. AB.Vars.CameraSpam = AB.Vars.CameraSpam or true
  450.  
  451. AB.Vars.FlashlightSpam = AB.Vars.FlashlightSpam or false
  452.  
  453. AB.Vars.NoRecoil = AB.Vars.NoRecoil or true
  454.  
  455.  
  456.  
  457. AB.Vars.WitnessDetector = AB.Vars.WitnessDetector or false
  458.  
  459. AB.Vars.Mirror = AB.Vars.Mirror or false
  460.  
  461. AB.Vars.Radar = AB.Vars.Radar or false
  462.  
  463. AB.Vars.RadarColors = AB.Vars.RadarColors or false
  464.  
  465. AB.Vars.Xray = AB.Vars.Xray or false
  466.  
  467. AB.Vars.Crosshair = AB.Vars.Crosshair or false
  468.  
  469. AB.Vars.NameStealer = false
  470.  
  471. AB.Vars.NotifyKills = AB.Vars.NotifyKills or false
  472.  
  473.  
  474.  
  475. AB.Vars.XrayPlayers = AB.Vars.XrayPlayers or true
  476.  
  477. AB.Vars.XrayProps = AB.Vars.XrayProps or true
  478.  
  479. AB.Vars.XrayEntfinder = AB.Vars.XrayEntfinder or false
  480.  
  481. AB.Vars.NoChamColours = AB.Vars.NoChamColours or true
  482.  
  483. AB.Vars.XraySolid = AB.Vars.XraySolid or false
  484.  
  485.  
  486.  
  487. AB.Vars.AutoAddSteamFriends = AB.Vars.AutoAddSteamFriends or true
  488.  
  489.  
  490.  
  491. AB.Vars.ChatSpam = false
  492.  
  493. AB.Vars.ChatSpamOOC = AB.Vars.ChatSpamOOC or false
  494.  
  495. AB.Vars.ChatSpamBind = AB.Vars.ChatSpamBind or false
  496.  
  497. AB.Vars.ChatSpamInsult = AB.Vars.ChatSpamInsult or false
  498.  
  499. AB.Vars.ChatSpamPM = AB.Vars.ChatSpamPM or false
  500.  
  501. AB.Vars.ChatSpamPMAdmins = AB.Vars.ChatSpamPMAdmins or false
  502.  
  503.  
  504.  
  505. AB.EntScanner = false
  506.  
  507. AB.EntScannerTab = {}
  508.  
  509. AB.EntScannerEnt = game.GetWorld()
  510.  
  511.  
  512.  
  513. AB.Vars.DemoteSpam = false
  514.  
  515. AB.Vars.WantedSpam = false
  516.  
  517. AB.Vars.ULXVotekickSpam = false
  518.  
  519. AB.Vars.ULXVotebanSpam = false
  520.  
  521.  
  522.  
  523. AB.Vars.KillTaunts = false
  524.  
  525. AB.Vars.DeathTaunts = false
  526.  
  527.  
  528.  
  529. AB.Vars.DodgeArrest = false
  530.  
  531. AB.Vars.NewLifeRule = false
  532.  
  533. AB.Vars.DontTouchMeThere = false
  534.  
  535.  
  536.  
  537. AB.Vars.KeypadJew = false
  538.  
  539. AB.Vars.FreecamControls = false
  540.  
  541.  
  542.  
  543. -- aimbot
  544.  
  545.  
  546.  
  547. AB.Vars.Aimbot = AB.Vars.Aimbot or false
  548.  
  549. AB.Vars.AimbotTargetMode = AB.Vars.AimbotTargetMode or true
  550.  
  551. AB.Vars.AutoShoot = AB.Vars.AutoShoot or false
  552.  
  553. AB.Vars.AutoTrigger = AB.Vars.AutoTrigger or false
  554.  
  555. AB.Vars.AimbotShootThroughWalls = AB.Vars.AimbotShootThroughWalls or false
  556.  
  557. AB.Vars.SnapOnFire = AB.Vars.SnapOnFire or false
  558.  
  559. AB.Vars.TargetFriends = AB.Vars.TargetFriends or true
  560.  
  561. AB.Vars.TargetHighlighted = AB.Vars.TargetHighlighted or true
  562.  
  563. AB.Vars.TargetNormies = AB.Vars.TargetNormies or true
  564.  
  565. AB.Vars.TargetAdmins = AB.Vars.TargetAdmins or true
  566.  
  567. AB.Vars.TargetSameTeam = AB.Vars.TargetSameTeam or true
  568.  
  569. AB.Vars.TargetNoclippers = AB.Vars.TargetNoclippers or true
  570.  
  571. AB.Vars.PreviewTarget = AB.Vars.PreviewTarget or true
  572.  
  573. AB.Vars.CompSpread = AB.Vars.CompSpread or false
  574.  
  575. AB.Vars.SilentAim = AB.Vars.SilentAim or false
  576.  
  577. AB.Vars.AimbotBindMode = AB.Vars.AimbotBindMode or false
  578.  
  579. AB.Vars.AimbotWallbanger = AB.Vars.AimbotWallbanger or false
  580.  
  581. AB.Vars.AimbotAdaptiveTarget = AB.Vars.AimbotAdaptiveTarget or false
  582.  
  583. AB.Vars.AimbotStickyLock = AB.Vars.AimbotStickyLock or true
  584.  
  585.  
  586.  
  587. AB.NumberVars.AimbotMaxFOV = AB.NumberVars.AimbotMaxFOV or 20
  588.  
  589. AB.NumberVars.AimbotDist = AB.NumberVars.AimbotDist or 200
  590.  
  591. AB.NumberVars.AimbotSmooth = AB.NumberVars.AimbotSmooth or 0
  592.  
  593. AB.NumberVars.PKRotateAngle = AB.NumberVars.PKRotateAngle or 30
  594.  
  595.  
  596.  
  597. AB.NumberVars.AimbotBindKey = AB.NumberVars.AimbotBindKey or 107
  598.  
  599.  
  600.  
  601. AB.NumberVars.FreecamForward = AB.NumberVars.FreecamForward or 50
  602.  
  603. AB.NumberVars.FreecamBack = AB.NumberVars.FreecamBack or 49
  604.  
  605. AB.NumberVars.FreecamLeft = AB.NumberVars.FreecamLeft or 41
  606.  
  607. AB.NumberVars.FreecamRight = AB.NumberVars.FreecamRight or 43
  608.  
  609. AB.NumberVars.FreecamUp = AB.NumberVars.FreecamUp or 45
  610.  
  611. AB.NumberVars.FreecamDown = AB.NumberVars.FreecamDown or 42
  612.  
  613.  
  614.  
  615. -- default menu and esp colours
  616.  
  617. AB.DefaultSchemes = {
  618.  
  619. [1] = {"Spectral Blue", Color(205,205,255,255), Color(105,105,255,255)},
  620.  
  621. [2] = {"Ocean Blue", Color(100,100,255,255), Color(50,50,155,255)},
  622.  
  623. [3] = {"Sage Green", Color(100,250,100,255), Color(0,200,0,255)},
  624.  
  625. [4] = {"Javelin Orange", Color(250,250,0,255), Color(250,150,0,255)},
  626.  
  627. [5] = {"Predator Red", Color(255,0,0,255), Color(200,0,0,255)},
  628.  
  629. [6] = {"Miami Pink", Color(255,0,255,255), Color(150,0,150,255)},
  630.  
  631. [7] = {"Anus Brown", Color(125,0,0,255), Color(50,0,0,255)},
  632.  
  633. [8] = {"Jungle Green", Color(50,150,50,255), Color(0,50,0,255)},
  634.  
  635. [9] = {"Noir Grey", Color(150,150,150,255), Color(50,50,50,255)},
  636.  
  637. }
  638.  
  639.  
  640.  
  641. AB.DefaultScheme = Color(205,205,255,255)
  642.  
  643. AB.DefaultScheme2 = Color(80,80,255,255)
  644.  
  645. AB.Matinfo = {
  646.  
  647. ["$basetexture"] = "models/debug/debugwhite",
  648.  
  649. ["$model"] = 1,
  650.  
  651. ["$nocull"] = 1,
  652.  
  653. ["$ignorez"] = 1,
  654.  
  655. }
  656.  
  657.  
  658.  
  659. AB.Mat1 = (CreateMaterial( "abchams2", "VertexLitGeneric", AB.Matinfo ))
  660.  
  661. AB.ColScheme = Vector(AB.DefaultScheme.r / 255, AB.DefaultScheme.g / 255, AB.DefaultScheme.b / 255)
  662.  
  663. AB.ColScheme2 = Vector(AB.DefaultScheme2.r / 255, AB.DefaultScheme2.g / 255, AB.DefaultScheme2.b / 255)
  664.  
  665.  
  666.  
  667. AB.NumberVars.ColorScheme = AB.NumberVars.ColorScheme or 1
  668.  
  669.  
  670.  
  671. -- herkz
  672.  
  673. AB.Vars.Aimbot = AB.Vars.Aimbot or false
  674.  
  675.  
  676.  
  677. AB.Vars.Autoclick = AB.Vars.Autoclick or false
  678.  
  679. AB.Vars.Bhop = AB.Vars.Bhop or false
  680.  
  681. AB.Vars.BhopAutostrafe = AB.Vars.BhopAutostrafe or false
  682.  
  683. AB.Vars.RopeStorm = AB.Vars.RopeStorm or false
  684.  
  685. AB.Vars.Triggerbot = AB.Vars.Triggerbot or false
  686.  
  687. AB.Vars.Thirdperson = AB.Vars.Thirdperson or false
  688.  
  689.  
  690.  
  691.  
  692.  
  693. AB.NumberVars.MirrorX = AB.NumberVars.MirrorX or 0
  694.  
  695. AB.NumberVars.MirrorY = AB.NumberVars.MirrorY or 0
  696.  
  697. AB.NumberVars.MirrorSize = AB.NumberVars.MirrorSize or 30
  698.  
  699. AB.NumberVars.MirrorAxis = AB.NumberVars.MirrorAxis or 0
  700.  
  701.  
  702.  
  703. AB.NumberVars.XrayDistance = AB.NumberVars.XrayDistance or 200
  704.  
  705. AB.NumberVars.TPSDistance = AB.NumberVars.TPSDistance or 100
  706.  
  707. AB.NumberVars.TPSOffset = AB.NumberVars.TPSOffset or 0
  708.  
  709.  
  710.  
  711. AB.NumberVars.RadarX = AB.NumberVars.RadarX or ScrW() - 280
  712.  
  713. AB.NumberVars.RadarY = AB.NumberVars.RadarY or 20
  714.  
  715. AB.NumberVars.RadarAlpha = AB.NumberVars.RadarAlpha or 255
  716.  
  717. AB.NumberVars.RadarSize = AB.NumberVars.RadarSize or 250
  718.  
  719. AB.NumberVars.RadarZoom = AB.NumberVars.RadarZoom or 50
  720.  
  721.  
  722.  
  723. /*
  724.  
  725. local plymeta = FindMetaTable( "Player" )
  726.  
  727. plymeta.ConCommand2 = plymeta.ConCommand2 or plymeta.ConCommand
  728.  
  729. function plymeta:ConCommand( command )
  730.  
  731. if command == "jpeg" and AB.Vars.CameraSpam then return else
  732.  
  733. return self:ConCommand2( command )
  734.  
  735. end
  736.  
  737. end
  738.  
  739. */
  740.  
  741.  
  742.  
  743. local ncomponent = { color = Color( 205, 205, 255 ), name = "Acebot" }
  744.  
  745. function AB.ChatText( message, col, typ )
  746.  
  747. typ = typ or 1
  748.  
  749. if odium and odium.aegis then
  750.  
  751. if col.r - ( col.g + col.b ) > 150 then typ = 4 end -- probably an error message
  752.  
  753. if col.r == 255 and col.g == 205 and col.b == 205 then typ = 2 end
  754.  
  755. if col.g >= (col.r + col.b) then typ = 3 end
  756.  
  757. odium.aegis.Notify( ncomponent, typ, message )
  758.  
  759. else
  760.  
  761. chat.AddText( Color(195,205,255,255), "[Acebot] ", col, message )
  762.  
  763. end
  764.  
  765. end
  766.  
  767.  
  768.  
  769.  
  770.  
  771. ------------------------------------------------------------------------ACEBOT UTILITIES--------------------------------------------------------------------------------------
  772.  
  773.  
  774.  
  775. function AB.SetPlayerName( name )
  776.  
  777. if !odium or !odium.player or !odium.player.SetName then
  778.  
  779. AB.ChatText( "Odium main module not present or malfunctioning! Name changing will not work!", Color(255,100,0) )
  780.  
  781. AB.Vars.NameStealer = false
  782.  
  783. return
  784.  
  785. end
  786.  
  787. odium.player.SetName( name )
  788.  
  789. end
  790.  
  791.  
  792.  
  793. local nstries = 0
  794.  
  795. --local ninjacharacter = ""
  796.  
  797. local ninjacharacter = ""
  798.  
  799.  
  800.  
  801. function AB.NameStealer()
  802.  
  803. if !AB.Vars.NameStealer or !LocalPlayer():IsValid() then return end
  804.  
  805. if !AB.NameStealPlayer:IsValid() then AB.NameStealPlayer = LocalPlayer() end
  806.  
  807.  
  808.  
  809. -- set your name to a given string, unfucks bytefalls random malfunctions
  810.  
  811. if AB.NameStealName != LocalPlayer():Nick() and AB.NameStealPlayer == LocalPlayer() then
  812.  
  813. nstries = nstries + 1
  814.  
  815. AB.NameStealName = LocalPlayer():Nick()
  816.  
  817. -- LocalPlayer():ConCommand( "odium_setname "..AB.NameStealName )
  818.  
  819. AB.SetPlayerName( AB.NameStealName )
  820.  
  821. if AB.NameStealName == LocalPlayer():Nick() then nstries = 0 end
  822.  
  823. end
  824.  
  825.  
  826.  
  827. local unfuckedname = string.Replace( AB.NameStealName, ninjacharacter, "" ) -- gotta clear the ninjas out so we can check if the namesteal worked properly
  828.  
  829.  
  830.  
  831. -- dank namestealerinos :^)
  832.  
  833. if AB.NameStealPlayer != LocalPlayer() and unfuckedname != AB.NameStealPlayer:Nick() then
  834.  
  835. nstries = nstries + 1
  836.  
  837. local theirname = AB.NameStealPlayer:Nick()
  838.  
  839. local ipos = math.random(1, #theirname)
  840.  
  841. local strname = theirname[ipos]
  842.  
  843. local fixd = string.Replace(theirname, strname, strname..ninjacharacter )
  844.  
  845.  
  846.  
  847. AB.NameStealName = fixd
  848.  
  849. AB.SetPlayerName( fixd )
  850.  
  851. -- LocalPlayer():ConCommand( "odium_setname "..fixd )
  852.  
  853. if AB.NameStealName == unfuckedname then nstries = 0 end
  854.  
  855. end
  856.  
  857.  
  858.  
  859. end
  860.  
  861. timer.Create("ab_namesteal", 1, 0, AB.NameStealer)
  862.  
  863.  
  864.  
  865. function AB.NameStealerShutoff()
  866.  
  867. steamworks.RequestPlayerInfo( LocalPlayer():SteamID64() )
  868.  
  869. timer.Simple( 0.5, function() AB.SetPlayerName(steamworks.GetPlayerName(LocalPlayer():SteamID64())) end)
  870.  
  871. AB.Vars.NameStealer = false
  872.  
  873. AB.NameStealName = LocalPlayer():Nick()
  874.  
  875. AB.NameStealPlayer = LocalPlayer()
  876.  
  877. if AB.Vars.Notifications then AB.ChatText( "Shut namestealer script down", Color(255,255,255) ) end
  878.  
  879. end
  880.  
  881.  
  882.  
  883. function AB.ManualNameSet( ply, cmd, args, argstr )
  884.  
  885. -- local n = ""
  886.  
  887. -- for k, v in pairs( args ) do if k != 1 then n = n.." "..v else n = n..v end end
  888.  
  889. AB.SetPlayerName( argstr )
  890.  
  891. end
  892.  
  893. concommand.Add( "odium_setname", AB.ManualNameSet )
  894.  
  895.  
  896.  
  897.  
  898.  
  899. function AB.SaveSettings()
  900.  
  901. local StringToWrite = ""
  902.  
  903. for k, v in pairs(AB.Vars) do
  904.  
  905. if( StringToWrite == "" ) then
  906.  
  907. StringToWrite = k .. ";" .. tostring(v)
  908.  
  909. else
  910.  
  911. StringToWrite = StringToWrite .. "\n" .. k .. ";" .. tostring(v)
  912.  
  913. end
  914.  
  915. end
  916.  
  917. StringToWrite = StringToWrite.."--NUMBERVARS--\n"
  918.  
  919. for k, v in pairs(AB.NumberVars) do
  920.  
  921. if( StringToWrite == "" ) then
  922.  
  923. StringToWrite = k .. ";" .. tostring(v)
  924.  
  925. else
  926.  
  927. StringToWrite = StringToWrite .. "\n" .. k .. ";" .. tostring(v)
  928.  
  929. end
  930.  
  931. end
  932.  
  933. /*
  934.  
  935. if not file.IsDir("acebot", "DATA") then
  936.  
  937. file.CreateDir("acebot")
  938.  
  939. end
  940.  
  941. */
  942.  
  943. if file.IsDir("acebot", "DATA") then
  944.  
  945. file.Delete( "acebot/settings.txt" )
  946.  
  947. file.Delete( "acebot" )
  948.  
  949. end
  950.  
  951.  
  952.  
  953. file.Write( "acebot_settings.dat", StringToWrite )
  954.  
  955. end
  956.  
  957. concommand.Add("ace_save_settings", AB.SaveSettings)
  958.  
  959.  
  960.  
  961. function AB.LoadSettings()
  962.  
  963. /*
  964.  
  965. if not file.IsDir("acebot", "DATA") then
  966.  
  967. file.CreateDir("acebot")
  968.  
  969. end
  970.  
  971. */
  972.  
  973. if !file.Exists("acebot_settings.dat", "DATA") then AB.SaveSettings() return end
  974.  
  975.  
  976.  
  977. local TheFile = file.Read( "acebot_settings.dat", "DATA" )
  978.  
  979. local halves = string.Explode( "--NUMBERVARS--\n", TheFile )
  980.  
  981. if !halves[2] then file.Delete( "acebot_settings.dat" )
  982.  
  983. AB.ChatText( "Invalid data file and/or data file is using an outdated format! type ace_save_settings into console to fix this", Color(255,205,205) )
  984.  
  985. return
  986.  
  987. end
  988.  
  989.  
  990.  
  991. TheFile = halves[1]
  992.  
  993. local DataPieces = string.Explode( "\n", TheFile )
  994.  
  995.  
  996.  
  997. for k, v in pairs( DataPieces ) do
  998.  
  999. local TheLine = string.Explode( ";", v )
  1000.  
  1001. AB.Vars[TheLine[1]] = tobool(TheLine[2])
  1002.  
  1003. end
  1004.  
  1005.  
  1006.  
  1007. TheFile = halves[2]
  1008.  
  1009. local DataPieces = string.Explode( "\n", TheFile )
  1010.  
  1011.  
  1012.  
  1013. for k, v in pairs( DataPieces ) do
  1014.  
  1015. local TheLine = string.Explode( ";", v )
  1016.  
  1017. AB.NumberVars[TheLine[1]] = tonumber(TheLine[2])
  1018.  
  1019. end
  1020.  
  1021.  
  1022.  
  1023. AB.Vars.NameStealer = false
  1024.  
  1025.  
  1026.  
  1027. end
  1028.  
  1029. concommand.Add("ace_load_settings", AB.LoadSettings)
  1030.  
  1031. AB.LoadSettings() -- load our shit right away
  1032.  
  1033. AB.Vars.ChatSpam = false -- reset this to false so we dont get cucked by anticheats
  1034.  
  1035.  
  1036.  
  1037. -- covert source units(inches) to metres
  1038.  
  1039. function AB.ToMetric( num )
  1040.  
  1041. if not isnumber(num) then return end
  1042.  
  1043. return math.floor(num * 0.0254)
  1044.  
  1045. end
  1046.  
  1047.  
  1048.  
  1049. -- check if an entity is actually visible on our screen, used to boost efficiency in the xray and esp code
  1050.  
  1051. function AB.OnScreen( ent, ws )
  1052.  
  1053. local ws = ws or 0
  1054.  
  1055. local bpos = (ent:LocalToWorld(ent:OBBCenter())):ToScreen()
  1056.  
  1057. if ( bpos.x < (ScrW() + ws) and bpos.x > (0 - ws) and bpos.y < (ScrH() + ws) and bpos.y > (0 - ws) ) then return true end
  1058.  
  1059. return false
  1060.  
  1061. end
  1062.  
  1063.  
  1064.  
  1065. function AB.IsDead( ply )
  1066.  
  1067. if !ply:IsValid() or !ply:Alive() or ply:GetObserverMode() != OBS_MODE_NONE then return true end
  1068.  
  1069. return false
  1070.  
  1071. end
  1072.  
  1073.  
  1074.  
  1075. -- compatible with ulx, assmod, evolve, vermillion 2 and traditional admin/superadmin detection may or may not pick up unknown admin mods
  1076.  
  1077. function AB.GetRank( ply )
  1078.  
  1079. if !ply or !ply:IsValid() then return "user" end
  1080.  
  1081. local rank = "user"
  1082.  
  1083. if ply:GetNWString("usergroup") then rank = ply:GetNWString("usergroup") return rank end
  1084.  
  1085. --if evolve then rank = ply:EV_GetRank() return rank end
  1086.  
  1087. if ply:GetNetworkedString( "UserGroup" ) then rank = ply:GetNetworkedString( "UserGroup" ) return rank end
  1088.  
  1089. if ply:GetNWString("Vermilion_Rank") then rank = ply:GetNWString("Vermilion_Rank") return rank end
  1090.  
  1091. if ply:IsSuperAdmin() then rank = "SUPERADMIN" return rank end
  1092.  
  1093. if ply:IsAdmin() then rank = "ADMIN" return rank end
  1094.  
  1095.  
  1096.  
  1097. return rank -- if they aren't any kind of admin that we know of then this will return "user"
  1098.  
  1099. end
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105. function AB.GetESPColor( ply )
  1106.  
  1107. local col1, col2 = AB.DefaultScheme, AB.DefaultScheme2
  1108.  
  1109.  
  1110.  
  1111. if AB.IsTarget( ply ) then
  1112.  
  1113. col1, col2 = Color(255,205,0,255), Color(205,160,0,255)
  1114.  
  1115. return col1, col2
  1116.  
  1117. end
  1118.  
  1119.  
  1120.  
  1121. if AB.IsFriend( ply ) then
  1122.  
  1123. col1, col2 = Color(0,255,0,255), Color(100,250,100,255)
  1124.  
  1125. return col1, col2
  1126.  
  1127. end
  1128.  
  1129.  
  1130.  
  1131. if AB.GetRank( ply ) != "user" then
  1132.  
  1133. col1, col2 = Color(255,100,0,255), Color(255,50,0,255)
  1134.  
  1135. return col1, col2
  1136.  
  1137. end
  1138.  
  1139.  
  1140.  
  1141. if AB.Vars.TeamColors then
  1142.  
  1143. col1 = team.GetColor(ply:Team())
  1144.  
  1145. col2 = Color(math.Clamp(col1.r - 100, 0, 255), math.Clamp(col1.g - 100, 0, 255), math.Clamp(col1.b - 100, 0, 255), 255)
  1146.  
  1147. return col1, col2
  1148.  
  1149. end
  1150.  
  1151.  
  1152.  
  1153. return col1, col2
  1154.  
  1155. end
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161. -- friends and targets system
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171. function AB.AddTarget( ply )
  1172.  
  1173. if !ply or !ply:IsValid() then return end
  1174.  
  1175. if table.HasValue( AB.Targets, ply ) then return end
  1176.  
  1177. table.insert( AB.Targets, ply )
  1178.  
  1179. AB.DebugLog( "Added "..ply:Nick().." to your targets list", Color( 250, 150, 50) )
  1180.  
  1181. end
  1182.  
  1183.  
  1184.  
  1185. function AB.RemoveTarget( ply )
  1186.  
  1187. if !ply or !ply:IsValid() then return end
  1188.  
  1189. if not table.HasValue( AB.Targets, ply ) then AB.ChatText( ply:Nick().." isn't a target!", Color(255,205,205) ) return end
  1190.  
  1191. table.RemoveByValue( AB.Targets, ply )
  1192.  
  1193. AB.DebugLog( "Removed "..ply:Nick().." from your targets list", Color( 250, 150, 50) )
  1194.  
  1195. end
  1196.  
  1197.  
  1198.  
  1199. function AB.IsTarget( ply )
  1200.  
  1201. if !ply or !ply:IsValid() then return false end
  1202.  
  1203. return table.HasValue( AB.Targets, ply )
  1204.  
  1205. end
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213. function AB.IsFriend( ply )
  1214.  
  1215. if !ply or !ply:IsValid() then return false end
  1216.  
  1217. return table.HasValue( AB.Buddies, ply )
  1218.  
  1219. end
  1220.  
  1221.  
  1222.  
  1223. function AB.AddFriend( ply )
  1224.  
  1225. if !ply:IsValid() then return end
  1226.  
  1227. if table.HasValue( AB.Buddies, ply ) then return end
  1228.  
  1229. table.insert( AB.Buddies, ply )
  1230.  
  1231. AB.DebugLog( "Added "..ply:Nick().." to your friends list", Color( 50, 250, 50) )
  1232.  
  1233. end
  1234.  
  1235.  
  1236.  
  1237. function AB.RemoveFriend( ply )
  1238.  
  1239. if !ply:IsValid() then return end
  1240.  
  1241. if not table.HasValue( AB.Buddies, ply ) then AB.ChatText( ply:Nick().." isn't on your friends list!", Color(255,205,205) ) return end
  1242.  
  1243. table.RemoveByValue( AB.Buddies, ply )
  1244.  
  1245. AB.DebugLog( "Removed "..ply:Nick().." from your friends list", Color( 50, 250, 50) )
  1246.  
  1247. end
  1248.  
  1249.  
  1250.  
  1251. function AB.RemoveInvalidFriends()
  1252.  
  1253. for k, v in pairs(AB.Buddies) do
  1254.  
  1255. if !v:IsValid() then table.remove( AB.Buddies, k ) end
  1256.  
  1257. end
  1258.  
  1259. end
  1260.  
  1261.  
  1262.  
  1263. function AB.AddConnectedFriends()
  1264.  
  1265. for k, v in pairs(player.GetAll()) do
  1266.  
  1267. if v:GetFriendStatus() == "friend" then AB.AddFriend( v ) end
  1268.  
  1269. end
  1270.  
  1271. end
  1272.  
  1273. concommand.Add("ace_refresh_friends", AB.AddConnectedFriends)
  1274.  
  1275. timer.Create( "ab_keep_friends_updated", 10, 0, AB.AddConnectedFriends )
  1276.  
  1277.  
  1278.  
  1279. gameevent.Listen( "player_spawn" )
  1280.  
  1281. hook.Add( "player_spawn", "addsteamfriends", function( data )
  1282.  
  1283. local id = data.userid
  1284.  
  1285. local ply = player.GetByID( id )
  1286.  
  1287. if !ply:IsValid() then return end
  1288.  
  1289. if ply:GetFriendStatus() == "friend" and AB.Vars.AutoAddSteamFriends and !table.HasValue( AB.Buddies, ply ) then
  1290.  
  1291. AB.AddFriend( ply )
  1292.  
  1293. end
  1294.  
  1295. end )
  1296.  
  1297.  
  1298.  
  1299. -- this is for faggots that attempt to restrict ulx who
  1300.  
  1301.  
  1302.  
  1303. function AB.Who()
  1304.  
  1305. local plys = player.GetAll()
  1306.  
  1307. for k, v in pairs(plys) do
  1308.  
  1309. if v:GetNWString("usergroup") then
  1310.  
  1311. local col = Color( 150, 150, 200, 255 )
  1312.  
  1313. if v:GetNWString("usergroup") != "user" then col = Color( 250, 200, 150, 255 ) end
  1314.  
  1315. MsgC(col, v:GetName() .. string.rep("\t", math.Round(8 / #v:GetName())), v:GetNWString("usergroup").."\n")
  1316.  
  1317. end
  1318.  
  1319. end
  1320.  
  1321. end
  1322.  
  1323. concommand.Add("ace_who", AB.Who)
  1324.  
  1325.  
  1326.  
  1327. local grad = Material( "gui/gradient" )
  1328.  
  1329. local upgrad = Material( "gui/gradient_up" )
  1330.  
  1331. local downgrad = Material( "gui/gradient_down" )
  1332.  
  1333. local o_color1 = Color( 0, 0, 50, 255 )
  1334.  
  1335. local o_color2 = Color(155, 155, 155, 255)
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341. function AB.ToggleVar( var, fancyname )
  1342.  
  1343. if AB.Vars[var] then
  1344.  
  1345. if AB.Vars.Notifications then AB.ChatText( "Disabled "..fancyname, Color(255,205,205) ) end
  1346.  
  1347. if string.find(var, "Xray") or var == "Vision" then AB.XrayShutoff() end -- need to run this function to properly unfuck things that have been xray'd
  1348.  
  1349. AB.Vars[var] = false
  1350.  
  1351. else
  1352.  
  1353. if AB.Vars.Notifications then AB.ChatText( "Enabled "..fancyname, Color(255,255,255) ) end
  1354.  
  1355. AB.Vars[var] = true
  1356.  
  1357. end
  1358.  
  1359. AB.SaveSettings()
  1360.  
  1361. end
  1362.  
  1363.  
  1364.  
  1365. for k, v in pairs(AB.Vars) do
  1366.  
  1367. concommand.Add("ace_togglevar_"..string.lower(k), function() AB.ToggleVar( k, k ) end)
  1368.  
  1369. end
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375. function AB.ChangeColorScheme( num )
  1376.  
  1377. if not isnumber(num) then return end
  1378.  
  1379. if num <= 0 or num > #AB.DefaultSchemes then print("I don't know how you fucked up this badly but you are trying to change to a colour scheme that doesn't exist!") return end
  1380.  
  1381. local c1 = AB.DefaultSchemes[num][2]
  1382.  
  1383. local c2 = AB.DefaultSchemes[num][3]
  1384.  
  1385.  
  1386.  
  1387. if AB.Vars.Notifications then AB.ChatText( "Changed colour scheme to "..AB.DefaultSchemes[num][1], c1 ) end
  1388.  
  1389. AB.DefaultScheme = c1
  1390.  
  1391. AB.DefaultScheme2 = c2
  1392.  
  1393. AB.ColScheme = Vector(c1.r / 255, c1.g / 255, c1.b / 255)
  1394.  
  1395. AB.ColScheme2 = Vector(c2.r / 255, c2.g / 255, c2.b / 255)
  1396.  
  1397.  
  1398.  
  1399. -- AB.NumberVars.ColorScheme = num -- done inside the button logic
  1400.  
  1401.  
  1402.  
  1403. end
  1404.  
  1405.  
  1406.  
  1407. function AB.MakeToggleButton( parent, x, y, btext, var, vartext, tooltip)
  1408.  
  1409. if !parent:IsValid() then return end
  1410.  
  1411.  
  1412.  
  1413. local TButton = vgui.Create( "DButton" )
  1414.  
  1415. TButton:SetParent( parent )
  1416.  
  1417. TButton:SetPos( x, y )
  1418.  
  1419. TButton:SetText( btext )
  1420.  
  1421. TButton:SetTextColor( Color(255, 255, 255, 255) )
  1422.  
  1423. TButton:SetSize( 110, 25 )
  1424.  
  1425. if tooltip != nil then TButton:SetToolTip( tooltip ) end
  1426.  
  1427.  
  1428.  
  1429. TButton.Paint = function( self, w, h )
  1430.  
  1431. surface.SetDrawColor( Color(60, 60, 90, 200) )
  1432.  
  1433. TButton:SetText( btext )
  1434.  
  1435. surface.DrawRect( 0, 0, w, h )
  1436.  
  1437. surface.SetDrawColor( o_color1 )
  1438.  
  1439. surface.SetMaterial( downgrad )
  1440.  
  1441. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  1442.  
  1443.  
  1444.  
  1445. if AB.Vars[var] then
  1446.  
  1447. surface.SetDrawColor( Color(150, 250, 150, 255) )
  1448.  
  1449. else
  1450.  
  1451. surface.SetDrawColor( Color(100, 100, 100, 255) )
  1452.  
  1453. end
  1454.  
  1455. surface.DrawOutlinedRect( 0, 0, w, h )
  1456.  
  1457. end
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463. TButton.DoClick = function()
  1464.  
  1465. AB.ToggleVar( var, vartext )
  1466.  
  1467. end
  1468.  
  1469.  
  1470.  
  1471. end
  1472.  
  1473.  
  1474.  
  1475. function AB.MakeFunctionButton( parent, x, y, btext, func, tooltip)
  1476.  
  1477. if !parent:IsValid() then return end
  1478.  
  1479.  
  1480.  
  1481. local TButton = vgui.Create( "DButton" )
  1482.  
  1483. TButton:SetParent( parent )
  1484.  
  1485. TButton:SetPos( x, y )
  1486.  
  1487. TButton:SetText( btext )
  1488.  
  1489. TButton:SetTextColor( Color(255, 255, 255, 255) )
  1490.  
  1491. TButton:SetSize( 110, 25 )
  1492.  
  1493. if tooltip != nil then TButton:SetToolTip( tooltip ) end
  1494.  
  1495.  
  1496.  
  1497. TButton.Paint = function( self, w, h )
  1498.  
  1499. surface.SetDrawColor( Color(60, 60, 90, 200) )
  1500.  
  1501. TButton:SetText( btext )
  1502.  
  1503. surface.DrawRect( 0, 0, w, h )
  1504.  
  1505. surface.SetDrawColor( o_color1 )
  1506.  
  1507. surface.SetMaterial( downgrad )
  1508.  
  1509. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  1510.  
  1511.  
  1512.  
  1513. surface.SetDrawColor( Color(100, 100, 100, 255) )
  1514.  
  1515. surface.DrawOutlinedRect( 0, 0, w, h )
  1516.  
  1517. end
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523. TButton.DoClick = function()
  1524.  
  1525. func()
  1526.  
  1527. end
  1528.  
  1529.  
  1530.  
  1531. end
  1532.  
  1533.  
  1534.  
  1535. function AB.MakeFloatingButton( x, y, btext, func)
  1536.  
  1537. local TButton = vgui.Create( "DButton" )
  1538.  
  1539. TButton:SetPos( x, y )
  1540.  
  1541. TButton:SetText( btext )
  1542.  
  1543. TButton:SetTextColor( Color(255, 255, 255, 255) )
  1544.  
  1545. TButton:SetSize( 110, 25 )
  1546.  
  1547.  
  1548.  
  1549. TButton.Paint = function( self, w, h )
  1550.  
  1551. surface.SetDrawColor( Color(60, 60, 90, 200) )
  1552.  
  1553. TButton:SetText( btext )
  1554.  
  1555. surface.DrawRect( 0, 0, w, h )
  1556.  
  1557. surface.SetDrawColor( Color(100, 100, 100, 255) )
  1558.  
  1559. surface.DrawOutlinedRect( 0, 0, w, h )
  1560.  
  1561. end
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. TButton.DoClick = function()
  1568.  
  1569. func()
  1570.  
  1571. end
  1572.  
  1573. return TButton
  1574.  
  1575. end
  1576.  
  1577.  
  1578.  
  1579. function AB.MakeSlider( parent, x, y, length, text, min, max, var )
  1580.  
  1581. if !parent:IsValid() then return end
  1582.  
  1583.  
  1584.  
  1585. local sbg = vgui.Create( "DPanel" )
  1586.  
  1587. sbg:SetParent( parent )
  1588.  
  1589. sbg:SetPos( x, y )
  1590.  
  1591. sbg:SetSize( length, 25 )
  1592.  
  1593.  
  1594.  
  1595. sbg.Paint = function( self, w, h ) -- Paint function
  1596.  
  1597. surface.SetDrawColor( 50, 50, 90, 255 )
  1598.  
  1599. surface.DrawRect(0, 0, w, h )
  1600.  
  1601. surface.SetDrawColor( o_color1 )
  1602.  
  1603. surface.SetMaterial( downgrad )
  1604.  
  1605. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  1606.  
  1607. surface.SetDrawColor( 50, 50, 90, 255 )
  1608.  
  1609. surface.DrawOutlinedRect(0, 0, w, h )
  1610.  
  1611.  
  1612.  
  1613. end
  1614.  
  1615.  
  1616.  
  1617. local NumSlider = vgui.Create( "DNumSlider", sbg )
  1618.  
  1619. NumSlider:SetPos( 10,-5 )
  1620.  
  1621. NumSlider:SetWide( length - 10 )
  1622.  
  1623. NumSlider:SetText( text )
  1624.  
  1625. NumSlider:SetMin( min )
  1626.  
  1627. NumSlider:SetMax( max )
  1628.  
  1629. NumSlider:SetValue( AB.NumberVars[var] )
  1630.  
  1631. NumSlider:SetDecimals( 0 )
  1632.  
  1633. NumSlider.OnValueChanged = function( panel, val ) AB.NumberVars[var] = math.floor(val) end
  1634.  
  1635.  
  1636.  
  1637. end
  1638.  
  1639.  
  1640.  
  1641. function AB.MakeKeyBinder( parent, x, y, length, height, keyvar, changetxt )
  1642.  
  1643.  
  1644.  
  1645. local binder = vgui.Create( "DBinder", parent )
  1646.  
  1647. binder:SetSize( length, height )
  1648.  
  1649. binder:SetPos( x, y )
  1650.  
  1651. binder:SetTextColor( Color(255,255,255) )
  1652.  
  1653. binder:SetSelected( AB.NumberVars[keyvar] )
  1654.  
  1655. binder.Paint = function( self, w, h )
  1656.  
  1657. surface.SetDrawColor( Color(60, 60, 90, 200) )
  1658.  
  1659. surface.DrawRect( 0, 0, w, h )
  1660.  
  1661. surface.SetDrawColor( o_color1 )
  1662.  
  1663. surface.SetMaterial( downgrad )
  1664.  
  1665. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  1666.  
  1667.  
  1668.  
  1669. surface.SetDrawColor( Color(100, 100, 100, 255) )
  1670.  
  1671. surface.DrawOutlinedRect( 0, 0, w, h )
  1672.  
  1673. end
  1674.  
  1675. function binder:SetSelectedNumber( num )
  1676.  
  1677. AB.ChatText( "Set new "..changetxt.." bind key", Color(255,255,255) )
  1678.  
  1679. self.m_iSelectedNumber = num
  1680.  
  1681. AB.NumberVars[keyvar] = num
  1682.  
  1683. end
  1684.  
  1685.  
  1686.  
  1687. end
  1688.  
  1689.  
  1690.  
  1691. ------------------------------------------------------------------------ACEBOT MENU--------------------------------------------------------------------------------------
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697. function AB.Menu()
  1698.  
  1699.  
  1700.  
  1701. if AceMenu then return false end
  1702.  
  1703.  
  1704.  
  1705. local AceMenu = vgui.Create("DFrame")
  1706.  
  1707. AceMenu:SetSize(500,700)
  1708.  
  1709. AceMenu:SetTitle("Acebot - A component of Project Odium Created by LegendofRobbo")
  1710.  
  1711. AceMenu:Center()
  1712.  
  1713. AceMenu:MakePopup()
  1714.  
  1715.  
  1716.  
  1717. AceMenu.Paint = function( panel, w, h )
  1718.  
  1719.  
  1720.  
  1721. surface.SetDrawColor( Color(50, 50, 90, 255) )
  1722.  
  1723. surface.DrawRect( 0, 0, w, h )
  1724.  
  1725.  
  1726.  
  1727. surface.SetDrawColor( o_color1 )
  1728.  
  1729. surface.SetMaterial( upgrad )
  1730.  
  1731. surface.DrawTexturedRect( 0, h / 2, w, h / 2 )
  1732.  
  1733.  
  1734.  
  1735. surface.SetDrawColor( o_color1 )
  1736.  
  1737. surface.SetMaterial( downgrad )
  1738.  
  1739. surface.DrawTexturedRect( 0, 0, w, h/ 2 )
  1740.  
  1741.  
  1742.  
  1743. surface.SetDrawColor( o_color2 )
  1744.  
  1745. surface.DrawOutlinedRect( 0, 0, w, h )
  1746.  
  1747. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  1748.  
  1749. end
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755. local PropertySheet = vgui.Create( "DPropertySheet" )
  1756.  
  1757. PropertySheet:SetParent( AceMenu )
  1758.  
  1759. PropertySheet:SetPos( 10, 30 )
  1760.  
  1761. PropertySheet:SetSize( 480, AceMenu:GetTall() - 40 )
  1762.  
  1763.  
  1764.  
  1765. PropertySheet.Paint = function()
  1766.  
  1767. surface.SetDrawColor( Color(0, 0, 0, 200) )
  1768.  
  1769. surface.DrawRect(0, 0, PropertySheet:GetWide(), PropertySheet:GetTall())
  1770.  
  1771. for k, v in pairs(PropertySheet.Items) do
  1772.  
  1773. if v.Tab then
  1774.  
  1775. v.Tab.Paint = function(self,w,h)
  1776.  
  1777. draw.RoundedBox(0, 0, 0, w, h, Color(50,90,120))
  1778.  
  1779. end
  1780.  
  1781. end
  1782.  
  1783. end
  1784.  
  1785. end
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791. --------------------------------------------Tabs-------------------------------------------
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797. local General = vgui.Create( "DPanel" )
  1798.  
  1799. General:SetPos( 0, 0 )
  1800.  
  1801. General:SetSize( 480, AceMenu:GetTall() - 40 )
  1802.  
  1803.  
  1804.  
  1805. General.Paint = function() -- Paint function
  1806.  
  1807. surface.SetDrawColor(50, 50, 50 ,255)
  1808.  
  1809. surface.DrawOutlinedRect(0, 0, General:GetWide(), General:GetTall())
  1810.  
  1811. surface.SetDrawColor(0, 0, 0 ,200)
  1812.  
  1813. surface.DrawRect(0, 0, General:GetWide(), General:GetTall())
  1814.  
  1815. surface.SetDrawColor( 50, 50, 90, 255 )
  1816.  
  1817. surface.DrawRect(0, 40, General:GetWide(), 2)
  1818.  
  1819. end
  1820.  
  1821.  
  1822.  
  1823. local Utility = vgui.Create( "DPanel" )
  1824.  
  1825. Utility:SetPos( 0, 0 )
  1826.  
  1827. Utility:SetSize( 480, AceMenu:GetTall() - 40 )
  1828.  
  1829.  
  1830.  
  1831. Utility.Paint = function() -- Paint function
  1832.  
  1833. surface.SetDrawColor(50, 50, 50 ,255)
  1834.  
  1835. surface.DrawOutlinedRect(0, 0, Utility:GetWide(), Utility:GetTall())
  1836.  
  1837. surface.SetDrawColor(0, 0, 0 ,200)
  1838.  
  1839. surface.DrawRect(0, 0, Utility:GetWide(), Utility:GetTall())
  1840.  
  1841. end
  1842.  
  1843.  
  1844.  
  1845. local Botsettings = vgui.Create( "DPanel" )
  1846.  
  1847. Botsettings:SetPos( 0, 0 )
  1848.  
  1849. Botsettings:SetSize( 480, AceMenu:GetTall() - 40 )
  1850.  
  1851.  
  1852.  
  1853. Botsettings.Paint = function() -- Paint function
  1854.  
  1855. surface.SetDrawColor(50, 50, 50 ,255)
  1856.  
  1857. surface.DrawOutlinedRect(0, 0, Botsettings:GetWide(), Botsettings:GetTall())
  1858.  
  1859. surface.SetDrawColor(0, 0, 0 ,200)
  1860.  
  1861. surface.DrawRect(0, 0, Botsettings:GetWide(), Botsettings:GetTall())
  1862.  
  1863. end
  1864.  
  1865.  
  1866.  
  1867. local Debug = vgui.Create( "DPanel" )
  1868.  
  1869. Debug:SetPos( 0, 0 )
  1870.  
  1871. Debug:SetSize( 480, AceMenu:GetTall() - 40 )
  1872.  
  1873.  
  1874.  
  1875. Debug.Paint = function() -- Paint function
  1876.  
  1877. surface.SetDrawColor(50, 50, 50 ,255)
  1878.  
  1879. surface.DrawOutlinedRect(0, 0, Debug:GetWide(), Debug:GetTall())
  1880.  
  1881. surface.SetDrawColor(0, 0, 0 ,200)
  1882.  
  1883. surface.DrawRect(0, 0, Debug:GetWide(), Debug:GetTall())
  1884.  
  1885. if AB.MemoryDebug then
  1886.  
  1887. draw.DrawText( "Visuals Memory Usage: "..AB.MemoryDebug["hud"].."kb", "Default", 10, 530, Color(255,255,255) )
  1888.  
  1889. draw.DrawText( "Logic Core Memory Usage: "..AB.MemoryDebug["logic"].."kb", "Default", 10, 545, Color(255,255,255) )
  1890.  
  1891. draw.DrawText( "Aimbot Core Memory Usage: "..AB.MemoryDebug["aimbot"].."kb", "Default", 10, 560, Color(255,255,255) )
  1892.  
  1893. surface.SetDrawColor(100, 100, 200 ,255)
  1894.  
  1895. surface.DrawRect(250, 532, math.Clamp( AB.MemoryDebug["hud"] * 0.75, 0, 200), 10 )
  1896.  
  1897. surface.DrawRect(250, 547, math.Clamp( AB.MemoryDebug["logic"] * 20, 0, 200), 10 )
  1898.  
  1899. surface.DrawRect(250, 562, math.Clamp( AB.MemoryDebug["aimbot"] * 20, 0, 200), 10 )
  1900.  
  1901. surface.SetDrawColor(150, 150, 250 ,255)
  1902.  
  1903. surface.DrawOutlinedRect(250, 532, 200, 10 )
  1904.  
  1905. surface.DrawOutlinedRect(250, 547, 200, 10 )
  1906.  
  1907. surface.DrawOutlinedRect(250, 562, 200, 10 )
  1908.  
  1909. end
  1910.  
  1911. end
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917. --------------------------------------------Buttons-------------------------------------------
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923. function AB.RefreshConsole()
  1924.  
  1925. if richtext then richtext:Remove() end
  1926.  
  1927. if !ValidPanel(Debug) then return end
  1928.  
  1929. richtext = vgui.Create( "RichText", Debug )
  1930.  
  1931. richtext:SetPos(5, 5)
  1932.  
  1933. richtext:SetSize( 440, AceMenu:GetTall() - 180 )
  1934.  
  1935.  
  1936.  
  1937. for idx, tab in pairs(AB.Debug) do
  1938.  
  1939. richtext:InsertColorChange( tab[2].r, tab[2].g, tab[2].b, 255 )
  1940.  
  1941. richtext:AppendText( tab[1].."\n" )
  1942.  
  1943. end
  1944.  
  1945. end
  1946.  
  1947.  
  1948.  
  1949. timer.Create("ab_refreshconsole", 1, 0, function() AB.RefreshConsole() end)
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955. AB.MakeToggleButton( General, 5, 10, "Vision", "Vision", "Vision Mode")
  1956.  
  1957.  
  1958.  
  1959. AB.MakeSlider( General, 5, 590, 455, "Max Vision Range (Metres)", 0, 2000, "VisionDist" )
  1960.  
  1961.  
  1962.  
  1963. AB.MakeToggleButton( General, 5, 70, "ESP Enabled", "ShowESP", "Show ESP")
  1964.  
  1965. AB.MakeToggleButton( General, 120, 70, "Show Dead Players", "ShowDead", "Show Dead Players")
  1966.  
  1967. AB.MakeToggleButton( General, 235, 70, "Show Friends", "ShowFriends", "Show Friends")
  1968.  
  1969. AB.MakeToggleButton( General, 350, 70, "Radar Colours", "RadarColors", "Coloured players on radar")
  1970.  
  1971. AB.MakeToggleButton( General, 350, 100, "Show Traitors", "ShowTraitors", "Show Traitors (TTT)", "Controls whether the ESP shows known traitors in the TTT gamemode")
  1972.  
  1973. AB.MakeToggleButton( General, 235, 100, "Highlight Targets", "ShowTargets", "Highlight Targets", "Highlights people that are on your targets list")
  1974.  
  1975. AB.MakeToggleButton( General, 120, 100, "Show Admins", "ShowRanks", "Show Admins")
  1976.  
  1977. AB.MakeToggleButton( General, 5, 100, "Show Distance", "ShowDistance", "Show Distance")
  1978.  
  1979. AB.MakeToggleButton( General, 5, 130, "Highlight Props", "ESPProps", "ESP Highlight Props")
  1980.  
  1981. AB.MakeToggleButton( General, 120, 130, "Show Marked Ents", "Entfinder", "ESP Show Marked Ents")
  1982.  
  1983. AB.MakeToggleButton( General, 235, 130, "Show Team Colours", "TeamColors", "Show Team Colours")
  1984.  
  1985. AB.MakeToggleButton( General, 350, 130, "Show Health", "ShowHP", "Show Health")
  1986.  
  1987. AB.MakeToggleButton( General, 5, 490, "Vision Lines", "Vizlines", "Shows which direction players are looking")
  1988.  
  1989. AB.MakeToggleButton( General, 120, 490, "Add Steam Friends", "AutoAddSteamFriends", "Automatically add steam friends to your ESP")
  1990.  
  1991. AB.MakeToggleButton( General, 5, 160, "Show Position", "VSquares", "Show player positions on the esp")
  1992.  
  1993. AB.MakeToggleButton( General, 120, 160, "Show Names", "VNames", "Show player names on the esp")
  1994.  
  1995.  
  1996.  
  1997. AB.MakeToggleButton( General, 5, 190, "Rear Vision Mirror", "Mirror", "Rear Vision Mirror")
  1998.  
  1999.  
  2000.  
  2001. AB.MakeSlider( General, 5, 225, 225, "Mirror X", 0, ScrW(), "MirrorX" )
  2002.  
  2003. AB.MakeSlider( General, 235, 225, 220, "Mirror Y", 0, ScrH(), "MirrorY" )
  2004.  
  2005. AB.MakeSlider( General, 235, 190, 220, "Mirror Size", 0, 60, "MirrorSize" )
  2006.  
  2007. AB.MakeFunctionButton( General, 120, 190, "Mirror Vertical Axis", function()
  2008.  
  2009. if AB.NumberVars.MirrorAxis == 0 then
  2010.  
  2011. if AB.Vars.Notifications then AB.ChatText( "Set mirror axis mode to mimic", Color(255,255,255) ) end
  2012.  
  2013. AB.NumberVars.MirrorAxis = 1
  2014.  
  2015. elseif AB.NumberVars.MirrorAxis == 1 then
  2016.  
  2017. if AB.Vars.Notifications then AB.ChatText( "Set mirror axis mode to reverse", Color(255,255,255) ) end
  2018.  
  2019. AB.NumberVars.MirrorAxis = 2
  2020.  
  2021. else
  2022.  
  2023. if AB.Vars.Notifications then AB.ChatText( "Set mirror axis mode to none", Color(255,255,255) ) end
  2024.  
  2025. AB.NumberVars.MirrorAxis = 0
  2026.  
  2027. end
  2028.  
  2029. end)
  2030.  
  2031.  
  2032.  
  2033. AB.MakeFunctionButton( General, 5, 260, "Toggle Freecam", function()
  2034.  
  2035. AB.Freecam = !AB.Freecam
  2036.  
  2037. AB.ChatText( "Set freecam mode to: "..tostring(AB.Freecam), Color(255,255,255) )
  2038.  
  2039. end, "Hijacks the rear vision mirror and turns it into a ghetto freecam system")
  2040.  
  2041. AB.MakeFunctionButton( General, 120, 260, "Bring Freecam Here", function()
  2042.  
  2043. AB.FreecamCoordinates.pos = LocalPlayer():EyePos()
  2044.  
  2045. AB.FreecamCoordinates.ang = LocalPlayer():EyeAngles()
  2046.  
  2047. AB.ChatText( "Brought freecam to my eye pos", Color(255,255,255) )
  2048.  
  2049. end, "Snaps the freecam to your view position")
  2050.  
  2051. AB.MakeToggleButton( General, 120, 290, "Freecam Is Movable", "FreecamControls", "Freecam controls active")
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057. AB.MakeKeyBinder(General, 400, 260, 50, 20, "FreecamForward", "freecam move forward" )
  2058.  
  2059. AB.MakeKeyBinder(General, 400, 290, 50, 20, "FreecamBack", "freecam move backwards" )
  2060.  
  2061. AB.MakeKeyBinder(General, 235, 275, 50, 20, "FreecamLeft", "freecam turn left" )
  2062.  
  2063. AB.MakeKeyBinder(General, 345, 275, 50, 20, "FreecamRight", "freecam turn right" )
  2064.  
  2065. AB.MakeKeyBinder(General, 290, 260, 50, 20, "FreecamUp", "freecam pitch up" )
  2066.  
  2067. AB.MakeKeyBinder(General, 290, 290, 50, 20, "FreecamDown", "freecam pitch down" )
  2068.  
  2069.  
  2070.  
  2071. AB.MakeToggleButton( General, 5, 320, "Player Radar", "Radar", "Player Radar")
  2072.  
  2073. AB.MakeSlider( General, 120, 320, 165, "Radar Size", 50, 600, "RadarSize" )
  2074.  
  2075. AB.MakeSlider( General, 290, 320, 165, "Radar Zoom", 10, 150, "RadarZoom" )
  2076.  
  2077. AB.MakeSlider( General, 5, 350, 145, "Radar X", 0, ScrW(), "RadarX" )
  2078.  
  2079. AB.MakeSlider( General, 155, 350, 145, "Radar Y", 0, ScrH(), "RadarY" )
  2080.  
  2081. AB.MakeSlider( General, 305, 350, 150, "Rad Alpha", 0, 255, "RadarAlpha" )
  2082.  
  2083.  
  2084.  
  2085. AB.MakeToggleButton( General, 5, 390, "Xray Enabled", "Xray", "X-Ray")
  2086.  
  2087. AB.MakeToggleButton( General, 120, 390, "Xray Players", "XrayPlayers", "Show players on X-Ray")
  2088.  
  2089. AB.MakeToggleButton( General, 235, 390, "Xray Props", "XrayProps", "Show props on X-Ray")
  2090.  
  2091. AB.MakeToggleButton( General, 350, 390, "Xray Marked Ents", "XrayEntfinder", "Show marked entities on X-Ray")
  2092.  
  2093. AB.MakeToggleButton( General, 5, 420, "Xray Solid Chams", "XraySolid", "X-Ray Solid Chams")
  2094.  
  2095. AB.MakeSlider( General, 5, 450, 465, "Xray Maximum Distance (metres)", 0, 2000, "XrayDistance" )
  2096.  
  2097. AB.MakeToggleButton( General, 120, 420, "Xray Colours", "NoChamColours", "Xray Colours")
  2098.  
  2099. AB.MakeToggleButton( General, 235, 420, "Xray Bright Colours", "PKChams", "Xray Bright Chams")
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105. AB.MakeToggleButton( Utility, 5, 480, "Witness Detector", "WitnessDetector", "Witness Detector")
  2106.  
  2107. AB.MakeToggleButton( Utility, 120, 480, "Spectator Detector", "SpectatorDetector", "Spectator Detector")
  2108.  
  2109. AB.MakeToggleButton( General, 120, 550, "Crosshair", "Crosshair", "Crosshair")
  2110.  
  2111. AB.MakeToggleButton( General, 235, 490, "Draw 3D BBox", "BoundingBox3d", "3D Bounding Boxes on Players")
  2112.  
  2113. AB.MakeFunctionButton( General, 235, 550, "Wraith Vision", function() AB.ToggleWraithVision() end)
  2114.  
  2115. AB.MakeToggleButton( General, 120, 520, "PK Player Beams", "PKPlayerBeams", "Propkill Playertrace Beams")
  2116.  
  2117. AB.MakeToggleButton( General, 235, 520, "PK Prop Beams", "PKPropBeams", "Propkill Proptrace Beams")
  2118.  
  2119. AB.MakeToggleButton( General, 350, 520, "PK Vertical Beams", "PKVerticalBeams", "Propkill Vertical Beams")
  2120.  
  2121. AB.MakeToggleButton( General, 5, 550, "PK Show Velocity", "PKVelocity", "Propkill Velocity Leaders")
  2122.  
  2123. AB.MakeToggleButton( General, 350, 550, "Clientside Flashlight", "CSFlashlight", "Clientside Flashlight")
  2124.  
  2125.  
  2126.  
  2127. AB.MakeFunctionButton( General, 350, 10, "Players Menu", function() AB.PlayerMenu() end)
  2128.  
  2129. AB.MakeFunctionButton( General, 120, 10, "Cycle Color Scheme", function()
  2130.  
  2131. if AB.NumberVars.ColorScheme < #AB.DefaultSchemes then
  2132.  
  2133. AB.NumberVars.ColorScheme = AB.NumberVars.ColorScheme + 1
  2134.  
  2135. else
  2136.  
  2137. AB.NumberVars.ColorScheme = 1
  2138.  
  2139. end
  2140.  
  2141.  
  2142.  
  2143. AB.ChangeColorScheme( AB.NumberVars.ColorScheme )
  2144.  
  2145. end)
  2146.  
  2147. AB.MakeFunctionButton( General, 235, 10, "Ent marker menu", AB.EntMarkerMenu )
  2148.  
  2149.  
  2150.  
  2151. AB.MakeToggleButton( Utility, 5, 10, "Autoclick", "Autoclick", "Auto Mouse Click", "Make your mouse buttons fire at the maximum possible speed when holding them down")
  2152.  
  2153. AB.MakeToggleButton( Utility, 120, 10, "Bhop", "Bhop", "Auto Bhop")
  2154.  
  2155. AB.MakeToggleButton( Utility, 235, 10, "Rope-Nado", "RopeStorm", "Rope-Nado", "Right click with rope tool out to spam a fuckton of ropes")
  2156.  
  2157. AB.MakeToggleButton( Utility, 350, 10, "Triggerbot", "Triggerbot", "Triggerbot", "Automatically pull the trigger when you look at somebody")
  2158.  
  2159. AB.MakeToggleButton( Utility, 5, 40, "Third Person", "Thirdperson", "Third Person Camera")
  2160.  
  2161. --AB.MakeToggleButton( Utility, 5, 120, "Camera Spam", "CameraSpam", "Camera Spam")
  2162.  
  2163. AB.MakeToggleButton( Utility, 120, 120, "No Recoil", "NoRecoil", "No Recoil", "Prevents weapons from changing your eye angles")
  2164.  
  2165. AB.MakeToggleButton( Utility, 235, 120, "Flashlight Spam", "FlashlightSpam", "Flashlight Spam", "Press F to party hard")
  2166.  
  2167. AB.MakeSlider( Utility, 120, 40, 160, "TPS Distance", 0, 1000, "TPSDistance" )
  2168.  
  2169. AB.MakeSlider( Utility, 285, 40, 175, "TPS Offset", -100, 100, "TPSOffset" )
  2170.  
  2171.  
  2172.  
  2173. AB.MakeToggleButton( Utility, 5, 90, "Name Changer Script", "NameStealer", "Name Change Script", "Enables or disabled the name change helper script, corrects malfunctions present in odiums name change command")
  2174.  
  2175. AB.MakeFunctionButton( Utility, 350, 90, "Disable NameStealer", AB.NameStealerShutoff )
  2176.  
  2177.  
  2178.  
  2179. AB.MakeFunctionButton( Utility, 5, 150, "Inspect your Gun", AB.GunMenu, "Show a massive TLDR page of information about the gun in your hands" )
  2180.  
  2181. AB.MakeFunctionButton( Utility, 120, 150, "Entity Scanner", AB.ToggleEntityScanner, "Get detailed information and easily perform actions on entities under your cursor (use C menu for best effect)" )
  2182.  
  2183.  
  2184.  
  2185. AB.MakeToggleButton( Utility, 350, 120, "Notify Kills", "NotifyKills", "Notify Kills in Chat", "Prints kills to your chat window")
  2186.  
  2187. --AB.Vars.NotifyKills
  2188.  
  2189.  
  2190.  
  2191. AB.MakeToggleButton( Utility, 5, 210, "Chat Spammer", "ChatSpam", "Chat Spammer", "Spam chat and piss everybody off")
  2192.  
  2193. AB.MakeToggleButton( Utility, 120, 210, "Auto OOC", "ChatSpamOOC", "Auto OOC chatspam", "Automatically make your chat spam in OOC mode in darkrp and most other rp gamemodes")
  2194.  
  2195. AB.MakeToggleButton( Utility, 235, 210, "Bind Mode", "ChatSpamBind", "Bind Mode (L ALT)", "You only chatspam when left alt is pressed")
  2196.  
  2197. --AB.MakeToggleButton( Utility, 350, 210, "Random Insults", "ChatSpamInsult", "Chatspam Random Insults", "Shower randomly generated abuse on everybody")
  2198.  
  2199. AB.MakeToggleButton( Utility, 350, 180, "/PM Mode", "ChatSpamPM", "/PM Spam Mode", "Spams /pm messages to everybody on the server")
  2200.  
  2201. AB.MakeToggleButton( Utility, 350, 210, "/PM Admins", "ChatSpamPMAdmins", "/PM Spam Target Admins", "Should we /pm spam admins?")
  2202.  
  2203.  
  2204.  
  2205. AB.MakeFunctionButton( Utility, 235, 180, "Chatspam Help", function()
  2206.  
  2207. AB.ChatText( "Printed chatspam formatting info to console", Color(255,255,255) )
  2208.  
  2209. print( "---- CHAT SPAMMER PATTERN MATCHES ----" )
  2210.  
  2211. print( "@1 = Random insult" )
  2212.  
  2213. print( "@2 = Angry insult" )
  2214.  
  2215. print( "@3 = Admin insult" )
  2216.  
  2217. print( "@4 = CSGO skid gibberish" )
  2218.  
  2219. print( "@opener = Insult opening line" )
  2220.  
  2221. print( "@joiner = Insult joining line" )
  2222.  
  2223. print( "@slur = Random racist/sexist/fucking hilarious slur" )
  2224.  
  2225. print( "PUT THESE IN THE CHATSPAMMER TEXT FIELD AND THEY WILL BE AUTOMATICALLY FORMATTED INTO RANDOMLY GENERATED TEXT")
  2226.  
  2227. end, "HALP HOW I USE DIS" )
  2228.  
  2229.  
  2230.  
  2231. AB.MakeFunctionButton( Utility, 5, 300, "Dodge RP Admins", AB.InnocentRoleplayer, "You got seen doing something shifty, now its time to get a new identity\nSuicides and randomizes your rpname, job and player colours\nBind a key to ace_innocent_roleplayer to trigger quickly" )
  2232.  
  2233. AB.MakeFunctionButton( Utility, 120, 300, "Random RPname", AB.GenerateRPName, "Like you can be arsed thinking up a good rpname, this one will generate a random one for you" )
  2234.  
  2235. AB.MakeFunctionButton( Utility, 235, 300, "RandomRPname (fem)", AB.GenerateRPNameFemale, "You want to become a girl so you can take cocks up your ass and still call yourself straight" )
  2236.  
  2237. AB.MakeToggleButton( Utility, 5, 330, "RP Demote Spam", "DemoteSpam", "Spam /Demote requests", "Demote everybody on the server from their shitty jobs")
  2238.  
  2239. AB.MakeToggleButton( Utility, 120, 330, "RP Wanted Spam", "WantedSpam", "Spam /Wanted requests", "Make everybody wanted by the police")
  2240.  
  2241. AB.MakeToggleButton( Utility, 235, 330, "ULX Vkick Spam", "ULXVotekickSpam", "Spam ulx votekicks", "Votekick everybody on the server :^)")
  2242.  
  2243. AB.MakeToggleButton( Utility, 350, 330, "ULX Vban Spam", "ULXVotebanSpam", "Spam ulx votebans", "Voteban everybody on the server :^)")
  2244.  
  2245. AB.MakeToggleButton( Utility, 5, 360, "Bhop Auto Strafe", "BhopAutostrafe", "Bhop Auto Strafe", "Presses A and D for you when you move your mouse, you lazy fuck")
  2246.  
  2247. AB.MakeToggleButton( Utility, 120, 360, "Kill Taunts", "KillTaunts", "Kill Taunts", "Let acebot automatically talk smack for you whenever you kill somebody")
  2248.  
  2249. AB.MakeToggleButton( Utility, 235, 360, "Death Taunts", "DeathTaunts", "Death Taunts", "Automatic chat rage when you die")
  2250.  
  2251.  
  2252.  
  2253. AB.MakeFunctionButton( Utility, 5, 450, "Set Base", function() RunConsoleCommand("ace_base_set") end, "Set a home base location to warn you if people go near it" )
  2254.  
  2255. AB.MakeFunctionButton( Utility, 120, 450, "Remove Base", function() RunConsoleCommand("ace_base_remove") end, "Delete your base" )
  2256.  
  2257. AB.MakeToggleButton( Utility, 350, 420, "Keypad Jew", "KeypadJew", "Keypad Code Stealer", "Your a sneaky jew stealing peoples keypad codes and busting into their base")
  2258.  
  2259.  
  2260.  
  2261. AB.MakeToggleButton( Utility, 5, 420, "RP Arrest Dodger", "DodgeArrest", "Get out of jail free card", "Automatically suicide if somebody tries to hit you with an arrest baton")
  2262.  
  2263. AB.MakeToggleButton( Utility, 120, 420, "New RPname on Death", "NewLifeRule", "Choose new RPname when killed", "Make things extra confusing for cuntmins")
  2264.  
  2265. --AB.MakeToggleButton( Utility, 235, 420, "Dodge Physgun", "DontTouchMeThere", "Suicide When PhysGunned", "Don't touch me there, that's my private place")
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271. AB.MakeToggleButton( Botsettings, 5, 10, "Toggle Aimbot", "Aimbot", "Aimbot", "Sup pussy ass white boi how bout i come to ur base and fuck ur girl u little bitch, imma shoot lazers all up in this place pew pew nigga")
  2272.  
  2273. AB.MakeToggleButton( Botsettings, 120, 10, "Snap on Shoot Only", "SnapOnFire", "Aimbot only snaps when firing", "Makes things a little bit more sneeki breeki")
  2274.  
  2275. AB.MakeToggleButton( Botsettings, 5, 40, "Auto Shoot", "AutoShoot", "Aimbot Auto-Shoot", "Your aimbot is now doing all the work for you, you may as well afk and masturbate")
  2276.  
  2277. AB.MakeToggleButton( Botsettings, 235, 70, "Auto Trigger", "AutoTrigger", "Aimbot Auto-Trigger", "Spams the trigger on semi auto weapons when locked on and holding left click")
  2278.  
  2279. AB.MakeToggleButton( Botsettings, 120, 40, "Snap on Bind Only", "AimbotBindMode", "Aimbot snap only when bind pressed", "Extra protection against accidentally fucking yourself over when trying to play >legit")
  2280.  
  2281. --AB.MakeToggleButton( Botsettings, 235, 40, "Shoot Through Walls", "AimbotShootThroughWalls", "Aimbot shoot through walls", "Target people through walls?")
  2282.  
  2283. AB.MakeToggleButton( Botsettings, 235, 40, "M9K Wallbanger", "AimbotWallbanger", "Aimbot shoot through walls (m9k)", "Lock on to people if the current gun is able to penetrate the wall/object they are hiding behind")
  2284.  
  2285. AB.MakeToggleButton( Botsettings, 235, 10, "Draw Target Position", "PreviewTarget", "Draw Target Lock Position", "Shows the current/next position the aimbot is locking on to")
  2286.  
  2287. AB.MakeToggleButton( Botsettings, 350, 10, "Compensate Spread", "CompSpread", "Compensate Bullet Spread", "Basically cac undetected nospread. Works with m9k, hl2 weps, ttt weps and some simple weapon bases. Does not work with fas2 or cw2")
  2288.  
  2289. AB.MakeToggleButton( Botsettings, 350, 40, "Silent Aim", "SilentAim", "Silent Aim", "Makes it far less obvious that you are aimbotting")
  2290.  
  2291. AB.MakeToggleButton( Botsettings, 350, 70, "Adaptive Targeting", "AimbotAdaptiveTarget", "Aimbot Adaptive Targeting", "Shoot at any part of their body that is exposed, not just their head. Absolute rape when paired with comp spread and wallbanger")
  2292.  
  2293.  
  2294.  
  2295. AB.MakeToggleButton( Botsettings, 5, 160, "Target Friends", "TargetFriends", "Aimbot Target Friends", "Do you really want to betray your buddies like this? :(")
  2296.  
  2297. AB.MakeToggleButton( Botsettings, 120, 160, "Target Admins", "TargetAdmins", "Aimbot Target Admins", "Milk some darkrp admin tears")
  2298.  
  2299. AB.MakeToggleButton( Botsettings, 235, 160, "Target Same Team", "TargetSameTeam", "Aimbot Target Same Team", "Do you want to betray your team?")
  2300.  
  2301. AB.MakeToggleButton( Botsettings, 350, 160, "Target Highlighted", "TargetHighlighted", "Aimbot Target Highlighted targets", "For killing those special high priority targets")
  2302.  
  2303. AB.MakeToggleButton( Botsettings, 120, 190, "Target Noclippers", "TargetNoclippers", "Aimbot Target People in Noclip", "You usually can't kill them anyway so why bother?")
  2304.  
  2305. AB.MakeToggleButton( Botsettings, 5, 190, "Prefer Headshots", "AimbotTargetMode", "Aimbot Target Heads", "Target heads or go straight for centre of mass?")
  2306.  
  2307. AB.MakeToggleButton( Botsettings, 235, 190, "Sticky Targeting", "AimbotStickyLock", "Sticky Targeting", "Aimbot will not switch target until the current target is dead, out of FOV or no longer visible")
  2308.  
  2309. --AB.MakeToggleButton( Botsettings, 5, 190, "Prefer Headshots", "AimbotTargetMode", "Aimbot Target Heads", "Target heads or go straight for centre of mass?")
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315. local tttt = vgui.Create( "DLabel", Botsettings )
  2316.  
  2317. tttt:SetPos( 25, 228 )
  2318.  
  2319. tttt:SetText( "Aimbot Bind Key:" )
  2320.  
  2321. tttt:SizeToContents()
  2322.  
  2323.  
  2324.  
  2325. AB.MakeKeyBinder( Botsettings, 120, 220, 110, 30, "AimbotBindKey", "aimbot" )
  2326.  
  2327.  
  2328.  
  2329. AB.MakeSlider( Botsettings, 5, 70, 210, "Smooth Aim", 0, 50, "AimbotSmooth" )
  2330.  
  2331. AB.MakeSlider( Botsettings, 5, 100, 210, "Max Distance", 0, 9999, "AimbotDist" )
  2332.  
  2333. AB.MakeSlider( Botsettings, 225, 100, 220, "Targeting FOV", 0.1, 180, "AimbotMaxFOV" )
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339. local TextEntry = vgui.Create( "DTextEntry", Utility )
  2340.  
  2341. TextEntry:SetPos( 120, 90 )
  2342.  
  2343. TextEntry:SetSize( 195, 25 )
  2344.  
  2345. TextEntry:SetText( AB.NameStealName )
  2346.  
  2347. TextEntry.OnEnter = function( self )
  2348.  
  2349. AB.NameStealName = self:GetValue()
  2350.  
  2351. if AB.Vars.Notifications then AB.ChatText( "Set my name to: "..self:GetValue(), Color(255,255,255) ) end
  2352.  
  2353. end
  2354.  
  2355.  
  2356.  
  2357. local TextEntry = vgui.Create( "DTextEntry", Utility )
  2358.  
  2359. TextEntry:SetPos( 5, 240 )
  2360.  
  2361. TextEntry:SetSize( 450, 25 )
  2362.  
  2363. TextEntry:SetText( AB.ChatSpamText )
  2364.  
  2365. TextEntry.OnEnter = function( self )
  2366.  
  2367. AB.ChatSpamText = self:GetValue()
  2368.  
  2369. if AB.Vars.Notifications then AB.ChatText( "Set my chatspam message to: "..self:GetValue(), Color(255,255,255) ) end
  2370.  
  2371. end
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377. AB.MakeFunctionButton( Debug, 5, AceMenu:GetTall() - 110, "Clear Console", function() table.Empty(AB.Debug) end)
  2378.  
  2379. AB.MakeFunctionButton( Debug, 120, AceMenu:GetTall() - 110, "Print Changelog", function()
  2380.  
  2381. AB.DebugLog( "", Color(0,0,0) )
  2382.  
  2383. AB.DebugLog( "Acebot current version: "..AB.Version, Color(155,255,155) )
  2384.  
  2385. AB.DebugLog( "", Color(0,0,0) )
  2386.  
  2387. local tt = 200
  2388.  
  2389. for k, v in SortedPairs(AB.Changelog, false) do AB.DebugLog( v, Color(tt, tt, tt + 30) ) tt = math.Clamp(tt - 10, 100, 200) end
  2390.  
  2391. end)
  2392.  
  2393. --AB.MakeFunctionButton( Debug, 235, Menu:GetTall() - 110, "Game Event Logging", function() end)
  2394.  
  2395. --AB.MakeFunctionButton( Debug, 350, Menu:GetTall() - 110, "Extensive Logging", function() end)
  2396.  
  2397.  
  2398.  
  2399. PropertySheet:AddSheet( "Vision", General, "icon16/zoom.png", false, false, "ESP/Xray/HUD settings" )
  2400.  
  2401. --PropertySheet:AddSheet( "Vision Advanced", General2, "icon16/zoom_in.png", false, false, "ESP/Xray/HUD settings" )
  2402.  
  2403. PropertySheet:AddSheet( "Utility", Utility, "icon16/wrench.png", false, false, "Tools and utilities" )
  2404.  
  2405. PropertySheet:AddSheet( "Aimbot", Botsettings, "icon16/bomb.png", false, false, "Aimbot settings" )
  2406.  
  2407. PropertySheet:AddSheet( "Exploit", Exploit, "icon16/bug.png", false, false, "Lua Exploit settings" )
  2408.  
  2409. PropertySheet:AddSheet( "Backdoor", Backdoor, "icon16/door_in.png", false, false, "Control panel for the Wraithnet/HTX serverside backdoor" )
  2410.  
  2411. PropertySheet:AddSheet( "Debug", Debug, "icon16/printer.png", false, false, "Acebot debug settings" )
  2412.  
  2413.  
  2414.  
  2415. end
  2416.  
  2417. concommand.Add("ace_menu", AB.Menu)
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423. ------------------------------------------------------------------------DEBUG CONSOLE SHIT--------------------------------------------------------------------------------------
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431. function AB.DebugLog( str, col )
  2432.  
  2433. table.insert(AB.Debug, {str, col})
  2434.  
  2435. if #AB.Debug > 40 then
  2436.  
  2437. table.remove( AB.Debug, 1 )
  2438.  
  2439. end
  2440.  
  2441. end
  2442.  
  2443.  
  2444.  
  2445. ------------------------------------------------------------------------ENT MARKER MENU--------------------------------------------------------------------------------------
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461. local OtherEnts = {}
  2462.  
  2463.  
  2464.  
  2465. function AB.EntMarkerMenu()
  2466.  
  2467. if EMenu then return end
  2468.  
  2469.  
  2470.  
  2471. table.Empty(OtherEnts)
  2472.  
  2473. for k,v in pairs(ents.GetAll()) do
  2474.  
  2475. local addToAllEnts = true
  2476.  
  2477.  
  2478.  
  2479. for i,p in pairs(AB.MarkedEnts) do
  2480.  
  2481. if p == v:GetClass() then
  2482.  
  2483. addToAllEnts = false
  2484.  
  2485. end
  2486.  
  2487. end
  2488.  
  2489.  
  2490.  
  2491. for i,p in pairs(OtherEnts) do
  2492.  
  2493. if p == v:GetClass() then
  2494.  
  2495. addToAllEnts = false
  2496.  
  2497. end
  2498.  
  2499. end
  2500.  
  2501.  
  2502.  
  2503. if addToAllEnts then
  2504.  
  2505. table.insert(OtherEnts, v:GetClass())
  2506.  
  2507. end
  2508.  
  2509. end
  2510.  
  2511.  
  2512.  
  2513. local EMenu = vgui.Create("DFrame")
  2514.  
  2515. EMenu:SetSize(500,485)
  2516.  
  2517. EMenu:SetTitle("Entity marker menu")
  2518.  
  2519. EMenu:Center()
  2520.  
  2521. EMenu:MakePopup()
  2522.  
  2523.  
  2524.  
  2525. EMenu.Paint = function()
  2526.  
  2527. surface.SetDrawColor( Color(50, 50, 90, 255) )
  2528.  
  2529. surface.DrawRect( 0, 0, EMenu:GetWide(), EMenu:GetTall() )
  2530.  
  2531. surface.SetDrawColor( Color(155, 155, 155, 255) )
  2532.  
  2533. surface.DrawOutlinedRect( 0, 0, EMenu:GetWide(), EMenu:GetTall() )
  2534.  
  2535. surface.DrawOutlinedRect( 1, 1, EMenu:GetWide() - 2, EMenu:GetTall() - 2 )
  2536.  
  2537. surface.SetDrawColor( Color(0, 0, 0, 200) )
  2538.  
  2539. surface.DrawRect( 10, 25, EMenu:GetWide() - 20, EMenu:GetTall() - 35 )
  2540.  
  2541. end
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547. DermaList = vgui.Create( "DPanelList", EMenu )
  2548.  
  2549. DermaList:SetPos( 25,35 )
  2550.  
  2551. DermaList:SetSize( 500, 400 )
  2552.  
  2553. DermaList:SetSpacing( 75 )
  2554.  
  2555. DermaList:EnableHorizontal( false )
  2556.  
  2557. DermaList:EnableVerticalScrollbar( true )
  2558.  
  2559.  
  2560.  
  2561. local SelectedEnts = vgui.Create("DListView")
  2562.  
  2563. SelectedEnts:SetSize(220, 335)
  2564.  
  2565. SelectedEnts:SetPos(0, 0)
  2566.  
  2567. SelectedEnts:SetMultiSelect(false)
  2568.  
  2569. SelectedEnts:AddColumn("Ents to show")
  2570.  
  2571. for k,v in SortedPairs(AB.MarkedEnts, false) do
  2572.  
  2573. SelectedEnts:AddLine(v)
  2574.  
  2575. end
  2576.  
  2577. SelectedEnts.DoDoubleClick = function(parent, index, list)
  2578.  
  2579. table.remove(AB.MarkedEnts, index)
  2580.  
  2581. EMenu:rebuildlists()
  2582.  
  2583. end
  2584.  
  2585. DermaList:Add(SelectedEnts)
  2586.  
  2587.  
  2588.  
  2589. local AllEnts = vgui.Create("DListView")
  2590.  
  2591. AllEnts:SetSize(220, 335)
  2592.  
  2593. AllEnts:SetPos(230, 0)
  2594.  
  2595. AllEnts:SetMultiSelect(false)
  2596.  
  2597. AllEnts:AddColumn("Ents not to show")
  2598.  
  2599. for k,v in SortedPairs(OtherEnts, false) do
  2600.  
  2601. AllEnts:AddLine(v)
  2602.  
  2603. end
  2604.  
  2605. AllEnts.DoDoubleClick = function(parent, index, panel )
  2606.  
  2607. table.insert(AB.MarkedEnts, OtherEnts[index])
  2608.  
  2609. EMenu:rebuildlists()
  2610.  
  2611. end
  2612.  
  2613. DermaList:Add(AllEnts)
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619. function EMenu:rebuildlists()
  2620.  
  2621. table.Empty(OtherEnts)
  2622.  
  2623. for k,v in pairs(ents.GetAll()) do
  2624.  
  2625. local addToAllEnts = true
  2626.  
  2627.  
  2628.  
  2629. for i,p in pairs(AB.MarkedEnts) do
  2630.  
  2631. if p == v:GetClass() then
  2632.  
  2633. addToAllEnts = false
  2634.  
  2635. end
  2636.  
  2637. end
  2638.  
  2639.  
  2640.  
  2641. for i,p in pairs(OtherEnts) do
  2642.  
  2643. if p == v:GetClass() then
  2644.  
  2645. addToAllEnts = false
  2646.  
  2647. end
  2648.  
  2649. end
  2650.  
  2651.  
  2652.  
  2653. if addToAllEnts then
  2654.  
  2655. table.insert(OtherEnts, v:GetClass())
  2656.  
  2657. end
  2658.  
  2659. end
  2660.  
  2661.  
  2662.  
  2663. AllEnts:Clear()
  2664.  
  2665. SelectedEnts:Clear()
  2666.  
  2667. for k,v in SortedPairs(OtherEnts, false) do
  2668.  
  2669. AllEnts:AddLine( v )
  2670.  
  2671. end
  2672.  
  2673. for k,v in SortedPairs(AB.MarkedEnts, false) do
  2674.  
  2675. SelectedEnts:AddLine( v )
  2676.  
  2677. end
  2678.  
  2679. end
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685. AB.MakeFunctionButton( EMenu, 25, 380, "Find all Printers", function()
  2686.  
  2687. for k,v in pairs(ents.GetAll()) do
  2688.  
  2689. if string.find(v:GetClass(), "print") and !table.HasValue(AB.MarkedEnts, v:GetClass()) then
  2690.  
  2691. table.insert(AB.MarkedEnts, v:GetClass())
  2692.  
  2693. end
  2694.  
  2695. end
  2696.  
  2697. EMenu:rebuildlists()
  2698.  
  2699. end, "Finds everything that looks like a money printer")
  2700.  
  2701.  
  2702.  
  2703. AB.MakeFunctionButton( EMenu, 140, 380, "Find all Weapons", function()
  2704.  
  2705. for k,v in pairs(ents.GetAll()) do
  2706.  
  2707. if (string.find(v:GetClass(), "weap") or string.find(v:GetClass(), "fas2") or string.find(v:GetClass(), "m9k")) and !table.HasValue(AB.MarkedEnts, v:GetClass()) then
  2708.  
  2709. table.insert(AB.MarkedEnts, v:GetClass())
  2710.  
  2711. end
  2712.  
  2713. end
  2714.  
  2715. EMenu:rebuildlists()
  2716.  
  2717. end, "Finds everything that looks like a weapon")
  2718.  
  2719.  
  2720.  
  2721. AB.MakeFunctionButton( EMenu, 255, 380, "Find all Vehicles", function()
  2722.  
  2723. for k,v in pairs(ents.GetAll()) do
  2724.  
  2725. if v:IsVehicle() and !table.HasValue(AB.MarkedEnts, v:GetClass()) then
  2726.  
  2727. table.insert(AB.MarkedEnts, v:GetClass())
  2728.  
  2729. end
  2730.  
  2731. end
  2732.  
  2733. EMenu:rebuildlists()
  2734.  
  2735. end, "Finds everything that looks like a vehicle")
  2736.  
  2737.  
  2738.  
  2739. AB.MakeFunctionButton( EMenu, 370, 380, "Find all Loot", function()
  2740.  
  2741. for k,v in pairs(ents.GetAll()) do
  2742.  
  2743. if (string.find(v:GetClass(), "item") or string.find(v:GetClass(), "loot")) and !table.HasValue(AB.MarkedEnts, v:GetClass()) then
  2744.  
  2745. table.insert(AB.MarkedEnts, v:GetClass())
  2746.  
  2747. end
  2748.  
  2749. end
  2750.  
  2751. EMenu:rebuildlists()
  2752.  
  2753. end, "Finds everything that looks like loot items (generally only useful for gmod dayz, after the end etc)")
  2754.  
  2755.  
  2756.  
  2757. AB.MakeFunctionButton( EMenu, 25, 410, "Find all RP Goodies", function()
  2758.  
  2759. for k,v in pairs(ents.GetAll()) do
  2760.  
  2761. if v:GetClass() == "spawned_shipment" or v:GetClass() == "spawned_money" or v:GetClass() == "spawned_weapon" or v:GetClass() == "spawned_ammo" or v:GetClass() == "spawned_food" and !table.HasValue(AB.MarkedEnts, v:GetClass()) then
  2762.  
  2763. table.insert(AB.MarkedEnts, v:GetClass() )
  2764.  
  2765. end
  2766.  
  2767. end
  2768.  
  2769. EMenu:rebuildlists()
  2770.  
  2771. end, "Finds all darkrp goodies (guns, money, shipments etc)")
  2772.  
  2773.  
  2774.  
  2775. AB.MakeFunctionButton( EMenu, 370, 410, "Clear List", function()
  2776.  
  2777. AB.MarkedEnts = {}
  2778.  
  2779. EMenu:rebuildlists()
  2780.  
  2781. end, "Clears the entfinder list")
  2782.  
  2783.  
  2784.  
  2785. local turd = vgui.Create( "DLabel", EMenu )
  2786.  
  2787. turd:SetPos( 25, 447 )
  2788.  
  2789. turd:SetText( "Search for classes: " )
  2790.  
  2791. turd:SizeToContents()
  2792.  
  2793.  
  2794.  
  2795. local target4 = vgui.Create( "DTextEntry", EMenu )
  2796.  
  2797. target4:SetPos( 125, 442 )
  2798.  
  2799. target4:SetSize( 255, 25 )
  2800.  
  2801. target4:SetText( "" )
  2802.  
  2803. target4.OnChange = function( self )
  2804.  
  2805. local nam = self:GetValue()
  2806.  
  2807. if nam == "" then
  2808.  
  2809. AB.MarkedEnts = {}
  2810.  
  2811. EMenu:rebuildlists()
  2812.  
  2813. return
  2814.  
  2815. end
  2816.  
  2817. local namtab = string.Explode( ", ", nam )
  2818.  
  2819. AB.MarkedEnts = {}
  2820.  
  2821. for _, en in pairs( ents.GetAll() ) do
  2822.  
  2823. for _, s in pairs( namtab ) do
  2824.  
  2825. if string.find( string.lower( en:GetClass() ), s, 1, true ) then
  2826.  
  2827. if !table.HasValue( AB.MarkedEnts, en:GetClass() ) then table.insert( AB.MarkedEnts, en:GetClass() ) end
  2828.  
  2829. end
  2830.  
  2831. end
  2832.  
  2833. end
  2834.  
  2835. EMenu:rebuildlists()
  2836.  
  2837. end
  2838.  
  2839.  
  2840.  
  2841. end
  2842.  
  2843. concommand.Add("ace_ents", AB.EntMarkerMenu)
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851. ------------------------------------------------------------------------PLAYERS MENU--------------------------------------------------------------------------------------
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857. function AB.PlayerMenu()
  2858.  
  2859. if PMenu then return end
  2860.  
  2861.  
  2862.  
  2863. local PMenu = vgui.Create("DFrame")
  2864.  
  2865. PMenu:SetSize(590,420)
  2866.  
  2867. PMenu:SetTitle("Players menu")
  2868.  
  2869. PMenu:Center()
  2870.  
  2871. PMenu:MakePopup()
  2872.  
  2873.  
  2874.  
  2875. PMenu.Paint = function()
  2876.  
  2877. surface.SetDrawColor( Color(50, 50, 90, 255) )
  2878.  
  2879. surface.DrawRect( 0, 0, PMenu:GetWide(), PMenu:GetTall() )
  2880.  
  2881. surface.SetDrawColor( Color(155, 155, 155, 255) )
  2882.  
  2883. surface.DrawOutlinedRect( 0, 0, PMenu:GetWide(), PMenu:GetTall() )
  2884.  
  2885. surface.DrawOutlinedRect( 1, 1, PMenu:GetWide() - 2, PMenu:GetTall() - 2 )
  2886.  
  2887. surface.SetDrawColor( Color(0, 0, 0, 200) )
  2888.  
  2889. surface.DrawRect( 10, 25, PMenu:GetWide() - 20, PMenu:GetTall() - 35 )
  2890.  
  2891. end
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897. local Plist = vgui.Create( "DPanelList", PMenu )
  2898.  
  2899. Plist:SetSize( 560, 370 )
  2900.  
  2901. Plist:SetPadding( 5 )
  2902.  
  2903. Plist:SetSpacing( 5 )
  2904.  
  2905. Plist:EnableHorizontal( false )
  2906.  
  2907. Plist:EnableVerticalScrollbar( true )
  2908.  
  2909. Plist:SetPos( 10, 25 )
  2910.  
  2911. Plist:SetName( "" )
  2912.  
  2913.  
  2914.  
  2915. for k, v in pairs( player.GetAll() ) do
  2916.  
  2917. if v == LocalPlayer() then continue end
  2918.  
  2919.  
  2920.  
  2921. local plypanel2 = vgui.Create( "DPanel" )
  2922.  
  2923. plypanel2:SetPos( 0, 0 )
  2924.  
  2925. plypanel2:SetSize( 480, 40 )
  2926.  
  2927. plypanel2.Paint = function() -- Paint function
  2928.  
  2929. draw.RoundedBoxEx(8,1,1,plypanel2:GetWide(),plypanel2:GetTall(),Color(0, 0, 0, 150), false, false, false, false)
  2930.  
  2931. surface.SetDrawColor(Color(50, 50, 90, 255))
  2932.  
  2933. surface.DrawOutlinedRect(1, 1, plypanel2:GetWide() - 1 , plypanel2:GetTall() - 1)
  2934.  
  2935. end
  2936.  
  2937.  
  2938.  
  2939. local plyname = vgui.Create( "DLabel", plypanel2 )
  2940.  
  2941. plyname:SetPos( 15, 5 )
  2942.  
  2943. plyname:SetFont( "Trebuchet18" )
  2944.  
  2945. plyname:SetColor( team.GetColor(v:Team()) )
  2946.  
  2947. plyname:SetText( "Name: "..v:Nick() )
  2948.  
  2949. plyname:SetSize(180, 15)
  2950.  
  2951.  
  2952.  
  2953. if AB.GetRank(v) != ( "user" or "guest" or "player" ) then
  2954.  
  2955. local rtxt = vgui.Create( "DLabel", plypanel2 )
  2956.  
  2957. rtxt:SetPos( 15, 20 )
  2958.  
  2959. rtxt:SetFont( "Trebuchet18" )
  2960.  
  2961. rtxt:SetColor( Color(255,100,0,255) )
  2962.  
  2963. rtxt:SetText( "Rank: "..AB.GetRank(v) )
  2964.  
  2965. rtxt:SetSize(180, 15)
  2966.  
  2967. end
  2968.  
  2969.  
  2970.  
  2971. local faggot = vgui.Create("DButton", plypanel2)
  2972.  
  2973. faggot:SetSize( 45, 25 )
  2974.  
  2975. faggot:SetPos( 250, 8 )
  2976.  
  2977. faggot:SetText("Profile")
  2978.  
  2979. faggot:SetTextColor(Color(255, 255, 255, 255))
  2980.  
  2981. faggot.Paint = function(panel, w, h)
  2982.  
  2983. surface.SetDrawColor(100, 100, 200 ,255)
  2984.  
  2985. surface.DrawOutlinedRect(0, 0, w, h)
  2986.  
  2987. surface.SetDrawColor(0, 0, 50 ,155)
  2988.  
  2989. surface.DrawRect(0, 0, w, h)
  2990.  
  2991. end
  2992.  
  2993. faggot.DoClick = function()
  2994.  
  2995. AB.ChatText( "Opened steam profile of: "..v:Nick().." ("..v:SteamID()..")", Color(255,255,255) )
  2996.  
  2997. v:ShowProfile()
  2998.  
  2999. surface.PlaySound("buttons/button7.wav")
  3000.  
  3001. end
  3002.  
  3003.  
  3004.  
  3005. local faggot = vgui.Create("DButton", plypanel2)
  3006.  
  3007. faggot:SetSize( 45, 25 )
  3008.  
  3009. faggot:SetPos( 300, 8 )
  3010.  
  3011. faggot:SetText("Mute")
  3012.  
  3013. faggot:SetTextColor(Color(255, 255, 255, 255))
  3014.  
  3015. faggot.Paint = function(panel, w, h)
  3016.  
  3017. if !v:IsValid() then return end
  3018.  
  3019. if v:IsMuted() then
  3020.  
  3021. surface.SetDrawColor(200, 100, 000 ,255)
  3022.  
  3023. else
  3024.  
  3025. surface.SetDrawColor(100, 100, 200 ,255)
  3026.  
  3027. end
  3028.  
  3029. surface.DrawOutlinedRect(0, 0, w, h)
  3030.  
  3031. surface.SetDrawColor(0, 0, 50 ,155)
  3032.  
  3033. surface.DrawRect(0, 0, w, h)
  3034.  
  3035. end
  3036.  
  3037. faggot.DoClick = function()
  3038.  
  3039. v:SetMuted( !v:IsMuted() )
  3040.  
  3041. if v:IsMuted() then AB.ChatText( "Voice muted: "..v:Nick(), Color(255,255,255) ) else AB.ChatText( "Unmuted: "..v:Nick(), Color(255,255,255) ) end
  3042.  
  3043. surface.PlaySound("buttons/button7.wav")
  3044.  
  3045. end
  3046.  
  3047.  
  3048.  
  3049. local faggot = vgui.Create("DButton", plypanel2)
  3050.  
  3051. faggot:SetSize( 60, 25 )
  3052.  
  3053. faggot:SetPos( 350, 8 )
  3054.  
  3055. faggot:SetText("Namesteal")
  3056.  
  3057. faggot:SetTextColor(Color(255, 255, 255, 255))
  3058.  
  3059. faggot.Paint = function(panel, w, h)
  3060.  
  3061. if AB.NameStealPlayer == v then
  3062.  
  3063. surface.SetDrawColor(100, 200, 100 ,255)
  3064.  
  3065. else
  3066.  
  3067. surface.SetDrawColor(100, 100, 200 ,255)
  3068.  
  3069. end
  3070.  
  3071. surface.DrawOutlinedRect(0, 0, w, h)
  3072.  
  3073. surface.SetDrawColor(0, 0, 50 ,155)
  3074.  
  3075. surface.DrawRect(0, 0, w, h)
  3076.  
  3077. end
  3078.  
  3079. faggot.DoClick = function()
  3080.  
  3081. if AB.NameStealPlayer == v then AB.NameStealPlayer = LocalPlayer() AB.ChatText( "Cleared name stealer target", Color(255,255,255) ) return end
  3082.  
  3083. AB.NameStealPlayer = v
  3084.  
  3085. AB.ChatText( "Set name stealer target to: "..v:Nick(), Color(255,255,255) )
  3086.  
  3087. surface.PlaySound("buttons/button7.wav")
  3088.  
  3089. end
  3090.  
  3091.  
  3092.  
  3093. local faggot = vgui.Create("DButton", plypanel2)
  3094.  
  3095. faggot:SetSize( 60, 25 )
  3096.  
  3097. faggot:SetPos( 415, 8 )
  3098.  
  3099. faggot:SetText("Highlight")
  3100.  
  3101. faggot:SetTextColor(Color(255, 255, 255, 255))
  3102.  
  3103. faggot.Paint = function(panel, w, h)
  3104.  
  3105. if AB.IsTarget( v ) then
  3106.  
  3107. surface.SetDrawColor(100, 200, 100 ,255)
  3108.  
  3109. else
  3110.  
  3111. surface.SetDrawColor(100, 100, 200 ,255)
  3112.  
  3113. end
  3114.  
  3115. surface.DrawOutlinedRect(0, 0, w, h)
  3116.  
  3117. surface.SetDrawColor(0, 0, 50 ,155)
  3118.  
  3119. surface.DrawRect(0, 0, w, h)
  3120.  
  3121. end
  3122.  
  3123. faggot.DoClick = function()
  3124.  
  3125. if AB.IsTarget( v ) then AB.RemoveTarget(v) else AB.AddTarget(v) end
  3126.  
  3127. surface.PlaySound("buttons/button7.wav")
  3128.  
  3129. end
  3130.  
  3131.  
  3132.  
  3133. local faggot = vgui.Create("DButton", plypanel2)
  3134.  
  3135. faggot:SetSize( 60, 25 )
  3136.  
  3137. faggot:SetPos( 480, 8 )
  3138.  
  3139. faggot:SetText("Friendly")
  3140.  
  3141. faggot:SetTextColor(Color(255, 255, 255, 255))
  3142.  
  3143. faggot.Paint = function(panel, w, h)
  3144.  
  3145. if AB.IsFriend( v ) then
  3146.  
  3147. surface.SetDrawColor(100, 200, 100 ,255)
  3148.  
  3149. else
  3150.  
  3151. surface.SetDrawColor(100, 100, 200 ,255)
  3152.  
  3153. end
  3154.  
  3155. surface.DrawOutlinedRect(0, 0, w, h)
  3156.  
  3157. surface.SetDrawColor(0, 0, 50 ,155)
  3158.  
  3159. surface.DrawRect(0, 0, w, h)
  3160.  
  3161. end
  3162.  
  3163. faggot.DoClick = function()
  3164.  
  3165. if AB.IsFriend( v ) then AB.RemoveFriend(v) else AB.AddFriend(v) end
  3166.  
  3167. surface.PlaySound("buttons/button7.wav")
  3168.  
  3169. end
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175. Plist:AddItem( plypanel2 )
  3176.  
  3177.  
  3178.  
  3179. end
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185. end
  3186.  
  3187. concommand.Add("ace_players", AB.PlayerMenu)
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.  
  3201.  
  3202.  
  3203. ------------------------------------------------------------------------BIG MEMES----------------------------------------------------------------------------------------
  3204.  
  3205.  
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211. function AB.IsMessagePooled( netmessage )
  3212.  
  3213. status, error = pcall(net.Start,netmessage)
  3214.  
  3215. return status
  3216.  
  3217. end
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227. ------------------------------------------------------------------------DANK NOSPREAD----------------------------------------------------------------------------------------
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235. function AB.GetGenericCone( cmd )
  3236.  
  3237. local ply = LocalPlayer()
  3238.  
  3239. local gun = ply:GetActiveWeapon()
  3240.  
  3241. if !gun.Primary or !gun.Primary.Cone then return Angle( 0, 0, 0 ) end
  3242.  
  3243. local meme = gun.Primary.Cone
  3244.  
  3245. local meme2 = Vector( meme, meme, meme )
  3246.  
  3247. local cone = odium.engine.GetWeaponCone( cmd, ply:EyeAngles(), meme2 )
  3248.  
  3249. return cone
  3250.  
  3251. end
  3252.  
  3253.  
  3254.  
  3255. function AB.GetM9kCone( cmd )
  3256.  
  3257. local ply = LocalPlayer()
  3258.  
  3259. local gun = ply:GetActiveWeapon()
  3260.  
  3261. if !gun.Primary or !gun.Primary.Spread or !gun.Primary.IronAccuracy then return Angle( 0, 0, 0 ) end
  3262.  
  3263. local meme = gun.Primary.Spread
  3264.  
  3265. if (gun:GetIronsights() == true) and ply:KeyDown(IN_ATTACK2) then meme = gun.Primary.IronAccuracy end
  3266.  
  3267. local meme2 = Vector( meme, meme, meme )
  3268.  
  3269. local cone = odium.engine.GetWeaponCone( cmd, ply:EyeAngles(), meme2 )
  3270.  
  3271. return cone
  3272.  
  3273. end
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279. local td = {}
  3280.  
  3281. local function dospread()
  3282.  
  3283. local ply = LocalPlayer()
  3284.  
  3285. local gun = ply:GetActiveWeapon()
  3286.  
  3287. local vel = ply:GetVelocity():Length()
  3288.  
  3289.  
  3290.  
  3291. aim = ply:GetAimVector()
  3292.  
  3293.  
  3294.  
  3295. if not ply.LastView then
  3296.  
  3297. ply.LastView = aim
  3298.  
  3299. ply.ViewAff = 0
  3300.  
  3301. else
  3302.  
  3303. ply.ViewAff = Lerp(0.25, ply.ViewAff, (aim - ply.LastView):Length() * 0.5)
  3304.  
  3305. ply.LastView = aim
  3306.  
  3307. end
  3308.  
  3309.  
  3310.  
  3311. cone = gun.HipCone * (cr and 0.75 or 1) * (gun.dt.Bipod and 0.3 or 1)
  3312.  
  3313.  
  3314.  
  3315. if gun.dt.Status == FAS_STAT_ADS then
  3316.  
  3317. td.start = ply:GetShootPos()
  3318.  
  3319. td.endpos = td.start + aim * 30
  3320.  
  3321. td.filter = ply
  3322.  
  3323.  
  3324.  
  3325. tr = util.TraceLine(td)
  3326.  
  3327.  
  3328.  
  3329. if tr.Hit then
  3330.  
  3331. return Angle(0,0,0)
  3332.  
  3333. else
  3334.  
  3335. cone = gun.AimCone
  3336.  
  3337. end
  3338.  
  3339. end
  3340.  
  3341.  
  3342.  
  3343. return math.Clamp(cone + gun.AddSpread * (gun.dt.Bipod and 0.5 or 1) + (vel / 10000 * gun.VelocitySensitivity) * (gun.dt.Status == FAS_STAT_ADS and 0.25 or 1) + ply.ViewAff, 0, 0.09 + gun.MaxSpreadInc)
  3344.  
  3345.  
  3346.  
  3347. end
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353. function AB.GetFags2Cone( cmd )
  3354.  
  3355. local ply = LocalPlayer()
  3356.  
  3357. local gun = ply:GetActiveWeapon()
  3358.  
  3359. local newang = ply:GetPunchAngle()
  3360.  
  3361. math.randomseed( CurTime() )
  3362.  
  3363. local cuntcone = gun.CurCone
  3364.  
  3365.  
  3366.  
  3367. -- newang = newang + (Angle(math.Rand(-cuntcone, cuntcone), math.Rand(-cuntcone, cuntcone), 0) )
  3368.  
  3369.  
  3370.  
  3371. return newang
  3372.  
  3373. -- return LocalPlayer():GetPunchAngle()
  3374.  
  3375. end
  3376.  
  3377.  
  3378.  
  3379. --hook.Remove( "EntityFireBullets", "Fags2lmao" )
  3380.  
  3381. /*
  3382.  
  3383. hook.Add( "EntityFireBullets", "Fags2lmao", function( ent, data )
  3384.  
  3385. local me = LocalPlayer()
  3386.  
  3387. local gun = me:GetActiveWeapon()
  3388.  
  3389. local oldang = me:EyeAngles()
  3390.  
  3391. math.randomseed(CurTime())
  3392.  
  3393. local Dir3 = (me:GetPunchAngle() + Angle(math.Rand(-gun.CurCone, gun.CurCone), math.Rand(-gun.CurCone, gun.CurCone), 0) * 25)
  3394.  
  3395. print( "hax"..tostring( me:EyeAngles() - Dir3) )
  3396.  
  3397. -- print( "hax: "..tostring(oldang + -AB.GetFags2Cone( me:GetCurrentCommand() )) )
  3398.  
  3399. -- me:SetEyeAngles( oldang + -AB.GetFags2Cone( me:GetCurrentCommand() ) )
  3400.  
  3401. end)
  3402.  
  3403. */
  3404.  
  3405. local hl2guns = {
  3406.  
  3407. ["weapon_smg1"] = Vector( 0.04362, 0.04362, 0.04362 ),
  3408.  
  3409. ["weapon_ar2"] = Vector( 0.02618, 0.02618, 0.02618 ),
  3410.  
  3411. ["weapon_shotgun"] = Vector( 0.08716, 0.08716, 0.08716 ),
  3412.  
  3413. ["weapon_pistol"] = Vector( 0.00873, 0.00873, 0.00873 ) ,
  3414.  
  3415. }
  3416.  
  3417.  
  3418.  
  3419. function AB.GetHL2Cone( cmd )
  3420.  
  3421. local ply = LocalPlayer()
  3422.  
  3423. local gun = ply:GetActiveWeapon()
  3424.  
  3425. local meme = hl2guns[gun:GetClass()]
  3426.  
  3427. local cone = odium.engine.GetWeaponCone( cmd, ply:EyeAngles(), meme )
  3428.  
  3429. return cone
  3430.  
  3431. end
  3432.  
  3433.  
  3434.  
  3435. function AB.GetCurrentWeaponCone( cmd )
  3436.  
  3437. if !odium or !odium.engine or !odium.engine.GetWeaponCone then
  3438.  
  3439. AB.ChatText( "Odium main module not present or malfunctioning! Compensated spread will not work!", Color(255,100,0) )
  3440.  
  3441. AB.Vars.CompSpread = false
  3442.  
  3443. return Angle( 0, 0, 0 )
  3444.  
  3445. end
  3446.  
  3447. local ply = LocalPlayer()
  3448.  
  3449. local gun = ply:GetActiveWeapon()
  3450.  
  3451. if hl2guns[gun:GetClass()] or gun:GetClass() == "weapon_pistol" then return AB.GetHL2Cone( cmd ) end
  3452.  
  3453. if gun.Primary and gun.Primary.Spread and gun.Primary.IronAccuracy then return AB.GetM9kCone( cmd ) end
  3454.  
  3455. if gun.HipCone then return AB.GetFags2Cone( cmd ) end
  3456.  
  3457. if gun.Primary and gun.Primary.Cone then return AB.GetGenericCone( cmd ) end
  3458.  
  3459. return Angle( 0, 0, 0 )
  3460.  
  3461. end
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467. local penistration = {
  3468.  
  3469. ["SniperPenetratedRound"] = 20,
  3470.  
  3471. ["pistol"] = 9,
  3472.  
  3473. ["357"] = 12,
  3474.  
  3475. ["smg1"] = 14,
  3476.  
  3477. ["ar2"] = 16,
  3478.  
  3479. ["buckshot"] = 5,
  3480.  
  3481. ["slam"] = 5,
  3482.  
  3483. ["AirboatGun"] = 17,
  3484.  
  3485. }
  3486.  
  3487.  
  3488.  
  3489. function AB.GetM9gayPenetration( ply, gun, tr, testent )
  3490.  
  3491. if !gun.Penetration then return false end
  3492.  
  3493. local ammotyp = gun.Primary.Ammo
  3494.  
  3495. local penindex = 14
  3496.  
  3497. if penistration[ammotyp] then penindex = penistration[ammotyp] end
  3498.  
  3499. if tr.MatType == MAT_METAL and ammotyp != "SniperPenetratedRound" then return false end
  3500.  
  3501. penindex = penindex - 0.05 -- precaution so we don't botch extreme range shots
  3502.  
  3503.  
  3504.  
  3505. local penissize = tr.Normal * penindex
  3506.  
  3507. if (tr.MatType == MAT_GLASS or tr.MatType == MAT_PLASTIC or tr.MatType == MAT_WOOD or tr.MatType == MAT_FLESH or tr.MatType == MAT_ALIENFLESH) then
  3508.  
  3509. penissize = tr.Normal * (penindex * 2)
  3510.  
  3511. end
  3512.  
  3513.  
  3514.  
  3515. local ntrace = {}
  3516.  
  3517. ntrace.endpos = tr.HitPos + tr.Normal * 99999
  3518.  
  3519. ntrace.start = tr.HitPos + penissize
  3520.  
  3521. ntrace.mask = MASK_SHOT
  3522.  
  3523. ntrace.filter = {ply}
  3524.  
  3525. local trace = util.TraceLine(ntrace)
  3526.  
  3527.  
  3528.  
  3529. if trace.StartSolid or ( trace.Entity and trace.Entity != testent ) then return false end
  3530.  
  3531.  
  3532.  
  3533. return true
  3534.  
  3535.  
  3536.  
  3537. end
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543. function AB.CanWeaponPenetrate( tr, testent )
  3544.  
  3545. local ply = LocalPlayer()
  3546.  
  3547. local gun = ply:GetActiveWeapon()
  3548.  
  3549. if !ply:IsValid() or !gun or !gun:IsValid() then return false end
  3550.  
  3551. if gun.Primary and gun.Primary.Spread and gun.Primary.IronAccuracy then return AB.GetM9gayPenetration( ply, gun, tr, testent ) end
  3552.  
  3553. return false
  3554.  
  3555. end
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561. function AB.IsBabyGod( ply )
  3562.  
  3563. if !ply:IsValid() or !ply:Alive() or ply:InVehicle() then return false end
  3564.  
  3565. if ply:GetRenderMode() == RENDERMODE_TRANSALPHA and ply:GetColor().a == 100 then
  3566.  
  3567. return true
  3568.  
  3569. else
  3570.  
  3571. return false
  3572.  
  3573. end
  3574.  
  3575. end
  3576.  
  3577.  
  3578.  
  3579.  
  3580.  
  3581. function AB.SetPacketChoke( choke )
  3582.  
  3583. if !odium or !odium.engine then return end
  3584.  
  3585. if choke then
  3586.  
  3587. odium.engine.SetSendPacketEnabled( true )
  3588.  
  3589. odium.engine.SetChokedPacketNum( 0 )
  3590.  
  3591. else
  3592.  
  3593. odium.engine.ResetSendPacket()
  3594.  
  3595. odium.engine.ResetChokedPacketNum()
  3596.  
  3597. end
  3598.  
  3599. end
  3600.  
  3601.  
  3602.  
  3603.  
  3604.  
  3605.  
  3606.  
  3607.  
  3608.  
  3609. /*
  3610.  
  3611. function AB.GetPenetrationStrength( tr ) --heh
  3612.  
  3613. if !AB.CanWeaponPenetrate() then return 0 end
  3614.  
  3615. local ply = LocalPlayer()
  3616.  
  3617. local gun = ply:GetActiveWeapon()
  3618.  
  3619. if !ply:IsValid() or !gun or !gun:IsValid() then return 0 end
  3620.  
  3621. if gun.Primary and gun.Primary.Spread and gun.Primary.IronAccuracy then return AB.GetM9gayPenetration( ply, gun ) end
  3622.  
  3623. return 0
  3624.  
  3625. end
  3626.  
  3627. */
  3628.  
  3629.  
  3630.  
  3631. function AB.FixMove( cmd, safe )
  3632.  
  3633. local move = Vector( cmd:GetForwardMove(), cmd:GetSideMove(), cmd:GetUpMove() )
  3634.  
  3635. local speed = math.sqrt( move.x * move.x + move.y * move.y )
  3636.  
  3637. local mang = move:Angle()
  3638.  
  3639. local yaw = math.rad( cmd:GetViewAngles().y - AB.InternalFakeAngles.y + mang.y )
  3640.  
  3641. cmd:SetForwardMove( (math.cos(yaw) * speed) * 1 )
  3642.  
  3643. cmd:SetSideMove( math.sin(yaw) * speed )
  3644.  
  3645. end
  3646.  
  3647.  
  3648.  
  3649.  
  3650.  
  3651. ------------------------------------------------------------------------AIMBOT FUNCTIONS--------------------------------------------------------------------------------------
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659. local isfiring = false
  3660.  
  3661. local lastoldang = 0
  3662.  
  3663.  
  3664.  
  3665. function AB.AimbotCore( cmd )
  3666.  
  3667. local ply = LocalPlayer()
  3668.  
  3669.  
  3670.  
  3671. if !AB.Vars.SilentAim then AB.InternalFakeAngles = 0 end
  3672.  
  3673. if lastoldang and isangle( lastoldang ) then
  3674.  
  3675. cmd:SetViewAngles( lastoldang )
  3676.  
  3677. lastoldang = 0
  3678.  
  3679. AB.SetPacketChoke( false )
  3680.  
  3681. end
  3682.  
  3683.  
  3684.  
  3685. if !AB.Vars.Aimbot then
  3686.  
  3687. lastoldang = 0
  3688.  
  3689. AB.AimbotPreviewTarget = -1
  3690.  
  3691. AB.AimbotTarget = game.GetWorld()
  3692.  
  3693. return
  3694.  
  3695. end
  3696.  
  3697.  
  3698.  
  3699. if !AB.Vars.AimbotStickyLock then
  3700.  
  3701. local closestfag = AB.GetClosestToCursor( true )
  3702.  
  3703. if closestfag != AB.AimbotTarget then AB.AimbotTarget = closestfag end
  3704.  
  3705. end
  3706.  
  3707.  
  3708.  
  3709. local atarg = AB.AimbotTarget
  3710.  
  3711. local pozzed = AB.PrepareForAStomping( atarg )
  3712.  
  3713.  
  3714.  
  3715. if isvector( pozzed ) then AB.AimbotPreviewTarget = pozzed end
  3716.  
  3717.  
  3718.  
  3719. -- negate target if they are invalid for whatever reason
  3720.  
  3721. if !atarg:IsValid() or AB.IsDead( atarg ) or !AB.InFOV( atarg ) or !AB.CanTargetPlayer( atarg ) or (AB.ToMetric(ply:GetPos():Distance(atarg:GetPos())) >= AB.NumberVars.AimbotDist) or !isvector( pozzed ) then
  3722.  
  3723. AB.AimbotPreviewTarget = -1
  3724.  
  3725. AB.AimbotTarget = AB.GetClosestToCursor( true )
  3726.  
  3727. AB.InternalFakeAngles = 0
  3728.  
  3729. return
  3730.  
  3731. end
  3732.  
  3733.  
  3734.  
  3735. -- snap only on fire option
  3736.  
  3737. if AB.Vars.SnapOnFire and !input.IsMouseDown(MOUSE_LEFT) or !ply:GetActiveWeapon() or !ply:GetActiveWeapon():IsValid() or !AB.CanBotShoot( ply:GetActiveWeapon() ) then
  3738.  
  3739. -- AB.AimbotTarget = game.GetWorld()
  3740.  
  3741. targetlerp = LocalPlayer():EyeAngles()
  3742.  
  3743. return
  3744.  
  3745. end
  3746.  
  3747.  
  3748.  
  3749. -- keybind mode
  3750.  
  3751. if AB.Vars.AimbotBindMode then
  3752.  
  3753. local khn = AB.NumberVars.AimbotBindKey
  3754.  
  3755. if not ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then
  3756.  
  3757. -- AB.AimbotTarget = game.GetWorld()
  3758.  
  3759. targetlerp = LocalPlayer():EyeAngles()
  3760.  
  3761. return
  3762.  
  3763. end
  3764.  
  3765. end
  3766.  
  3767.  
  3768.  
  3769. -- cap a motherfucker
  3770.  
  3771. AB.AimbotPreviewTarget = pozzed
  3772.  
  3773. local aids = pozzed - ply:GetShootPos()
  3774.  
  3775. aids = aids:Angle()
  3776.  
  3777. aids:Normalize()
  3778.  
  3779. -- if AB.NumberVars.AimbotSmooth > 0 then
  3780.  
  3781. -- targetlerp = LerpAngle(FrameTime() * ((51 - AB.NumberVars.AimbotSmooth) / 5), targetlerp, aids)
  3782.  
  3783. -- aids = targetlerp
  3784.  
  3785. -- end
  3786.  
  3787.  
  3788.  
  3789. if AB.Vars.CompSpread then
  3790.  
  3791. local cone = AB.GetCurrentWeaponCone( cmd )
  3792.  
  3793. aids = aids + -cone
  3794.  
  3795. end
  3796.  
  3797.  
  3798.  
  3799. aids = Angle( aids.p, aids.y, 0 )
  3800.  
  3801. if AB.Vars.SilentAim then
  3802.  
  3803. AB.SetPacketChoke( true )
  3804.  
  3805. lastoldang = cmd:GetViewAngles() + Angle( cmd:GetMouseY() * 0.02, -cmd:GetMouseX() * 0.015, 0 )
  3806.  
  3807. AB.InternalFakeAngles = lastoldang
  3808.  
  3809. end
  3810.  
  3811. cmd:SetViewAngles(aids)
  3812.  
  3813. if AB.Vars.SilentAim then AB.FixMove( cmd, true ) end
  3814.  
  3815.  
  3816.  
  3817. if AB.Vars.AutoShoot then
  3818.  
  3819. if( !isfiring ) then
  3820.  
  3821. cmd:SetButtons( bit.bor( cmd:GetButtons(), IN_ATTACK ) )
  3822.  
  3823. isfiring = true
  3824.  
  3825. else
  3826.  
  3827. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( IN_ATTACK ) ) )
  3828.  
  3829. isfiring = false
  3830.  
  3831. end
  3832.  
  3833. end
  3834.  
  3835.  
  3836.  
  3837. if AB.Vars.AutoTrigger then
  3838.  
  3839. if ply:KeyDown(IN_ATTACK) then cmd:RemoveKey(IN_ATTACK) end
  3840.  
  3841. end
  3842.  
  3843.  
  3844.  
  3845. end
  3846.  
  3847.  
  3848.  
  3849.  
  3850.  
  3851. AB.BHopBuffer = {}
  3852.  
  3853. AB.BHopCount1 = 0
  3854.  
  3855. AB.BHopCount2 = 0
  3856.  
  3857. AB.StoredOnGround = false
  3858.  
  3859. AB.StoredInJump = false
  3860.  
  3861.  
  3862.  
  3863. function AB.ResetCounters()
  3864.  
  3865. AB.BHopCount1 = 0
  3866.  
  3867. AB.BHopCount2 = 0
  3868.  
  3869. for i = #AB.BHopBuffer, 1, -1 do
  3870.  
  3871. AB.BHopBuffer[i] = nil
  3872.  
  3873. end
  3874.  
  3875. end
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885. local vw = Angle( 0, 0, 0 )
  3886.  
  3887. local targetlerp = Angle( 0, 0, 0)
  3888.  
  3889. local nxtangle = false
  3890.  
  3891. function AB.CreateMove( cmd )
  3892.  
  3893.  
  3894.  
  3895. local ply = LocalPlayer()
  3896.  
  3897. if !ply:IsValid() then return end
  3898.  
  3899.  
  3900.  
  3901. local amemfootprint = gcinfo()
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907. if( AB.Vars.Autoclick and !AB.Vars.RopeStorm) then
  3908.  
  3909. if ply:KeyDown(IN_ATTACK2) then cmd:RemoveKey(IN_ATTACK2) end
  3910.  
  3911. if ply:KeyDown(IN_ATTACK) then cmd:RemoveKey(IN_ATTACK) end
  3912.  
  3913. end
  3914.  
  3915.  
  3916.  
  3917. if( AB.Vars.Bhop) then
  3918.  
  3919. if AB.Vars.BhopAutostrafe and !ply:IsFlagSet( FL_ONGROUND ) and ply:GetMoveType() != MOVETYPE_NOCLIP then
  3920.  
  3921. if cmd:GetMouseX() < 0 then
  3922.  
  3923. cmd:SetSideMove(-1000000)
  3924.  
  3925. end
  3926.  
  3927. if cmd:GetMouseX() > 0 then
  3928.  
  3929. cmd:SetSideMove(1000000)
  3930.  
  3931. end
  3932.  
  3933. end
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939. ////////////////////////// credit goes to invalid/kilgrave for this UD bhop ///////////////////////////
  3940.  
  3941.  
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947. if AB.BHopCount1 < 13 then
  3948.  
  3949. if(cmd:KeyDown(2) && !ply:IsOnGround()) then
  3950.  
  3951. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( 2 ) ) );
  3952.  
  3953. end
  3954.  
  3955. elseif(cmd:KeyDown(IN_JUMP)) then
  3956.  
  3957. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( 2 ) ) );
  3958.  
  3959. end
  3960.  
  3961.  
  3962.  
  3963. local lastOnGround = AB.StoredOnGround
  3964.  
  3965. local lastInJump = AB.StoredInJump
  3966.  
  3967.  
  3968.  
  3969. local onGround = ply:IsOnGround()
  3970.  
  3971. local inJump = cmd:KeyDown (IN_JUMP)
  3972.  
  3973.  
  3974.  
  3975. if lastOnGround and !onGround then
  3976.  
  3977. AB.BHopCount2 = 0
  3978.  
  3979. elseif !lastOnGround and onGround then
  3980.  
  3981. if !lastInJump and inJump then
  3982.  
  3983. AB.BHopCount1 = AB.BHopCount1 + 1
  3984.  
  3985. -- ply:ChatPrint(AB.BHopCount1)
  3986.  
  3987. if AB.BHopCount1 == 14 then
  3988.  
  3989. local a, b, c = 0, 0, 0
  3990.  
  3991. for i = 1, #AB.BHopBuffer do
  3992.  
  3993. local x = AB.BHopBuffer [i]
  3994.  
  3995. a = a + 1
  3996.  
  3997. b = b + x
  3998.  
  3999. c = c + x * x
  4000.  
  4001. end
  4002.  
  4003.  
  4004.  
  4005. if (c - b * b / a) / a < 0.1 then
  4006.  
  4007. -- ply:ChatPrint("Detected")
  4008.  
  4009. AB.ChatText( "Whoops, your bhope abuse may have been detected! The protection system is good but not perfect I'm sorry to say", Color(255,205,205) )
  4010.  
  4011. end
  4012.  
  4013. end
  4014.  
  4015. else
  4016.  
  4017. AB.ResetCounters()
  4018.  
  4019. end
  4020.  
  4021. elseif onGround then
  4022.  
  4023. if lastInJump != inJump then
  4024.  
  4025. AB.ResetCounters()
  4026.  
  4027. end
  4028.  
  4029. end
  4030.  
  4031.  
  4032.  
  4033. if !onGround and
  4034.  
  4035. lastInJump and not inJump and
  4036.  
  4037. AB.BHopCount2 >= 0 then
  4038.  
  4039. AB.BHopBuffer[#AB.BHopBuffer + 1] = AB.BHopCount2
  4040.  
  4041. AB.BHopCount2 = -math.huge
  4042.  
  4043. end
  4044.  
  4045.  
  4046.  
  4047. AB.BHopCount2 = AB.BHopCount2 + 1
  4048.  
  4049.  
  4050.  
  4051. AB.StoredOnGround = onGround
  4052.  
  4053. AB.StoredInJump = nJump
  4054.  
  4055.  
  4056.  
  4057. ////////////////////////// old and gay ///////////////////////////
  4058.  
  4059.  
  4060.  
  4061. /*
  4062.  
  4063. if !ply:IsFlagSet( FL_ONGROUND ) and ply:GetMoveType() != MOVETYPE_NOCLIP then
  4064.  
  4065. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( IN_JUMP ) ) )
  4066.  
  4067. end
  4068.  
  4069. */
  4070.  
  4071. end
  4072.  
  4073.  
  4074.  
  4075.  
  4076.  
  4077. if AB.Vars.Triggerbot and ply:Alive() and ply:GetActiveWeapon() and ply:GetActiveWeapon():IsValid() and AB.CanBotShoot( ply:GetActiveWeapon() ) then
  4078.  
  4079. local td = {start = ply:GetShootPos(), endpos = ply:GetShootPos() + ply:EyeAngles():Forward() * 65535, filter = ply, mask = MASK_SHOT}
  4080.  
  4081. local tr = util.TraceLine(td)
  4082.  
  4083.  
  4084.  
  4085. if (tr.Entity:IsPlayer() and AB.CanTargetPlayer( tr.Entity ) ) or tr.Entity:IsNPC() or tr.Entity.Type == "nextbot" then
  4086.  
  4087. if( !isfiring ) then
  4088.  
  4089. cmd:SetButtons( bit.bor( cmd:GetButtons(), IN_ATTACK ) )
  4090.  
  4091. isfiring = true
  4092.  
  4093. else
  4094.  
  4095. cmd:SetButtons( bit.band( cmd:GetButtons(), bit.bnot( IN_ATTACK ) ) )
  4096.  
  4097. isfiring = false
  4098.  
  4099. end
  4100.  
  4101. end
  4102.  
  4103.  
  4104.  
  4105. end
  4106.  
  4107.  
  4108.  
  4109. if AB.ScrollDelta != 0 then cmd:SetMouseWheel( AB.ScrollDelta ) end
  4110.  
  4111.  
  4112.  
  4113. if( AB.Vars.RopeStorm and ply:KeyDown(IN_ATTACK2)) then
  4114.  
  4115. local aids = Angle(math.random(-90, 90), math.random(-180, 180), 0)
  4116.  
  4117. aids:Normalize()
  4118.  
  4119. cmd:SetViewAngles(aids)
  4120.  
  4121. if ply:KeyDown(IN_ATTACK2) then cmd:RemoveKey(IN_ATTACK2) end
  4122.  
  4123. end
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.  
  4130.  
  4131. if AB.Vars.FreecamControls then
  4132.  
  4133. local khn = AB.NumberVars.FreecamForward
  4134.  
  4135. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then AB.FreecamCoordinates.pos = AB.FreecamCoordinates.pos + AB.FreecamCoordinates.ang:Forward() * 7 end
  4136.  
  4137. local khn = AB.NumberVars.FreecamBack
  4138.  
  4139. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then AB.FreecamCoordinates.pos = AB.FreecamCoordinates.pos - AB.FreecamCoordinates.ang:Forward() * 7 end
  4140.  
  4141. local khn = AB.NumberVars.FreecamLeft
  4142.  
  4143. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then AB.FreecamCoordinates.ang.y = AB.FreecamCoordinates.ang.y + 1 end
  4144.  
  4145. local khn = AB.NumberVars.FreecamRight
  4146.  
  4147. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then AB.FreecamCoordinates.ang.y = AB.FreecamCoordinates.ang.y - 1 end
  4148.  
  4149. local khn = AB.NumberVars.FreecamUp
  4150.  
  4151. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then AB.FreecamCoordinates.ang.p = AB.FreecamCoordinates.ang.p - 0.75 end
  4152.  
  4153. local khn = AB.NumberVars.FreecamDown
  4154.  
  4155. if ( input.IsKeyDown( khn ) or input.IsMouseDown( khn ) ) then AB.FreecamCoordinates.ang.p = AB.FreecamCoordinates.ang.p + 0.75 end
  4156.  
  4157. end
  4158.  
  4159.  
  4160.  
  4161. AB.AimbotCore( cmd )
  4162.  
  4163.  
  4164.  
  4165. AB.MemoryDebug["aimbot"] = gcinfo() - amemfootprint
  4166.  
  4167.  
  4168.  
  4169. end
  4170.  
  4171. hook.Add( "CreateMove", "cmove", AB.CreateMove )
  4172.  
  4173.  
  4174.  
  4175.  
  4176.  
  4177. local xraytrans = Color(255, 255, 255, 101)
  4178.  
  4179.  
  4180.  
  4181. surface.CreateFont( "memes", {
  4182.  
  4183. font = "Trebuchet",
  4184.  
  4185. size = 200,
  4186.  
  4187. weight = 950,
  4188.  
  4189. } )
  4190.  
  4191.  
  4192.  
  4193. local scanmat = Material("particle/particle_ring_blur")
  4194.  
  4195. local leadermat = Material( "particle/particle_ring_wave_additive" )
  4196.  
  4197. local beammat = Material("trails/laser")
  4198.  
  4199.  
  4200.  
  4201. function AB.Vision()
  4202.  
  4203. local me = LocalPlayer()
  4204.  
  4205. if !me:IsValid() then return end
  4206.  
  4207.  
  4208.  
  4209. local memfootprint = gcinfo()
  4210.  
  4211. /*
  4212.  
  4213. for i = 0, ScrH(), 200 do
  4214.  
  4215. for w = 0, ScrW(), 200 do
  4216.  
  4217. draw.SimpleTextOutlined( ":^)", "memes", w, i, Color(255,255,255,255), 0, 0, 1, Color(0,0,55,255) )
  4218.  
  4219. end
  4220.  
  4221. end
  4222.  
  4223.  
  4224.  
  4225. draw.SimpleTextOutlined( "IM A HUGE FUCKING FAGGOT", "memes", 200, ScrH() / 2 - 230, Color(255,0,0,255), 0, 0, 1, Color(0,0,55,255) )
  4226.  
  4227. draw.SimpleTextOutlined( "WHO USES LEAKED HACKS", "memes", 260, ScrH() / 2 - 50, Color(255,0,0,255), 0, 0, 1, Color(0,0,55,255) )
  4228.  
  4229. draw.SimpleTextOutlined( "COS IM POOR AND RETARDED", "memes", 180, ScrH() / 2 + 150, Color(255,0,0,255), 0, 0, 1, Color(0,0,55,255) )
  4230.  
  4231. */
  4232.  
  4233.  
  4234.  
  4235. if !AB.Vars.Vision then return end
  4236.  
  4237.  
  4238.  
  4239.  
  4240.  
  4241. if AB.Vars.CSFlashlight then
  4242.  
  4243. local dlight = DynamicLight( me:EntIndex() + 5 )
  4244.  
  4245. if ( dlight ) then
  4246.  
  4247. dlight.pos = me:GetEyeTraceNoCursor().HitPos
  4248.  
  4249. dlight.r = 255
  4250.  
  4251. dlight.g = 255
  4252.  
  4253. dlight.b = 255
  4254.  
  4255. dlight.brightness = 2
  4256.  
  4257. dlight.Decay = 1000
  4258.  
  4259. dlight.Size = 2256
  4260.  
  4261. dlight.DieTime = CurTime() + 0.5
  4262.  
  4263. end
  4264.  
  4265. end
  4266.  
  4267.  
  4268.  
  4269. if AB.Vars.ShowESP then
  4270.  
  4271. -- players
  4272.  
  4273. for k, v in pairs( player.GetAll() ) do
  4274.  
  4275.  
  4276.  
  4277. if AB.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > AB.NumberVars.VisionDist then continue end
  4278.  
  4279. if !AB.OnScreen( v, 50 ) then continue end
  4280.  
  4281.  
  4282.  
  4283. local teamcol, teamcol2
  4284.  
  4285. if AB.Vars.TeamColors then
  4286.  
  4287. teamcol = team.GetColor(v:Team())
  4288.  
  4289. teamcol2 = Color(math.Clamp(teamcol.r - 100, 0, 255), math.Clamp(teamcol.g - 100, 0, 255), math.Clamp(teamcol.b - 100, 0, 255), 255)
  4290.  
  4291. else
  4292.  
  4293. teamcol = AB.DefaultScheme
  4294.  
  4295. teamcol2 = AB.DefaultScheme2
  4296.  
  4297. end
  4298.  
  4299.  
  4300.  
  4301.  
  4302.  
  4303. if v == me then continue end
  4304.  
  4305.  
  4306.  
  4307. local pos = (v:GetPos() + Vector(0, 0, 45)):ToScreen()
  4308.  
  4309. local admintext = AB.GetRank( v )
  4310.  
  4311.  
  4312.  
  4313. if !AB.IsDead( v ) then
  4314.  
  4315. if AB.Vars.VSquares then
  4316.  
  4317. surface.SetDrawColor(teamcol)
  4318.  
  4319. surface.DrawOutlinedRect(pos.x - 10, pos.y - 10, 20, 20)
  4320.  
  4321. surface.SetDrawColor(teamcol2)
  4322.  
  4323. surface.DrawOutlinedRect(pos.x - 8, pos.y - 8, 16, 16)
  4324.  
  4325. surface.SetDrawColor(Color(255,255,255,255))
  4326.  
  4327. surface.DrawRect(pos.x - 2, pos.y - 2, 4, 4)
  4328.  
  4329. end
  4330.  
  4331. if AB.Vars.VNames then draw.SimpleTextOutlined( v:Name(), "DermaDefault", pos.x, pos.y - 30, teamcol, 1, 0, 1, Color(0,0,55,255) ) end
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337. if AB.Vars.BoundingBox3d then cam.Start3D(EyePos(),EyeAngles()) render.DrawWireframeBox( v:GetPos(), Angle(0,0,0), Vector( -16, -16, 0 ), Vector( 16, 16, 72 ), AB.ColScheme, true ) cam.End3D() end
  4338.  
  4339. -- propkill shit
  4340.  
  4341.  
  4342.  
  4343. render.SetMaterial( beammat )
  4344.  
  4345. if AB.Vars.PKPlayerBeams then
  4346.  
  4347. local vz, ppos = AB.PlayerVisiblePK( me:GetShootPos(), v )
  4348.  
  4349. if vz then
  4350.  
  4351. cam.Start3D(EyePos(),EyeAngles())
  4352.  
  4353. render.DrawBeam( (me:GetShootPos() + Vector(0,0,-5)) + EyeAngles():Forward() * 5, ppos, 5, 0, 1, teamcol )
  4354.  
  4355. cam.End3D()
  4356.  
  4357. end
  4358.  
  4359. end
  4360.  
  4361.  
  4362.  
  4363. if AB.Vars.PKPropBeams then
  4364.  
  4365. if AB.HoldingProp and AB.HoldingProp:IsValid() then
  4366.  
  4367. local src = AB.HoldingProp:LocalToWorld( AB.HoldingProp:OBBCenter() )
  4368.  
  4369. /*
  4370.  
  4371. cam.Start3D(EyePos(),EyeAngles())
  4372.  
  4373. render.StartBeam( 5 )
  4374.  
  4375. for i = 0, 4 do
  4376.  
  4377. local zp = src + (me:GetAimVector() * (i * 200)) + Vector( 0, 0, -(i ^ 3.15))
  4378.  
  4379. render.AddBeam( zp, 150, i, Color( 255, 100, 0) )
  4380.  
  4381. end
  4382.  
  4383. render.EndBeam()
  4384.  
  4385. render.DrawBeam( me:EyePos(), me:EyePos() + me:GetAimVector() * 2000, 50, 0, 1, Color( 255, 100, 0) )
  4386.  
  4387. cam.End3D()
  4388.  
  4389. */
  4390.  
  4391. local vz2, ppos2 = AB.PlayerVisiblePK( src, v )
  4392.  
  4393. if vz2 then
  4394.  
  4395. cam.Start3D(EyePos(),EyeAngles())
  4396.  
  4397. render.DrawBeam( src, ppos2, 50, 0, 1, teamcol2 )
  4398.  
  4399. cam.End3D()
  4400.  
  4401. end
  4402.  
  4403. end
  4404.  
  4405. end
  4406.  
  4407.  
  4408.  
  4409. -- target highlighting
  4410.  
  4411.  
  4412.  
  4413. if AB.Vars.ShowTargets and AB.IsTarget( v ) then
  4414.  
  4415. draw.SimpleTextOutlined( "[TARGETED]", "DermaDefault", math.Clamp(pos.x, 30, ScrW() - 54), math.Clamp(pos.y - 42, 30, ScrH() - 54), Color(255,155,0,255), 1, 0, 1, Color(55,20,0,255) )
  4416.  
  4417. surface.SetDrawColor(Color(255,155,0,255))
  4418.  
  4419. surface.DrawRect( pos.x - 20, pos.y - 15, 4, 30 )
  4420.  
  4421. surface.DrawRect( pos.x + 16, pos.y - 15, 4, 30 )
  4422.  
  4423.  
  4424.  
  4425. surface.DrawRect( pos.x - 30, pos.y - 20, 4, 40 )
  4426.  
  4427. surface.DrawRect( pos.x + 26, pos.y - 20, 4, 40 )
  4428.  
  4429.  
  4430.  
  4431. surface.DrawLine( ScrW() / 2, ScrH(), pos.x, pos.y )
  4432.  
  4433. end
  4434.  
  4435. if AB.Vars.ShowFriends and AB.IsFriend( v ) and !AB.IsTarget( v ) then
  4436.  
  4437. draw.SimpleTextOutlined( "[FRIEND]", "DermaDefault", pos.x, pos.y - 42, Color(0,255,0,255), 1, 0, 1, Color(0,0,55,255) )
  4438.  
  4439. end
  4440.  
  4441. if AB.Vars.ShowRanks and !(admintext == "user" or admintext == "guest" or admintext == "player") then
  4442.  
  4443. draw.SimpleTextOutlined( "["..admintext.."]", "DermaDefault", pos.x, pos.y + 12, Color(255,100,0,255), 1, 0, 1, Color(50,0,0,255) )
  4444.  
  4445. end
  4446.  
  4447. if AB.Vars.ShowTraitors and table.HasValue( AB.Traitors, v ) then
  4448.  
  4449. draw.SimpleTextOutlined( "[TRAITOR]", "DermaDefault", pos.x, pos.y - 56, Color(255,55,0,255), 1, 0, 1, Color(55,10,0,255) )
  4450.  
  4451. end
  4452.  
  4453. if AB.Vars.Vizlines then
  4454.  
  4455. local tr = util.TraceLine ({
  4456.  
  4457. start = v:EyePos(),
  4458.  
  4459. endpos = v:EyePos() + v:GetAimVector() * 5000,
  4460.  
  4461. filter = v,
  4462.  
  4463. mask = MASK_SOLID_BRUSHONLY
  4464.  
  4465. })
  4466.  
  4467. local tp = tr.HitPos:ToScreen()
  4468.  
  4469. local p = v:EyePos():ToScreen()
  4470.  
  4471. surface.DrawLine(p.x, p.y, tp.x, tp.y)
  4472.  
  4473. surface.SetDrawColor(teamcol)
  4474.  
  4475. surface.DrawLine(tp.x - 4, tp.y, tp.x + 4, tp.y)
  4476.  
  4477. surface.DrawLine(tp.x, tp.y - 4, tp.x, tp.y + 4)
  4478.  
  4479. end
  4480.  
  4481.  
  4482.  
  4483. if AB.Vars.ShowDistance then
  4484.  
  4485. draw.SimpleTextOutlined( AB.ToMetric(me:GetPos():Distance(v:GetPos())).."m", "DermaDefault", pos.x, pos.y + 24, teamcol, 1, 0, 1, Color(0,0,55,255) )
  4486.  
  4487. end
  4488.  
  4489. if AB.Vars.ShowHP then
  4490.  
  4491. local colhp = math.Clamp(v:Health() * 3, 0, 255)
  4492.  
  4493. local colcomp = Color(255,colhp,0,255)
  4494.  
  4495. draw.SimpleTextOutlined( tostring(v:Health()).."%", "DermaDefault", pos.x, pos.y + 38, colcomp, 1, 0, 1, Color(0,0,0,255) )
  4496.  
  4497. end
  4498.  
  4499.  
  4500.  
  4501. if AB.Vars.PKVelocity then
  4502.  
  4503. local velpos = ((v:GetPos() + Vector(0, 0, 45)) + v:GetVelocity() * 0.3 ):ToScreen()
  4504.  
  4505. surface.SetDrawColor(teamcol)
  4506.  
  4507. surface.SetMaterial( leadermat )
  4508.  
  4509. surface.DrawTexturedRect(velpos.x - 15, velpos.y - 15, 30, 30)
  4510.  
  4511. surface.SetDrawColor(teamcol2)
  4512.  
  4513. surface.DrawTexturedRect(velpos.x - 10, velpos.y - 10, 20, 20)
  4514.  
  4515. end
  4516.  
  4517.  
  4518.  
  4519. -- the fag is dead, i dunno why i did a second logic block for this, im just retarded i guess
  4520.  
  4521. elseif AB.Vars.ShowDead then
  4522.  
  4523. surface.SetDrawColor(Color(255,255,255,255))
  4524.  
  4525. surface.DrawLine(pos.x - 15, pos.y - 15, pos.x + 15, pos.y + 15)
  4526.  
  4527. surface.DrawLine(pos.x + 15, pos.y - 15, pos.x - 15, pos.y + 15)
  4528.  
  4529. if AB.Vars.VNames then draw.SimpleTextOutlined( v:Name(), "DermaDefault", pos.x, pos.y - 30, teamcol, 1, 0, 1, Color(0,0,55,255) ) end
  4530.  
  4531. if AB.Vars.ShowFriends and AB.IsFriend( v ) then
  4532.  
  4533. draw.SimpleTextOutlined( "[FRIEND]", "DermaDefault", pos.x, pos.y - 42, Color(0,255,0,255), 1, 0, 1, Color(0,0,55,255) )
  4534.  
  4535. end
  4536.  
  4537. if AB.Vars.ShowRanks and !(admintext == "user" or admintext == "guest" or admintext == "player") then
  4538.  
  4539. draw.SimpleTextOutlined( "["..admintext.."]", "DermaDefault", pos.x, pos.y + 12, Color(255,100,0,255), 1, 0, 1, Color(50,0,0,255) )
  4540.  
  4541. end
  4542.  
  4543. if AB.Vars.ShowDistance then
  4544.  
  4545. draw.SimpleTextOutlined( AB.ToMetric(me:GetPos():Distance(v:GetPos())).."m", "DermaDefault", pos.x, pos.y + 24, teamcol, 1, 0, 1, Color(0,0,55,255) )
  4546.  
  4547. end
  4548.  
  4549. end
  4550.  
  4551.  
  4552.  
  4553.  
  4554.  
  4555. end -- end of players loop
  4556.  
  4557.  
  4558.  
  4559. if AB.Vars.ESPProps then
  4560.  
  4561. for k, v in pairs(ents.FindByClass("prop_physics")) do
  4562.  
  4563. if AB.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > AB.NumberVars.VisionDist then continue end
  4564.  
  4565. local pos = (v:LocalToWorld(v:OBBCenter())):ToScreen()
  4566.  
  4567. surface.SetDrawColor(AB.DefaultScheme)
  4568.  
  4569. surface.DrawOutlinedRect(pos.x - 10, pos.y - 10, 20, 20)
  4570.  
  4571. local aligndist = surface.GetTextSize( AB.ToMetric(me:GetPos():Distance(v:GetPos())).."m" )
  4572.  
  4573. draw.SimpleTextOutlined( AB.ToMetric(me:GetPos():Distance(v:GetPos())).."m", "DermaDefault", pos.x - (aligndist / 2), pos.y + 12, AB.DefaultScheme, 0, 0, 1, Color(0,0,55,255) )
  4574.  
  4575. end
  4576.  
  4577. end
  4578.  
  4579.  
  4580.  
  4581.  
  4582.  
  4583.  
  4584.  
  4585. if AB.Vars.Entfinder then
  4586.  
  4587. for k, v in pairs(ents.GetAll()) do
  4588.  
  4589. if AB.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > AB.NumberVars.VisionDist then continue end
  4590.  
  4591. if !AB.OnScreen( v, 20 ) then continue end
  4592.  
  4593. local drawing = false
  4594.  
  4595.  
  4596.  
  4597. for i,p in pairs(AB.MarkedEnts) do
  4598.  
  4599. if v:GetClass() == p then
  4600.  
  4601. drawing = true
  4602.  
  4603. end
  4604.  
  4605. end
  4606.  
  4607.  
  4608.  
  4609. if drawing then
  4610.  
  4611. local pos = (v:LocalToWorld(v:OBBCenter())):ToScreen()
  4612.  
  4613. surface.SetDrawColor(Color(255,255,255,255))
  4614.  
  4615. surface.DrawRect(pos.x - 3, pos.y - 3, 6, 6)
  4616.  
  4617. local alignclass = surface.GetTextSize( tostring(v:GetClass()) )
  4618.  
  4619. draw.SimpleTextOutlined( tostring(v:GetClass()), "DermaDefault", pos.x - (alignclass / 2), pos.y + 12, AB.DefaultScheme, 0, 0, 1, Color(0,0,55,255) )
  4620.  
  4621. end
  4622.  
  4623.  
  4624.  
  4625. end
  4626.  
  4627.  
  4628.  
  4629. end
  4630.  
  4631.  
  4632.  
  4633. end -- end of showesp
  4634.  
  4635.  
  4636.  
  4637.  
  4638.  
  4639. if AB.Freecam then
  4640.  
  4641. local CamData = {}
  4642.  
  4643. CamData.origin = AB.FreecamCoordinates.pos
  4644.  
  4645. CamData.angles = AB.FreecamCoordinates.ang
  4646.  
  4647. CamData.x = AB.NumberVars.MirrorX
  4648.  
  4649. CamData.y = AB.NumberVars.MirrorY
  4650.  
  4651. CamData.w = ScrW() / (AB.NumberVars.MirrorSize / 10)
  4652.  
  4653. CamData.h = ScrH() / (AB.NumberVars.MirrorSize / 10)
  4654.  
  4655. CamData.drawviewmodel = false
  4656.  
  4657. CamData.drawhud = false
  4658.  
  4659. CamData.fov = 90
  4660.  
  4661. render.RenderView( CamData )
  4662.  
  4663. end
  4664.  
  4665.  
  4666.  
  4667. if AB.Vars.Mirror then
  4668.  
  4669. local CamData = {}
  4670.  
  4671. if AB.NumberVars.MirrorAxis == 0 then
  4672.  
  4673. CamData.angles = Angle(0,me:EyeAngles().yaw - 180,0)
  4674.  
  4675. elseif AB.NumberVars.MirrorAxis == 1 then
  4676.  
  4677. CamData.angles = Angle(me:EyeAngles().pitch,me:EyeAngles().yaw - 180,0)
  4678.  
  4679. else
  4680.  
  4681. CamData.angles = Angle(-me:EyeAngles().pitch,me:EyeAngles().yaw - 180,0)
  4682.  
  4683. end
  4684.  
  4685.  
  4686.  
  4687. CamData.origin = me:GetPos()+Vector(0,0,50)
  4688.  
  4689. CamData.x = AB.NumberVars.MirrorX
  4690.  
  4691. CamData.y = AB.NumberVars.MirrorY
  4692.  
  4693. CamData.w = ScrW() / (AB.NumberVars.MirrorSize / 10)
  4694.  
  4695. CamData.h = ScrH() / (AB.NumberVars.MirrorSize / 10)
  4696.  
  4697. CamData.drawviewmodel = false
  4698.  
  4699. CamData.drawhud = false
  4700.  
  4701. CamData.fov = 90
  4702.  
  4703. render.RenderView( CamData )
  4704.  
  4705. end
  4706.  
  4707.  
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713. if AB.Vars.PreviewTarget then
  4714.  
  4715. local t = AB.AimbotPreviewTarget
  4716.  
  4717. if isvector( t ) then
  4718.  
  4719. local p = t:ToScreen()
  4720.  
  4721. surface.SetDrawColor(Color(255,155,55,255))
  4722.  
  4723. surface.DrawRect(p.x-1, p.y + 6, 2, 20)
  4724.  
  4725. surface.DrawRect(p.x-1, p.y - (6 + 20), 2, 20)
  4726.  
  4727. surface.DrawRect(p.x + 6, p.y-1, 20, 2)
  4728.  
  4729. surface.DrawRect(p.x - (6 + 20), p.y-1, 20, 2)
  4730.  
  4731. end
  4732.  
  4733. end
  4734.  
  4735.  
  4736.  
  4737.  
  4738.  
  4739. if AB.Vars.Radar then
  4740.  
  4741. local size = AB.NumberVars.RadarSize
  4742.  
  4743. local fov = AB.NumberVars.RadarZoom
  4744.  
  4745. local x = AB.NumberVars.RadarX
  4746.  
  4747. local y = AB.NumberVars.RadarY
  4748.  
  4749.  
  4750.  
  4751. surface.SetDrawColor(AB.DefaultScheme.r, AB.DefaultScheme.g, AB.DefaultScheme.b, AB.NumberVars.RadarAlpha)
  4752.  
  4753. surface.DrawRect(x - 2, y - 2, size + 4, size + 4)
  4754.  
  4755.  
  4756.  
  4757.  
  4758.  
  4759. surface.SetDrawColor(Color(20, 20, 20, AB.NumberVars.RadarAlpha))
  4760.  
  4761. surface.DrawRect(x, y, size, size)
  4762.  
  4763. surface.SetDrawColor(Color(30, 30, 30, 255))
  4764.  
  4765. surface.DrawLine(x, y, x + (size / 2), y + (size / 2))
  4766.  
  4767. surface.DrawLine(x + size, y, x + (size / 2), y + (size / 2))
  4768.  
  4769.  
  4770.  
  4771. surface.SetDrawColor(AB.DefaultScheme)
  4772.  
  4773. surface.DrawRect((x -2)+ (size/2), (y-2) + (size/2), 4, 4)
  4774.  
  4775.  
  4776.  
  4777. for key, ply in pairs(player.GetAll()) do
  4778.  
  4779. local teamcol, teamcol2 = AB.GetESPColor( ply )
  4780.  
  4781.  
  4782.  
  4783.  
  4784.  
  4785. if ply != me and !AB.IsDead( ply ) then
  4786.  
  4787. local lx = me:GetPos().x - ply:GetPos().x
  4788.  
  4789. local ly = me:GetPos().y - ply:GetPos().y
  4790.  
  4791. local ang = EyeAngles().y
  4792.  
  4793. local cos = math.cos(math.rad(-ang))
  4794.  
  4795. local sin = math.sin(math.rad(-ang))
  4796.  
  4797. local px = (ly * cos) + (lx * sin)
  4798.  
  4799. local py = (lx * cos) - (ly * sin)
  4800.  
  4801. px = px / fov
  4802.  
  4803. py = py / fov
  4804.  
  4805. px = math.Clamp(px, -(size * 0.50), size * 0.50)
  4806.  
  4807. py = math.Clamp(py, -(size * 0.50), size * 0.50)
  4808.  
  4809. local name = player.GetAll()[key]:Nick()
  4810.  
  4811. draw.SimpleText(name, "default", x + size - (size * 0.50) + px - 13, y + size - (size * 0.50) + py - 7, teamcol2, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  4812.  
  4813. surface.SetDrawColor(teamcol)
  4814.  
  4815. surface.DrawRect(x + size - (size * 0.50) + px, y + size - (size * 0.50) + py, 3, 3)
  4816.  
  4817.  
  4818.  
  4819. end
  4820.  
  4821.  
  4822.  
  4823. end
  4824.  
  4825.  
  4826.  
  4827. end
  4828.  
  4829.  
  4830.  
  4831. if AB.Vars.Crosshair then
  4832.  
  4833. local hitpos = util.TraceLine ({
  4834.  
  4835. start = me:GetShootPos(),
  4836.  
  4837. endpos = me:GetShootPos() + me:GetAimVector() * 4096,
  4838.  
  4839. filter = me,
  4840.  
  4841. mask = MASK_SHOT
  4842.  
  4843. }).HitPos
  4844.  
  4845.  
  4846.  
  4847. local screenpos = hitpos:ToScreen()
  4848.  
  4849. local x = screenpos.x
  4850.  
  4851. local y = screenpos.y
  4852.  
  4853.  
  4854.  
  4855. surface.SetDrawColor(Color(255, 255, 255, 255))
  4856.  
  4857. surface.DrawRect((ScrW() / 2) - 1, (ScrH() / 2) - 1, 2, 2)
  4858.  
  4859. surface.DrawRect(x-1, y + 6, 2, 20)
  4860.  
  4861. surface.DrawRect(x-1, y - (6 + 20), 2, 20)
  4862.  
  4863. surface.DrawRect(x + 6, y-1, 20, 2)
  4864.  
  4865. surface.DrawRect(x - (6 + 20), y-1, 20, 2)
  4866.  
  4867.  
  4868.  
  4869. if AB.CrossHairAlpha > 0 then AB.CrossHairAlpha = math.Clamp(AB.CrossHairAlpha - 6, 0, 255) end
  4870.  
  4871. surface.SetDrawColor(Color(255, 255, 255, AB.CrossHairAlpha))
  4872.  
  4873. surface.DrawLine(x - 24, y + 24, x - 6, y + 6)
  4874.  
  4875. surface.DrawLine(x + 24, y + 24, x + 6, y + 6)
  4876.  
  4877. surface.DrawLine(x - 24, y - 24, x - 6, y - 6)
  4878.  
  4879. surface.DrawLine(x + 24, y - 24, x + 6, y - 6)
  4880.  
  4881.  
  4882.  
  4883.  
  4884.  
  4885. end
  4886.  
  4887.  
  4888.  
  4889.  
  4890.  
  4891.  
  4892.  
  4893.  
  4894.  
  4895. if isvector( AB.CurrentBase ) then
  4896.  
  4897. local sc = (AB.CurrentBase + Vector( 0, 0, 10 )):ToScreen()
  4898.  
  4899.  
  4900.  
  4901. draw.SimpleText("My Base", "default", sc.x, sc.y - 42, AB.DefaultScheme, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4902.  
  4903. draw.SimpleText( AB.ToMetric( LocalPlayer():GetPos():Distance( AB.CurrentBase ) ).."m", "default", sc.x, sc.y - 30, AB.DefaultScheme, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  4904.  
  4905. surface.SetDrawColor( Color(205,205,255, 100 ) )
  4906.  
  4907. draw.NoTexture()
  4908.  
  4909. local triangle = {
  4910.  
  4911. { x = sc.x - 10, y = sc.y - 20 },
  4912.  
  4913. { x = sc.x + 10, y = sc.y - 20 },
  4914.  
  4915. { x = sc.x, y = sc.y },
  4916.  
  4917. }
  4918.  
  4919. surface.DrawPoly( triangle )
  4920.  
  4921.  
  4922.  
  4923. end
  4924.  
  4925.  
  4926.  
  4927. if AB.Vars.KeypadJew then
  4928.  
  4929.  
  4930.  
  4931. local e = me:GetEyeTrace().Entity
  4932.  
  4933. if IsValid(e) and string.find( e:GetClass(), "Keypad") then
  4934.  
  4935. local text;
  4936.  
  4937. local color;
  4938.  
  4939. if(e.code && e.code != "") then
  4940.  
  4941. text = e.code;
  4942.  
  4943. color = Color( 105, 255, 105, 150 )
  4944.  
  4945. elseif(e.tempCode && e.tempCode != "") then
  4946.  
  4947. text = e.tempCode;
  4948.  
  4949. color = Color( 250, 150, 150, 150 )
  4950.  
  4951. else
  4952.  
  4953. text = "Unknown"
  4954.  
  4955. color = Color(150,150,150,150)
  4956.  
  4957. end
  4958.  
  4959. -- draw.WordBox( 8, ScrW() / 2, ScrH() / 2, text, "Default", color, Color(255,255,255,255) )
  4960.  
  4961.  
  4962.  
  4963. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  4964.  
  4965. surface.SetMaterial( grad )
  4966.  
  4967. surface.DrawTexturedRect( ScrW() / 2 + 57, ScrH() / 2 - 7, 50, 15 )
  4968.  
  4969. draw.SimpleText(text, "DermaDefault", ScrW() / 2 + 60, ScrH() / 2, color, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  4970.  
  4971.  
  4972.  
  4973. end
  4974.  
  4975.  
  4976.  
  4977. for k,v in pairs(ents.GetAll()) do
  4978.  
  4979. if IsValid(v) and string.find( v:GetClass(), "Keypad") then
  4980.  
  4981. if v != e and me:GetPos():Distance( v:GetPos() ) < 8000 then
  4982.  
  4983. local pos = v:GetPos():ToScreen()
  4984.  
  4985. if pos.x > 0 and pos.x < ScrW() and pos.y > 0 and pos.y < ScrH() then
  4986.  
  4987. if (v.code && v.code != "") then
  4988.  
  4989. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  4990.  
  4991. surface.SetMaterial( grad )
  4992.  
  4993. surface.DrawTexturedRect( pos.x, pos.y, 50, 15 )
  4994.  
  4995. draw.SimpleText( v.code, "DermaDefault", pos.x + 5, pos.y + 6, Color( 105, 255, 105, 150 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  4996.  
  4997.  
  4998.  
  4999. -- draw.WordBox( 8, pos.x-5, pos.y-5, v.code, "Default", Color( 0, 255, 0, 150 ), Color(255,255,255,255) )
  5000.  
  5001. else
  5002.  
  5003. if(v.tempCode && v.tempCode != "") then
  5004.  
  5005. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  5006.  
  5007. surface.SetMaterial( grad )
  5008.  
  5009. surface.DrawTexturedRect( pos.x, pos.y, 50, 15 )
  5010.  
  5011. draw.SimpleText( v.tempCode, "DermaDefault", pos.x + 5, pos.y + 6, Color( 250, 150, 150, 150 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  5012.  
  5013. else
  5014.  
  5015. surface.SetDrawColor( Color( 0,0,50, 150 ) )
  5016.  
  5017. surface.SetMaterial( grad )
  5018.  
  5019. surface.DrawTexturedRect( pos.x, pos.y, 50, 15 )
  5020.  
  5021. draw.SimpleText( "Unknown", "DermaDefault", pos.x + 5, pos.y + 6, Color(150,150,150,150), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  5022.  
  5023. end
  5024.  
  5025. end
  5026.  
  5027. end
  5028.  
  5029. end
  5030.  
  5031. end
  5032.  
  5033. end
  5034.  
  5035.  
  5036.  
  5037. end
  5038.  
  5039.  
  5040.  
  5041.  
  5042.  
  5043. if AB.Vars.Bhop then
  5044.  
  5045. local sped = me:GetVelocity():Length()
  5046.  
  5047. draw.SimpleText("Velocity: "..math.Round( sped ), "DermaDefault", (ScrW() / 2), ScrH() - 60, AB.DefaultScheme, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  5048.  
  5049. surface.SetDrawColor( AB.DefaultScheme )
  5050.  
  5051. surface.DrawOutlinedRect( (ScrW() / 2) - 100, ScrH() - 50, 200, 10 )
  5052.  
  5053. surface.SetDrawColor( Color( AB.DefaultScheme.r, AB.DefaultScheme.g, AB.DefaultScheme.b, 100 ) )
  5054.  
  5055. surface.DrawRect( (ScrW() / 2) - 100, ScrH() - 50, math.Clamp( (sped / 2000) * 200, 0, 200 ), 10 )
  5056.  
  5057. end
  5058.  
  5059.  
  5060.  
  5061.  
  5062.  
  5063. if AB.Vars.WitnessDetector then
  5064.  
  5065.  
  5066.  
  5067. if #AB.Witnesses > 0 then
  5068.  
  5069. surface.SetDrawColor( Color(50, 50, 90, 255) )
  5070.  
  5071. surface.DrawRect( (ScrW() / 2) - 150, 0, 300, (#AB.Witnesses * 20) + 30)
  5072.  
  5073. surface.SetDrawColor( Color(0, 0, 0, 250) )
  5074.  
  5075. surface.DrawRect( (ScrW() / 2) - 145, 25, 290, (#AB.Witnesses * 20) )
  5076.  
  5077. draw.SimpleText("These people can see you", "DermaDefault", (ScrW() / 2) - 63, 10, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083. for k, v in pairs(AB.Witnesses) do
  5084.  
  5085. if !v:IsValid() then continue end -- let this pass silently, it only spams briefly when some faggot dcs anyway
  5086.  
  5087. draw.SimpleText(v:Nick(), "DermaDefault", (ScrW() / 2) - 140, 8 + (k * 20), AB.GetESPColor( v ) )
  5088.  
  5089. end
  5090.  
  5091.  
  5092.  
  5093. end
  5094.  
  5095. end
  5096.  
  5097.  
  5098.  
  5099. if AB.Vars.SpectatorDetector then
  5100.  
  5101. local starty = 0
  5102.  
  5103. if AB.Vars.WitnessDetector then starty = (#AB.Witnesses * 20) + 35 end
  5104.  
  5105.  
  5106.  
  5107. if AB.TheyHaveEyesEverywhere and #AB.TheyHaveEyesEverywhere > 0 then
  5108.  
  5109. surface.SetDrawColor( Color(50, 50, 90, 255) )
  5110.  
  5111. surface.DrawRect( (ScrW() / 2) - 150, starty, 300, (#AB.TheyHaveEyesEverywhere * 20) + 30)
  5112.  
  5113. surface.SetDrawColor( Color(0, 0, 0, 250) )
  5114.  
  5115. surface.DrawRect( (ScrW() / 2) - 145, starty + 25, 290, (#AB.TheyHaveEyesEverywhere * 20) )
  5116.  
  5117. draw.SimpleText("These people are spectating you", "DermaDefault", (ScrW() / 2) - 63, starty + 10, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123. for k, v in pairs( AB.TheyHaveEyesEverywhere ) do
  5124.  
  5125. if !v:IsValid() then continue end -- let this pass silently, it only spams briefly when some faggot dcs anyway
  5126.  
  5127. draw.SimpleText(v:Nick(), "DermaDefault", (ScrW() / 2) - 140, starty + 8 + (k * 20), AB.GetESPColor( v ) )
  5128.  
  5129. end
  5130.  
  5131.  
  5132.  
  5133. end
  5134.  
  5135. end
  5136.  
  5137.  
  5138.  
  5139. -- ent scanner
  5140.  
  5141. if AB.EntScanner then
  5142.  
  5143.  
  5144.  
  5145. local c = me:GetEyeTrace()
  5146.  
  5147. local screenpos = c.HitPos:ToScreen()
  5148.  
  5149. local x = screenpos.x
  5150.  
  5151. local y = screenpos.y
  5152.  
  5153. local pulse = math.abs( math.sin( CurTime() * 2 ) )
  5154.  
  5155. surface.SetDrawColor( AB.DefaultScheme )
  5156.  
  5157. surface.SetMaterial( scanmat )
  5158.  
  5159. surface.DrawTexturedRect( x - (15 + (pulse * 15)), y - (15 + (pulse * 15)), 30 + (pulse * 30), 30 + (pulse * 30) )
  5160.  
  5161. surface.SetDrawColor( AB.DefaultScheme2 )
  5162.  
  5163. surface.DrawTexturedRect( x - (12 + (pulse * 12)), y - (12 + (pulse * 12)), 24 + (pulse * 24), 24 + (pulse * 24) )
  5164.  
  5165.  
  5166.  
  5167. if c.Entity and c.Entity:IsValid() then
  5168.  
  5169. AB.EntScannerTab = {}
  5170.  
  5171. local e = c.Entity
  5172.  
  5173. AB.EntScannerEnt = e
  5174.  
  5175.  
  5176.  
  5177. if e:IsPlayer() then
  5178.  
  5179. table.insert( AB.EntScannerTab, e:Nick() )
  5180.  
  5181. table.insert( AB.EntScannerTab, {e:SteamID(), Color(255,255,255)} )
  5182.  
  5183. table.insert( AB.EntScannerTab, {AB.GetRank( e ), Color( 255, 100, 0 )} )
  5184.  
  5185. table.insert( AB.EntScannerTab, "Health: "..e:Health().."% Armor: "..e:Armor().."%" )
  5186.  
  5187. if DarkRP then
  5188.  
  5189. table.insert( AB.EntScannerTab, {DarkRP.formatMoney(e:getDarkRPVar("money")) or "$ERROR", Color( 50, 255, 50)} )
  5190.  
  5191. table.insert( AB.EntScannerTab, {"Real Name: "..e:SteamName(), Color( 150, 150, 150)} )
  5192.  
  5193. end
  5194.  
  5195.  
  5196.  
  5197. if e:GetActiveWeapon() then table.insert( AB.EntScannerTab, "Holding: "..(e:GetActiveWeapon():GetClass() or "None" ) ) end
  5198.  
  5199. local weps = {}
  5200.  
  5201. for _, g in pairs( e:GetWeapons() ) do table.insert( weps, g:GetClass() )end
  5202.  
  5203. table.insert( AB.EntScannerTab, {table.ToString( weps ), Color(155,155,255)} )
  5204.  
  5205. end
  5206.  
  5207. table.insert( AB.EntScannerTab, e:GetClass() )
  5208.  
  5209. table.insert( AB.EntScannerTab, e:GetModel() )
  5210.  
  5211. table.insert( AB.EntScannerTab, "Distance: "..AB.ToMetric(e:GetPos():Distance( me:GetPos() )).."m" )
  5212.  
  5213.  
  5214.  
  5215. end
  5216.  
  5217.  
  5218.  
  5219. local textx, texty = ScrW() / 2 + 50, ScrH() / 2
  5220.  
  5221. for k, v in pairs(AB.EntScannerTab) do
  5222.  
  5223. if istable( v ) then
  5224.  
  5225. draw.SimpleTextOutlined( v[1], "default", textx + 40, (texty - 40) + (k * 12), v[2], 0, 0, 1, Color(0,0,0) )
  5226.  
  5227. else
  5228.  
  5229. draw.SimpleTextOutlined( v, "default", textx + 40, (texty - 40) + (k * 12), AB.DefaultScheme, 0, 0, 1, Color(0,0,0) )
  5230.  
  5231. end
  5232.  
  5233. end
  5234.  
  5235.  
  5236.  
  5237.  
  5238.  
  5239. end
  5240.  
  5241.  
  5242.  
  5243. AB.MemoryDebug["hud"] = gcinfo() - memfootprint
  5244.  
  5245.  
  5246.  
  5247. end
  5248.  
  5249. hook.Add("HUDPaint", "ab_hud", AB.Vision)
  5250.  
  5251.  
  5252.  
  5253.  
  5254.  
  5255.  
  5256.  
  5257.  
  5258.  
  5259. ---------------------------------------------- NEW XRAY HERE -------------------------------------------------
  5260.  
  5261.  
  5262.  
  5263.  
  5264.  
  5265. /*
  5266.  
  5267. if AB.Vars.Xray then
  5268.  
  5269.  
  5270.  
  5271. for k, v in pairs(ents.GetAll()) do
  5272.  
  5273.  
  5274.  
  5275. if AB.ToMetric(me:GetPos():Distance(v:GetPos())) > AB.NumberVars.XrayDistance then if v:GetColor().a == 100 then v:SetColor(Color(255,255,255,255)) end continue end
  5276.  
  5277.  
  5278.  
  5279. -- set rendermode none?
  5280.  
  5281.  
  5282.  
  5283. if AB.Vars.XrayPlayers then
  5284.  
  5285. if v:IsValid() and v:IsPlayer() and v != LocalPlayer() and !AB.IsDead( v ) and AB.OnScreen( v ) then
  5286.  
  5287. cam.Start3D(EyePos(),EyeAngles())
  5288.  
  5289. if AB.Vars.NoChamColours then
  5290.  
  5291. v:SetMaterial(AB.mat1)
  5292.  
  5293. v:SetRenderMode(4)
  5294.  
  5295. v:SetColor(xraytrans)
  5296.  
  5297. render.SuppressEngineLighting( true )
  5298.  
  5299. render.MaterialOverride( AB.mat1 )
  5300.  
  5301. end
  5302.  
  5303. if AB.Vars.PKChams and AB.Vars.NoChamColours then render.SetColorModulation( 0, 1, 0 ) render.SetBlend(0.8) else render.SetColorModulation( AB.ColScheme.x, AB.ColScheme.y, AB.ColScheme.z ) render.SetBlend(0.3) end
  5304.  
  5305. v:DrawModel()
  5306.  
  5307. if IsValid( v:GetActiveWeapon() ) then
  5308.  
  5309. if AB.Vars.NoChamColours then render.SetColorModulation( AB.ColScheme2.x, AB.ColScheme2.y, AB.ColScheme2.z ) end
  5310.  
  5311. v:GetActiveWeapon():DrawModel()
  5312.  
  5313. end
  5314.  
  5315. render.SetBlend(1)
  5316.  
  5317. render.SuppressEngineLighting( false )
  5318.  
  5319. render.MaterialOverride( )
  5320.  
  5321. -- v:SetColor(Color(255,255,255,255))
  5322.  
  5323. cam.End3D()
  5324.  
  5325.  
  5326.  
  5327. end
  5328.  
  5329. end
  5330.  
  5331. if AB.Vars.XrayProps then
  5332.  
  5333. if v:IsValid() and v:GetClass() == "prop_physics" and AB.OnScreen( v ) then
  5334.  
  5335. cam.Start3D(EyePos(),EyeAngles())
  5336.  
  5337. if AB.Vars.NoChamColours then
  5338.  
  5339. v:SetMaterial(AB.mat1)
  5340.  
  5341. v:SetRenderMode(4)
  5342.  
  5343. v:SetColor(xraytrans)
  5344.  
  5345. render.SuppressEngineLighting( true )
  5346.  
  5347. render.MaterialOverride( AB.mat1 )
  5348.  
  5349. end
  5350.  
  5351. if AB.Vars.PKChams and AB.Vars.NoChamColours then render.SetColorModulation( 1, 0.2, 0 ) render.SetBlend(0.6) else render.SetColorModulation( AB.ColScheme2.x, AB.ColScheme2.y, AB.ColScheme2.z ) render.SetBlend(0.3) end
  5352.  
  5353. v:DrawModel()
  5354.  
  5355. render.SetBlend(1)
  5356.  
  5357. render.SuppressEngineLighting( false )
  5358.  
  5359. render.MaterialOverride( )
  5360.  
  5361. -- v:SetColor(Color(255,255,255,255))
  5362.  
  5363. cam.End3D()
  5364.  
  5365. end
  5366.  
  5367. end
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373. if AB.Vars.XrayEntfinder then
  5374.  
  5375. local drawing = false
  5376.  
  5377.  
  5378.  
  5379. for i,p in pairs(AB.MarkedEnts) do
  5380.  
  5381. if v:GetClass() == p then
  5382.  
  5383. drawing = true
  5384.  
  5385. end
  5386.  
  5387. end
  5388.  
  5389.  
  5390.  
  5391. if drawing and AB.OnScreen( v ) then
  5392.  
  5393. cam.Start3D(EyePos(),EyeAngles())
  5394.  
  5395. v:SetMaterial(AB.mat1)
  5396.  
  5397. v:SetRenderMode(4)
  5398.  
  5399. v:SetColor(xraytrans)
  5400.  
  5401. render.SuppressEngineLighting( true )
  5402.  
  5403. render.MaterialOverride( AB.mat1 )
  5404.  
  5405. render.SetColorModulation( AB.ColScheme2.x, AB.ColScheme2.y, AB.ColScheme2.z )
  5406.  
  5407. render.SetBlend(0.3)
  5408.  
  5409. v:DrawModel()
  5410.  
  5411. render.SetBlend(1)
  5412.  
  5413. render.SuppressEngineLighting( false )
  5414.  
  5415. render.MaterialOverride( )
  5416.  
  5417. -- v:SetColor(Color(255,255,255,255))
  5418.  
  5419. cam.End3D()
  5420.  
  5421. end
  5422.  
  5423.  
  5424.  
  5425. end
  5426.  
  5427.  
  5428.  
  5429.  
  5430.  
  5431.  
  5432.  
  5433. end
  5434.  
  5435. end
  5436.  
  5437. */
  5438.  
  5439.  
  5440.  
  5441.  
  5442.  
  5443. function AB.DrawXrayEntity( ent, col, domat, ghost )
  5444.  
  5445. cam.Start3D( EyePos(), EyeAngles() )
  5446.  
  5447. cam.IgnoreZ( true )
  5448.  
  5449. if domat then render.MaterialOverride( AB.Mat1 ) end
  5450.  
  5451. render.SuppressEngineLighting( true )
  5452.  
  5453. render.SetColorModulation( col.r / 255, col.g / 255, col.b / 255 )
  5454.  
  5455. if ghost then render.SetBlend( 0.3 ) end
  5456.  
  5457. ent:DrawModel()
  5458.  
  5459. render.SuppressEngineLighting( false )
  5460.  
  5461. cam.IgnoreZ( false )
  5462.  
  5463. render.MaterialOverride()
  5464.  
  5465. cam.End3D()
  5466.  
  5467. end
  5468.  
  5469.  
  5470.  
  5471.  
  5472.  
  5473. function AB.DoXray()
  5474.  
  5475. local me = LocalPlayer()
  5476.  
  5477. if !me or !me:IsValid() or !AB.Vars.Xray then return end
  5478.  
  5479.  
  5480.  
  5481. local fags = ents.GetAll()
  5482.  
  5483. -- table.sort( fags, function( a, b ) return a:GetPos():DistToSqr( EyePos() ) > b:GetPos():DistToSqr( EyePos() ) end )
  5484.  
  5485.  
  5486.  
  5487. for k, v in ipairs( fags ) do
  5488.  
  5489. if !AB.OnScreen( v, 50 ) or AB.ToMetric( me:GetPos():Distance( v:GetPos() ) ) > AB.NumberVars.XrayDistance then continue end
  5490.  
  5491.  
  5492.  
  5493. -- players loop
  5494.  
  5495. if AB.Vars.XrayPlayers and v:IsPlayer() then
  5496.  
  5497. if v == LocalPlayer() or !v:Alive() then continue end
  5498.  
  5499. local teamcol, teamcol2
  5500.  
  5501. if AB.Vars.TeamColors then
  5502.  
  5503. teamcol = team.GetColor(v:Team())
  5504.  
  5505. teamcol2 = Color(math.Clamp(teamcol.r - 100, 0, 255), math.Clamp(teamcol.g - 100, 0, 255), math.Clamp(teamcol.b - 100, 0, 255), 255)
  5506.  
  5507. elseif AB.Vars.PKChams then
  5508.  
  5509. teamcol = Color( 0, 255, 0 ) teamcol2 = Color( 255, 0, 0 )
  5510.  
  5511. else
  5512.  
  5513. teamcol = AB.DefaultScheme teamcol2 = AB.DefaultScheme2
  5514.  
  5515. end
  5516.  
  5517.  
  5518.  
  5519. AB.DrawXrayEntity( v, teamcol, AB.Vars.NoChamColours, !AB.Vars.XraySolid )
  5520.  
  5521.  
  5522.  
  5523. local gun = v:GetActiveWeapon()
  5524.  
  5525. if gun and gun:IsValid() then AB.DrawXrayEntity( gun, teamcol2, AB.Vars.NoChamColours, !AB.Vars.XraySolid ) end
  5526.  
  5527. end
  5528.  
  5529.  
  5530.  
  5531. -- props loop
  5532.  
  5533. if AB.Vars.XrayProps and v:GetClass() == "prop_physics" then
  5534.  
  5535. local teamcol, teamcol2
  5536.  
  5537. if AB.Vars.PKChams then
  5538.  
  5539. teamcol = Color( 0, 255, 0 ) teamcol2 = Color( 255, 0, 0 )
  5540.  
  5541. else
  5542.  
  5543. teamcol = AB.DefaultScheme teamcol2 = AB.DefaultScheme2
  5544.  
  5545. end
  5546.  
  5547. AB.DrawXrayEntity( v, teamcol2, AB.Vars.NoChamColours, true )
  5548.  
  5549. end
  5550.  
  5551.  
  5552.  
  5553. -- ents loop
  5554.  
  5555. if AB.Vars.XrayEntfinder and table.HasValue( AB.MarkedEnts, v:GetClass() ) then
  5556.  
  5557. local teamcol, teamcol2
  5558.  
  5559. if AB.Vars.PKChams then
  5560.  
  5561. teamcol = Color( 255, 255, 0 ) teamcol2 = Color( 255, 255, 0 )
  5562.  
  5563. else
  5564.  
  5565. teamcol = AB.DefaultScheme teamcol2 = AB.DefaultScheme2
  5566.  
  5567. end
  5568.  
  5569. AB.DrawXrayEntity( v, teamcol, AB.Vars.NoChamColours, true )
  5570.  
  5571. end
  5572.  
  5573.  
  5574.  
  5575. end
  5576.  
  5577. end
  5578.  
  5579.  
  5580.  
  5581. hook.Add( "PreDrawHUD", "AB_NewXray", AB.DoXray )
  5582.  
  5583.  
  5584.  
  5585.  
  5586.  
  5587.  
  5588.  
  5589.  
  5590.  
  5591.  
  5592.  
  5593.  
  5594.  
  5595. function AB.PKBeamsCore()
  5596.  
  5597. if AB.Vars.PKVerticalBeams then
  5598.  
  5599. render.SetMaterial( beammat )
  5600.  
  5601. for k, v in pairs( player.GetAll()) do
  5602.  
  5603. if !v:Alive() or v == LocalPlayer() then continue end
  5604.  
  5605. render.DrawBeam( v:GetPos() + Vector( 0, 0, -2000 ), v:GetPos() + Vector( 0, 0, 2000 ), 50, 0, 1, Color(255,255,255) )
  5606.  
  5607. end
  5608.  
  5609. end
  5610.  
  5611. end
  5612.  
  5613. hook.Add("PostDrawTranslucentRenderables", "ab_beams", AB.PKBeamsCore)
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619. function AB.ToggleEntityScanner()
  5620.  
  5621. if !AB.EntScanner then
  5622.  
  5623. AB.EntScanner = true
  5624.  
  5625. AB.ScannerButton1 = AB.MakeFloatingButton( ScrW() / 2 - 180, (ScrH() / 2) - 50, "Copy to Console", function() print(AB.EntScannerEnt)
  5626.  
  5627. for k, v in pairs( AB.EntScannerTab ) do
  5628.  
  5629. if istable( v ) then MsgC( v[2], v[1].."\n" ) else MsgN( v ) end
  5630.  
  5631. end
  5632.  
  5633. end)
  5634.  
  5635.  
  5636.  
  5637. AB.ScannerButton2 = AB.MakeFloatingButton( ScrW() / 2 - 180, (ScrH() / 2) - 20, "Add class to ESP", function()
  5638.  
  5639. if table.HasValue( AB.MarkedEnts, AB.EntScannerEnt:GetClass() ) then AB.ChatText( "Already marked!", Color(255,205,205) ) return end
  5640.  
  5641. AB.ChatText( "Added "..AB.EntScannerEnt:GetClass().." to marked ent classes", Color(255,255,255) )
  5642.  
  5643. table.insert(AB.MarkedEnts, AB.EntScannerEnt:GetClass())
  5644.  
  5645. end)
  5646.  
  5647.  
  5648.  
  5649. AB.ChatText( "Enabled Entity Scanner", Color(255,255,255) )
  5650.  
  5651. else
  5652.  
  5653. AB.EntScanner = false
  5654.  
  5655. AB.ChatText( "Disabled Entity Scanner", Color(255,205,205) )
  5656.  
  5657. if AB.ScannerButton1 then AB.ScannerButton1:Remove() end
  5658.  
  5659. if AB.ScannerButton2 then AB.ScannerButton2:Remove() end
  5660.  
  5661. end
  5662.  
  5663. end
  5664.  
  5665.  
  5666.  
  5667. AB.MouseReleased = false
  5668.  
  5669. function AB.ToggleFreeMouse()
  5670.  
  5671. if !AB.MouseReleased then
  5672.  
  5673. gui.EnableScreenClicker( true )
  5674.  
  5675. AB.MouseReleased = true
  5676.  
  5677. else
  5678.  
  5679. gui.EnableScreenClicker( false )
  5680.  
  5681. AB.MouseReleased = false
  5682.  
  5683. end
  5684.  
  5685. end
  5686.  
  5687. concommand.Add("ace_toggle_mouse_cursor", AB.ToggleFreeMouse)
  5688.  
  5689.  
  5690.  
  5691. function AB.CalcView( ply, pos, angles, fov )
  5692.  
  5693. local me = LocalPlayer()
  5694.  
  5695. if !me:IsValid() or !me:Alive() or me:GetViewEntity() != me or me:InVehicle() then return end
  5696.  
  5697.  
  5698.  
  5699. local tps = {}
  5700.  
  5701.  
  5702.  
  5703. if AB.Vars.SilentAim and !AB.Vars.Thirdperson and lastoldang and isangle( lastoldang ) then
  5704.  
  5705. tps.origin = me:EyePos()
  5706.  
  5707. tps.angles = lastoldang
  5708.  
  5709. tps.fov = fov
  5710.  
  5711. return tps
  5712.  
  5713. end
  5714.  
  5715.  
  5716.  
  5717. if AB.Vars.NoRecoil and !AB.Vars.Thirdperson then
  5718.  
  5719. -- tps.origin = me:EyePos()
  5720.  
  5721. tps.angles = me:EyeAngles()
  5722.  
  5723. -- tps.fov = fov
  5724.  
  5725. return tps
  5726.  
  5727. end
  5728.  
  5729.  
  5730.  
  5731. if AB.Vars.Thirdperson then
  5732.  
  5733. if AB.RenderPanic then return end
  5734.  
  5735. local trace = util.TraceLine( { start = pos - ply:GetForward() * 2, endpos = pos - angles:Forward() * AB.NumberVars.TPSDistance, filter = player.GetAll(), mask = MASK_SHOT } )
  5736.  
  5737. tps.origin = trace.HitPos + ply:GetForward() * 20 + ply:GetRight() * AB.NumberVars.TPSOffset
  5738.  
  5739. tps.angles = angles
  5740.  
  5741. tps.fov = fov
  5742.  
  5743. return tps
  5744.  
  5745. end
  5746.  
  5747.  
  5748.  
  5749. end
  5750.  
  5751. hook.Add("CalcView", "ab_calcview", AB.CalcView)
  5752.  
  5753.  
  5754.  
  5755.  
  5756.  
  5757. function AB.ICanSeeMyAss( ply )
  5758.  
  5759. if AB.Vars.Thirdperson then return true end
  5760.  
  5761. return false
  5762.  
  5763. end
  5764.  
  5765. hook.Add("ShouldDrawLocalPlayer", "ab_drawplayer", AB.ICanSeeMyAss)
  5766.  
  5767.  
  5768.  
  5769. -- it would be very wise to keep this disabled for now
  5770.  
  5771. /*
  5772.  
  5773. function AB.Transparency()
  5774.  
  5775. if AB.Vars.XrayProps then
  5776.  
  5777. for k, v in pairs(ents.GetAll()) do
  5778.  
  5779. render.SuppressEngineLighting( true )
  5780.  
  5781. end
  5782.  
  5783. end
  5784.  
  5785. end
  5786.  
  5787.  
  5788.  
  5789. hook.Add("RenderScene", "ab_transparency", AB.Transparency)
  5790.  
  5791. */
  5792.  
  5793.  
  5794.  
  5795. function AB.CheckWitnesses()
  5796.  
  5797. if !AB.Vars.WitnessDetector then return end
  5798.  
  5799. AB.Witnesses = {}
  5800.  
  5801. for k, v in pairs(player.GetAll()) do
  5802.  
  5803. if v:IsValid() and v != LocalPlayer() then
  5804.  
  5805. local Trace = {}
  5806.  
  5807. Trace.start = LocalPlayer():EyePos() + Vector(0, 0, 32)
  5808.  
  5809. Trace.endpos = v:EyePos() + Vector(0, 0, 32)
  5810.  
  5811. Trace.filter = {v, LocalPlayer()}
  5812.  
  5813.  
  5814.  
  5815. TraceRes = util.TraceLine(Trace)
  5816.  
  5817.  
  5818.  
  5819. if !TraceRes.Hit then
  5820.  
  5821. if (v:EyeAngles():Forward():Dot((LocalPlayer():EyePos() - v:EyePos())) > math.cos(math.rad(45))) then
  5822.  
  5823. if !table.HasValue(AB.Witnesses, v) then table.insert( AB.Witnesses, v ) end
  5824.  
  5825. end
  5826.  
  5827. end
  5828.  
  5829.  
  5830.  
  5831. end
  5832.  
  5833. end
  5834.  
  5835. end
  5836.  
  5837. timer.Create("ab_WitnessCheck", 0.5, 0, AB.CheckWitnesses)
  5838.  
  5839.  
  5840.  
  5841. local nxtscan = CurTime()
  5842.  
  5843. function AB.ScanForTraitors()
  5844.  
  5845. if nxtscan > CurTime() then return end
  5846.  
  5847. /*
  5848.  
  5849. for _, ply in pairs(player.GetAll()) do
  5850.  
  5851. if ply == LocalPlayer() then continue end
  5852.  
  5853. if ply:GetRole() == ROLE_DETECTIVE then continue end
  5854.  
  5855. if !ply:GetActiveWeapon() or !ply:GetActiveWeapon():IsValid() then continue end
  5856.  
  5857.  
  5858.  
  5859. if ply:GetActiveWeapon().CanBuy and table.HasValue( ply:GetActiveWeapon().CanBuy, ROLE_TRAITOR ) and !table.HasValue( AB.Traitors, ply ) then
  5860.  
  5861. table.insert( AB.Traitors, ply )
  5862.  
  5863. surface.PlaySound("buttons/bell1.wav")
  5864.  
  5865. AB.ChatText( ply:Nick().." is a filthy nasty traitor!", Color(255,100,0) )
  5866.  
  5867. end
  5868.  
  5869.  
  5870.  
  5871. end
  5872.  
  5873. */
  5874.  
  5875. nxtscan = CurTime() + 0.5
  5876.  
  5877.  
  5878.  
  5879. for _,v in pairs(ents.GetAll()) do
  5880.  
  5881. if GetRoundState() == 3 and v:IsWeapon() and type(v:GetOwner()) == "Player" and v.Buyer == nil and v.CanBuy and table.HasValue(v.CanBuy, 1) and !table.HasValue(AB.Traitors, v:GetOwner()) then
  5882.  
  5883. local owner = v:GetOwner()
  5884.  
  5885. if !owner:IsValid() then continue end
  5886.  
  5887. if owner:GetRole() == 2 then
  5888.  
  5889. v.Buyer = owner
  5890.  
  5891. else
  5892.  
  5893. table.insert(AB.Traitors, owner)
  5894.  
  5895. AB.ChatText( ply:Nick().." is a filthy nasty traitor! He bought a: "..v:GetClass(), Color(255,100,0) )
  5896.  
  5897. end
  5898.  
  5899. elseif GetRoundState() != 3 then
  5900.  
  5901. AB.Traitors = {}
  5902.  
  5903. end
  5904.  
  5905. end
  5906.  
  5907.  
  5908.  
  5909. end
  5910.  
  5911.  
  5912.  
  5913. function AB.ClearTraitors()
  5914.  
  5915. AB.Traitors = {}
  5916.  
  5917. end
  5918.  
  5919.  
  5920.  
  5921.  
  5922.  
  5923.  
  5924.  
  5925.  
  5926.  
  5927.  
  5928.  
  5929. function AB.ChokePackets( val )
  5930.  
  5931. if val then
  5932.  
  5933. odium.engine.SetChokedPacket( 0 )
  5934.  
  5935. end
  5936.  
  5937.  
  5938.  
  5939. end
  5940.  
  5941.  
  5942.  
  5943.  
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950.  
  5951.  
  5952.  
  5953.  
  5954.  
  5955. function AB.XrayShutoff()
  5956.  
  5957. for k, v in pairs(ents.GetAll()) do
  5958.  
  5959. v:SetColor(Color(255,255,255,255))
  5960.  
  5961. end
  5962.  
  5963. end
  5964.  
  5965.  
  5966.  
  5967. AB.IsTTT = false
  5968.  
  5969.  
  5970.  
  5971. local demotereasons = {
  5972.  
  5973. "Nigger",
  5974.  
  5975. "Faggot",
  5976.  
  5977. "Dickhead",
  5978.  
  5979. "Cuckold",
  5980.  
  5981. "RDM",
  5982.  
  5983. "Shit eating faggot",
  5984.  
  5985. "RDA",
  5986.  
  5987. "NLR",
  5988.  
  5989. "Fucking sped",
  5990.  
  5991. "kys",
  5992.  
  5993. "Shit server tbh fam",
  5994.  
  5995. "Bad scripts",
  5996.  
  5997. "Skid",
  5998.  
  5999. "Admin abuse",
  6000.  
  6001. "Abusing",
  6002.  
  6003. "Fuckwit",
  6004.  
  6005. "DarkRP Player",
  6006.  
  6007. }
  6008.  
  6009.  
  6010.  
  6011.  
  6012.  
  6013.  
  6014.  
  6015. ------------------------------------------------------------------------INSULT GENERATOR--------------------------------------------------------------------------------------
  6016.  
  6017.  
  6018.  
  6019.  
  6020.  
  6021.  
  6022.  
  6023. local openers = {
  6024.  
  6025. "get fucked",
  6026.  
  6027. "eat shit",
  6028.  
  6029. "fuck a baboon",
  6030.  
  6031. "suck my dingleberries",
  6032.  
  6033. "choke on steaming cum",
  6034.  
  6035. "die in a fire",
  6036.  
  6037. "gas yourself",
  6038.  
  6039. "sit on garden shears",
  6040.  
  6041. "choke on scrotum",
  6042.  
  6043. "shove a brick up your ass",
  6044.  
  6045. "swallow barbed wire",
  6046.  
  6047. "move to sweden",
  6048.  
  6049. "fuck a pig",
  6050.  
  6051. "bow to me",
  6052.  
  6053. "suck my ball sweat",
  6054.  
  6055. "come back when you aren't garbage",
  6056.  
  6057. "i will piss on everything you love",
  6058.  
  6059. "kill yourself",
  6060.  
  6061. "livestream suicide",
  6062.  
  6063. "neck yourself",
  6064.  
  6065. "go be black somewhere else",
  6066.  
  6067. "rotate on it",
  6068.  
  6069. "choke on it",
  6070.  
  6071. "blow it out your ass",
  6072.  
  6073. "go browse tumblr",
  6074.  
  6075. "go back to darkrp",
  6076.  
  6077. "sit on horse cock",
  6078.  
  6079. "drive off a cliff",
  6080.  
  6081. "rape yourself",
  6082.  
  6083. "get raped by niggers",
  6084.  
  6085. "fuck right off",
  6086.  
  6087. "you mother is a whore",
  6088.  
  6089. "come at me",
  6090.  
  6091. "go work the corner",
  6092.  
  6093. -- "you are literal cancer",
  6094.  
  6095. "why haven't you killed yourself yet",
  6096.  
  6097. "why do you even exist",
  6098.  
  6099. "shoot your balls off with a shotgun",
  6100.  
  6101. "sterilize yourself",
  6102.  
  6103. "convert to islam",
  6104.  
  6105. "drink bleach",
  6106.  
  6107. "remove yourself",
  6108.  
  6109. "choke on whale cock",
  6110.  
  6111. "suck shit",
  6112.  
  6113. "suck a cock",
  6114.  
  6115. "lick my sphincter",
  6116.  
  6117. "set yourself on fire",
  6118.  
  6119. "drink jenkem",
  6120.  
  6121. "get beaten to death by your dad",
  6122.  
  6123. "choke on your uncle's cock",
  6124.  
  6125. "get sat on by a 200kg feminist",
  6126.  
  6127. "blow off",
  6128.  
  6129. "join isis",
  6130.  
  6131. "stick your cock in a blender",
  6132.  
  6133. "OD yourself on meth",
  6134.  
  6135. "lie under a truck",
  6136.  
  6137. "lick a wall socket",
  6138.  
  6139. "swallow hot coals",
  6140.  
  6141. "die slowly",
  6142.  
  6143. "explode yourself",
  6144.  
  6145. "swing from the noose",
  6146.  
  6147. "end yourself",
  6148.  
  6149. "take your best shot",
  6150.  
  6151. "get shot in a gay bar",
  6152.  
  6153. "drink pozzed cum",
  6154.  
  6155. "marry a muslim",
  6156.  
  6157. "get a better cheat",
  6158.  
  6159. "rub your dick on a cheese grater",
  6160.  
  6161. "wrap a rake with barbed wire and sodomize yourself",
  6162.  
  6163. "close your gaping cunt",
  6164.  
  6165. }
  6166.  
  6167.  
  6168.  
  6169. local joiners = {
  6170.  
  6171. "cancer infested",
  6172.  
  6173. "cock sucking",
  6174.  
  6175. "fuck faced",
  6176.  
  6177. "cunt eyed",
  6178.  
  6179. "nigger fucking",
  6180.  
  6181. "candy ass",
  6182.  
  6183. "fairy ass fucking",
  6184.  
  6185. "shit licking",
  6186.  
  6187. "unlovable",
  6188.  
  6189. "disgusting",
  6190.  
  6191. "degenerate",
  6192.  
  6193. "fuck headed",
  6194.  
  6195. "dick lipped",
  6196.  
  6197. "autismal",
  6198.  
  6199. "gook eyed",
  6200.  
  6201. "mongoloided",
  6202.  
  6203. "cunt faced",
  6204.  
  6205. "dick fisted",
  6206.  
  6207. "worthless",
  6208.  
  6209. "bleeding cunted",
  6210.  
  6211. "hillary loving",
  6212.  
  6213. "maggot infested",
  6214.  
  6215. "boot lipped",
  6216.  
  6217. "chink eyed",
  6218.  
  6219. "shit skinned",
  6220.  
  6221. "nigger headed",
  6222.  
  6223. "lgbt supporting",
  6224.  
  6225. "cum stained",
  6226.  
  6227. }
  6228.  
  6229.  
  6230.  
  6231. local enders = {
  6232.  
  6233. "fuck face",
  6234.  
  6235. "poofter",
  6236.  
  6237. "jew cunt",
  6238.  
  6239. "fagmaster",
  6240.  
  6241. "goat rapist",
  6242.  
  6243. "rag head",
  6244.  
  6245. "cock cheese",
  6246.  
  6247. "vaginaphobe",
  6248.  
  6249. "coon",
  6250.  
  6251. "nigger",
  6252.  
  6253. "slag cunt",
  6254.  
  6255. "garbage man",
  6256.  
  6257. "paeodophile",
  6258.  
  6259. "kiddy toucher",
  6260.  
  6261. "pony fucker",
  6262.  
  6263. "tumblrite",
  6264.  
  6265. "sperglord",
  6266.  
  6267. "gorilla's dick",
  6268.  
  6269. "shit licker",
  6270.  
  6271. "shit slick",
  6272.  
  6273. "redditor",
  6274.  
  6275. "pig fucker",
  6276.  
  6277. "spastic",
  6278.  
  6279. "cuckold",
  6280.  
  6281. "chode gobbler",
  6282.  
  6283. "fuckwit",
  6284.  
  6285. "retard",
  6286.  
  6287. "mongoloid",
  6288.  
  6289. "elephants cunt",
  6290.  
  6291. "cunt",
  6292.  
  6293. "gook",
  6294.  
  6295. "fag lord",
  6296.  
  6297. "shit stain",
  6298.  
  6299. "mpgh skid",
  6300.  
  6301. "batch coder",
  6302.  
  6303. "pony fucker",
  6304.  
  6305. "furfag",
  6306.  
  6307. "half caste",
  6308.  
  6309. "double nigger",
  6310.  
  6311. "cock socket",
  6312.  
  6313. "cunt rag",
  6314.  
  6315. "anal wart",
  6316.  
  6317. "maggot",
  6318.  
  6319. "knob polisher",
  6320.  
  6321. "fudge packer",
  6322.  
  6323. "cock slave",
  6324.  
  6325. "trashmaster",
  6326.  
  6327. "shitskin",
  6328.  
  6329. "curry muncher",
  6330.  
  6331. "gator bait",
  6332.  
  6333. "bootlip",
  6334.  
  6335. "camel jockey",
  6336.  
  6337. "wog cunt",
  6338.  
  6339. "hooknosed kike",
  6340.  
  6341. "feminist",
  6342.  
  6343. "wop cunt",
  6344.  
  6345. "abbo",
  6346.  
  6347. "porch monkey",
  6348.  
  6349. "dago",
  6350.  
  6351. "anal secretion",
  6352.  
  6353. "pig cunt",
  6354.  
  6355. "insect",
  6356.  
  6357. "sub human",
  6358.  
  6359. "mental defect",
  6360.  
  6361. "fat whore",
  6362.  
  6363. "cunt blood",
  6364.  
  6365. "cunt rag",
  6366.  
  6367. "cotton picker",
  6368.  
  6369. "bum tickling fag",
  6370.  
  6371. "degenerate faggot",
  6372.  
  6373. "smegma lump",
  6374.  
  6375. "darkie",
  6376.  
  6377. "fuck toy",
  6378.  
  6379. "underage midget cunt",
  6380.  
  6381. "twelvie",
  6382.  
  6383. "faggot teenager",
  6384.  
  6385. "ankle biter",
  6386.  
  6387. "fat cunt american",
  6388.  
  6389. "bernie loving washout",
  6390.  
  6391. "fucking failure",
  6392.  
  6393. "cum dumpster",
  6394.  
  6395. "waste of skin",
  6396.  
  6397. "petrol sniffing coon",
  6398.  
  6399. "jenkem bottle",
  6400.  
  6401. "dirty jew",
  6402.  
  6403. "darkrp admin",
  6404.  
  6405. "cuck master",
  6406.  
  6407. "barrel of piss",
  6408.  
  6409. "tankard of shit",
  6410.  
  6411. "cock wart",
  6412.  
  6413. }
  6414.  
  6415.  
  6416.  
  6417. local adminstarts = {
  6418.  
  6419. "How much did you pay for that staff rank",
  6420.  
  6421. "Nice server you got here",
  6422.  
  6423. "How much did that gay ULX rank cost",
  6424.  
  6425. "I'll be back to shit on you again",
  6426.  
  6427. "This is only my first alt account",
  6428.  
  6429. "What autist gave you a staff rank",
  6430.  
  6431. "Banning me only makes my cock harder",
  6432.  
  6433. "I'll be back on a new account in 10 minutes",
  6434.  
  6435. "Your server deserves to be destroyed",
  6436.  
  6437. "It's been fun wrecking this shit hole",
  6438.  
  6439. "Stop touching me with your physgun",
  6440.  
  6441. "Letting you have admin was a mistake",
  6442.  
  6443. "Do what you must, I have already won",
  6444.  
  6445. "Bans mean nothing to me",
  6446.  
  6447. "You should appreciate me showing you how to break your terrible server security",
  6448.  
  6449. "I hunt down faggots like you for sport",
  6450.  
  6451. "I am better than you in every single way",
  6452.  
  6453. "I bypassed your anticheat and I'll bypass your ban too",
  6454.  
  6455. "Only power mad midget cucks become staff on darkrp",
  6456.  
  6457. "Lmao another bad server ruined",
  6458.  
  6459. "Watch me rejoin on a VPN",
  6460.  
  6461. }
  6462.  
  6463.  
  6464.  
  6465. -- i gave myself terminal autism writing these
  6466.  
  6467. local cancerstrike = {
  6468.  
  6469. "LOL fuk u silver scUm",
  6470.  
  6471. "nice aim doEs It cume in NOT N00be?",
  6472.  
  6473. "u r terible my doode",
  6474.  
  6475. "u almost hit me that time LOL",
  6476.  
  6477. "ur aim iz a joke my man",
  6478.  
  6479. "get shrekt skrub xdddd",
  6480.  
  6481. "u just got shitted on kidddd",
  6482.  
  6483. "i bet u r silver on csgo xD",
  6484.  
  6485. "u never stood a chance against my pSkillz",
  6486.  
  6487. "ur just 2bad to kill me :^(",
  6488.  
  6489. "dam im good",
  6490.  
  6491. "u wil never beat odium hax kidd :^)",
  6492.  
  6493. "eat shit and die xdd",
  6494.  
  6495. "do u use xashpass cos ur 2 bad to bypass cac :D",
  6496.  
  6497. "i laugh at ur shit skillz :D",
  6498.  
  6499. "get fukn owned kid xd",
  6500.  
  6501. "i kill u every time u shud try harder :^(",
  6502.  
  6503. "all u can do is die LOL",
  6504.  
  6505. "N00bez like u cant beat me LOL",
  6506.  
  6507. "u tried but im jus 2 gud 4 u",
  6508.  
  6509. "u cant even hit me LOL uninstall kid xd",
  6510.  
  6511. "git GUD skrub u r an embarasment",
  6512.  
  6513. "pathetic LOL",
  6514.  
  6515. "2 bad so sad u just bad :^(",
  6516.  
  6517. "im global elit in gmod xd",
  6518.  
  6519. "thx 4 free kill loser :D",
  6520.  
  6521. "r u even trying???",
  6522.  
  6523. "top kekt u got rekt",
  6524.  
  6525. "fuken smashed kunt :D",
  6526.  
  6527. "u shud add me so i can teach u how 2 shoot LOL",
  6528.  
  6529. "ur jus 2 weak and sad to beat me xd",
  6530.  
  6531. "looks liek ur sad life isnt working out 2 well 4 u :D",
  6532.  
  6533. "dats all u got??? LOL!",
  6534.  
  6535. }
  6536.  
  6537.  
  6538.  
  6539. local supercancerstrike = {
  6540.  
  6541. "dont upsetti hav some spagetti",
  6542.  
  6543. "eat my asse like a bufet (3 corse meal xd)",
  6544.  
  6545. "i ownt u in ur gay butth0le",
  6546.  
  6547. "umade noobe?",
  6548.  
  6549. "le troled hard",
  6550.  
  6551. "go wach naturo and play wif urself fag REKT",
  6552.  
  6553. "LOL i fuckd u so hard just like ur mum lst nit fag",
  6554.  
  6555. "u play liek a blynd stefen hawkin haha",
  6556.  
  6557. "ARE U GUEYS NEW??",
  6558.  
  6559. "are u as bad at life as u are in gmod??",
  6560.  
  6561. "omg this is 2 ezy are U even trying??",
  6562.  
  6563. "why dont u go play halo an fist ur butthol faget",
  6564.  
  6565. "hey granma is that u???? LOL so bad",
  6566.  
  6567. "time for you 2 uninstale the game shit stane",
  6568.  
  6569. "congrtulations ur the worlds worst gmod player",
  6570.  
  6571. "dose ur aim come in NOT NOOBE? LMAO",
  6572.  
  6573. "lol i troled u so hard *OWNED*",
  6574.  
  6575. "\"i lik 2 eat daddys logs of poo for lucnh while jackn off 2 naturo\"- u",
  6576.  
  6577. "take a se4t faget $hitstain u got OWNDE",
  6578.  
  6579. "LOL scrub ur gettin rekt hardcroe",
  6580.  
  6581. "R u mad becouse ur bad nooby?",
  6582.  
  6583. "LMAO did u go to da buthurt king an g3t urself a butthurt with fries?!?",
  6584.  
  6585. "why dont u go and play manoppoly you noob",
  6586.  
  6587. "you hav no lyfe you cant evan play gmod propaly",
  6588.  
  6589. "im hi rite now on ganj but im stil ownen u xD",
  6590.  
  6591. "if u want my cum bake ask ur mum LOL",
  6592.  
  6593. "butdocter prognoses: OWND",
  6594.  
  6595. "cry 2 ur dads dick forver noob",
  6596.  
  6597. "lol troled autismal faget",
  6598.  
  6599. "LOL N3RD owned",
  6600.  
  6601. "\"i love to drink sprems all day\"- u",
  6602.  
  6603. "crushd nerd do u want a baindaid for that LOL",
  6604.  
  6605. "lol rectal rekage ur so sh1t lol",
  6606.  
  6607. "ass states - [_] NOT REKT [X] REKT",
  6608.  
  6609. "lmao do u even try????",
  6610.  
  6611. "are u slippan off ur chaire cos ur ass is bleeding so hard??",
  6612.  
  6613. "u better get a towel for all ur tears faget",
  6614.  
  6615. "u got ass asassenated by me rofl",
  6616.  
  6617. "u wont shit agen thats how rekt ur ass is",
  6618.  
  6619. "i bet youre anus is sore from me ownen u LOL",
  6620.  
  6621. "im gonna record a fragshow so i can watch me pwn u ova and ova LMAO",
  6622.  
  6623. "i almost feel sorry for you hahahaha",
  6624.  
  6625. "lol why dont u play COD so i can own you there too",
  6626.  
  6627. "how dose it feel to be owneded so hartd??",
  6628.  
  6629. "rekt u lol another one for the fraghsow",
  6630.  
  6631. "if i was as bade as u i would kil myself",
  6632.  
  6633. "dont fell bad not ervry one can be goode",
  6634.  
  6635. "do u need some loob for ur butt so it doesnt hurt so much when i fuck u",
  6636.  
  6637. "spesciall delivary for CAPTEN BUTTHURT",
  6638.  
  6639. "wats wrong cant play wif ur dads dik in ur mouth????",
  6640.  
  6641. "maybe if u put down the cheseburgers u could kill me lol fat nerd",
  6642.  
  6643. "getting mad u virgan nerd??",
  6644.  
  6645. "butt docta prognosis: buttfustrated",
  6646.  
  6647. "<<< OWEND U >>>",
  6648.  
  6649. "if u were a fish you wuld be a sperm whael LOL",
  6650.  
  6651. ">mfw i ownd u",
  6652.  
  6653. "rekt u noob *OWNED*",
  6654.  
  6655. "ur gonna have 2 wear dipers now cos ur ass got SHREDED by me",
  6656.  
  6657. "y dont u take a short strole to the fagot store and buy some skills scrub",
  6658.  
  6659. "school3d by a 13yo lol u r rely bad",
  6660.  
  6661. "ur pathetic nerd its like u have parkensons",
  6662.  
  6663. "u just got promoted 2 cumcaptain prestige",
  6664.  
  6665. "lol pwnd",
  6666.  
  6667. "u just got butt raped lol TROLLED U",
  6668.  
  6669. "did u learn 2 aim from stevie wondar??? LOL",
  6670.  
  6671. "tell ur mum to hand the keyboard and mosue back",
  6672.  
  6673. "how does it feel to be shit on by a 13 yer old",
  6674.  
  6675. "r u into scat porns or some thing cos it feel\"s like u want me 2 shit on u",
  6676.  
  6677. "u play gmod like my granpa and hes ded",
  6678.  
  6679. "are u new or just bad?? noobe",
  6680.  
  6681. "u play gmod lik a midget playin basket ball",
  6682.  
  6683. "welcome to the noob scoole bus first stop ur house <<PWND>>",
  6684.  
  6685. ">mfw i rek u",
  6686.  
  6687. "\"i got my ass kiked so hard im shittn out my mouf\" - u",
  6688.  
  6689. "<-(0.0)-< dats u gettn ownd LOL",
  6690.  
  6691. "u just got ur ass ablitterated <<<RECKT>>>",
  6692.  
  6693. "c=3 (dats ur tiney dik rofl)",
  6694.  
  6695. "just leeve the game and let the real mans play",
  6696.  
  6697. "ur so bad u make ur noobe team look good",
  6698.  
  6699. "CONGRASTULATIONS YOU GOT FRIST PRIZE IN BEING BUTT MAD (BUT LAST IN PENIS SIZE LMAO)",
  6700.  
  6701. "im not even trying to pwn u its just so easy",
  6702.  
  6703. "im only 13 an im better than u haha XD",
  6704.  
  6705. "u just got raped",
  6706.  
  6707. "some one an ambulance cos u just got DE_STROYED",
  6708.  
  6709. "i hope u got birth control coz u got rapped",
  6710.  
  6711. "lol pwnd scrubb",
  6712.  
  6713. "you play lik a girl",
  6714.  
  6715. "\"i got fukd so hard dat im cummin shit n shittn cum\"- u",
  6716.  
  6717. "ur gonna need tampons for ur ass afta that ownage",
  6718.  
  6719. "{{ scoooled u }}",
  6720.  
  6721. "(O.o) ~c======3 dats me jizzan on u",
  6722.  
  6723. "dont worry at least ur tryan XD",
  6724.  
  6725. "cya noob send me a post card from pwnd city ROFL",
  6726.  
  6727. "its ok if u keep practasing u will get bettar lol #rekt",
  6728.  
  6729. "\"evry time i fart 1 liter of cum sqerts out\" - u",
  6730.  
  6731. "rofl i pwnd u scrub #420 #based #mlgskill",
  6732.  
  6733. "u fail just like ur dads condom",
  6734.  
  6735. "if i pwnd u any harder it wud be animal abuse",
  6736.  
  6737. "uploaden this fragshow roflmao",
  6738.  
  6739. }
  6740.  
  6741.  
  6742.  
  6743. local buyourshitfaggot = {
  6744.  
  6745. "CAC + VAC + HAC + SAC UNDETECTED",
  6746.  
  6747. "STEP UP YOUR GAME FAGGOT",
  6748.  
  6749. "RUN ANY LUA SCRIPT UNDETECTED",
  6750.  
  6751. "BE THE BEST WHEN YOU BUY THE BEST",
  6752.  
  6753. "MAKE DARKRP KIDS CRY",
  6754.  
  6755. "DEMOLISH THE LUA STATE",
  6756.  
  6757. "PUT YOUR POWER ON DISPLAY",
  6758.  
  6759. "STOMP NOOBS INTO THE DIRT",
  6760.  
  6761. "CRASH SERVERS WITH NO SURVIVORS",
  6762.  
  6763. "HACK ANYWHERE, ANYTIME, ANYONE",
  6764.  
  6765. "DESTROY ALL ANTICHEATS",
  6766.  
  6767. "TRIGGER FEMINISTS",
  6768.  
  6769. "START A SECOND HOLOCAUST",
  6770.  
  6771. "TIRED OF BEING A TOTAL FUCKING LOSER?",
  6772.  
  6773. "STOMP THE COMP",
  6774.  
  6775. "BLACK LIVES SPLATTERED",
  6776.  
  6777. "MAKE FACEPUNCH FACEDUNKED",
  6778.  
  6779. "BECOME UNBANNABLE",
  6780.  
  6781. "DUNK SO HARD YOU BREAK THE NET",
  6782.  
  6783. "#1 CAUSE OF ADMIN SUICIDES",
  6784.  
  6785. "NO FAT CHICKS",
  6786.  
  6787. "DO U <3 CHEATING?",
  6788.  
  6789. "LEGIT IS FOR LOSERS",
  6790.  
  6791. "YOUR LOSER PARENTS NEVER BOUGHT YOU TOYS THIS COOL",
  6792.  
  6793. "SHOOT THE HOTTEST LOADS",
  6794.  
  6795. }
  6796.  
  6797.  
  6798.  
  6799. local thistriggersamericans = {
  6800.  
  6801. "If i found out a girl I was flirting with was transgender I'd bash the fuck out of that degenerate cunt",
  6802.  
  6803. "Feminism is a tool satan is using to corrupt and destroy gods country, FIGHT BACK!",
  6804.  
  6805. "It's scientifically proven that women are physically and mentally weaker than men",
  6806.  
  6807. "Man's job is to build empires and conquer the earth, woman's only job is to make more men",
  6808.  
  6809.  
  6810.  
  6811. }
  6812.  
  6813.  
  6814.  
  6815. local annoyingquestions = {
  6816.  
  6817. "whats the max tabs you can have open on a vpn",
  6818.  
  6819. "how many vpns does it take to stop a ddos",
  6820.  
  6821. "whats better analog or garrys mod",
  6822.  
  6823. "whats the time",
  6824.  
  6825. "is it possible to make a clock in binary",
  6826.  
  6827. "how many cars can you drive at once",
  6828.  
  6829. "did you know there's more planes on the ground than there is submarines in the air",
  6830.  
  6831. "how many busses can you fit on 1 bus",
  6832.  
  6833. "how many tables does it take to support a chair",
  6834.  
  6835. "how many doors does it take to screw a screw",
  6836.  
  6837. "how long can you hold your eyes closed in bed",
  6838.  
  6839. "how long can you hold your breath for under spagetti",
  6840.  
  6841. "whats the fastest time to deliver the mail as mail man",
  6842.  
  6843. "how many bees does it take to make a wasp make honey",
  6844.  
  6845. "If I paint the sun blue will it turn blue",
  6846.  
  6847. "how many beavers does it take to build a dam",
  6848.  
  6849. "how much wood does it take to build a computer",
  6850.  
  6851. "can i have ur credit card number",
  6852.  
  6853. "is it possible to blink and jump at the same time",
  6854.  
  6855. "did you know that dinosaurs were, on average, large",
  6856.  
  6857. "how many thursdays does it take to paint an elephant purple",
  6858.  
  6859. "if cars could talk how fast would they go",
  6860.  
  6861. "did you know theres no oxygen in space",
  6862.  
  6863. "do toilets flush the other way in australia",
  6864.  
  6865. "if i finger paint will i get a splinter",
  6866.  
  6867. "can you build me an ant farm",
  6868.  
  6869. "did you know australia hosts 4 out of 6 of the deadliest spiders in the world",
  6870.  
  6871. "is it possible to ride a bike in space",
  6872.  
  6873. "can i make a movie based around your life",
  6874.  
  6875. "how many pants can you put on while wearing pants",
  6876.  
  6877. "if I paint a car red can it wear pants",
  6878.  
  6879. "how come no matter what colour the liquid is the froth is always white",
  6880.  
  6881. "can a hearse driver drive a corpse in the car pool lane",
  6882.  
  6883. "how come the sun is cold at night",
  6884.  
  6885. "why is it called a TV set when there is only one",
  6886.  
  6887. "if i blend strawberries can i have ur number",
  6888.  
  6889. "if I touch the moon will it be as hot as the sun",
  6890.  
  6891. "did u know ur dad is always older than u",
  6892.  
  6893. "did u know the burger king logo spells burger king",
  6894.  
  6895. "did uknow if u chew on broken glass for a few mins, it starts to taste like blood",
  6896.  
  6897. "did u know running is faster than walking",
  6898.  
  6899. "did u kno the colur blue is called blue because its blue",
  6900.  
  6901. "did you know a shooting star isnt a star",
  6902.  
  6903. "did u know shooting stars dont actually have guns",
  6904.  
  6905. "did u kno the great wall of china is in china",
  6906.  
  6907. "statistictal fact: 100% of non smokers die",
  6908.  
  6909. "did you kmow if you eat you poop it out",
  6910.  
  6911. "did u know rain clouds r called rain clouds cus they are clouds that rain",
  6912.  
  6913. "if cows drink milk is that cow a cannibal",
  6914.  
  6915. "did u know you cant win a staring contest with a stuffed animal",
  6916.  
  6917. "did u know if a race car is at peak speed and hits someone they'll die",
  6918.  
  6919. "did u know the distance between the sun and earth is the same distance as the distance between the earth and the sun",
  6920.  
  6921. "did u kno flat screen tvs arent flat",
  6922.  
  6923. "did u know aeroplane mode on ur phone doesnt make ur phone fly",
  6924.  
  6925. "did u kno too many britdhays can kill you",
  6926.  
  6927. "did u know rock music isnt for rocks",
  6928.  
  6929. "did u know if you eat enough ice you can stop global warming",
  6930.  
  6931. "if ww2 happened before vietnam would that make vietnam world war 2",
  6932.  
  6933. "did you know 3.14 isn't a real pie",
  6934.  
  6935. "did u know 100% of stair accidents happen on stairs",
  6936.  
  6937. "can vampires get AIDS",
  6938.  
  6939. "what type of bird was a dodo",
  6940.  
  6941. "did u know dog backwards is god",
  6942.  
  6943. "did you know on average a dog barks more than a cat",
  6944.  
  6945. }
  6946.  
  6947.  
  6948.  
  6949. function AB.GenerateInsult()
  6950.  
  6951. return table.Random(openers).." you "..table.Random(joiners).." "..table.Random(enders)
  6952.  
  6953. end
  6954.  
  6955.  
  6956.  
  6957. function AB.GenerateInsult2()
  6958.  
  6959. return string.upper(table.Random(openers)).." YOU "..string.upper(table.Random(joiners)).." "..string.upper(table.Random(joiners)).." "..string.upper(table.Random(enders))
  6960.  
  6961. end
  6962.  
  6963.  
  6964.  
  6965. function AB.GenerateInsult3()
  6966.  
  6967. return table.Random(adminstarts).." you "..table.Random(joiners).." "..table.Random(enders)
  6968.  
  6969. end
  6970.  
  6971.  
  6972.  
  6973. function AB.GenerateInsult4()
  6974.  
  6975. return table.Random(cancerstrike)
  6976.  
  6977. end
  6978.  
  6979.  
  6980.  
  6981. function AB.GenerateInsult5()
  6982.  
  6983. return table.Random(supercancerstrike)
  6984.  
  6985. end
  6986.  
  6987.  
  6988.  
  6989. function AB.GeneratePromo()
  6990.  
  6991. return table.Random(buyourshitfaggot).." --> GET ODIUM.PRO"
  6992.  
  6993. end
  6994.  
  6995.  
  6996.  
  6997. function AB.FormatChatString( str )
  6998.  
  6999. str = string.Replace( str, "@1", AB.GenerateInsult() )
  7000.  
  7001. str = string.Replace( str, "@2", AB.GenerateInsult2() )
  7002.  
  7003. str = string.Replace( str, "@3", AB.GenerateInsult3() )
  7004.  
  7005. str = string.Replace( str, "@4", AB.GenerateInsult4() )
  7006.  
  7007. str = string.Replace( str, "@opener", table.Random(openers) )
  7008.  
  7009. str = string.Replace( str, "@joiner", table.Random(joiners) )
  7010.  
  7011. str = string.Replace( str, "@slur", table.Random(enders) )
  7012.  
  7013. str = string.Replace( str, "@getodium", AB.GeneratePromo() )
  7014.  
  7015. str = string.Replace( str, "@csgo", AB.GenerateInsult5() )
  7016.  
  7017. return str
  7018.  
  7019. end
  7020.  
  7021.  
  7022.  
  7023. concommand.Add("ace_insult", function() LocalPlayer():ConCommand("say "..AB.GenerateInsult() ) end)
  7024.  
  7025. concommand.Add("ace_insult2", function() LocalPlayer():ConCommand("say "..AB.GenerateInsult2() ) end)
  7026.  
  7027. local siterator = 1
  7028.  
  7029. concommand.Add("ace_insult3", function() LocalPlayer():ConCommand("say "..AB.GenerateInsult3() ) end)
  7030.  
  7031. concommand.Add("ace_insult4", function() LocalPlayer():ConCommand( "say "..AB.GenerateInsult4() ) end)
  7032.  
  7033.  
  7034.  
  7035. concommand.Add("ace_chatspam_once", function()
  7036.  
  7037. local txt = AB.ChatSpamText
  7038.  
  7039. if AB.Vars.ChatSpamOOC then txt = "// "..txt end
  7040.  
  7041. txt = AB.FormatChatString( txt )
  7042.  
  7043. if AB.Vars.ChatSpamPM then
  7044.  
  7045. for _, p in pairs(player.GetAll()) do
  7046.  
  7047. if !AB.Vars.ChatSpamPMAdmins and AB.GetRank( p ) != ( "user" or "guest" or "player" ) then continue end
  7048.  
  7049. RunConsoleCommand("ulx", "psay", p:Nick(), txt)
  7050.  
  7051. end
  7052.  
  7053. else
  7054.  
  7055. RunConsoleCommand("say", txt)
  7056.  
  7057. end
  7058.  
  7059. end)
  7060.  
  7061.  
  7062.  
  7063.  
  7064.  
  7065.  
  7066.  
  7067. --AB.CurrentBase = 0
  7068.  
  7069. --AB.BaseAreaSize = 2000
  7070.  
  7071. function AB.SetBase()
  7072.  
  7073. AB.ChatText( "Set base location", Color(255,255,255) )
  7074.  
  7075. AB.CurrentBase = LocalPlayer():GetPos()
  7076.  
  7077. end
  7078.  
  7079. concommand.Add( "ace_base_set", AB.SetBase )
  7080.  
  7081.  
  7082.  
  7083. function AB.UnsetBase()
  7084.  
  7085. AB.ChatText( "Removed base", Color(255,255,255) )
  7086.  
  7087. AB.CurrentBase = 0
  7088.  
  7089. end
  7090.  
  7091. concommand.Add( "ace_base_remove", AB.UnsetBase )
  7092.  
  7093.  
  7094.  
  7095. function AB.SetBaseSize( p, cmd, arg, astr )
  7096.  
  7097. if !tonumber( arg[1] ) then AB.ChatText( "Please specify a valid base radius in metres", Color(255,205,205) ) return end
  7098.  
  7099. AB.ChatText( "Set base proximity radius to "..arg[1].."m", Color(255,255,255) )
  7100.  
  7101. AB.BaseAreaSize = arg[1]
  7102.  
  7103. end
  7104.  
  7105. concommand.Add( "ace_base_setsize", AB.SetBaseSize )
  7106.  
  7107.  
  7108.  
  7109.  
  7110.  
  7111.  
  7112.  
  7113.  
  7114.  
  7115.  
  7116.  
  7117.  
  7118.  
  7119. local elements = {
  7120.  
  7121. { -- Screen
  7122.  
  7123. x = 0.075,
  7124.  
  7125. y = 0.04,
  7126.  
  7127. w = 0.85,
  7128.  
  7129. h = 0.25,
  7130.  
  7131.  
  7132.  
  7133. },
  7134.  
  7135. { -- ABORT
  7136.  
  7137. x = 0.075,
  7138.  
  7139. y = 0.04 + 0.25 + 0.03,
  7140.  
  7141. w = 0.85 / 2 - 0.04 / 2 + 0.05,
  7142.  
  7143. h = 0.125,
  7144.  
  7145. text = "ABORT",
  7146.  
  7147. },
  7148.  
  7149. { -- OK
  7150.  
  7151. x = 0.5 + 0.04 / 2 + 0.05,
  7152.  
  7153. y = 0.04 + 0.25 + 0.03,
  7154.  
  7155. w = 0.85 / 2 - 0.04 / 2 - 0.05,
  7156.  
  7157. h = 0.125,
  7158.  
  7159. text = "OK",
  7160.  
  7161. }
  7162.  
  7163. }
  7164.  
  7165.  
  7166.  
  7167. do -- Create numbers
  7168.  
  7169. for i = 1, 9 do
  7170.  
  7171. local column = (i - 1) % 3
  7172.  
  7173.  
  7174.  
  7175. local row = math.floor((i - 1) / 3)
  7176.  
  7177.  
  7178.  
  7179. local element = {
  7180.  
  7181. x = 0.075 + (0.3 * column),
  7182.  
  7183. y = 0.175 + 0.25 + 0.05 + ((0.5 / 3) * row),
  7184.  
  7185. w = 0.25,
  7186.  
  7187. h = 0.13,
  7188.  
  7189. text = tostring(i),
  7190.  
  7191. }
  7192.  
  7193. table.insert(elements, element)
  7194.  
  7195. end
  7196.  
  7197. end
  7198.  
  7199.  
  7200.  
  7201.  
  7202.  
  7203. function AB.CalculateKeypadCursorPos(ply, ent)
  7204.  
  7205. if !ply:IsValid() then return end
  7206.  
  7207.  
  7208.  
  7209. local tr = util.TraceLine( { start = ply:EyePos(), endpos = ply:EyePos() + ply:GetAimVector() * 65, filter = ply } )
  7210.  
  7211. if !tr.Entity or tr.Entity ~= ent then return 0, 0 end
  7212.  
  7213.  
  7214.  
  7215. local scale = ent.Scale
  7216.  
  7217. if !scale then return 0, 0 end
  7218.  
  7219.  
  7220.  
  7221. local pos, ang = ent:CalculateRenderPos(), ent:CalculateRenderAng()
  7222.  
  7223. if !pos or !ang then return 0, 0 end
  7224.  
  7225. local normal = ent:GetForward()
  7226.  
  7227.  
  7228.  
  7229. local intersection = util.IntersectRayWithPlane(ply:EyePos(), ply:GetAimVector(), pos, normal)
  7230.  
  7231. if !intersection then return 0, 0 end
  7232.  
  7233.  
  7234.  
  7235. local diff = pos - intersection
  7236.  
  7237.  
  7238.  
  7239. local x = diff:Dot( -ang:Forward() ) / scale
  7240.  
  7241. local y = diff:Dot( -ang:Right() ) / scale
  7242.  
  7243.  
  7244.  
  7245. return x, y
  7246.  
  7247. end
  7248.  
  7249.  
  7250.  
  7251. function AB.KPGetHoveredElement(ply, ent)
  7252.  
  7253. local scale = ent.Scale
  7254.  
  7255.  
  7256.  
  7257. local w, h = ent.Width2D, ent.Height2D
  7258.  
  7259. local x, y = AB.CalculateKeypadCursorPos(ply, ent)
  7260.  
  7261.  
  7262.  
  7263. for _, element in ipairs(elements) do
  7264.  
  7265. local element_x = w * element.x
  7266.  
  7267. local element_y = h * element.y
  7268.  
  7269. local element_w = w * element.w
  7270.  
  7271. local element_h = h * element.h
  7272.  
  7273.  
  7274.  
  7275. if element_x < x and element_x + element_w > x and
  7276.  
  7277. element_y < y and element_y + element_h > y
  7278.  
  7279. then
  7280.  
  7281. return element
  7282.  
  7283. end
  7284.  
  7285. end
  7286.  
  7287. end
  7288.  
  7289.  
  7290.  
  7291.  
  7292.  
  7293.  
  7294.  
  7295.  
  7296.  
  7297.  
  7298.  
  7299.  
  7300.  
  7301.  
  7302.  
  7303.  
  7304.  
  7305.  
  7306.  
  7307.  
  7308.  
  7309. AB.ShekelGrabbers = {}
  7310.  
  7311. local nxsuicidemsg = 0
  7312.  
  7313. function AB.Logic()
  7314.  
  7315. local me = LocalPlayer()
  7316.  
  7317. if !me:IsValid() then return end
  7318.  
  7319.  
  7320.  
  7321. local lmemfootprint = gcinfo()
  7322.  
  7323.  
  7324.  
  7325. for k, v in pairs(player.GetAll()) do
  7326.  
  7327.  
  7328.  
  7329. -- spectator detector
  7330.  
  7331. if( v:GetObserverTarget() and v != me and v:GetObserverTarget() == me and !table.HasValue( AB.TheyHaveEyesEverywhere, v ) ) then
  7332.  
  7333. surface.PlaySound("buttons/bell1.wav")
  7334.  
  7335. AB.ChatText( v:Nick().." has begun spectating you!", Color(255,100,0) )
  7336.  
  7337. table.insert( AB.TheyHaveEyesEverywhere, v )
  7338.  
  7339. end
  7340.  
  7341.  
  7342.  
  7343. if AB.Vars.DodgeArrest then
  7344.  
  7345. if v != me and v:EyePos():Distance( me:GetPos() ) < 120 and me:Alive() and ( v:GetActiveWeapon() and v:GetActiveWeapon():IsValid() and v:GetActiveWeapon():GetClass() == "arrest_stick" ) then
  7346.  
  7347. if nxsuicidemsg <= CurTime() then
  7348.  
  7349. AB.ChatText( "Automatically suicided to avoid being arrested by "..v:Nick(), Color(255,255,255) )
  7350.  
  7351. nxsuicidemsg = CurTime() + 1
  7352.  
  7353. end
  7354.  
  7355. RunConsoleCommand( "kill" )
  7356.  
  7357. end
  7358.  
  7359. end
  7360.  
  7361.  
  7362.  
  7363.  
  7364.  
  7365. if AB.Vars.KeypadJew then
  7366.  
  7367.  
  7368.  
  7369. local kp = v:GetEyeTrace().Entity
  7370.  
  7371. if IsValid(kp) && IsValid(v) and string.find( kp:GetClass(), "Keypad") and v:EyePos():Distance(kp:GetPos()) <= 120 then
  7372.  
  7373. kp.tempCode = kp.tempCode or ""
  7374.  
  7375. kp.tempText = kp.tempText or ""
  7376.  
  7377. kp.tempStatus = kp.tempStatus or 0
  7378.  
  7379.  
  7380.  
  7381. if kp:GetText() != kp.tempText or kp:GetStatus() != kp.tempStatus then
  7382.  
  7383. kp.tempText = kp:GetText()
  7384.  
  7385. kp.tempStatus = kp:GetStatus()
  7386.  
  7387. if(kp.tempText && !kp:GetSecure()) then
  7388.  
  7389. kp.tempCode = kp.tempText
  7390.  
  7391. timer.Simple(0, function()
  7392.  
  7393. if kp:GetStatus() == 1 && kp.tempCode && kp.tempCode != "" then
  7394.  
  7395. kp.code = kp.tempCode
  7396.  
  7397. end
  7398.  
  7399. end)
  7400.  
  7401. else
  7402.  
  7403. local i = AB.KPGetHoveredElement(v, kp)
  7404.  
  7405. if (i) then i = i.text end
  7406.  
  7407. if kp.tempText then
  7408.  
  7409. timer.Simple(0, function()
  7410.  
  7411. if kp:GetStatus() == 1 && kp.tempCode && kp.tempCode != "" then
  7412.  
  7413. kp.code = kp.tempCode
  7414.  
  7415. end
  7416.  
  7417. end)
  7418.  
  7419. end
  7420.  
  7421.  
  7422.  
  7423. if kp.tempText == "" || kp:GetStatus() == 2 then
  7424.  
  7425. kp.tempCode = ""
  7426.  
  7427. end
  7428.  
  7429.  
  7430.  
  7431. timer.Simple(0, function()
  7432.  
  7433. if(tonumber(i) && kp:GetText():len() != 0) then
  7434.  
  7435. kp.tempCode = kp.tempCode..i
  7436.  
  7437. end
  7438.  
  7439. end)
  7440.  
  7441. end
  7442.  
  7443. end
  7444.  
  7445. end
  7446.  
  7447.  
  7448.  
  7449. end
  7450.  
  7451.  
  7452.  
  7453.  
  7454.  
  7455.  
  7456.  
  7457. if isvector( AB.CurrentBase ) then
  7458.  
  7459. if v == me then continue end
  7460.  
  7461. if AB.ToMetric( v:GetPos():Distance( AB.CurrentBase ) ) < tonumber(AB.BaseAreaSize) then
  7462.  
  7463. if !table.HasValue( AB.ShekelGrabbers, v ) then
  7464.  
  7465. surface.PlaySound("buttons/bell1.wav")
  7466.  
  7467. AB.ChatText( v:Nick().." has entered your base!", Color(255,205,0) )
  7468.  
  7469. table.insert( AB.ShekelGrabbers, v )
  7470.  
  7471. end
  7472.  
  7473. elseif table.HasValue( AB.ShekelGrabbers, v ) and AB.ToMetric( v:GetPos():Distance( AB.CurrentBase ) ) > tonumber(AB.BaseAreaSize) then
  7474.  
  7475. AB.ChatText( v:Nick().." has left your base", Color(100,255,100) )
  7476.  
  7477. table.RemoveByValue( AB.ShekelGrabbers, v )
  7478.  
  7479. end
  7480.  
  7481. else
  7482.  
  7483. AB.ShekelGrabbers = {}
  7484.  
  7485. end
  7486.  
  7487.  
  7488.  
  7489. end
  7490.  
  7491.  
  7492.  
  7493. for k,v in pairs( AB.TheyHaveEyesEverywhere ) do
  7494.  
  7495. if( !IsValid( v ) ) then table.remove( AB.TheyHaveEyesEverywhere, k ) continue end
  7496.  
  7497. if( !v:GetObserverTarget() or ( v:GetObserverTarget() and v:GetObserverTarget() != me ) ) then
  7498.  
  7499. AB.ChatText( v:Nick().." has stopped spectating you!", Color(100,255,100) )
  7500.  
  7501. table.remove( AB.TheyHaveEyesEverywhere, k )
  7502.  
  7503. end
  7504.  
  7505. end
  7506.  
  7507.  
  7508.  
  7509. if AB.Vars.ChatSpam then
  7510.  
  7511. if AB.Vars.ChatSpamBind and !me:KeyDown(IN_WALK) then return end
  7512.  
  7513. local txt = AB.ChatSpamText
  7514.  
  7515. if AB.Vars.ChatSpamInsult then txt = AB.GenerateInsult() end
  7516.  
  7517. if AB.Vars.ChatSpamOOC then txt = "// "..txt end
  7518.  
  7519. txt = AB.FormatChatString( txt )
  7520.  
  7521. if AB.Vars.ChatSpamPM then
  7522.  
  7523. for _, p in pairs(player.GetAll()) do
  7524.  
  7525. if !AB.Vars.ChatSpamPMAdmins and AB.GetRank( p ) != ( "user" or "guest" or "player" ) then continue end
  7526.  
  7527. RunConsoleCommand("ulx", "psay", p:Nick(), txt)
  7528.  
  7529. end
  7530.  
  7531. else
  7532.  
  7533. RunConsoleCommand("say", txt)
  7534.  
  7535. end
  7536.  
  7537. end
  7538.  
  7539.  
  7540.  
  7541. if AB.Vars.DemoteSpam or AB.Vars.WantedSpam or AB.Vars.ULXVotekickSpam or AB.Vars.ULXVotebanSpam then
  7542.  
  7543. for k, v in RandomPairs(player.GetAll()) do
  7544.  
  7545. if AB.IsFriend( v ) or v == me then continue end
  7546.  
  7547. local fag1, fag2 = table.Random( demotereasons )
  7548.  
  7549. if AB.Vars.DemoteSpam then RunConsoleCommand( "darkrp", "demote", v:Nick(), fag1 ) end
  7550.  
  7551. if AB.Vars.WantedSpam then RunConsoleCommand( "darkrp", "wanted", v:Nick(), fag1 ) end
  7552.  
  7553. if AB.Vars.ULXVotekickSpam then RunConsoleCommand( "ulx", "votekick", v:Nick(), fag1 ) end
  7554.  
  7555. if AB.Vars.ULXVotebanSpam then RunConsoleCommand( "ulx", "voteban", v:Nick(), "0" ) end
  7556.  
  7557. end
  7558.  
  7559. end
  7560.  
  7561.  
  7562.  
  7563. if AB.Vars.FlashlightSpam then
  7564.  
  7565. if input.IsKeyDown(KEY_F) then me:ConCommand("impulse 100") end
  7566.  
  7567. end
  7568.  
  7569.  
  7570.  
  7571. if AB.IsTTT then AB.ScanForTraitors() end
  7572.  
  7573.  
  7574.  
  7575. AB.MemoryDebug["logic"] = gcinfo() - lmemfootprint
  7576.  
  7577.  
  7578.  
  7579. end
  7580.  
  7581. hook.Add("Think", "ab_logic", AB.Logic)
  7582.  
  7583.  
  7584.  
  7585.  
  7586.  
  7587.  
  7588.  
  7589. function AB.PKTube()
  7590.  
  7591. local oldwep = false
  7592.  
  7593. if !LocalPlayer():IsOnGround() then AB.ChatText( "You can't tube launch when you aren't on the ground!", Color(255,100,0) ) return end
  7594.  
  7595. if !LocalPlayer():HasWeapon("weapon_physgun") then AB.ChatText( "You don't have a physgun!", Color(255,100,0) ) return end
  7596.  
  7597. if LocalPlayer():GetActiveWeapon():GetClass() != "weapon_physgun" then RunConsoleCommand( "use", "weapon_physgun" ) oldwep = true end
  7598.  
  7599.  
  7600.  
  7601. AB.EyeAngles( LocalPlayer():EyeAngles() - Angle(-180,0,0) )
  7602.  
  7603. AB.ActionTimer( 0.05, function() RunConsoleCommand( "gm_spawn", "models/props_phx/construct/concrete_pipe01.mdl") end)
  7604.  
  7605. AB.ActionTimer( 0.05, function() AB.EyeAngles( LocalPlayer():EyeAngles() - Angle(120,0,0) ) end)
  7606.  
  7607. AB.ActionTimer( 0.1, function() RunConsoleCommand( "+attack") end)
  7608.  
  7609. AB.ActionTimer( 0.05, function() AB.ScrollDelta = 100 end)
  7610.  
  7611. AB.ActionTimer( 0.1, function() RunConsoleCommand( "-attack") AB.ScrollDelta = 0 end)
  7612.  
  7613. if oldwep then
  7614.  
  7615. AB.ActionTimer( 0.01, function() RunConsoleCommand( "lastinv") end)
  7616.  
  7617. end
  7618.  
  7619. AB.ActionTimer( 0.1, function() RunConsoleCommand( "undo") end, true)
  7620.  
  7621.  
  7622.  
  7623. end
  7624.  
  7625. concommand.Add("ace_pk_tubelaunch", AB.PKTube)
  7626.  
  7627.  
  7628.  
  7629. function AB.PK180()
  7630.  
  7631. AB.EyeAngles( Angle(LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 180, LocalPlayer():EyeAngles().r) )
  7632.  
  7633. end
  7634.  
  7635. concommand.Add("ace_pk_180", AB.PK180)
  7636.  
  7637.  
  7638.  
  7639. function AB.PK180Up()
  7640.  
  7641. --AB.EyeAngles( Angle(LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 180, LocalPlayer():EyeAngles().r) )
  7642.  
  7643. AB.EyeAngles( Angle( -LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 180, LocalPlayer():EyeAngles().r) )
  7644.  
  7645. RunConsoleCommand( "+jump")
  7646.  
  7647. timer.Simple(0.1, function() RunConsoleCommand( "-jump") end)
  7648.  
  7649. end
  7650.  
  7651. concommand.Add("ace_pk_180up", AB.PK180Up)
  7652.  
  7653.  
  7654.  
  7655. function AB.ClimbSwep()
  7656.  
  7657. local oldang = LocalPlayer():EyeAngles()
  7658.  
  7659. AB.EyeAngles( Angle( -LocalPlayer():EyeAngles().p, LocalPlayer():EyeAngles().y - 90, LocalPlayer():EyeAngles().r) )
  7660.  
  7661. timer.Simple(0.15, function() AB.EyeAngles( oldang ) end)
  7662.  
  7663. end
  7664.  
  7665. concommand.Add("ace_climbswep", AB.ClimbSwep)
  7666.  
  7667.  
  7668.  
  7669. function AB.EyeAngles( ang )
  7670.  
  7671. local ang = Angle(math.Clamp(ang.p, -90, 90), ang.y, ang.r)
  7672.  
  7673. ang:Normalize()
  7674.  
  7675. LocalPlayer():SetEyeAngles(ang)
  7676.  
  7677. end
  7678.  
  7679.  
  7680.  
  7681. local actiontime = 0
  7682.  
  7683.  
  7684.  
  7685. function AB.ActionTimer( delay, func, terminate )
  7686.  
  7687. terminate = terminate or false
  7688.  
  7689. actiontime = actiontime + delay + (LocalPlayer():Ping() / 1000)
  7690.  
  7691. timer.Simple( actiontime, func)
  7692.  
  7693. if terminate then actiontime = 0 end
  7694.  
  7695. end
  7696.  
  7697.  
  7698.  
  7699.  
  7700.  
  7701.  
  7702.  
  7703. function AB.CanSee( ply )
  7704.  
  7705. local Trace = util.TraceLine( {
  7706.  
  7707. start = LocalPlayer():GetShootPos(),
  7708.  
  7709. endpos = AB.FindTargetPosition( ply ),
  7710.  
  7711. mask = MASK_SHOT,
  7712.  
  7713. filter = { LocalPlayer(), ply }
  7714.  
  7715. } )
  7716.  
  7717.  
  7718.  
  7719. return !Trace.Hit
  7720.  
  7721. end
  7722.  
  7723.  
  7724.  
  7725.  
  7726.  
  7727. ------------------------------------------------------------------------PROPKILL UTILS--------------------------------------------------------------------------------------
  7728.  
  7729.  
  7730.  
  7731. function AB.PhysgunPickup( p, e )
  7732.  
  7733. if AB.Vars.DontTouchMeThere and e == LocalPlayer() then RunConsoleCommand( "kill" ) end
  7734.  
  7735. AB.HoldingProp = e
  7736.  
  7737. end
  7738.  
  7739.  
  7740.  
  7741. function AB.PhysgunDrop( p, e )
  7742.  
  7743. -- AB.HoldingProp = game.GetWorld()
  7744.  
  7745. end
  7746.  
  7747.  
  7748.  
  7749. hook.Add( "PhysgunPickup", "ab_physgun", AB.PhysgunPickup )
  7750.  
  7751. hook.Add( "PhysgunDrop", "ab_physgun", AB.PhysgunDrop )
  7752.  
  7753.  
  7754.  
  7755.  
  7756.  
  7757. ------------------------------------------------------------------------WEAPON INSPECTOR--------------------------------------------------------------------------------------
  7758.  
  7759.  
  7760.  
  7761.  
  7762.  
  7763.  
  7764.  
  7765.  
  7766.  
  7767.  
  7768.  
  7769.  
  7770.  
  7771.  
  7772.  
  7773.  
  7774.  
  7775. local function gaytext( parent, text, vpos, color )
  7776.  
  7777. local ABLabel = vgui.Create( "DLabel", parent )
  7778.  
  7779. ABLabel:SetFont( "TargetID" )
  7780.  
  7781. ABLabel:SetPos( 20, vpos)
  7782.  
  7783. ABLabel:SetColor( color )
  7784.  
  7785. ABLabel:SetText( text )
  7786.  
  7787. ABLabel:SizeToContents()
  7788.  
  7789. end
  7790.  
  7791.  
  7792.  
  7793. local overrides = {
  7794.  
  7795.  
  7796.  
  7797. ["weapon_crowbar"] = {
  7798.  
  7799. Damage = 25,
  7800.  
  7801. NumShots = 1,
  7802.  
  7803. ClipSize = 1,
  7804.  
  7805. Delay = 0.404
  7806.  
  7807. },
  7808.  
  7809.  
  7810.  
  7811. ["weapon_stunstick"] = {
  7812.  
  7813. Damage = 40,
  7814.  
  7815. NumShots = 1,
  7816.  
  7817. ClipSize = 1,
  7818.  
  7819. Delay = 0.81
  7820.  
  7821. },
  7822.  
  7823.  
  7824.  
  7825. ["weapon_pistol"] = {
  7826.  
  7827. Damage = 12,
  7828.  
  7829. NumShots = 1,
  7830.  
  7831. ClipSize = 18,
  7832.  
  7833. Ammo = "pistol",
  7834.  
  7835. Delay = 0.12,
  7836.  
  7837. },
  7838.  
  7839.  
  7840.  
  7841. ["weapon_357"] = {
  7842.  
  7843. Damage = 75,
  7844.  
  7845. NumShots = 1,
  7846.  
  7847. ClipSize = 6,
  7848.  
  7849. Ammo = "357",
  7850.  
  7851. Delay = 0.75,
  7852.  
  7853. },
  7854.  
  7855.  
  7856.  
  7857. ["weapon_smg1"] = {
  7858.  
  7859. Damage = 12,
  7860.  
  7861. NumShots = 1,
  7862.  
  7863. ClipSize = 45,
  7864.  
  7865. Ammo = "SMG1",
  7866.  
  7867. Delay = 0.075,
  7868.  
  7869. },
  7870.  
  7871.  
  7872.  
  7873. ["weapon_shotgun"] = {
  7874.  
  7875. Damage = 4,
  7876.  
  7877. NumShots = 7,
  7878.  
  7879. ClipSize = 6,
  7880.  
  7881. Ammo = "buckshot",
  7882.  
  7883. Delay = 0.9,
  7884.  
  7885. },
  7886.  
  7887.  
  7888.  
  7889. ["weapon_ar2"] = {
  7890.  
  7891. Damage = 11,
  7892.  
  7893. NumShots = 1,
  7894.  
  7895. ClipSize = 30,
  7896.  
  7897. Delay = 0.105,
  7898.  
  7899. },
  7900.  
  7901.  
  7902.  
  7903. ["weapon_crossbow"] = {
  7904.  
  7905. Damage = 100,
  7906.  
  7907. NumShots = 1,
  7908.  
  7909. ClipSize = 1,
  7910.  
  7911. Delay = 1.95,
  7912.  
  7913. },
  7914.  
  7915.  
  7916.  
  7917. ["weapon_rpg"] = {
  7918.  
  7919. Damage = 150,
  7920.  
  7921. NumShots = 1,
  7922.  
  7923. ClipSize = 1,
  7924.  
  7925. Delay = 2.2,
  7926.  
  7927. },
  7928.  
  7929.  
  7930.  
  7931. ["weapon_frag"] = {
  7932.  
  7933. Damage = 150,
  7934.  
  7935. NumShots = 1,
  7936.  
  7937. ClipSize = 1,
  7938.  
  7939. Delay = 1.95,
  7940.  
  7941. },
  7942.  
  7943.  
  7944.  
  7945. ["fas2_rem870"] = {
  7946.  
  7947. Delay = .86,
  7948.  
  7949. },
  7950.  
  7951.  
  7952.  
  7953. ["fas2_ks23"] = {
  7954.  
  7955. Delay = 1.11,
  7956.  
  7957. },
  7958.  
  7959.  
  7960.  
  7961. ["fas2_m67"] = {
  7962.  
  7963. Damage = 160,
  7964.  
  7965. Delay = 1.75,
  7966.  
  7967. },
  7968.  
  7969.  
  7970.  
  7971. }
  7972.  
  7973.  
  7974.  
  7975. local ammostrings = {
  7976.  
  7977. pistol = "HL2 Pistol",
  7978.  
  7979. smg1 = "HL2 SMG",
  7980.  
  7981. ar2 = "HL2 Pulse Rifle",
  7982.  
  7983. ["357"] = "HL2 Magnum",
  7984.  
  7985. buckshot = "HL2 Shotgun",
  7986.  
  7987. rpg_round = "HL2 Rocket",
  7988.  
  7989. }
  7990.  
  7991.  
  7992.  
  7993. function AB.GunMenu()
  7994.  
  7995. if GMenu then return end
  7996.  
  7997.  
  7998.  
  7999. local GMenu = vgui.Create("DFrame")
  8000.  
  8001. GMenu:SetSize(590,520)
  8002.  
  8003. GMenu:SetTitle("Inspecting Weapon")
  8004.  
  8005. GMenu:Center()
  8006.  
  8007. GMenu:MakePopup()
  8008.  
  8009.  
  8010.  
  8011. GMenu.Paint = function(panel, w, h)
  8012.  
  8013. surface.SetDrawColor( Color(50, 50, 90, 255) )
  8014.  
  8015. surface.DrawRect( 0, 0, w, h )
  8016.  
  8017. surface.SetDrawColor( Color(155, 155, 155, 255) )
  8018.  
  8019. surface.DrawOutlinedRect( 0, 0, w, h )
  8020.  
  8021. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  8022.  
  8023. surface.SetDrawColor( Color(0, 0, 0, 255) )
  8024.  
  8025. surface.DrawRect( 10, 25, w - 20, h - 35 )
  8026.  
  8027. end
  8028.  
  8029.  
  8030.  
  8031. local gun = LocalPlayer():GetActiveWeapon()
  8032.  
  8033. if !gun:IsValid() then return end
  8034.  
  8035. local m9gay = false
  8036.  
  8037. local fas = false
  8038.  
  8039. local cw2 = false
  8040.  
  8041. if gun.Base == "bobs_gun_base" or gun.Base == "bobs_shotty_base" or gun.Base == "bobs_scoped_base" then m9gay = true end
  8042.  
  8043. if gun.Base == "fas2_base" or gun.Base == "fas2_base_shotgun" then fas = true end
  8044.  
  8045. if gun.Base == "cw_base" then cw2 = true end
  8046.  
  8047.  
  8048.  
  8049. gaytext( GMenu, "Weapon Name: "..gun:GetPrintName(), 30, Color(205,225,255,255) )
  8050.  
  8051. gaytext( GMenu, "Weapon Class: "..gun:GetClass(), 50, Color(105,225,255,255) )
  8052.  
  8053.  
  8054.  
  8055. //////////////////////////////// hl2 guns ////////////////////////////////
  8056.  
  8057.  
  8058.  
  8059. if !gun.Primary then gun.Primary = {} end
  8060.  
  8061.  
  8062.  
  8063. if overrides[gun:GetClass()] then
  8064.  
  8065. local tab = overrides[gun:GetClass()]
  8066.  
  8067. for k, v in pairs(tab) do
  8068.  
  8069. gun.Primary[k] = v
  8070.  
  8071. end
  8072.  
  8073.  
  8074.  
  8075. end
  8076.  
  8077.  
  8078.  
  8079. //////////////////////////////// weapon stat workarounds ////////////////////////////////
  8080.  
  8081.  
  8082.  
  8083. local delay = 0
  8084.  
  8085. if gun.Primary.Delay then
  8086.  
  8087. delay = gun.Primary.Delay
  8088.  
  8089. elseif m9gay then
  8090.  
  8091. delay = 60 / gun.Primary.RPM
  8092.  
  8093. elseif fas or cw2 then
  8094.  
  8095. delay = gun.FireDelay
  8096.  
  8097. end
  8098.  
  8099.  
  8100.  
  8101. local gdmg = 0
  8102.  
  8103. if gun.Primary.Damage then
  8104.  
  8105. gdmg = gun.Primary.Damage
  8106.  
  8107. elseif fas or cw2 then
  8108.  
  8109. gdmg = gun.Damage
  8110.  
  8111. end
  8112.  
  8113.  
  8114.  
  8115. local gnumshots = 1
  8116.  
  8117. if gun.Primary.NumShots then
  8118.  
  8119. gnumshots = gun.Primary.NumShots
  8120.  
  8121. elseif fas or cw2 then
  8122.  
  8123. gnumshots = gun.Shots or 1
  8124.  
  8125. end
  8126.  
  8127.  
  8128.  
  8129. local gcone = 0
  8130.  
  8131. if gun.Primary.Cone then
  8132.  
  8133. gcone = gun.Primary.Cone
  8134.  
  8135. elseif m9gay then
  8136.  
  8137. gcone = gun.Primary.Spread
  8138.  
  8139. elseif fas then
  8140.  
  8141. gcone = gun.HipCone or 0
  8142.  
  8143. elseif cw2 then
  8144.  
  8145. gcone = gun.HipSpread or 0
  8146.  
  8147. end
  8148.  
  8149.  
  8150.  
  8151. local grecoil = 0
  8152.  
  8153. if gun.Primary.Recoil then
  8154.  
  8155. grecoil = gun.Primary.Recoil
  8156.  
  8157. elseif m9gay then
  8158.  
  8159. grecoil = gun.Primary.KickUp
  8160.  
  8161. elseif fas then
  8162.  
  8163. grecoil = gun.Recoil or 0
  8164.  
  8165. end
  8166.  
  8167.  
  8168.  
  8169. local voff = 90
  8170.  
  8171.  
  8172.  
  8173. gaytext( GMenu, "Damage: "..(gdmg or "nil").." ( x"..(gnumshots or "nil").." ) -- ("..(gdmg * gnumshots).." Total)", voff, Color(255,225,155,255) )
  8174.  
  8175. voff = voff + 20
  8176.  
  8177.  
  8178.  
  8179.  
  8180.  
  8181. if gun.Primary.ClipSize then
  8182.  
  8183. if gun.Primary.ClipSize == -1 then gun.Primary.ClipSize = 1 end
  8184.  
  8185. gaytext( GMenu, "Damage Per Mag: "..(gdmg * gnumshots) * gun.Primary.ClipSize, voff, Color(255,205,105,255) )
  8186.  
  8187. voff = voff + 20
  8188.  
  8189. end
  8190.  
  8191.  
  8192.  
  8193. gaytext( GMenu, "Damage Per Second: "..math.ceil(1 / delay * (gdmg * gnumshots)), voff, Color(255,155,85,255) )
  8194.  
  8195. voff = voff + 20
  8196.  
  8197.  
  8198.  
  8199. if gun.Primary.ClipSize then
  8200.  
  8201. gaytext( GMenu, "Magazine: "..(gun.Primary.ClipSize or "No Magazine"), voff, Color(255,195,195,255) )
  8202.  
  8203. voff = voff + 20
  8204.  
  8205.  
  8206.  
  8207. gaytext( GMenu, "Magdump Time: "..math.Round(gun.Primary.ClipSize * delay, 3).."s", voff, Color(255,95,155,255) )
  8208.  
  8209. voff = voff + 20
  8210.  
  8211. end
  8212.  
  8213.  
  8214.  
  8215. gaytext( GMenu, "Accuracy: "..(10 - (gcone * 100) ), voff, Color(255,255,155,255) )
  8216.  
  8217. voff = voff + 20
  8218.  
  8219.  
  8220.  
  8221. if fas then
  8222.  
  8223. gaytext( GMenu, "Accuracy (Aiming): "..(10 - (gun.AimCone or 0 * 100) ), voff, Color(155,255,155,255) )
  8224.  
  8225. voff = voff + 20
  8226.  
  8227. end
  8228.  
  8229. if cw2 then
  8230.  
  8231. gaytext( GMenu, "Accuracy (Aiming): "..(10 - (gun.AimSpread or 0 * 100) ), voff, Color(155,255,155,255) )
  8232.  
  8233. voff = voff + 20
  8234.  
  8235. end
  8236.  
  8237.  
  8238.  
  8239.  
  8240.  
  8241. gaytext( GMenu, "Fire Rate: "..math.Round(delay, 3).." ( "..math.ceil(60 / delay).." Rounds Per Min )", voff, Color(255,255,155,255) )
  8242.  
  8243. voff = voff + 20
  8244.  
  8245.  
  8246.  
  8247. --gaytext( GMenu, "Recoil: "..grecoil.." ( "..math.Round((grecoil * 10) * 1 / delay, 1).." recoil per second ) ", voff, Color(205,255,125,255) )
  8248.  
  8249. --voff = voff + 20
  8250.  
  8251.  
  8252.  
  8253.  
  8254.  
  8255. if gun.Primary.Ammo then
  8256.  
  8257. local ammotyperaw = gun.Primary.Ammo
  8258.  
  8259. local ammotype = string.lower(gun.Primary.Ammo)
  8260.  
  8261. if ammostrings[ammotype] then ammotyperaw = ammostrings[ammotype] end
  8262.  
  8263. gaytext( GMenu, "Ammo Type: "..ammotyperaw, voff, Color(105,255,125,255) )
  8264.  
  8265. voff = voff + 20
  8266.  
  8267. end
  8268.  
  8269.  
  8270.  
  8271. if m9gay then gaytext( GMenu, "Damage and TTK stats inaccurate due to m9k double penetration bug", voff, Color(255,0,0,255) ) end
  8272.  
  8273. voff = voff + 40
  8274.  
  8275.  
  8276.  
  8277. gaytext( GMenu, "Shots to Kill: "..math.ceil(50 / (gdmg * gnumshots) ).."x headshots -- "..math.ceil(100 / (gdmg * gnumshots)).."x torso shots -- "..math.ceil(400 / (gdmg * gnumshots)).."x limb shots", voff, Color(255,125,155,255) )
  8278.  
  8279. voff = voff + 20
  8280.  
  8281. gaytext( GMenu, "Shots to Kill (Armor): "..math.ceil(100 / (gdmg * gnumshots) ).."x headshots -- "..math.ceil(200 / (gdmg * gnumshots)).."x torso shots -- "..math.ceil(800 / (gdmg * gnumshots)).."x limb shots", voff, Color(255,125,255,255) )
  8282.  
  8283. voff = voff + 40
  8284.  
  8285.  
  8286.  
  8287. local ttk = (delay * math.ceil(100 / (gdmg * gnumshots) )) - delay
  8288.  
  8289. local ttk2 = (delay * math.ceil(50 / (gdmg * gnumshots) )) - delay
  8290.  
  8291. local ttk3 = (delay * math.ceil(400 / (gdmg * gnumshots) )) - delay
  8292.  
  8293. local ttk4 = (delay * math.ceil(200 / (gdmg * gnumshots) )) - delay
  8294.  
  8295. local ttk5 = (delay * math.ceil(800 / (gdmg * gnumshots) )) - delay
  8296.  
  8297. gaytext( GMenu, "Time to Kill: "..math.Round(ttk2, 3).."s (Head) -- "..math.Round(ttk, 3).."s (Body) -- "..math.Round(ttk3, 3).."s (Limb)", voff, Color(205,255,185,255) )
  8298.  
  8299. voff = voff + 20
  8300.  
  8301. gaytext( GMenu, "Time to Kill (Armored): "..math.Round(ttk, 3).."s (Head) -- "..math.Round(ttk4, 3).."s (Body) -- "..math.Round(ttk5, 3).."s (Limb)", voff, Color(155,155,255,255) )
  8302.  
  8303. voff = voff + 20
  8304.  
  8305.  
  8306.  
  8307.  
  8308.  
  8309.  
  8310.  
  8311. end
  8312.  
  8313. concommand.Add("ace_inspectweapon", AB.GunMenu)
  8314.  
  8315.  
  8316.  
  8317.  
  8318.  
  8319.  
  8320.  
  8321.  
  8322.  
  8323.  
  8324.  
  8325. ------------------------------------------------------------------------AIMBOT UTIL FUNCTIONS--------------------------------------------------------------------------------------
  8326.  
  8327.  
  8328.  
  8329.  
  8330.  
  8331.  
  8332.  
  8333. -- get this from a better place fucknuts
  8334.  
  8335. local OEyeAngles = OEyeAngles or FindMetaTable( "Player" ).SetEyeAngles
  8336.  
  8337. FindMetaTable( "Player" ).SetEyeAngles = function( self, angle )
  8338.  
  8339. if ( string.find( string.lower( debug.getinfo( 2 ).short_src ), "/weapons/" ) ) and AB.Vars.NoRecoil then return end
  8340.  
  8341. OEyeAngles( self, angle )
  8342.  
  8343. end
  8344.  
  8345.  
  8346.  
  8347. local shitweapons = {
  8348.  
  8349. "weapon_physgun",
  8350.  
  8351. "weapon_physcannon",
  8352.  
  8353. "weapon_bugbait",
  8354.  
  8355. "weapon_fists",
  8356.  
  8357. "gmod_camera",
  8358.  
  8359. "gmod_tool",
  8360.  
  8361. "weapon_medkit",
  8362.  
  8363. "weapon_zm_carry",
  8364.  
  8365. "weapon_ttt_unarmed",
  8366.  
  8367. }
  8368.  
  8369. -- make sure its a non spastic weapon to aimbot/triggerbot with
  8370.  
  8371. function AB.CanBotShoot( wep )
  8372.  
  8373. if !wep:IsValid() then return end
  8374.  
  8375. if table.HasValue( shitweapons, wep:GetClass() ) then return false end
  8376.  
  8377. return true
  8378.  
  8379. end
  8380.  
  8381.  
  8382.  
  8383. function AB.GetView()
  8384.  
  8385. return AB.ViewAngle * 1
  8386.  
  8387. end
  8388.  
  8389.  
  8390.  
  8391. function AB.FixView()
  8392.  
  8393. if !AB.Vars.Aimbot then return end
  8394.  
  8395.  
  8396.  
  8397. local ply = LocalPlayer()
  8398.  
  8399. if !ply:IsValid() then return end
  8400.  
  8401.  
  8402.  
  8403. AB.ViewAngle = ply:EyeAngles()
  8404.  
  8405. end
  8406.  
  8407.  
  8408.  
  8409. local sensitivity = 0.022
  8410.  
  8411. function AB.RotateView(cmd)
  8412.  
  8413. AB.ViewAngle.p = math.Clamp(AB.ViewAngle.p + (cmd:GetMouseY() * sensitivity), -89, 89)
  8414.  
  8415. AB.ViewAngle.y = math.NormalizeAngle(AB.ViewAngle.y + (cmd:GetMouseX() * sensitivity * -1))
  8416.  
  8417. end
  8418.  
  8419.  
  8420.  
  8421. -- fov based targeting shit
  8422.  
  8423. function AB.GetAngleFromCrosshair( ply )
  8424.  
  8425. local Ang = (AB.FindTargetPosition( ply ) - LocalPlayer():EyePos() ):Angle()
  8426.  
  8427. local myangles = LocalPlayer():EyeAngles()
  8428.  
  8429. if isangle( AB.InternalFakeAngles ) then myangles = AB.InternalFakeAngles end
  8430.  
  8431. local DiffX = math.abs( math.NormalizeAngle( myangles.p - Ang.p ) )
  8432.  
  8433. local DiffY = math.abs( math.NormalizeAngle( myangles.y - Ang.y ) )
  8434.  
  8435. return DiffX, DiffY
  8436.  
  8437. end
  8438.  
  8439.  
  8440.  
  8441. function AB.GetDirtyAngleFromCrosshair( ply )
  8442.  
  8443. local Ang = ( (ply:GetPos() + Vector( 0, 0, 35 ) ) - LocalPlayer():EyePos() ):Angle()
  8444.  
  8445. local myangles = LocalPlayer():EyeAngles()
  8446.  
  8447. if isangle( AB.InternalFakeAngles ) then myangles = AB.InternalFakeAngles end
  8448.  
  8449. local DiffX = math.abs( math.NormalizeAngle( myangles.p - Ang.p ) )
  8450.  
  8451. local DiffY = math.abs( math.NormalizeAngle( myangles.y - Ang.y ) )
  8452.  
  8453. return DiffX + DiffY
  8454.  
  8455. end
  8456.  
  8457.  
  8458.  
  8459. function AB.InFOV( ply )
  8460.  
  8461. local DiffX, DiffY = AB.GetAngleFromCrosshair( ply )
  8462.  
  8463. return ( DiffX <= AB.NumberVars.AimbotMaxFOV and DiffY <= AB.NumberVars.AimbotMaxFOV )
  8464.  
  8465. end
  8466.  
  8467.  
  8468.  
  8469. function AB.FindTargetPosition( ent )
  8470.  
  8471. if !ent:IsValid() then return end
  8472.  
  8473.  
  8474.  
  8475. if !AB.Vars.AimbotTargetMode then return ent:LocalToWorld( ent:OBBCenter() ) end
  8476.  
  8477.  
  8478.  
  8479. if ent:GetModel() == "models/crow.mdl" then return ent:LocalToWorld( Vector(0, 0, 5) ) end -- rape faggots that are in crow form, useful in gmstranded or zombie survival
  8480.  
  8481.  
  8482.  
  8483. if ent:IsPlayer() then
  8484.  
  8485. local head = ent:LookupAttachment( "eyes" )
  8486.  
  8487. if head then
  8488.  
  8489. local pos = ent:GetAttachment(head)
  8490.  
  8491. if pos then
  8492.  
  8493. return pos.Pos + ent:EyeAngles():Forward() * -1.5
  8494.  
  8495. end
  8496.  
  8497. end
  8498.  
  8499. end
  8500.  
  8501.  
  8502.  
  8503. local bone = AB.AimbotBone
  8504.  
  8505. local head = ent:LookupBone( bone )
  8506.  
  8507. if head then
  8508.  
  8509. local pos = ent:GetBonePosition( head )
  8510.  
  8511. if pos then
  8512.  
  8513. return pos
  8514.  
  8515. end
  8516.  
  8517. end
  8518.  
  8519.  
  8520.  
  8521. return ent:LocalToWorld( ent:OBBCenter() )
  8522.  
  8523. end
  8524.  
  8525.  
  8526.  
  8527. function AB.CalcTargetPosition( ent )
  8528.  
  8529. local targetPos = AB:FindTargetPosition( ent )
  8530.  
  8531.  
  8532.  
  8533. if LocalPlayer():IsValid() and LocalPlayer():GetActiveWeapon():IsValid() and LocalPlayer():GetActiveWeapon():GetClass() == "weapon_crossbow" then
  8534.  
  8535. targetPos = AB:PredictProjectileWeapons( ply, ent, targetPos ) or targetPos
  8536.  
  8537. end
  8538.  
  8539.  
  8540.  
  8541. return targetPos
  8542.  
  8543. end
  8544.  
  8545.  
  8546.  
  8547.  
  8548.  
  8549. function AB.PredictProjectileWeapons( ply, target, targetPos )
  8550.  
  8551. -- local dist = VecM["Length"](targetPos - PlyM["GetShootPos"](ply))
  8552.  
  8553. local dist = Vector(targetPos - LocalPlayer():GetShootPos()):Length()
  8554.  
  8555. local time = (dist / 3500) + 0.05
  8556.  
  8557. targetPos = targetPos + (target:GetVelocity() * time)
  8558.  
  8559.  
  8560.  
  8561. -- local mul = 0.0075
  8562.  
  8563. //targetPos = targetPos - (e["GetVelocity"](ply) * mul)
  8564.  
  8565.  
  8566.  
  8567. return targetPos
  8568.  
  8569. end
  8570.  
  8571.  
  8572.  
  8573. function AB.CanTargetPlayer( ply )
  8574.  
  8575. if !AB.Vars.TargetFriends and AB.IsFriend( ply ) then return false end
  8576.  
  8577. if !AB.Vars.TargetHighlighted and AB.IsTarget( ply ) then return false end
  8578.  
  8579. if !AB.Vars.TargetAdmins and AB.GetRank( ply ) != ( "user" or "guest" or "player" ) then return false end
  8580.  
  8581. if !AB.Vars.TargetSameTeam and ply:Team() == LocalPlayer():Team() then return false end
  8582.  
  8583. if !AB.Vars.TargetNoclippers and ply:GetMoveType() == MOVETYPE_NOCLIP then return false end
  8584.  
  8585. if DarkRP and AB.IsBabyGod( ply ) then return false end
  8586.  
  8587. return true
  8588.  
  8589. end
  8590.  
  8591.  
  8592.  
  8593. local boners = {
  8594.  
  8595. "ValveBiped.Bip01_Head1",
  8596.  
  8597. "ValveBiped.Bip01_Spine2",
  8598.  
  8599. "ValveBiped.Bip01_Pelvis",
  8600.  
  8601. "ValveBiped.Bip01_R_Forearm",
  8602.  
  8603. "ValveBiped.Bip01_L_Forearm",
  8604.  
  8605. "ValveBiped.Bip01_R_Calf",
  8606.  
  8607. "ValveBiped.Bip01_L_Calf",
  8608.  
  8609. "ValveBiped.Bip01_R_Foot",
  8610.  
  8611. "ValveBiped.Bip01_L_Foot",
  8612.  
  8613. }
  8614.  
  8615.  
  8616.  
  8617.  
  8618.  
  8619.  
  8620.  
  8621. function AB.PrepareForAStomping( ply )
  8622.  
  8623. if !ply:IsValid() then return false end
  8624.  
  8625.  
  8626.  
  8627. if ply:GetModel() == "models/crow.mdl" and AB.PlayerVisible( ply, ply:LocalToWorld( Vector(0, 0, 5) ) ) then return ply:LocalToWorld( Vector(0, 0, 5) ) end
  8628.  
  8629.  
  8630.  
  8631. if AB.Vars.AimbotTargetMode then
  8632.  
  8633. -- right in the kisser
  8634.  
  8635. local head = ply:LookupAttachment( "eyes" )
  8636.  
  8637. if head then
  8638.  
  8639. local pos = ply:GetAttachment(head)
  8640.  
  8641. if pos then
  8642.  
  8643. local tpoz = pos.Pos + ply:EyeAngles():Forward() * -1.5
  8644.  
  8645. if AB.PlayerVisible( ply, tpoz ) then return tpoz end
  8646.  
  8647. end
  8648.  
  8649. end
  8650.  
  8651.  
  8652.  
  8653. else
  8654.  
  8655. -- b aim
  8656.  
  8657. local head = ply:LookupBone( "ValveBiped.Bip01_Pelvis" )
  8658.  
  8659. if head then
  8660.  
  8661. local poz = ply:GetBonePosition( head )
  8662.  
  8663. if poz then
  8664.  
  8665. if AB.PlayerVisible( ply, poz ) then return poz end
  8666.  
  8667. end
  8668.  
  8669. end
  8670.  
  8671. end
  8672.  
  8673.  
  8674.  
  8675. if AB.Vars.AimbotAdaptiveTarget then
  8676.  
  8677. local returnpos = -1
  8678.  
  8679. for _, b in ipairs( boners ) do
  8680.  
  8681. local head = ply:LookupBone( b )
  8682.  
  8683. if head then
  8684.  
  8685. local poz = ply:GetBonePosition( head )
  8686.  
  8687. if poz then
  8688.  
  8689. if AB.PlayerVisible( ply, poz ) then returnpos = poz break end
  8690.  
  8691. end
  8692.  
  8693. end
  8694.  
  8695. end
  8696.  
  8697. if isvector( returnpos ) then return returnpos end
  8698.  
  8699. end
  8700.  
  8701.  
  8702.  
  8703.  
  8704.  
  8705. local lastresort = ply:LocalToWorld( ply:OBBCenter() )
  8706.  
  8707. if AB.PlayerVisible( ply, lastresort ) then return lastresort end
  8708.  
  8709.  
  8710.  
  8711. return false
  8712.  
  8713. end
  8714.  
  8715.  
  8716.  
  8717.  
  8718.  
  8719.  
  8720.  
  8721.  
  8722.  
  8723. function AB.PlayerVisible( ply, testpos )
  8724.  
  8725. if !ply:IsValid() or !ply:IsPlayer() then return false end
  8726.  
  8727.  
  8728.  
  8729. local td = {start = LocalPlayer():GetShootPos(), endpos = testpos, filter = {LocalPlayer(), ply}, mask = MASK_SHOT}
  8730.  
  8731. local tr = util.TraceLine(td)
  8732.  
  8733.  
  8734.  
  8735. --if tr.Entity:IsValid() and tr.Entity == ply then return true end
  8736.  
  8737. if !tr.Hit then return true end
  8738.  
  8739. if AB.Vars.AimbotWallbanger and AB.CanWeaponPenetrate( tr, ply ) then return true end
  8740.  
  8741. return false
  8742.  
  8743.  
  8744.  
  8745. end
  8746.  
  8747.  
  8748.  
  8749. -- sorta like above but doesnt require a testpos
  8750.  
  8751. function AB.PlayerVisiblePK( source, ply )
  8752.  
  8753. if !ply:IsValid() or !ply:IsPlayer() then return false end
  8754.  
  8755.  
  8756.  
  8757. local td = {start = source, endpos = ply:LocalToWorld( ply:OBBCenter() ), filter = function( e ) return ( e != LocalPlayer() and e != ply and e:GetClass() != "prop_physics") end, mask = MASK_SHOT}
  8758.  
  8759. local tr = util.TraceLine(td)
  8760.  
  8761.  
  8762.  
  8763. --if tr.Entity:IsValid() and tr.Entity == ply then return true, tr.HitPos end
  8764.  
  8765. if !tr.Hit then return true, ply:LocalToWorld( ply:OBBCenter() ) end
  8766.  
  8767. return false, Vector( 0,0,0 )
  8768.  
  8769.  
  8770.  
  8771. end
  8772.  
  8773.  
  8774.  
  8775.  
  8776.  
  8777. -- returns the closest alive player, if visible is true then it will return the closest alive and visible player
  8778.  
  8779. function AB.GetClosestPlayer()
  8780.  
  8781. local nearestEnt = game.GetWorld()
  8782.  
  8783. local mypos = LocalPlayer():GetPos()
  8784.  
  8785. local plytab = player.GetAll()
  8786.  
  8787. table.sort( plytab, function( a, b ) return a:GetPos():Distance( mypos ) < b:GetPos():Distance( mypos ) end )
  8788.  
  8789.  
  8790.  
  8791. for _, ent in ipairs( plytab ) do
  8792.  
  8793. if ent == LocalPlayer() then continue end
  8794.  
  8795. if !ent:IsValid() or AB.IsDead( ent ) or !AB.CanTargetPlayer( ent ) or (AB.ToMetric( LocalPlayer():GetPos():Distance( ent:GetPos() ) ) >= AB.NumberVars.AimbotDist ) then continue end
  8796.  
  8797. nearestEnt = ent
  8798.  
  8799. break
  8800.  
  8801. end
  8802.  
  8803.  
  8804.  
  8805. return nearestEnt
  8806.  
  8807. end
  8808.  
  8809.  
  8810.  
  8811. -- returns the closest alive player to your crosshair, visible to return only visible players
  8812.  
  8813. function AB.GetClosestToCursor( visible )
  8814.  
  8815. local nearestEnt = game.GetWorld()
  8816.  
  8817. local fovtotal = AB.NumberVars.AimbotMaxFOV or 0
  8818.  
  8819. if fovtotal > 179 then return AB.GetClosestPlayer() end -- kick it into ragebot mode
  8820.  
  8821. local mypos = LocalPlayer():GetPos()
  8822.  
  8823. local plytab = player.GetAll()
  8824.  
  8825.  
  8826.  
  8827. table.sort( plytab, function( a, b ) return AB.GetDirtyAngleFromCrosshair( a ) < AB.GetDirtyAngleFromCrosshair( b ) end )
  8828.  
  8829.  
  8830.  
  8831. for _, ent in ipairs( plytab ) do
  8832.  
  8833. if ent == LocalPlayer() then continue end
  8834.  
  8835. -- we've exceeded our max fov so just stop looping here
  8836.  
  8837. if !AB.InFOV( ent ) then break end
  8838.  
  8839. -- save a bunch of useless calcs
  8840.  
  8841. if !ent:IsValid() or AB.IsDead( ent ) or !AB.CanTargetPlayer( ent ) or (AB.ToMetric( LocalPlayer():GetPos():Distance( ent:GetPos() ) ) >= AB.NumberVars.AimbotDist ) then continue end
  8842.  
  8843. nearestEnt = ent
  8844.  
  8845. break
  8846.  
  8847. end
  8848.  
  8849.  
  8850.  
  8851.  
  8852.  
  8853. return nearestEnt
  8854.  
  8855. end
  8856.  
  8857.  
  8858.  
  8859.  
  8860.  
  8861. gameevent.Listen( "entity_killed" )
  8862.  
  8863. hook.Add( "entity_killed", "ace_propkilldetector", function( data )
  8864.  
  8865. local inflictor_index = data.entindex_inflictor
  8866.  
  8867. local attacker_index = data.entindex_attacker
  8868.  
  8869. local damagebits = data.damagebits
  8870.  
  8871. local victim_index = data.entindex_killed
  8872.  
  8873.  
  8874.  
  8875. local ply = "nobody?"
  8876.  
  8877. local retard = game.GetWorld()
  8878.  
  8879. local atk = "the map"
  8880.  
  8881. local wep = "unknown weapon"
  8882.  
  8883. local killah = game.GetWorld()
  8884.  
  8885. local inflictor = ents.GetByIndex(inflictor_index)
  8886.  
  8887.  
  8888.  
  8889. for _, p in pairs(player.GetAll()) do
  8890.  
  8891. if p:EntIndex() == victim_index then ply = p:Nick() retard = p end
  8892.  
  8893. if p:EntIndex() == attacker_index then
  8894.  
  8895. atk = p:Nick()
  8896.  
  8897. killah = p
  8898.  
  8899. if p:GetActiveWeapon() and p:GetActiveWeapon():IsValid() then wep = p:GetActiveWeapon():GetPrintName() end
  8900.  
  8901. end
  8902.  
  8903. end
  8904.  
  8905.  
  8906.  
  8907. if AB.Vars.DeathTaunts and retard == LocalPlayer() then LocalPlayer():ConCommand( "ace_chatspam_once" ) end
  8908.  
  8909. if AB.Vars.NewLifeRule and retard == LocalPlayer() then LocalPlayer():ConCommand( "ace_random_rpname" ) end
  8910.  
  8911.  
  8912.  
  8913. if attacker_index == victim_index then AB.DebugLog( ply.." necked himself", Color(180,150,150) ) if AB.Vars.NotifyKills then AB.ChatText( ply.." necked himself", Color(255,155,105) ) end return end
  8914.  
  8915. if inflictor:IsValid() and inflictor:GetClass() == "prop_physics" then
  8916.  
  8917. AB.DebugLog( ply.." got crushed by a prop!", Color(180,150,150) )
  8918.  
  8919. if AB.Vars.NotifyKills then AB.ChatText( ply.." got crushed by a prop!", Color(255,155,105) ) end
  8920.  
  8921. return
  8922.  
  8923. end
  8924.  
  8925.  
  8926.  
  8927. AB.DebugLog( atk.." killed "..ply.." with a "..wep, Color(200,150,150) )
  8928.  
  8929. if AB.Vars.NotifyKills then AB.ChatText( atk.." killed "..ply.." with a "..wep, Color(255,155,105) ) end
  8930.  
  8931.  
  8932.  
  8933. if AB.Vars.KillTaunts and retard != LocalPlayer() and killah == LocalPlayer() then LocalPlayer():ConCommand( "say "..AB.GenerateInsult4() ) end
  8934.  
  8935. /*
  8936.  
  8937. local ply = "nobody"
  8938.  
  8939. local prop = "nothing"
  8940.  
  8941.  
  8942.  
  8943. for k, v in pairs(ents.GetAll()) do
  8944.  
  8945. if v:EntIndex() == victim_index then ply = v end
  8946.  
  8947. if (v:GetClass() == "prop_physics" or string.find(v:GetClass(), "gmod_") or string.find(v:GetClass(), "wire_") ) and v:EntIndex() == attacker_index then prop = v end
  8948.  
  8949. end
  8950.  
  8951.  
  8952.  
  8953. if !FPP then return end
  8954.  
  8955.  
  8956.  
  8957. if ply == "nobody" or prop == "nothing" then return end
  8958.  
  8959. if !FPP.entGetOwner( prop ):IsValid() then return end
  8960.  
  8961.  
  8962.  
  8963. AB.DebugLog( FPP.entGetOwner( prop ):Nick().." propkilled "..ply:Nick().." with a "..prop:GetClass().." ("..prop:GetModel()..")", Color(150,150,55) )
  8964.  
  8965. */
  8966.  
  8967.  
  8968.  
  8969. end )
  8970.  
  8971.  
  8972.  
  8973. gameevent.Listen( "player_connect" )
  8974.  
  8975. hook.Add( "player_connect", "ace_playerconnected", function( data )
  8976.  
  8977. AB.DebugLog( data.name .. " ( ".. data.networkid.." ) has connected to the server.", Color(150,150,150) )
  8978.  
  8979. end )
  8980.  
  8981.  
  8982.  
  8983. gameevent.Listen( "player_hurt" )
  8984.  
  8985. hook.Add( "player_hurt", "crosshair_readinjuries", function( data )
  8986.  
  8987. if data.attacker == LocalPlayer():UserID() then AB.CrossHairAlpha = 255 end
  8988.  
  8989. end )
  8990.  
  8991.  
  8992.  
  8993. gameevent.Listen( "player_disconnect" )
  8994.  
  8995. hook.Add( "player_disconnect", "ace_playerleave", function( data )
  8996.  
  8997. timer.Simple( 0.5, function() AB.RemoveInvalidFriends() end )
  8998.  
  8999. AB.DebugLog( data.name .. " ( ".. data.networkid.." ) has disconnected from the server. ( ".. data.reason .." )", Color(150,150,150) )
  9000.  
  9001. end )
  9002.  
  9003.  
  9004.  
  9005.  
  9006.  
  9007.  
  9008.  
  9009. AB.DebugLog( "Acebot multihack initialized...", Color(200,200,255) )
  9010.  
  9011. AB.DebugLog( "Version: "..AB.Version, Color(200,200,255) )
  9012.  
  9013.  
  9014.  
  9015. if ULib then
  9016.  
  9017. AB.DebugLog( "ULX overrides detected, repairing hook system...", Color(150,250,150) )
  9018.  
  9019. AB.DebugLog( "Hook system successfully repaired", Color(150,250,150) )
  9020.  
  9021. end
  9022.  
  9023.  
  9024.  
  9025. function AB.InitPostEntity()
  9026.  
  9027. -- need a timer to give the server time to send shit to us otherwise this only works on shit thats in the same PVS area as us
  9028.  
  9029.  
  9030.  
  9031. timer.Simple( 1, function()
  9032.  
  9033. AB.AddConnectedFriends()
  9034.  
  9035. if gmod.GetGamemode().Name == "Trouble in Terrorist Town" then
  9036.  
  9037. AB.IsTTT = true
  9038.  
  9039. hook.Add( "TTTBeginRound", "ab_clearTlist", AB.ClearTraitors)
  9040.  
  9041. end
  9042.  
  9043.  
  9044.  
  9045. end)
  9046.  
  9047.  
  9048.  
  9049. end
  9050.  
  9051. hook.Add( "InitPostEntity", "ab_init", AB.InitPostEntity)
  9052.  
  9053.  
  9054.  
  9055.  
  9056.  
  9057. concommand.Add("aegis_printlogs", function() AB.ChatText( "aegis_printlogs is deprecated, use aegis_view_anticheats instead", Color(255,205,205) ) end)
  9058.  
  9059.  
  9060.  
  9061. concommand.Add("aegis_dumpnwstrings", function()
  9062.  
  9063. local netstrings = {}
  9064.  
  9065. for i = 1, 9999 do
  9066.  
  9067. local s = util.NetworkIDToString( i )
  9068.  
  9069. if s then print( "[aegis] NetChannel "..i.." = "..s ) else break end
  9070.  
  9071. end
  9072.  
  9073. end)
  9074.  
  9075.  
  9076.  
  9077. function AB.DumpHookTable( p, cmd, args )
  9078.  
  9079. local hks = args[1]
  9080.  
  9081. local hooktable = hook.GetTable()
  9082.  
  9083. if !hks or hks == "" then
  9084.  
  9085. for k, v in pairs( hooktable ) do
  9086.  
  9087. print( k.." = "..table.Count( v ).." hooks" )
  9088.  
  9089. end
  9090.  
  9091. elseif !hooktable[hks] then print( "Bad hook name! get it right you stupid fucking faggot") return
  9092.  
  9093. else
  9094.  
  9095. for k, v in pairs( hooktable[hks] ) do
  9096.  
  9097. print( k.." = "..debug.getinfo( v ).source.." lines: "..debug.getinfo( v ).linedefined.." - "..debug.getinfo( v ).lastlinedefined )
  9098.  
  9099. end
  9100.  
  9101. end
  9102.  
  9103. end
  9104.  
  9105. concommand.Add( "aegis_dumphooks", AB.DumpHookTable )
  9106.  
  9107.  
  9108.  
  9109. /*
  9110.  
  9111. function AB.SetRotateAngle( p, cmd, arg )
  9112.  
  9113. if !arg[1] or !isnumber(arg[1]) then return end
  9114.  
  9115. AB.NumberVars.PKRotateAngle = tonumber(arg[1])
  9116.  
  9117. end
  9118.  
  9119.  
  9120.  
  9121. concommand.Add( "ace_180up_vertical_angle", AB.SetRotateAngle )
  9122.  
  9123. */
  9124.  
  9125.  
  9126.  
  9127. local namesf = {
  9128.  
  9129. "Joe",
  9130.  
  9131. "John",
  9132.  
  9133. "Jack",
  9134.  
  9135. "Barry",
  9136.  
  9137. "Chris",
  9138.  
  9139. "Christopher",
  9140.  
  9141. "Michael",
  9142.  
  9143. "David",
  9144.  
  9145. "Thomas",
  9146.  
  9147. "Paul",
  9148.  
  9149. "Tony",
  9150.  
  9151. "Mark",
  9152.  
  9153. "Cooper",
  9154.  
  9155. "Jared",
  9156.  
  9157. "James",
  9158.  
  9159. "Jimmy",
  9160.  
  9161. "Bob",
  9162.  
  9163. "Robert",
  9164.  
  9165. "Riley",
  9166.  
  9167. "William",
  9168.  
  9169. "Will",
  9170.  
  9171. "Donald",
  9172.  
  9173. "George",
  9174.  
  9175. "Ken",
  9176.  
  9177. "Steve",
  9178.  
  9179. "Bruce",
  9180.  
  9181. "Brian",
  9182.  
  9183. "Chad",
  9184.  
  9185. "Anthony",
  9186.  
  9187. "Tim",
  9188.  
  9189. "Eddie",
  9190.  
  9191. "Daniel",
  9192.  
  9193. "Larry",
  9194.  
  9195. "Jeff",
  9196.  
  9197. "Justin",
  9198.  
  9199. "Adam",
  9200.  
  9201. "Ralph",
  9202.  
  9203. "Brandon",
  9204.  
  9205. "Xavier",
  9206.  
  9207. "Greg",
  9208.  
  9209. "Gordon",
  9210.  
  9211. "Scott",
  9212.  
  9213. "Taine",
  9214.  
  9215. "Howie",
  9216.  
  9217. "Morgan",
  9218.  
  9219. "Curtis",
  9220.  
  9221. "Dwayne",
  9222.  
  9223. "Steven",
  9224.  
  9225. "Peter",
  9226.  
  9227. "Kevin",
  9228.  
  9229. "Coleman",
  9230.  
  9231. "Garry",
  9232.  
  9233. }
  9234.  
  9235.  
  9236.  
  9237. local namesfem = {
  9238.  
  9239. "Kate",
  9240.  
  9241. "Katie",
  9242.  
  9243. "Jane",
  9244.  
  9245. "Charlotte",
  9246.  
  9247. "Olivia",
  9248.  
  9249. "Chloe",
  9250.  
  9251. "Amelia",
  9252.  
  9253. "Isabel",
  9254.  
  9255. "Elise",
  9256.  
  9257. "Sophie",
  9258.  
  9259. "Scarlett",
  9260.  
  9261. "Lily",
  9262.  
  9263. "Lucy",
  9264.  
  9265. "Hannah",
  9266.  
  9267. "Evelyn",
  9268.  
  9269. "Willow",
  9270.  
  9271. "Anna",
  9272.  
  9273. "Sadie",
  9274.  
  9275. "Rose",
  9276.  
  9277. "Summer",
  9278.  
  9279. "Layla",
  9280.  
  9281. "Camille",
  9282.  
  9283. "Aylssa",
  9284.  
  9285. "Madeline",
  9286.  
  9287. "Morgan",
  9288.  
  9289. "Claire",
  9290.  
  9291. "Daisy",
  9292.  
  9293. "Alexis",
  9294.  
  9295. "Victoria",
  9296.  
  9297. "Paige",
  9298.  
  9299. "Bianca",
  9300.  
  9301. "Rhiannon",
  9302.  
  9303. "Hazel",
  9304.  
  9305. "Mia",
  9306.  
  9307. "Grace",
  9308.  
  9309. "Ada",
  9310.  
  9311. "Britney",
  9312.  
  9313. "Alanna",
  9314.  
  9315. "Fabienne",
  9316.  
  9317. "Claudia",
  9318.  
  9319. "Jacinta",
  9320.  
  9321. "Jackie",
  9322.  
  9323. "Heather",
  9324.  
  9325. "Margot",
  9326.  
  9327. }
  9328.  
  9329.  
  9330.  
  9331. local namesl = {
  9332.  
  9333. "Houston",
  9334.  
  9335. "Burch",
  9336.  
  9337. "Smith",
  9338.  
  9339. "Jones",
  9340.  
  9341. "Trump",
  9342.  
  9343. "Sanders",
  9344.  
  9345. "Abbott",
  9346.  
  9347. "Cruise",
  9348.  
  9349. "Brown",
  9350.  
  9351. "Hopgood",
  9352.  
  9353. "Davis",
  9354.  
  9355. "Miller",
  9356.  
  9357. "Wilson",
  9358.  
  9359. "Walker",
  9360.  
  9361. "Lee",
  9362.  
  9363. "Lions",
  9364.  
  9365. "Bryant",
  9366.  
  9367. "Hall",
  9368.  
  9369. "Adams",
  9370.  
  9371. "Green",
  9372.  
  9373. "Aldridge",
  9374.  
  9375. "Turner",
  9376.  
  9377. "Anderson",
  9378.  
  9379. "Morris",
  9380.  
  9381. "Howard",
  9382.  
  9383. "Swanson",
  9384.  
  9385. "Peterson",
  9386.  
  9387. "Powell",
  9388.  
  9389. "Keating",
  9390.  
  9391. "Rudd",
  9392.  
  9393. "Coleman",
  9394.  
  9395. "Cunningham",
  9396.  
  9397. "Donnell",
  9398.  
  9399. "Callaghan",
  9400.  
  9401. "Smithers",
  9402.  
  9403. "Burns",
  9404.  
  9405. "Bonds",
  9406.  
  9407. "Gonzales",
  9408.  
  9409. "Griffin",
  9410.  
  9411. "Woods",
  9412.  
  9413. "Gibson",
  9414.  
  9415. "Webb",
  9416.  
  9417. "Simpson",
  9418.  
  9419. "Freeman",
  9420.  
  9421. "Mcdonald",
  9422.  
  9423. "Butters",
  9424.  
  9425. "Masterson",
  9426.  
  9427. "Keefe",
  9428.  
  9429. "Sanderson",
  9430.  
  9431. "Badger",
  9432.  
  9433. "Cantrip",
  9434.  
  9435. "Williams",
  9436.  
  9437. "DontBanMe",
  9438.  
  9439. "Lopez",
  9440.  
  9441. "Clark",
  9442.  
  9443. "Campbell",
  9444.  
  9445. "King",
  9446.  
  9447. "Coleman",
  9448.  
  9449. "Chongs",
  9450.  
  9451. "Riviera",
  9452.  
  9453. "Ward",
  9454.  
  9455. "Gray",
  9456.  
  9457. "Ross",
  9458.  
  9459. }
  9460.  
  9461.  
  9462.  
  9463. function AB.GenerateRPName( p, cmd, arg )
  9464.  
  9465. if !DarkRP then AB.ChatText( "Random rpname only works on darkrp you dipshit!", Color(255,205,205) ) return end
  9466.  
  9467. RunConsoleCommand( "darkrp", "rpname", table.Random( namesf ).." "..table.Random( namesl ) )
  9468.  
  9469. end
  9470.  
  9471. concommand.Add( "ace_random_rpname_male", AB.GenerateRPName )
  9472.  
  9473.  
  9474.  
  9475. function AB.GenerateRPNameFemale( p, cmd, arg )
  9476.  
  9477. if !DarkRP then AB.ChatText( "Random rpname only works on darkrp you dipshit!", Color(255,205,205) ) return end
  9478.  
  9479. RunConsoleCommand( "darkrp", "rpname", table.Random( namesfem ).." "..table.Random( namesl ) )
  9480.  
  9481. end
  9482.  
  9483. concommand.Add( "ace_random_rpname_female", AB.GenerateRPNameFemale )
  9484.  
  9485.  
  9486.  
  9487. function AB.GenerateRPNameBoth( p, cmd, arg )
  9488.  
  9489. if !DarkRP then AB.ChatText( "Random rpname only works on darkrp you dipshit!", Color(255,205,205) ) return end
  9490.  
  9491. if math.random( 1, 100 ) > 55 then
  9492.  
  9493. RunConsoleCommand( "darkrp", "rpname", table.Random( namesfem ).." "..table.Random( namesl ) )
  9494.  
  9495. else
  9496.  
  9497. RunConsoleCommand( "darkrp", "rpname", table.Random( namesf ).." "..table.Random( namesl ) )
  9498.  
  9499. end
  9500.  
  9501. end
  9502.  
  9503. concommand.Add( "ace_random_rpname", AB.GenerateRPNameBoth )
  9504.  
  9505.  
  9506.  
  9507.  
  9508.  
  9509. function AB.RandomRPJob( p, cmd, arg )
  9510.  
  9511. if !DarkRP then AB.ChatText( "Random rp job only works on darkrp you dipshit!", Color(255,205,205) ) return end
  9512.  
  9513. local fag = DarkRP.getCategories()
  9514.  
  9515. local jcmds = {}
  9516.  
  9517. for k, v in pairs( fag.jobs ) do
  9518.  
  9519. for _, j in pairs( v.members ) do
  9520.  
  9521. if j.customCheck and !j.customCheck( LocalPlayer() ) then continue end
  9522.  
  9523. if j.vote then continue end
  9524.  
  9525. if j.NeedToChangeFrom then continue end
  9526.  
  9527. table.insert( jcmds, j.command )
  9528.  
  9529. end
  9530.  
  9531. end
  9532.  
  9533. RunConsoleCommand( "darkrp", table.Random( jcmds ) )
  9534.  
  9535. end
  9536.  
  9537. concommand.Add( "ace_random_rp_job", AB.RandomRPJob )
  9538.  
  9539.  
  9540.  
  9541.  
  9542.  
  9543. function AB.InnocentRoleplayer( p, cmd, arg )
  9544.  
  9545. LocalPlayer():ConCommand( "cl_weaponcolor "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ) )
  9546.  
  9547. LocalPlayer():ConCommand( "cl_playercolor "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ).." "..math.Rand( 0, 1 ) )
  9548.  
  9549. RunConsoleCommand( "kill" )
  9550.  
  9551. AB.GenerateRPNameBoth()
  9552.  
  9553. AB.RandomRPJob()
  9554.  
  9555.  
  9556.  
  9557. end
  9558.  
  9559. concommand.Add( "ace_innocent_roleplayer", AB.InnocentRoleplayer )
  9560.  
  9561.  
  9562.  
  9563. local ctxlines = {
  9564.  
  9565. "Hi, my name is Crash Jackson.",
  9566.  
  9567. "I have access to 4 paid alts, each one of which allows me access to 5 other family shared steam alts.",
  9568.  
  9569. "I plan to crash your server repeatedly until every single alt is banned.",
  9570.  
  9571. "Then I'll buy some more alts and start over again.",
  9572.  
  9573. "I won't stop until your server is down forever.",
  9574.  
  9575. "Have a nice day.",
  9576.  
  9577. }
  9578.  
  9579.  
  9580.  
  9581. local ctxlines2 = {
  9582.  
  9583. "Hi, my name is Crash Bandicoot.",
  9584.  
  9585. "I have access to 4 hubwords, each one of which allows me access to 5 other levels.",
  9586.  
  9587. "I plan to find all the power crystals until every single one is mine.",
  9588.  
  9589. "Then I'll make a sequel game and start over again.",
  9590.  
  9591. "I won't stop until everybody stops buying my games.",
  9592.  
  9593. "Have a nice day.",
  9594.  
  9595. }
  9596.  
  9597.  
  9598.  
  9599. function AB.CrashJackson( p, cmd, arg )
  9600.  
  9601. for k, v in pairs( ctxlines ) do
  9602.  
  9603. if DarkRP then
  9604.  
  9605. timer.Simple( k * 2, function() RunConsoleCommand("say", "// "..v) end )
  9606.  
  9607. else
  9608.  
  9609. timer.Simple( k * 2, function() RunConsoleCommand("say", v) end )
  9610.  
  9611. end
  9612.  
  9613. end
  9614.  
  9615. end
  9616.  
  9617. concommand.Add( "ace_crashjackson", AB.CrashJackson )
  9618.  
  9619.  
  9620.  
  9621. function AB.CrashBandicoot( p, cmd, arg )
  9622.  
  9623. for k, v in pairs( ctxlines2 ) do
  9624.  
  9625. if DarkRP then
  9626.  
  9627. timer.Simple( k * 2, function() RunConsoleCommand("say", "// "..v) end )
  9628.  
  9629. else
  9630.  
  9631. timer.Simple( k * 2, function() RunConsoleCommand("say", v) end )
  9632.  
  9633. end
  9634.  
  9635. end
  9636.  
  9637. end
  9638.  
  9639. concommand.Add( "ace_crashbandicoot", AB.CrashBandicoot )
  9640.  
  9641.  
  9642.  
  9643. function AB.ErrorRape()
  9644.  
  9645. local str = "\n"
  9646.  
  9647. for i = 1, 512 do str = str.."\n" end
  9648.  
  9649. Error( str )
  9650.  
  9651. end
  9652.  
  9653.  
  9654.  
  9655. concommand.Add( "ace_exploit_rapeconsole", AB.ErrorRape )
  9656.  
  9657. /*
  9658.  
  9659. local cblockedcmds = {
  9660.  
  9661. ["connect"] = true,
  9662.  
  9663. ["disconnect"] = true,
  9664.  
  9665. ["impulse"] = true,
  9666.  
  9667. ["pp_texturize"] = true,
  9668.  
  9669. ["pp_texturize_scale"] = true,
  9670.  
  9671. ["demos"] = true,
  9672.  
  9673. ["kill"] = false,
  9674.  
  9675. ["say"] = false,
  9676.  
  9677. }
  9678.  
  9679.  
  9680.  
  9681. local function BlockedCMDMenu()
  9682.  
  9683. if CBMenu then return end
  9684.  
  9685.  
  9686.  
  9687. local CBMenu = vgui.Create("DFrame")
  9688.  
  9689. CBMenu:SetSize(500,455)
  9690.  
  9691. CBMenu:SetTitle("Manage Blocked ConCommands")
  9692.  
  9693. CBMenu:Center()
  9694.  
  9695. CBMenu:MakePopup()
  9696.  
  9697.  
  9698.  
  9699. CBMenu.Paint = function( s, w, h )
  9700.  
  9701. surface.SetDrawColor( Color(30, 30, 30, 255) )
  9702.  
  9703. surface.DrawRect( 0, 0, w, h )
  9704.  
  9705. surface.SetDrawColor( Color(55, 55, 55, 255) )
  9706.  
  9707. surface.DrawOutlinedRect( 0, 0, w, h )
  9708.  
  9709. surface.DrawOutlinedRect( 1, 1, w - 2, h - 2 )
  9710.  
  9711. surface.SetDrawColor( Color(0, 0, 0, 200) )
  9712.  
  9713. surface.DrawRect( 10, 25, w - 20, h - 35 )
  9714.  
  9715. end
  9716.  
  9717.  
  9718.  
  9719. local Plist = vgui.Create( "DPanelList", CBMenu )
  9720.  
  9721. Plist:SetSize( CBMenu:GetWide() - 20, CBMenu:GetTall() - 35 )
  9722.  
  9723. Plist:SetPadding( 5 )
  9724.  
  9725. Plist:SetSpacing( 5 )
  9726.  
  9727. Plist:EnableHorizontal( false )
  9728.  
  9729. Plist:EnableVerticalScrollbar( true )
  9730.  
  9731. Plist:SetPos( 10, 25 )
  9732.  
  9733. Plist:SetName( "" )
  9734.  
  9735.  
  9736.  
  9737. local function CreateCMDBlockPanel( cmd )
  9738.  
  9739. if !CBMenu then return end
  9740.  
  9741. local cmdp = vgui.Create( "DPanel" )
  9742.  
  9743. cmdp:SetSize( Plist:GetWide(), 30 )
  9744.  
  9745. cmdp.Cmd = cmd
  9746.  
  9747. cmdp.Paint = function( s, w, h )
  9748.  
  9749. surface.SetDrawColor( Color(50, 50, 50, 255) )
  9750.  
  9751. surface.DrawRect( 0, 0, w, h )
  9752.  
  9753. surface.SetDrawColor( Color(65, 65, 65, 255) )
  9754.  
  9755. surface.DrawOutlinedRect( 0, 0, w, h )
  9756.  
  9757. draw.DrawText( cmdp.Cmd, "DermaDefault", 10, 8, Color(255,255,255) )
  9758.  
  9759. end
  9760.  
  9761.  
  9762.  
  9763. local TButton = vgui.Create( "DButton", cmdp )
  9764.  
  9765. TButton:SetPos( 390, 2 )
  9766.  
  9767. TButton:SetText( "" )
  9768.  
  9769. TButton:SetTextColor( Color(255, 255, 255, 255) )
  9770.  
  9771. TButton:SetSize( 60, 26 )
  9772.  
  9773.  
  9774.  
  9775. TButton.Paint = function( self, w, h )
  9776.  
  9777. local dtx = "Block"
  9778.  
  9779. local dtc = Color(150, 30, 30, 255)
  9780.  
  9781. if !cblockedcmds[cmdp.Cmd] then dtx = "Allow" dtc = Color(20, 20, 20, 255) end
  9782.  
  9783. surface.SetDrawColor( dtc )
  9784.  
  9785. surface.DrawRect( 0, 0, w, h )
  9786.  
  9787. surface.SetDrawColor( Color(45, 45, 45, 255) )
  9788.  
  9789. surface.DrawOutlinedRect( 0, 0, w, h )
  9790.  
  9791. draw.DrawText( dtx, "DermaDefault", 30, 6, Color(255,255,255), 1 )
  9792.  
  9793. end
  9794.  
  9795.  
  9796.  
  9797. TButton.DoClick = function() cblockedcmds[cmdp.Cmd] = !cblockedcmds[cmdp.Cmd] end
  9798.  
  9799.  
  9800.  
  9801. Plist:AddItem( cmdp )
  9802.  
  9803. end
  9804.  
  9805.  
  9806.  
  9807.  
  9808.  
  9809. for k, v in pairs( cblockedcmds ) do
  9810.  
  9811. CreateCMDBlockPanel( k )
  9812.  
  9813. end
  9814.  
  9815.  
  9816.  
  9817. end
  9818.  
  9819. concommand.Add("aegis_blockedcmds", BlockedCMDMenu )
  9820.  
  9821. */
  9822.  
  9823.  
  9824.  
  9825. AB.WraithVision = false
  9826.  
  9827. function AB.ToggleWraithVision()
  9828.  
  9829. local mapmaterials = Entity( 0 ):GetMaterials()
  9830.  
  9831. for k, v in pairs( mapmaterials ) do
  9832.  
  9833. local m = Material( v )
  9834.  
  9835. if !AB.WraithVision then m:SetFloat( "$alpha", 0.75 ) else m:SetFloat( "$alpha", 1 ) end
  9836.  
  9837. end
  9838.  
  9839. AB.WraithVision = !AB.WraithVision
  9840.  
  9841. end
  9842.  
  9843. concommand.Add( "ace_wraith_vision", AB.ToggleWraithVision )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement