Advertisement
Caliber_

Shitcheat 3.5, we're not done yet folks.

Jul 8th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 58.48 KB | None | 0 0
  1. local defcon = { Menu = { t = {}; b = {}; c = 0}; Alive = {};}
  2. defcon.Normal           = {
  3.     aimbot                  = true;
  4.     aimbot_fov              = 5;
  5.     aimbot_friendly_fire    = true;
  6.     triggerbot              = true;
  7.    
  8.     esp_player              = true;
  9.     esp_player_dist         = 16000;
  10.     esp_player_showdist     = true;
  11.     esp_player_name         = true;
  12.     esp_player_rank         = true;
  13.     esp_player_health       = true;
  14.     esp_player_armor        = true;
  15.     esp_player_glow         = true;
  16.     boxESP                  = false;
  17.     chams                   = false;
  18.    
  19.     esp_entity              = true;
  20.     esp_entity_dist         = 16000;
  21.     propchams               = false;
  22.    
  23.     flashlight_spam         = false;
  24.    
  25.     darkrp_money            = false;
  26.     darkrp_god              = false;
  27.    
  28.     ttt_deathnotifs         = true;
  29.     bhop_bhop               = true;
  30.     crosshair               = false;
  31.     velocity                = false;
  32.     chatspam1               = false;
  33.     chatspam2               = false;
  34.     lasereyes               = false;
  35.    
  36.     freecam_below           = false;
  37.     freecam_below2          = false;
  38.     freecam_below3          = false;
  39.     freecam_above           = false;
  40.     freecam_above2          = false;
  41.     freecam_above3          = false;
  42.     freecam_side            = false;
  43.     freecam_side2           = false;
  44.     freecam_side3           = false;
  45.     cl_noclip               = false;
  46.    
  47.     pickupinradius          = false;
  48.     dupeinradius            = false;
  49. }
  50. defcon.Settings         = (file.Exists("d_settings.txt", "DATA") and util.JSONToTable(file.Read("d_settings.txt", "DATA"))) or defcon.Normal
  51. defcon.Entities         = (file.Exists("d_entities.txt", "DATA") and util.JSONToTable(file.Read("d_entities.txt", "DATA"))) or {}
  52. defcon.Whitelist        = (file.Exists("d_whitelist.txt", "DATA") and util.JSONToTable(file.Read("d_whitelist.txt", "DATA"))) or {}
  53. defcon.AimKey           = (file.Exists("d_aimkey.txt", "DATA") and tonumber(file.Read("d_aimkey.txt", "DATA"))) or KEY_LALT
  54.  
  55. --colors
  56.  
  57. red = Color(255,0,0,255);
  58. black = Color(0,0,0,255);
  59. green = Color(0,255,0,255);
  60. white = Color(255,255,255,255);
  61. blue = Color(0,0,255,255);
  62. cyan = Color(0,255,255,255);
  63. pink = Color(255,0,255,255);
  64. blue = Color(0,0,255,255);
  65. grey = Color(100,100,100,255);
  66. gold = Color(255,228,0,255);
  67. lightblue = Color(155,205,248);
  68. lightgreen = Color(174,255,0);
  69. iceblue = Color(116,187,251,255);
  70. orange = Color(255,165,0,255);
  71. brown = Color(112, 89, 50, 255);
  72.  
  73. --menu display messages
  74.  
  75. defcon.Phrases          = {
  76.     "niggerniggerniggernigger";
  77.     "bob good is not so good";
  78.     "sheo is a kike";
  79.     "new shitcheat";
  80.     "i hate niggers";
  81.     "suck my dick";
  82.     "donul trump";
  83.     "remove kebab";
  84.     "remember, no russian";
  85.     "Made by the Madbluntz.rs Team";
  86.     "we need to nuke japan again";
  87.     "now with freecam";
  88.     "go fast eat ass";
  89.     "[OOC]Johnny Nutmegg: you fucking suck dick bro";
  90.     "the fuck are you looking at";
  91.     "fucking eat shit kid";
  92.     "commies go home";
  93.     "now with more dongs";
  94.     "north virginia battle falag isnt the confed flag";
  95.     "the KKK is dead stop crying about it";
  96.     "back to africa";
  97.     "if you voted for hillary delete system32";
  98.     "[LOOC]poop: hi";
  99.     "gulag";
  100.     "halgualuhglugaluaglhuaglhuaglhu";
  101.     "remember to enable ESP";
  102.     "skype is shit";
  103.     "bent dick";
  104.     "nigger";
  105.     "minecraft used to be good";
  106.     "lets go back to 2011";
  107.     "not an argument";
  108.     "where my new england homies at";
  109.     "JSY3050PA";
  110.     "cuck";
  111.     "free gift card giveaway";
  112.     "exploding capacitors";
  113.     "Team AVO deserves ice cream";
  114.     "made with notepad++";
  115.     "made on microshit windon't 8.1";
  116.     "Pravi srpski ratni heroj";
  117.     "kosovo je srbija";
  118.     "REMOV KEBAB";
  119.     "i hear sadness";
  120.     "this isn't the final version, trust me.";
  121.     "there's more where that came from";
  122.     "remember; no russian";
  123.     "whoops";
  124.     "how many of these fucking things do you have";
  125.     "jesus christ";
  126.     "one side";
  127.     "down with fascists";
  128.     "good night alt right";
  129.     "trump isn't a fascist you fucking retards";
  130.     "hitler only killed 12 million stfu";
  131.     "if you advertize a discord server i'll ddos u";
  132.     "don't forget to credit the people u steal hacks from";
  133.     "AUFHIFUWEHFUWAHFULFUWAHIFAWHIFUWHLFIUAWHFIUAWHFILWUHWAFHWILUFHWALIUFHWIUFHWAIUFHWUFHWLIFUHWIUFWHUIHFW";
  134.     "dirty fucking NIGGERS";
  135.     "spear chuckers get out of my country";
  136.     "hi";
  137.     "if you see this message, tell calb";
  138.     "BIG FUCK, TELL TONY";
  139.     "cucked ape";
  140.     "rust sucks";
  141.     "garry newman more like garry jewman";
  142.     "official website: madbluntz.rs/shitcheat";
  143.     "listen to my music @ caliberr.bandcamp.com";
  144.     "discord.gg/nigger";
  145.     "furries will die from brain tumors";
  146.     "space left blank intentionally";
  147.     "whoa, dude";
  148.     "As seen on TV";
  149.     "Awesome";
  150.     "100% pure";
  151.     "May contain nuts";
  152.     "Better than Prey";
  153.     "More polygons";
  154.     "Sexy";
  155.     "Limited edition";
  156.     "Flashing letters";
  157.     "It's here";
  158.     "Best in class";
  159.     "It's finished";
  160.     "Kind of dragon free";
  161.     "Excrement";
  162.     "More than 500 sold";
  163.     "One of a kind";
  164.     "Heaps of hits on YouTube";
  165.     "Indev";
  166.     "Spiders everywhere";
  167.     "Check it out";
  168.     "Holy cow, man";
  169.     "It's a game";
  170.     "Made in Sweden";
  171.     "Uses LWJGL";
  172.     "Reticulating splines";
  173.     "Singleplayer";
  174.     "Keyboard compatible";
  175.     "Undocumented";
  176.     "Ingots";
  177.     "That's no moon";
  178.     "l33t";
  179.     "Exclusive";
  180.     "The bee's knee";
  181.     "Down with O.P.P.";
  182.     "Closed source";
  183.     "Classy";
  184.     "Wow";
  185.     "Not on steam";
  186.     "Oh man";
  187.     "Awesome community";
  188.     "Pixels";
  189.     "Teetsuuuuoooo";
  190.     "Kaaneeeedaaaa";
  191.     "Now with difficulty";
  192.     "Enhanced";
  193.     "90% bug free";
  194.     "Pretty";
  195.     "12 herbs and spices";
  196.     "Fat free";
  197.     "Absolutely no memes";
  198.     "Free dental";
  199.     "Ask your doctor";
  200.     "Minors not welcome";
  201.     "Cloud computing";
  202.     "Legal in Finland";
  203.     "Hard to label";
  204.     "Technically good";
  205.     "Bringing home the bacon";
  206.     "Indie";
  207.     "GOTY";
  208.     "Ceci n'est pas une cheat menu";
  209.     "Euclidian";
  210.     "Now in 2D";
  211.     "Inspirational";
  212.     "Herregud";
  213.     "Complex cellular automata";
  214.     "NO SIR";
  215.     "Played by cowboys";
  216.     "OpenGL 2.1 (if supported)";
  217.     "tens of colors";
  218.     "Try it";
  219.     "Age of empires is better";
  220.     "Try the mushroom sjw";
  221.     "Sensational";
  222.     "Hot tamale, hot hot tamale";
  223.     "Play him off, fuckhead";
  224.     "Guaranteed";
  225.     "Macroscopic";
  226.     "Bring it on";
  227.     "Random splash";
  228.     "Call your mother";
  229.     "Monster infighting";
  230.     "Loved by millions";
  231.     "Ultimate edition";
  232.     "Freaky";
  233.     "You've got a brand new key";
  234.     "not water proof";
  235.     "Uninflammable";
  236.     "Whoa, dude";
  237.     "All inclusive";
  238.     "Tell your friends";
  239.     "NP is not in P";
  240.     "Livestreamed";
  241.     "Haunted";
  242.     "Polynomial";
  243.     "Terrestrial";
  244.     "All is full of ERP";
  245.     "Full of stars";
  246.     "Scientific";
  247.     "Not as cool as Spock";
  248.     "Collaborate and listen";
  249.     "Never fuck up";
  250.     "Take frequent breaks";
  251.     "Not linear";
  252.     "Han shot first";
  253.     "Nice to meet you";
  254.     "Buckets of lava";
  255.     "Ride the pig";
  256.     "Larger than Earth";
  257.     "sqrt(-1) love you";
  258.     "Phobos anomaly";
  259.     "getting wood";
  260.     "Falling off cliffs";
  261.     "14% sugar";
  262.     "150% hyperbole";
  263.     "Synecdoche";
  264.     "Let's punc";
  265.     "Seecret Friday update";
  266.     "Reference implementation";
  267.     "Lewd with two dudes with food";
  268.     "Kiss the sky";
  269.     "20 GOTO 10";
  270.     "Verlet intregration";
  271.     "Peter Griffin";
  272.     "Do not distribute";
  273.     "Cogito ergo sum";
  274.     "44 lines of code";
  275.     "A skeleton popped out";
  276.     "The Work of Notch";
  277.     "The sum of its parts";
  278.     "BTAF used to be good";
  279.     "I miss ADOM";
  280.     "umop-apisdn";
  281.     "OICU812";
  282.     "Bring me Ray Cokes";
  283.     "Finger-licking";
  284.     "Thematic";
  285.     "Pneumatic";
  286.     "Sublime";
  287.     "Octagonal";
  288.     "Une baguette";
  289.     "Gargamel uses it";
  290.     "Rita is the new top dog";
  291.     "SWM forever";
  292.     "Representing Edsbyn";
  293.     "Matt Damon";
  294.     "Supercalifragilisticexpialidocious";
  295.     "Consummate V's";
  296.     "Cow Tools";
  297.     "Double buffered";
  298.     "Fan fiction";
  299.     "Flaxkikare";
  300.     "Jason Jason Jason";
  301.     "Hotter than the sun";
  302.     "Internet enabled";
  303.     "Autonomous";
  304.     "Engage";
  305.     "Fantasy";
  306.     "DRR DRR DRR";
  307.     "Kick it root down";
  308.     "Google anlyticsed";
  309.     "Now supports åäö";
  310.     "Give us Gordon";
  311.     "Tip your waiter";
  312.     "Very fun";
  313.     "12345 is a bad password";
  314.     "Vote for net neutrality";
  315.     "Lives in a pineapple under the sea";
  316.     "MAP11 has two names";
  317.     "Omnipotent";
  318.     "Gasp";
  319.     "...";
  320.     "Bees, bees, bees, bees";
  321.     "Jag känner en bot";
  322.     "Haha, LOL";
  323.     "Menger sponge";
  324.     "idspispopd";
  325.     "Eple (original edit)";
  326.     "So fresh, so clean";
  327.     "Slow acting portals";
  328.     "Don't look directly at the bugs";
  329.     "Finally without NIGGERS";
  330.     "Scary";
  331.     "Twittered about";
  332.     "Jump up, jump up, and get down";
  333.     "sheo is neat";
  334.     "a riddle, wrapped in a mystery";
  335.     "Huge tracts of land";
  336.     "Welcome to your Doom";
  337.     "Stay a while, stay forever";
  338.     "Stay a while and listen";
  339.     "Treatment for your rash";
  340.     "'Autological' is";
  341.     "Information wants to be free";
  342.     "Almost never' is an interesting concept";
  343.     "Lots of truthiness";
  344.     "The nigger is a baffoon";
  345.     "Turing complete";
  346.     "It's groundbreaking";
  347.     "Let our battles begin";
  348.     "The sky is the limit";
  349.     "Casul gayming";
  350.     "Undefeated";
  351.     "Kinda like Lemmings";
  352.     "Follow the train, CJ";
  353.     "Leveraging synergy";
  354.     "This message will never appear on the hack menu, isn't that weird?";
  355.     "Read more books";
  356.     "Khaaaaaaaaan";
  357.     "Less addictive than TV Tropes";
  358.     "More addictive than lemonade";
  359.     "Bigger than a bread box";
  360.     "Millions of peaches";
  361.     "Fnord";
  362.     "This is my true form";
  363.     "Totally forgot about Dre";
  364.     "Don't bother with the clones";
  365.     "Pumpkinhead";
  366.     "Hobo humping slobo babe";
  367.     "Feature packed";
  368.     "Conventional";
  369.     "Homeomorphic to a 3-sphere";
  370.     "Doesn't avoid double negatives";
  371.     "Meeting expectations";
  372.     "PC gaming since 1873";
  373.     "Ghoughpteighbteau tchoghs";
  374.     "Déjà vu";
  375.     "Déjà vu";
  376.     "Got your nose";
  377.     "Haley loves Elan";
  378.     "Afraid of the big, black bat";
  379.     "Doesn't use stonel code";
  380.     "Child's play";
  381.     "See you next Friday or so";
  382.     "From the streets of Södermalm";
  383.     "150 bpm for 400000 minutes";
  384.     "Technologic";
  385.     "Funk soul brother";
  386.     "Pumpa kungen";
  387.     "日本ハロー!";
  388.     "한국 안녕하세요";
  389.     "Helo Cymru";
  390.     "Cześć Polsko";
  391.     "你好中国!";
  392.     "Привет Россия";
  393.     "Γεια σου Ελλάδα";
  394.     "My life for Aiur";
  395.     "I see your vocabulary has improved";
  396.     "Who put it there?";
  397.     "You can't explain that";
  398.     "if not ok then return end";
  399.     "§1C§2o§3l§4o§5r§6m§7a§8t§9i§ac";
  400.     "§kFUNKY LOL";
  401.     "Big Pointy Teeth";
  402.     "Bekarton guards the gate";
  403.     "Mmmph, mmph";
  404.     "Don't feed avocados to parrots";
  405.     "Swords for everyone";
  406.     ".party()";
  407.     "Pretty scary";
  408.     "I have a suggestion.";
  409.     "Now with extra hugs";
  410.     "Now Lua 6";
  411.     "Woah.";
  412.     "HURNERJSGER?";
  413.     "What's up, Doc?";
  414.     "Now contains 6 million random daily kikes!";
  415.     "That's Niggerwang";
  416.     "join this server right now u niggers";
  417.     "Put a little fence around it";
  418.     "Throw a blanket over it";
  419.     "Now with additional stuff";
  420.     "Extra things";
  421.     "niggaz in da hood";
  422.     "So sweet";
  423.     "Popping tags";
  424.     "Very influential in its circle";
  425.     "Now with extra yeet";
  426.     "Rise from your grave";
  427.     "Warning A huge battleship is approaching fast!";
  428.     "Blue warrior shot the food";
  429.     "Run, coward I hunger";
  430.     "Flavor with no seasoning";
  431.     "Strange, but not a stranger";
  432.     "Tougher than diamonds, rich like cream";
  433.     "Getting ready to show";
  434.     "Getting ready to know";
  435.     "i'm happy with it.";
  436.     "Getting ready to drop";
  437.     "Getting ready to shock";
  438.     "Getting ready to freak";
  439.     "Getting ready to speak";
  440.     "It swings, it jives";
  441.     "Cruising streets for gold";
  442.     "Take an eggbeater and beat it against a skillet";
  443.     "Make me a table, a funky table";
  444.     "Take the elevator to the mezzanine";
  445.     "Stop being reasonable, this is the Internet";
  446.     "/giveweapon m9k_1911a1 1";
  447.     "This is good for Realms.";
  448.     "Any computer is a laptop if you're brave enough";
  449.     "Do it all, everything";
  450.     "Where there is not light, there can spider";
  451.     "GNU Terry Pratchett";
  452.     "More Digital";
  453.     "doot doot";
  454.     "Falling with style";
  455.     "There's no stopping the nutmegg";
  456.     "Throw yourself at the ground and miss";
  457.     "Rule #1: it's never my fault";
  458.     "Replaced molten cheese with blood?";
  459.     "Absolutely fixed relatively broken coordinates";
  460.     "Boats FTW";
  461.     "gay edition";
  462.     "REALLY gay edition";
  463.     "You're going too fast";
  464.     "made without parential permission";
  465.     "lapfuckstrax";
  466.     "aspie collective";
  467.     "a product of its time";
  468.     "their they're and there";
  469.     "endless streams of shit";
  470.     "new! old! terrible!";
  471.     "i make music now";
  472.     "this is my life now";
  473.     "i'm ok with this";
  474.     "u know wwhat this is prob the last version, i dont have anything new to add";
  475.     "shoutout to johnny nutmegg";
  476.     "etxraneous bullshit";
  477.     "inflated filesize";
  478.     "cancer";
  479.     "die";
  480.     "aimbot key is f";
  481.     "oh fuck off";
  482.     "try exanima";
  483.     "jerkcity.com - since 1998";
  484.     "now 3 and a half!";
  485.    
  486. }
  487. defcon.Keys = {
  488. "KEY_0", "KEY_1", "KEY_2", "KEY_3", "KEY_4", "KEY_5",
  489. "KEY_6", "KEY_7", "KEY_8", "KEY_9", "KEY_A", "KEY_B", "KEY_C",
  490. "KEY_D", "KEY_E", "KEY_F", "KEY_G", "KEY_H", "KEY_I", "KEY_J",
  491. "KEY_K", "KEY_L", "KEY_M", "KEY_N", "KEY_O", "KEY_P", "KEY_Q",
  492. "KEY_R", "KEY_S", "KEY_T", "KEY_U", "KEY_V", "KEY_W", "KEY_X",
  493. "KEY_Y", "KEY_Z", "KEY_PAD_0", "KEY_PAD_1", "KEY_PAD_2", "KEY_PAD_3",
  494. "KEY_PAD_4", "KEY_PAD_5", "KEY_PAD_6", "KEY_PAD_7", "KEY_PAD_8", "KEY_PAD_9",
  495. "KEY_PAD_DIVIDE", "KEY_PAD_MULTIPLY", "KEY_PAD_MINUS", "KEY_PAD_PLUS", "KEY_PAD_ENTER",
  496. "KEY_PAD_DECIMAL", "KEY_LBRACKET", "KEY_RBRACKET", "KEY_SEMICOLON", "KEY_APOSTROPHE",
  497. "KEY_BACKQUOTE", "KEY_COMMA", "KEY_PERIOD", "KEY_SLASH", "KEY_BACKSLASH", "KEY_MINUS",
  498. "KEY_EQUAL", "KEY_ENTER", "KEY_SPACE", "KEY_BACKSPACE", "KEY_TAB", "KEY_CAPSLOCK",
  499. "KEY_NUMLOCK", "KEY_ESCAPE", "KEY_SCROLLLOCK", "KEY_INSERT", "KEY_DELETE", "KEY_HOME",
  500. "KEY_END", "KEY_PAGEUP", "KEY_PAGEDOWN", "KEY_BREAK", "KEY_LSHIFT", "KEY_RSHIFT",
  501. "KEY_LALT", "KEY_RALT", "KEY_LCONTROL", "KEY_RCONTROL", "KEY_LWIN", "KEY_RWIN",
  502. "KEY_APP", "KEY_UP", "KEY_LEFT", "KEY_DOWN", "KEY_RIGHT", "KEY_F1", "KEY_F2",
  503. "KEY_F3", "KEY_F4", "KEY_F5", "KEY_F6", "KEY_F7", "KEY_F8", "KEY_F9",
  504. "KEY_F10", "KEY_F11", "KEY_F12", "KEY_CAPSLOCKTOGGLE", "KEY_NUMLOCKTOGGLE",
  505. "KEY_SCROLLLOCKTOGGLE"
  506. };
  507.  
  508. local function SafeCheck(v)
  509.     if v ~=LocalPlayer() and v:Alive() and v:IsValid() and v:GetActiveWeapon():IsValid() and v:Health() >= 1 then
  510.         return true
  511.     else
  512.         return false
  513.     end
  514. end
  515.  
  516. for k,v in pairs(defcon.Normal) do
  517.     if defcon.Settings[k] == nil then
  518.         defcon.Settings = defcon.Normal
  519.         -- so that if a new key is added to the normal config, the Settings will reset
  520.     end
  521. end
  522.  
  523. -- functions
  524.  
  525. function defcon.Update(x,y,z, ok)
  526.     if x == "setting" then
  527.         defcon.Settings[y] = z
  528.         if ok == true then
  529.             file.Write("d_settings.txt", util.TableToJSON(defcon.Settings))
  530.         end
  531.     elseif x == "entity" then
  532.         file.Write("d_entities.txt", util.TableToJSON(defcon.Entities))
  533.     elseif x == "friend" then
  534.         file.Write("d_whitelist.txt", util.TableToJSON(defcon.Whitelist))
  535.     end
  536. end
  537. function defcon.ESPCheck(typ, v)
  538.     if typ == "player" then
  539.         if v:Alive() && v:Health() >= 1 && v ~= LocalPlayer() /*&& /*LocalPlayer():Alive() &&*/ /*LocalPlayer():Team() ~= TEAM_SPECTATOR*/ then
  540.             return true
  541.         end
  542.     elseif typ == "entity" then
  543.         if IsValid(v) then
  544.             return true
  545.         end
  546.     end
  547.     return false
  548. end
  549. function defcon.ESPDistance(typ, v)
  550.     if typ == "player" then
  551.         if defcon.Settings["esp_player_dist"] >= 16000 then
  552.             return true
  553.         elseif v:GetPos():Distance(LocalPlayer():GetPos()) < (defcon.Settings["esp_player_dist"]) then
  554.             return true
  555.         end
  556.     elseif typ == "entity" then
  557.         if defcon.Settings["esp_entity_dist"] >= 16000 then
  558.             return true
  559.         elseif v:GetPos():Distance(LocalPlayer():GetPos()) < (defcon.Settings["esp_entity_dist"]) then
  560.             return true
  561.         end
  562.     end
  563.     return false
  564. end
  565. function defcon.GetShootPos(ent)
  566.     local eyes = ent:LookupAttachment("eyes");
  567.     if(eyes ~= 0) then
  568.         eyes = ent:GetAttachment(eyes);
  569.         if(eyes and eyes.Pos) then
  570.             return eyes.Pos, eyes.Ang;
  571.         end
  572.     end
  573. end
  574. function defcon.Visible(ent)
  575.     local pos = LocalPlayer():GetShootPos()
  576.     local ang = LocalPlayer():GetAimVector()
  577.     local trace = {start = LocalPlayer():GetShootPos(), endpos = defcon.GetShootPos(ent), filter = {LocalPlayer(), ent}, mask = 1174421507};
  578.     local tr = util.TraceLine(trace);
  579.     return(tr.Fraction == 1);
  580. end
  581. function defcon.Whitelisted(ent)
  582.     if defcon.Whitelist[ent:SteamID()] then return true
  583.     else return false end
  584. end
  585. function defcon.CanTarget(v)
  586.     if v:IsPlayer() then
  587.         if (defcon.Visible(v) and (not defcon.Whitelisted(v)) and v:Alive() and (v:Health() > 0) and v:Team() ~= TEAM_SPECTATOR) then
  588.             if (v ~= LocalPlayer() and LocalPlayer():Alive() and LocalPlayer():Team() ~= TEAM_SPECTATOR) then
  589.                 if not(defcon.Settings["aimbot_friendly_fire"]) then
  590.                     if (v:Team() ~= LocalPlayer():Team()) then
  591.                         return true
  592.                     end
  593.                 else
  594.                     return true
  595.                 end
  596.             end
  597.         end
  598.     end
  599.     return false
  600. end
  601. function defcon.Ents()
  602.     local t = {}
  603.     for k,v in pairs(ents.GetAll()) do
  604.         if IsValid(v) and not(table.HasValue(t, v:GetClass())) then
  605.             table.insert(t, v:GetClass())
  606.         end
  607.     end
  608.     table.sort(t, function(a,b) return a < b end)
  609.    
  610.     return t
  611. end
  612.  
  613. -- fonts
  614.  
  615. surface.CreateFont("deffont", {
  616.     font    =   "impact",
  617.     size    =   64
  618. });
  619.  
  620. surface.CreateFont("deffontesp1", {
  621.     font="TabLarge",
  622.     size=13,
  623.     weight=700
  624. });
  625. surface.CreateFont("deffontesp2", {
  626.     font="TabLarge",
  627.     size=10,
  628.     weight=700
  629. });
  630. surface.CreateFont("velmet", {
  631.  size = 50,
  632.  weight = 500,
  633.  antialias = true,
  634.  font = "VCR OSD Mono"
  635.  });
  636.  surface.CreateFont("warnign", {
  637.  size = 18,
  638.  weight = 0,
  639.  antialias = false,
  640.  font = "times new roman"
  641.  });
  642.  
  643. -- short vars
  644.  
  645. local menu              = defcon.Menu
  646. local current           = defcon.Current
  647. local alive             = defcon.Alive
  648. local normal            = defcon.Normal
  649. local settings          = defcon.Settings
  650. local entities          = defcon.Entities
  651. local whitelist         = defcon.Whitelist
  652. local phrases           = defcon.Phrases
  653. local espcheck          = defcon.ESPCheck
  654. local espdistance       = defcon.ESPDistance
  655.  
  656. -- menu
  657.  
  658. local function AddTab(txt, tab, func)
  659.     menu.c = menu.c + 1 -- increase the counter for the amount of tabs
  660.     local panel
  661.     if tab and tab == true then
  662.         panel = vgui.Create("DPanel", menu.frame);
  663.         panel:SetPos(120,25);
  664.         panel:SetSize(376,406);
  665.         if menu.Current == txt then
  666.             panel:SetVisible(true)
  667.         else
  668.             panel:SetVisible(false)
  669.         end
  670.         panel.Paint = function()
  671.             surface.SetDrawColor( 10, 10, 10, 255 )
  672.             surface.DrawOutlinedRect( 0, 0, panel:GetWide() - 1, panel:GetTall() - 1)
  673.             draw.SimpleText(string.upper(txt), "deffont", 10, 5, Color(210, 210, 210, 235), TEXT_ALIGN_LEFT);
  674.         end
  675.     end
  676.     local button = vgui.Create("DButton", menu.buttons);
  677.     button:SetText(txt);
  678.     button:SetSize(80, 20);
  679.     button:SetPos(15, -15+(25*menu.c));
  680.     button:SetTextColor(color_white)
  681.     button.Paint = function(self)
  682.         surface.SetDrawColor(100,100,100,220)
  683.         surface.DrawRect(0, 0,self:GetSize())
  684.         surface.SetDrawColor(0,0,0,255)
  685.         surface.DrawOutlinedRect(0,0,self:GetSize())
  686.     end
  687.     button.DoClick = func or (tab and tab == true and function()
  688.         for k,v in pairs(menu.t) do
  689.             if v ~= panel then
  690.                 v:SetVisible(false)
  691.             end
  692.         end
  693.         panel:SetVisible(true)
  694.         menu.Current = txt
  695.         surface.PlaySound("ambient/levels/canals/drip4.wav");
  696.     end)
  697.     return panel, button;
  698. end
  699.  
  700. --derma bullshit
  701.  
  702. local function AddFeature(id, parent, typ, name, setting, o1, o2)
  703.     if not parent then return end
  704.     if typ == "button" then
  705.         local label = vgui.Create("DLabel", parent)
  706.         label:SetText(name)
  707.         label:SetPos(5,(55+(id*25)))
  708.         label:SizeToContents(false)
  709.         local button = vgui.Create("DButton", parent)
  710.         if defcon.Settings[setting] == true then
  711.             button:SetText("enabled")
  712.         else
  713.             button:SetText("disabled")
  714.         end
  715.         button:SetSize(80,20)
  716.         if not id then
  717.             button:SetPos(285,45)
  718.         else
  719.             button:SetPos(285,(55+(id*25)))
  720.         end
  721.         button.DoClick = function()
  722.             if button:GetText() == "enabled" then
  723.                 button:SetText("disabled"); defcon.Update("setting", setting, false, true)
  724.             else
  725.                 button:SetText("enabled"); defcon.Update("setting", setting, true, true)
  726.             end
  727.         end
  728.         button:SetTextColor(color_white)
  729.         button.Paint = function(self)
  730.             surface.SetDrawColor(100,100,100,220)
  731.             surface.DrawRect(0, 0,self:GetSize())
  732.             surface.SetDrawColor(0,0,0,255)
  733.             surface.DrawOutlinedRect(0,0,self:GetSize())
  734.         end
  735.         return button,label
  736.     elseif typ == "slider" then
  737.         local slider = vgui.Create("DNumSlider", parent)
  738.         slider:SetPos(5, (45+(id*25)))
  739.         slider:SetText(name)
  740.         slider:SetMinMax(o1, o2)
  741.         slider:SetWide(372.5)
  742.         slider:SetDecimals( 0 )
  743.         slider:SetFGColor(255,255,255,255)
  744.         slider:SetBGColor(255,255,255,255)
  745.         slider:SetValue(defcon.Settings[setting])
  746.         slider.OnValueChanged = function(panel, value)
  747.             local c = tonumber(value)
  748.             defcon.Update("setting", setting, math.Round(c), true)
  749.         end
  750.         return slider;
  751.     end
  752.  
  753.     if typ == "label" then
  754.         local label = vgui.Create("DLabel", parent)
  755.         label:SetText(name)
  756.         label:SetPos(5,(55+(id*25)))
  757.         label:SizeToContents(false)
  758.         label:SetFont("warnign")
  759.         label.Paint = function(self)
  760.             label:SetTextColor(Color( 255, 190, 24, 255 ))
  761.             end
  762.        
  763.     return label
  764.     end
  765.         if typ == "label2" then
  766.         local label = vgui.Create("DLabel", parent)
  767.         label:SetText(name)
  768.         label:SetPos(5,(55+(id*25)))
  769.         label:SizeToContents(false)
  770.         label:SetFont("deffontesp2")
  771.         label.Paint = function(self)
  772.             label:SetTextColor(Color( 140, 140, 140, 255 ))
  773.             end
  774.            
  775.     return label2
  776.     end
  777.         if typ == "label3" then
  778.         local label = vgui.Create("DLabel", parent)
  779.         label:SetText(name)
  780.         label:SetPos(5,(55+(id*25)))
  781.         label:SizeToContents(false)
  782.         label:SetFont("warnign")
  783.         label.Paint = function(self)
  784.             label:SetTextColor(Color( 255, 190, 24, 255 ))
  785.             end
  786.        
  787.     return label3
  788. end
  789.     if not parent then return end
  790.     if typ == "canser" then
  791.         local label = vgui.Create("DLabel", parent)
  792.         label:SetText(name)
  793.         label:SetPos(5,(55+(id*25)))
  794.         label:SizeToContents(false)
  795.         local button = vgui.Create("DButton", parent)
  796.         if defcon.Settings[setting] == true then
  797.             button:SetText("enabled")
  798.         else
  799.             button:SetText("disabled")
  800.         end
  801.         button:SetSize(80,20)
  802.         if not id then
  803.             button:SetPos(285,45)
  804.         else
  805.             button:SetPos(285,(55+(id*25)))
  806.         end
  807.         button.DoClick = function()
  808.             if button:GetText() == "enabled" then
  809.                 button:SetText("disabled"); defcon.Update("setting", setting, false, true); RunConsoleCommand "SH_toggle"
  810.             else
  811.                 button:SetText("enabled"); defcon.Update("setting", setting, true, true); RunConsoleCommand "SH_toggle"
  812.             end
  813.         end
  814.         button:SetTextColor(color_white)
  815.         button.Paint = function(self)
  816.             surface.SetDrawColor(100,100,100,220)
  817.             surface.DrawRect(0, 0,self:GetSize())
  818.             surface.SetDrawColor(0,0,0,255)
  819.             surface.DrawOutlinedRect(0,0,self:GetSize())
  820.     end
  821.     end
  822.     if not parent then return end
  823.     if typ == "landsernigger" then
  824.         local label = vgui.Create("DLabel", parent)
  825.         label:SetText(name)
  826.         label:SetPos(5,(55+(id*25)))
  827.         label:SizeToContents(false)
  828.         local button = vgui.Create("DButton", parent)
  829.         if defcon.Settings[setting] == true then
  830.             button:SetText("search")
  831.         else
  832.             button:SetText("search")
  833.         end
  834.         button:SetSize(80,20)
  835.         if not id then
  836.             button:SetPos(285,45)
  837.         else
  838.             button:SetPos(285,(55+(id*25)))
  839.         end
  840.         button.DoClick = function()
  841.             if button:GetText() == "enabled" then
  842.                 button:SetText("search"); defcon.Update("setting", setting, false, true); RunConsoleCommand "pickupinradius"
  843.             else
  844.                 button:SetText("search"); defcon.Update("setting", setting, true, true); RunConsoleCommand "pickupinradius"
  845.             end
  846.         end
  847.         button:SetTextColor(color_white)
  848.         button.Paint = function(self)
  849.             surface.SetDrawColor(100,100,100,220)
  850.             surface.DrawRect(0, 0,self:GetSize())
  851.             surface.SetDrawColor(0,0,0,255)
  852.             surface.DrawOutlinedRect(0,0,self:GetSize())
  853.     end
  854.     end
  855.         if not parent then return end
  856.     if typ == "landsernigger6" then
  857.         local label = vgui.Create("DLabel", parent)
  858.         label:SetText(name)
  859.         label:SetPos(5,(55+(id*25)))
  860.         label:SizeToContents(false)
  861.         local button = vgui.Create("DButton", parent)
  862.         if defcon.Settings[setting] == true then
  863.             button:SetText("enabled")
  864.         else
  865.             button:SetText("disabled")
  866.         end
  867.         button:SetSize(80,20)
  868.         if not id then
  869.             button:SetPos(285,45)
  870.         else
  871.             button:SetPos(285,(55+(id*25)))
  872.         end
  873.         button.DoClick = function()
  874.             if button:GetText() == "enabled" then
  875.                 button:SetText("disabled"); defcon.Update("setting", setting, false, true); RunConsoleCommand ("defcon.chams", "0")
  876.             else
  877.                 button:SetText("enabled"); defcon.Update("setting", setting, true, true); RunConsoleCommand ("defcon.chams", "1")
  878.             end
  879.         end
  880.         button:SetTextColor(color_white)
  881.         button.Paint = function(self)
  882.             surface.SetDrawColor(100,100,100,220)
  883.             surface.DrawRect(0, 0,self:GetSize())
  884.             surface.SetDrawColor(0,0,0,255)
  885.             surface.DrawOutlinedRect(0,0,self:GetSize())
  886.     end
  887.     end
  888.     if not parent then return end
  889.     if typ == "landsernigger3" then
  890.         local label = vgui.Create("DLabel", parent)
  891.         label:SetText(name)
  892.         label:SetPos(5,(55+(id*25)))
  893.         label:SizeToContents(false)
  894.         local button = vgui.Create("DButton", parent)
  895.         if defcon.Settings[setting] == true then
  896.             button:SetText("enabled")
  897.         else
  898.             button:SetText("disabled")
  899.         end
  900.         button:SetSize(80,20)
  901.         if not id then
  902.             button:SetPos(285,45)
  903.         else
  904.             button:SetPos(285,(55+(id*25)))
  905.         end
  906.         button.DoClick = function()
  907.             if button:GetText() == "enabled" then
  908.                 button:SetText("disabled"); defcon.Update("setting", setting, false, true); RunConsoleCommand ("defcon.boxESP", "0")
  909.             else
  910.                 button:SetText("enabled"); defcon.Update("setting", setting, true, true); RunConsoleCommand ("defcon.boxESP", "1")
  911.             end
  912.         end
  913.         button:SetTextColor(color_white)
  914.         button.Paint = function(self)
  915.             surface.SetDrawColor(100,100,100,220)
  916.             surface.DrawRect(0, 0,self:GetSize())
  917.             surface.SetDrawColor(0,0,0,255)
  918.             surface.DrawOutlinedRect(0,0,self:GetSize())
  919.     end
  920.     end
  921.             if not parent then return end
  922.     if typ == "landsernigger4" then
  923.         local label = vgui.Create("DLabel", parent)
  924.         label:SetText(name)
  925.         label:SetPos(5,(55+(id*25)))
  926.         label:SizeToContents(false)
  927.         local button = vgui.Create("DButton", parent)
  928.         if defcon.Settings[setting] == true then
  929.             button:SetText("enabled")
  930.         else
  931.             button:SetText("disabled")
  932.         end
  933.         button:SetSize(80,20)
  934.         if not id then
  935.             button:SetPos(285,45)
  936.         else
  937.             button:SetPos(285,(55+(id*25)))
  938.         end
  939.         button.DoClick = function()
  940.             if button:GetText() == "enabled" then
  941.                 button:SetText("disabled"); defcon.Update("setting", setting, false, true); RunConsoleCommand ("defcon.propchams", "0")
  942.             else
  943.                 button:SetText("enabled"); defcon.Update("setting", setting, true, true); RunConsoleCommand ("defcon.propchams", "1")
  944.             end
  945.         end
  946.         button:SetTextColor(color_white)
  947.         button.Paint = function(self)
  948.             surface.SetDrawColor(100,100,100,220)
  949.             surface.DrawRect(0, 0,self:GetSize())
  950.             surface.SetDrawColor(0,0,0,255)
  951.             surface.DrawOutlinedRect(0,0,self:GetSize())
  952.     end
  953.     end
  954.                 if not parent then return end
  955.     if typ == "landsernigger5" then
  956.         local label = vgui.Create("DLabel", parent)
  957.         label:SetText(name)
  958.         label:SetPos(5,(55+(id*25)))
  959.         label:SizeToContents(false)
  960.         local button = vgui.Create("DButton", parent)
  961.         if defcon.Settings[setting] == true then
  962.             button:SetText("enabled")
  963.         else
  964.             button:SetText("disabled")
  965.         end
  966.         button:SetSize(80,20)
  967.         if not id then
  968.             button:SetPos(285,45)
  969.         else
  970.             button:SetPos(285,(55+(id*25)))
  971.         end
  972.         button.DoClick = function()
  973.             if button:GetText() == "enabled" then
  974.                 button:SetText("disabled"); defcon.Update("setting", setting, false, true); RunConsoleCommand ("defcon.radiochams", "0")
  975.             else
  976.                 button:SetText("enabled"); defcon.Update("setting", setting, true, true); RunConsoleCommand ("defcon.radiochams", "1")
  977.             end
  978.         end
  979.         button:SetTextColor(color_white)
  980.         button.Paint = function(self)
  981.             surface.SetDrawColor(100,100,100,220)
  982.             surface.DrawRect(0, 0,self:GetSize())
  983.             surface.SetDrawColor(0,0,0,255)
  984.             surface.DrawOutlinedRect(0,0,self:GetSize())
  985.     end
  986.     end
  987.     if not parent then return end
  988.     if typ == "landsernigger2" then
  989.         local label = vgui.Create("DLabel", parent)
  990.         label:SetText(name)
  991.         label:SetPos(5,(55+(id*25)))
  992.         label:SizeToContents(false)
  993.         local button = vgui.Create("DButton", parent)
  994.         if defcon.Settings[setting] == true then
  995.             button:SetText("dupe")
  996.         else
  997.             button:SetText("dupe")
  998.         end
  999.         button:SetSize(80,20)
  1000.         if not id then
  1001.             button:SetPos(285,45)
  1002.         else
  1003.             button:SetPos(285,(55+(id*25)))
  1004.         end
  1005.         button.DoClick = function()
  1006.             if button:GetText() == "enabled" then
  1007.                 button:SetText("dupe"); defcon.Update("setting", setting, false, true); RunConsoleCommand "dupeinradius"
  1008.             else
  1009.                 button:SetText("dupe"); defcon.Update("setting", setting, true, true); RunConsoleCommand "dupeinradius"
  1010.             end
  1011.         end
  1012.         button:SetTextColor(color_white)
  1013.         button.Paint = function(self)
  1014.             surface.SetDrawColor(100,100,100,220)
  1015.             surface.DrawRect(0, 0,self:GetSize())
  1016.             surface.SetDrawColor(0,0,0,255)
  1017.             surface.DrawOutlinedRect(0,0,self:GetSize())
  1018.     end
  1019. end
  1020. end
  1021.  
  1022. --menu assthetic
  1023.  
  1024. local function AddButton(parent, text, posx, posy, func)
  1025.     local button = vgui.Create("DButton", parent)
  1026.     button:SetText(text)
  1027.     button:SetSize(80,20)
  1028.     button:SetPos(posx,posy)
  1029.     button:SetTextColor(color_white)
  1030.     button.DoClick = func or function() end
  1031.     button.Paint = function(self)
  1032.         surface.SetDrawColor(100,100,100,220)
  1033.         surface.DrawRect(0, 0,self:GetSize())
  1034.         surface.SetDrawColor(0,0,0,255)
  1035.         surface.DrawOutlinedRect(0,0,self:GetSize())
  1036.     end
  1037.     return button
  1038. end
  1039.  
  1040. local function DrawMenu()
  1041.     if(menu.frame) then menu.frame:Remove(); menu.frame = nil; end
  1042.    
  1043.     menu.c = 0
  1044.    
  1045.     menu.frame = vgui.Create("DFrame");
  1046.     menu.frame:SetPos(ScrW()/2-184, ScrH()/2-155);
  1047.     menu.frame:SetSize(500, 435);
  1048.     menu.frame:SetTitle("Shitcheat 3.5 :: "..defcon.Phrases[math.random(1, table.Count(defcon.Phrases))]);
  1049.     menu.frame.Paint = function()
  1050.         surface.SetDrawColor(50,50,50,200)
  1051.         surface.DrawRect(0, 0,menu.frame:GetWide(),menu.frame:GetTall())
  1052.         surface.SetDrawColor(0,0,0,255)
  1053.         surface.DrawOutlinedRect(0,0,menu.frame:GetWide(),menu.frame:GetTall())
  1054.     end
  1055.     menu.frame:SetVisible(true);
  1056.     menu.frame:SetDraggable(true);
  1057.     menu.frame:SetSizable(false);
  1058.     menu.frame:ShowCloseButton(false);
  1059.     menu.frame:SetBackgroundBlur(true)
  1060.     menu.frame:MakePopup();
  1061.    
  1062.     menu.close = vgui.Create("DButton", menu.frame)
  1063.     menu.close:SetFont('marlett')
  1064.     menu.close:SetText('r')
  1065.     menu.close:SetColor(Color(255, 255, 255))
  1066.     menu.close:SetSize(15, 15)
  1067.     menu.close:SetDrawBackground(false)
  1068.     menu.close:SetPos(menu.frame:GetWide() - 20, 5)
  1069.     menu.close.DoClick = function()
  1070.         menu.frame:Remove(); menu.frame = nil;
  1071.     end
  1072.  
  1073.     menu.buttons = vgui.Create("DPanel",menu.frame)
  1074.     menu.buttons:SetPos(5, 25)
  1075.     menu.buttons:SetSize(111,406)
  1076.     menu.buttons:SetVisible(true)
  1077.     menu.buttons.Paint = function()
  1078.         surface.SetDrawColor(10,10,10,255)
  1079.         surface.DrawOutlinedRect(0,0,110,405)
  1080.     end
  1081.  
  1082.     menu.t.def = vgui.Create("DPanel", menu.frame);
  1083.     menu.t.def:SetPos(120,25);
  1084.     menu.t.def:SetSize(376,406);
  1085.     if menu.Current ~= nil then menu.t.def:SetVisible(false) end
  1086.     menu.t.def.Paint = function()
  1087.         surface.SetDrawColor( 10, 10, 10, 255 )
  1088.         surface.DrawOutlinedRect( 0, 0, menu.t.def:GetWide() - 1, menu.t.def:GetTall() - 1)
  1089.     end
  1090.    
  1091.     menu.t.a, menu.b.a      = AddTab("Aimbot",      true)
  1092.     menu.t.p, menu.b.p      = AddTab("Player ESP",  true)
  1093.     menu.t.e, menu.b.e      = AddTab("Entity ESP",  true)
  1094.     menu.t.m, menu.b.m      = AddTab("Misc.",       true)
  1095.     menu.t.f, menu.b.f      = AddTab("Freecam", true)
  1096.     --id, parent  , the type, the text , setting
  1097.     AddFeature(1, menu.t.a, "button", "Enabled", "aimbot")
  1098.     AddFeature(2, menu.t.a, "button", "Triggerbot", "triggerbot")
  1099.     AddFeature(3, menu.t.a, "button", "Friendly Fire", "aimbot_friendly_fire")
  1100.     AddFeature(4, menu.t.a, "slider", "FOV", "aimbot_fov", 0, 180)
  1101.     AddFeature(5, menu.t.a, "label2", "The aimbot key is F by default                                                                                                                 ")
  1102.    
  1103.     AddFeature(1, menu.t.p, "button", "Enabled", "esp_player")
  1104.     AddFeature(2, menu.t.p, "button", "Show Name", "esp_player_name")
  1105.     AddFeature(3, menu.t.p, "button", "Show Rank", "esp_player_rank")
  1106.     AddFeature(4, menu.t.p, "button", "Show Health", "esp_player_health")
  1107.     AddFeature(5, menu.t.p, "button", "Show Armor", "esp_player_armor")
  1108.     AddFeature(6, menu.t.p, "button", "Show Distance", "esp_player_showdist")
  1109.     AddFeature(7, menu.t.p, "slider", "Draw Distance", "esp_player_dist", 0, 16000)
  1110.     AddFeature(8, menu.t.p, "button", "Draw Glow Halo", "esp_player_glow")
  1111.     AddFeature(9, menu.t.p, "button", "Laser Eyes", "lasereyes")
  1112.     AddFeature(10,menu.t.p, "landsernigger3", "Draw Hitboxes", "defcon.boxESP")
  1113.     AddFeature(11,menu.t.p, "landsernigger6", "Player Chams", "defcon.chams")
  1114.    
  1115.     AddFeature(1, menu.t.e, "button", "Entity Finder", "esp_entity")
  1116.     AddFeature(2, menu.t.e, "slider", "Draw Distance", "esp_entity_dist", 0, 16000)
  1117.     AddFeature(3, menu.t.e, "landsernigger4", "Physics Prop chams" , "defcon.propchams")
  1118.    
  1119.     AddFeature(1, menu.t.m, "button", "Flashlight Spam [hold leftarrow]", "flashlight_spam")
  1120.     AddFeature(2, menu.t.m, "button", "Bunny hopping [hold space]", "bhop_bhop")
  1121.     AddFeature(3, menu.t.m, "button", "Client side crosshair", "crosshair")
  1122.     AddFeature(4, menu.t.m, "button", "Big velocity meter", "velocity")
  1123.     AddFeature(5, menu.t.m, "button", "Chat spammer 1 [random messages, no vc]", "chatspam1")
  1124.     AddFeature(6, menu.t.m, "button", "Chat spammer 2 [hl2rp vc messages]", "chatspam2")
  1125.     AddFeature(7, menu.t.m, "label3", "You can bind the two scripts under this message to any key                                               ")
  1126.     AddFeature(8, menu.t.m, "label3", "Just type 'bind commandname key', e.g. 'bind +jump m'                                               ")
  1127.     AddFeature(9, menu.t.m, "landsernigger", "Pick up items in radius [Clockwork schemas only]","pickupinradius")
  1128.     AddFeature(10, menu.t.m, "label2", "Console coammand: pickupinradius                                               ")
  1129.     AddFeature(11, menu.t.m, "landsernigger2", "Duplicate items in radius [Clockwork schemas only]", "dupeinradius")
  1130.     AddFeature(12, menu.t.m, "label2", "Console command: dupeinradius                                               ")
  1131.  
  1132.     AddFeature(1, menu.t.f, "canser", "Clientside noclip (replaced ghettocam in version 3)", "cl_noclip")
  1133.     AddFeature(10, menu.t.f, "label", "NOTICE: entities may not appear when using freecam                                                     ")
  1134.    
  1135.     if string.find(gmod.GetGamemode().Name, "DarkRP") then
  1136.         AddFeature(1, menu.t.g, "button", "God-mode Exploit (Costs in-game $$$)", "darkrp_god")
  1137.     elseif string.find(gmod.GetGamemode().Name, "Trouble in Terrorist Town") then
  1138.         AddFeature(1, menu.t.g, "button", "Display Death Notifications", "ttt_deathnotifs")
  1139.     end
  1140.     local elist
  1141.     local elist2
  1142.     local elistc
  1143.     local elistc2
  1144.     local function makeelist()
  1145.         elist = vgui.Create("DComboBox", menu.t.e)
  1146.         elist:SetPos(10,menu.t.e:GetTall()-43)
  1147.         elist:SetSize(130,20)
  1148.         for k,v in pairs(defcon.Ents()) do
  1149.             if not(defcon.Entities[v]) then
  1150.                 local i = elist:AddChoice(v)
  1151.             end
  1152.         end
  1153.         elist.OnSelect = function(index,value,data)
  1154.             print(data)
  1155.             elist2 = data
  1156.         end
  1157.     end
  1158.     local function makeelistc()
  1159.         elistc = vgui.Create("DComboBox", menu.t.e)
  1160.         elistc:SetPos(235, menu.t.e:GetTall()-43)
  1161.         elistc:SetSize(130,20)
  1162.         for k,v in pairs(defcon.Entities) do
  1163.             local i = elistc:AddChoice(v)
  1164.         end
  1165.         elistc.OnSelect = function(index,value,data)
  1166.             elistc2 = data
  1167.         end
  1168.     end
  1169.     makeelist()
  1170.     makeelistc()
  1171.     AddButton(menu.t.e, "Add Entity", 35, menu.t.e:GetTall()-23, function()
  1172.         if(elist2) then
  1173.             for k,v in pairs(defcon.Ents()) do
  1174.                 if (v == elist2) then
  1175.                     print(v)
  1176.                     table.insert(defcon.Entities, v)
  1177.                     defcon.Update("entity")
  1178.                 end
  1179.             end
  1180.         end
  1181.         makeelist()
  1182.         makeelistc()
  1183.     end)
  1184.     AddButton(menu.t.e, "Remove Entity", 260, menu.t.e:GetTall()-23, function()
  1185.         if(elistc2) then
  1186.             for k,v in pairs(defcon.Entities) do
  1187.                 if (v == elistc2) then
  1188.                     defcon.Entities[k] = nil;
  1189.                     defcon.Update("entity")
  1190.                 end
  1191.             end
  1192.         end
  1193.         makeelist()
  1194.         makeelistc()
  1195.     end)
  1196.     local flist
  1197.     local flist2
  1198.     local flistc
  1199.     local flistc2
  1200.     local function makeflist()
  1201.         flist = vgui.Create("DComboBox", menu.t.a)
  1202.         flist:SetPos(10,menu.t.a:GetTall()-43)
  1203.         flist:SetSize(130,20)
  1204.         for k,v in pairs(player.GetAll()) do
  1205.             if v ~= LocalPlayer() then
  1206.                 if not(defcon.Whitelist[v:SteamID()]) then
  1207.                     local i = flist:AddChoice(v:Nick())
  1208.                 end
  1209.             end
  1210.         end
  1211.         flist.OnSelect = function(index,value,data)
  1212.             print(data)
  1213.             elist2 = data
  1214.         end
  1215.     end
  1216.     local function makeflistc()
  1217.         flistc = vgui.Create("DComboBox", menu.t.a)
  1218.         flistc:SetPos(235, menu.t.a:GetTall()-43)
  1219.         flistc:SetSize(130,20)
  1220.         for k,v in pairs(player.GetAll()) do
  1221.             if v ~= LocalPlayer() then
  1222.                 if defcon.Whitelist[v:SteamID()] then
  1223.                     local i = flistc:AddChoice(v:Nick())
  1224.                 end
  1225.             end
  1226.         end
  1227.         flistc.OnSelect = function(index,value,data)
  1228.             flistc2 = data
  1229.         end
  1230.     end
  1231.     makeflist()
  1232.     makeflistc()
  1233.     AddButton(menu.t.a, "Add Friend", 35, menu.t.a:GetTall()-23, function()
  1234.         if(flist2) then
  1235.             for k,v in pairs(player.GetAll()) do
  1236.                 if (v:Nick() == flist2) then
  1237.                     print(v:Nick())
  1238.                     table.insert(defcon.Whitelist, v:SteamID())
  1239.                     PrintTable(defcon.Whitelist)
  1240.                     defcon.Update("friend")
  1241.                 end
  1242.             end
  1243.         end
  1244.         makeflist()
  1245.         makeflistc()
  1246.     end)
  1247.     AddButton(menu.t.a, "Remove Friend", 260, menu.t.a:GetTall()-23, function()
  1248.         if(flistc2) then
  1249.             for k,v in pairs(defcon.Whitelist) do
  1250.                 if (v:SteamID() == flistc2) then
  1251.                     defcon.Whitelist[k] = nil;
  1252.                     defcon.Update("friend")
  1253.                 end
  1254.             end
  1255.         end
  1256.         makeflist()
  1257.         makeflistc()
  1258.     end)
  1259. end
  1260.  
  1261. --clientside noclip
  1262.  
  1263. local SH = {}
  1264.  
  1265. SH.Enabled = false
  1266. SH.ViewOrigin = Vector( 0, 0, 0 )
  1267. SH.ViewAngle = Angle( 0, 0, 0 )
  1268. SH.Velocity = Vector( 0, 0, 0 )
  1269.  
  1270. function SH.CalcView( ply, origin, angles, fov )
  1271.     if ( !SH.Enabled ) then return end
  1272.     if ( SH.SetView ) then
  1273.         SH.ViewOrigin = origin
  1274.         SH.ViewAngle = angles
  1275.        
  1276.         SH.SetView = false
  1277.     end
  1278.     return { origin = SH.ViewOrigin, angles = SH.ViewAngle }
  1279. end
  1280. hook.Add( "CalcView", "niggerwalk", SH.CalcView )
  1281.  
  1282. function SH.CreateMove( cmd )
  1283.     if ( !SH.Enabled ) then return end
  1284.    
  1285.     local time = FrameTime()
  1286.     SH.ViewOrigin = SH.ViewOrigin + ( SH.Velocity * time )
  1287.     SH.Velocity = SH.Velocity * 0.95
  1288.    
  1289.     local sensitivity = 0.022
  1290.     SH.ViewAngle.p = math.Clamp( SH.ViewAngle.p + ( cmd:GetMouseY() * sensitivity ), -89, 89 )
  1291.     SH.ViewAngle.y = SH.ViewAngle.y + ( cmd:GetMouseX() * -1 * sensitivity )
  1292.    
  1293.     local add = Vector( 0, 0, 0 )
  1294.     local ang = SH.ViewAngle
  1295.     if ( cmd:KeyDown( IN_FORWARD ) ) then add = add + ang:Forward() end
  1296.     if ( cmd:KeyDown( IN_BACK ) ) then add = add - ang:Forward() end
  1297.     if ( cmd:KeyDown( IN_MOVERIGHT ) ) then add = add + ang:Right() end
  1298.     if ( cmd:KeyDown( IN_MOVELEFT ) ) then add = add - ang:Right() end
  1299.     if ( cmd:KeyDown( IN_JUMP ) ) then add = add + ang:Up() end
  1300.     if ( cmd:KeyDown( IN_DUCK ) ) then add = add - ang:Up() end
  1301.    
  1302.     add = add:GetNormal() * time * 500
  1303.     if ( cmd:KeyDown( IN_SPEED ) ) then add = add * 2 end
  1304.    
  1305.     SH.Velocity = SH.Velocity + add
  1306.    
  1307.     if ( SH.LockView == true ) then
  1308.         SH.LockView = cmd:GetViewAngles()
  1309.     end
  1310.     if ( SH.LockView ) then
  1311.         cmd:SetViewAngles( SH.LockView )
  1312.     end
  1313.    
  1314.     cmd:SetForwardMove( 0 )
  1315.     cmd:SetSideMove( 0 )
  1316.     cmd:SetUpMove( 0 )
  1317. end
  1318. hook.Add( "CreateMove", "niggerwalk", SH.CreateMove )
  1319.  
  1320. function SH.Toggle()
  1321.     SH.Enabled = !SH.Enabled
  1322.     SH.LockView = SH.Enabled
  1323.     SH.SetView = true
  1324.    
  1325.     local status = { [ true ] = "enabled", [ false ] = "disabled" }
  1326.     print( "freecam " .. status[ SH.Enabled ] )
  1327. end
  1328. concommand.Add( "SH_toggle", SH.Toggle )
  1329.  
  1330. concommand.Add( "SH_pos", function() print( SH.ViewOrigin ) end )
  1331.  
  1332. --defunct freecam
  1333.  
  1334. hook.Add( "ShouldDrawLocalPlayer", "ThirdPersonDrawPlayer", function()
  1335.  
  1336.     if defcon.Settings["freecam_below"] or defcon.Settings["freecam_below2"] or defcon.Settings["freecam_below3"] or defcon.Settings["freecam_above"] or defcon.Settings["freecam_above2"] or defcon.Settings["freecam_above3"] or defcon.Settings["freecam_side"] or defcon.Settings["freecam_side2"] or defcon.Settings["freecam_side3"] then
  1337.  
  1338.         return true
  1339.  
  1340.     end
  1341.  
  1342. end )
  1343. hook.Add( "CalcView", "ThirdPersonView", function( ply, pos, angles, fov )
  1344.     if defcon.Settings["freecam_below"] then
  1345.         local view = {}
  1346.         view.origin = pos - ( angles:Forward() * -200 ) + ( angles:Right() * 0 ) + ( angles:Up() * -150 )
  1347.         view.angles = ply:EyeAngles() + Angle( 0, 180, 0 )
  1348.         view.fov = fov
  1349.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1350.     end
  1351.     if defcon.Settings["freecam_below2"] then
  1352.         local view = {}
  1353.         view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * -150 )
  1354.         view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
  1355.         view.fov = fov
  1356.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1357.     end
  1358.         if defcon.Settings["freecam_below3"] then
  1359.         local view = {}
  1360.         view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * -650 )
  1361.         view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
  1362.         view.fov = fov
  1363.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1364.     end
  1365.         if defcon.Settings["freecam_above"] then
  1366.         local view = {}
  1367.         view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * 150 )
  1368.         view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
  1369.         view.fov = fov
  1370.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1371.     end
  1372.         if defcon.Settings["freecam_above2"] then
  1373.         local view = {}
  1374.         view.origin = pos - ( angles:Forward() * -200 ) + ( angles:Right() * 0 ) + ( angles:Up() * 150 )
  1375.         view.angles = ply:EyeAngles() + Angle( 0, 180, 0 )
  1376.         view.fov = fov
  1377.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1378.     end
  1379.         if defcon.Settings["freecam_above3"] then
  1380.         local view = {}
  1381.         view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * 650 )
  1382.         view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
  1383.         view.fov = fov
  1384.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1385.     end
  1386.         if defcon.Settings["freecam_side"] then
  1387.         local view = {}
  1388.         view.origin = pos - ( angles:Forward() * 150 ) + ( angles:Right() * 150 ) + ( angles:Up() * 0 )
  1389.         view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
  1390.         view.fov = fov
  1391.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1392.     end
  1393.         if defcon.Settings["freecam_side2"] then
  1394.         local view = {}
  1395.         view.origin = pos - ( angles:Forward() * -150 ) + ( angles:Right() * 150 ) + ( angles:Up() * 0 )
  1396.         view.angles = ply:EyeAngles() + Angle( 0, 180, 0 )
  1397.         view.fov = fov
  1398.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1399.     end
  1400.             if defcon.Settings["freecam_side3"] then
  1401.         local view = {}
  1402.         view.origin = pos - ( angles:Forward() * 150 ) + ( angles:Right() * 650 ) + ( angles:Up() * 0 )
  1403.         view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
  1404.         view.fov = fov
  1405.         return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
  1406.     end
  1407.     end)
  1408.    
  1409. --esp
  1410.  
  1411. hook.Add("HUDPaint", "catHUD", function()
  1412.     if defcon.Settings["esp_player"] or defcon.Settings["esp_entity"] then
  1413.         for k,v in pairs(ents.GetAll()) do
  1414.             if defcon.Settings["esp_player"] && v:IsPlayer() then
  1415.                 if(espcheck("player", v) and espdistance("player", v))then
  1416.                     local ESP = (v:EyePos()):ToScreen()
  1417.                     local name,health,rank,col,distance = "","","","",""
  1418.                     local outcol = Color(0,0,0,255)
  1419.                     local white = Color(255,255,255,255)
  1420.                     local outcol2 = outcol
  1421.                     if defcon.Settings["esp_player_name"] then
  1422.                         if v.GetRPName then name = v:GetRPName()
  1423.                         else name = v:Nick() end
  1424.                     end
  1425.                     if v:Nick() ~= name then rank = " "..v:Nick() end
  1426.                     if v.SteamName and name ~= v:SteamName() then rank = " "..v:SteamName() end
  1427.                     if defcon.Settings["esp_player_rank"] then
  1428.                         if v:IsSuperAdmin() then
  1429.                             rank = "[Super Admin]"..rank
  1430.                         elseif v:IsAdmin() then
  1431.                             rank = "[Admin]"..rank
  1432.                         elseif v:IsUserGroup("moderator") or v:IsUserGroup("mod") then
  1433.                             rank = "[Moderator]"..rank
  1434.                         elseif v:IsUserGroup("vip") or v:IsUserGroup("donator") then
  1435.                             rank = "[Donator]"..rank
  1436.                         end
  1437.                     end
  1438.                     if defcon.Settings["esp_player_health"] and not(defcon.Settings["esp_player_armor"]) then
  1439.                         health = v:Health().."H"
  1440.                     elseif defcon.Settings["esp_player_armor"] and not(defcon.Settings["esp_player_health"]) then
  1441.                         health = v:Armor().."A"
  1442.                     elseif defcon.Settings["esp_player_armor"] and defcon.Settings["esp_player_health"] then
  1443.                         health = v:Health().. "H - "..v:Armor().."A"
  1444.                     end
  1445.                     if defcon.Settings["esp_player_showdist"] then
  1446.                         distance = v:GetPos():Distance(LocalPlayer():GetPos())
  1447.                         distance = math.Round(distance).." m"
  1448.                     end
  1449.                     col = team.GetColor(v:Team())
  1450.                     if(col.r <= 50 and col.g <= 50 and col.b <= 50) then
  1451.                         outcol2 = Color(200,200,200,255)
  1452.                     end
  1453.                     if col.a <= 50 then
  1454.                         col = Color(col.r,col.g,col.b, 255)
  1455.                     end
  1456.                     draw.SimpleTextOutlined(rank, "deffontesp2", ESP.x, ESP.y -46, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol2)
  1457.                     draw.SimpleTextOutlined(name, "deffontesp1", ESP.x, ESP.y - 34, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol2)
  1458.                     if health ~= "" then
  1459.                         draw.SimpleTextOutlined(health, "deffontesp2", ESP.x, ESP.y -22, white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol)
  1460.                         draw.SimpleTextOutlined(distance, "deffontesp2", ESP.x, ESP.y - 10, white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol)
  1461.                     else
  1462.                         draw.SimpleTextOutlined(distance, "deffontesp2", ESP.x, ESP.y - 22, white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol)
  1463.                     end
  1464.                     if defcon.Settings["esp_player_glow"] then
  1465.                         halo.Add({v}, col, 2, 2, 1, true, true)
  1466.                     end
  1467.                 end
  1468.             end
  1469.             if (defcon.Settings["esp_entity"] and espcheck("entity", v) and espdistance("entity", v))then
  1470.                 if table.HasValue(defcon.Entities, v:GetClass()) then
  1471.                     local ESP = (v:EyePos()):ToScreen()
  1472.                     draw.SimpleTextOutlined(v:GetClass(), "deffontesp1", ESP.x, ESP.y - 46, Color(255,0,0,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color(0,0,0,255))
  1473.                 end
  1474.             end
  1475.         end
  1476.     end
  1477. end)
  1478.  
  1479. --misc. shit
  1480.  
  1481. hook.Add("Think", "catBOT", function()
  1482.     if(input.IsKeyDown(KEY_TAB) && input.IsKeyDown(KEY_Q) && !menu.frame)then
  1483.         DrawMenu()
  1484.     elseif(menu.frame && input.IsKeyDown(KEY_ESCAPE))then
  1485.         menu.frame:Remove();menu.frame = nil
  1486.     end
  1487.     if defcon.Settings["flashlight_spam"] and input.IsKeyDown(KEY_LEFT) then
  1488.         RunConsoleCommand("impulse", "100")
  1489.     end
  1490.     if(defcon.Settings["triggerbot"] && input.IsMouseDown(MOUSE_4)) then
  1491.         local pos = LocalPlayer():GetShootPos()
  1492.         local ang = LocalPlayer():GetAimVector()
  1493.         local tracedata = {}
  1494.         tracedata.start = pos
  1495.         tracedata.endpos = pos+(ang*9999999999999)
  1496.         local trace = util.TraceLine(tracedata)
  1497.         if(trace.HitNonWorld) then
  1498.             target = trace.Entity
  1499.             if(target:IsPlayer() and defcon.CanTarget(target)) then
  1500.                 RunConsoleCommand("+attack")
  1501.                 timer.Simple(0.000000000000000000001, function() RunConsoleCommand("-attack") end)
  1502.             end
  1503.         end
  1504.     end
  1505.     if(defcon.Settings["aimbot"] && /*input.IsKeyDown(defcon.AimKey)*/ input.IsKeyDown(KEY_F)) then
  1506.         for k,v in pairs(player.GetAll()) do
  1507.             if defcon.CanTarget(v) then
  1508.                 local head = v:LookupBone("ValveBiped.Bip01_Head1")
  1509.                 if head ~= nil then
  1510.                     local fov = defcon.Settings["aimbot_fov"]
  1511.                     if fov == 0 then
  1512.                         local headpos,targetheadang = v:GetBonePosition(head)
  1513.                         LocalPlayer():SetEyeAngles((headpos - LocalPlayer():GetShootPos()):Angle())
  1514.                     else
  1515.                         local lpang = LocalPlayer():GetAngles();
  1516.                         local ang = (v:GetPos() - LocalPlayer():GetPos()):Angle();
  1517.                         local ady = math.abs(math.NormalizeAngle(lpang.y - ang.y))
  1518.                         local adp = math.abs(math.NormalizeAngle(lpang.p - ang.p ))
  1519.                         if not(ady > fov or adp > fov) then
  1520.                             local headpos,targetheadang = v:GetBonePosition(head)
  1521.                             if headpos != nil and targetheadang != nil then
  1522.                                 LocalPlayer():SetEyeAngles((headpos - LocalPlayer():GetShootPos()):Angle())
  1523.                             end
  1524.                         end
  1525.                     end
  1526.                 end
  1527.             end
  1528.         end
  1529.     end
  1530.     if defcon.Settings["ttt_deathnotifs"] then
  1531.         for k,v in pairs(player.GetAll()) do
  1532.             if v:Alive() and not (defcon.Alive[v:UniqueID()] == true) then
  1533.                 defcon.Alive[v:UniqueID()] = true
  1534.             elseif not v:Alive() and (defcon.Alive[v:UniqueID()] == true) then
  1535.                 defcon.Alive[v:UniqueID()] = false
  1536.                 notification.AddLegacy(v:Nick().. " has died!", NOTIFY_GENERIC, 5)
  1537.             end
  1538.         end
  1539.     end
  1540. end)
  1541.  
  1542. --bhop
  1543.  
  1544. hook.Add( "CreateMove", "Billard_Bhop", function( ucmd )
  1545.     if defcon.Settings["bhop_bhop"] then
  1546.         if ucmd:KeyDown( IN_JUMP ) then
  1547.             if LocalPlayer():WaterLevel() <= 1 && LocalPlayer():GetMoveType() != MOVETYPE_LADDER && !LocalPlayer():IsOnGround() then
  1548.                     ucmd:RemoveKey( IN_JUMP )
  1549.             end
  1550.         end
  1551.     end
  1552. end )
  1553.  
  1554. --velocity meter
  1555.  
  1556. hook.Add("HUDPaint", "Velocity", function()
  1557.     for k,v in pairs(player.GetAll()) do
  1558.         if defcon.Settings ["velocity"] then
  1559.             local showvel = math.floor(LocalPlayer():GetVelocity():Length())
  1560.                 draw.RoundedBox(1, ScrW()/2.5, ScrH()/1.07, ScrW()/4.21, ScrH()/26, Color(50, 50, 50, 150))
  1561.                 draw.DrawText("velocity: "..showvel, "velmet", ScrW()/2.5, ScrH()/1.08, Color(255, 255, 255, 185))
  1562.                 end
  1563.             end
  1564.     end)
  1565.    
  1566. --crosshair
  1567.  
  1568. hook.Add( "HUDPaint", "CrossHair", function ( ucmd )
  1569.     if defcon.Settings["crosshair"] then
  1570.         local h = ScrH() / 2
  1571.         local w = ScrW() / 2
  1572.         local h1 = ScrH() / 2
  1573.         local w1 = ScrW() / 2
  1574.        
  1575.         surface.SetDrawColor( 0, 255, 255 )
  1576.         surface.DrawLine( w + 10, h, w - 10, h )
  1577.         surface.DrawLine( w, h + 10, w, h - 10 )
  1578.     end
  1579.        
  1580. end)
  1581.  
  1582. --physics prop ESP
  1583.  
  1584. local propchams = CreateMaterial("propchams","VertexLitGeneric",{
  1585.         ["$basetexture"] = "models/debug/debugwhite",
  1586.         ["$model"] = 1,
  1587.         ["$translucent"] = 1,
  1588.         ["$alpha"] = 1,
  1589.         ["$nocull"] = 1,
  1590.         ["$ignorez"] = 1
  1591. }
  1592. )
  1593.  
  1594. hook.Add( "HUDPaint", "PropESP", function()
  1595.     for k,v in pairs ( ents.FindByClass( "prop_physics" ) ) do
  1596.         if GetConVarNumber("defcon.propchams") == 1 then
  1597.             cam.Start3D(EyePos(), EyeAngles())
  1598.                 if v:IsValid() then
  1599.                     render.SuppressEngineLighting( false )
  1600.                     render.MaterialOverride( propchams )
  1601.                     render.SetBlend(0.2)
  1602.                     render.SetColorModulation( 0, 255, 0)
  1603.                     v:DrawModel()
  1604.             cam.End3D()
  1605.             end
  1606.         end
  1607.     end
  1608. end)
  1609.  
  1610. -- player chams
  1611.  
  1612. hook.Add( "HUDPaint", "ESPChams", function()
  1613.  
  1614.     for k,v in pairs ( player.GetAll() ) do
  1615.     if GetConVarNumber("defcon.chams") == 1 then
  1616.        
  1617.         if SafeCheck(v) == true then
  1618.        
  1619.             local ply = LocalPlayer()
  1620.            
  1621.             cam.Start3D(EyePos(), EyeAngles())
  1622.                      render.MaterialOverride( propchams )
  1623.                      render.SuppressEngineLighting( false )
  1624.                      render.SetBlend( 1 )
  1625.                      render.SetColorModulation( 0, 255, 255 )
  1626.                     v:DrawModel();
  1627.                     -- This bit is for weapons. --
  1628.                      render.MaterialOverride( propchams )
  1629.                      render.SuppressEngineLighting( false )
  1630.                      render.SetBlend( 1 )
  1631.                      render.SetColorModulation( 255, 0, 0 )
  1632.                     v:GetActiveWeapon():DrawModel()
  1633.                 cam.End3D()
  1634.         end
  1635.     end
  1636. end
  1637. end)
  1638.  
  1639. --box ESP
  1640.  
  1641. hook.Add("HUDPaint", "3DBoxESP", function()
  1642.     for k,v in pairs(player.GetAll()) do
  1643.         if GetConVarNumber("defcon.boxESP") == 1 then
  1644.             if SafeCheck(v) == true then
  1645.             local ply = LocalPlayer()
  1646.             local plyPos = v:GetPos()
  1647.             local head = v:OBBMaxs()
  1648.             local feet = v:OBBMins()
  1649.             local eye = v:EyeAngles()
  1650.                 cam.Start3D()
  1651.                     render.DrawWireframeBox( plyPos, Angle( 0, eye.y, 0), feet, head, team.GetColor(v:Team()) )
  1652.                      cam.End3D()
  1653.                   end
  1654.            end
  1655.     end
  1656. end)
  1657. --chat spam
  1658.  
  1659. local function Spam2()
  1660.     if defcon.Settings["chatspam1"] then
  1661.          LocalPlayer():ConCommand("say "..table.Random(normalspam).." " )
  1662.     end
  1663. end
  1664. timer.Create("Spammins2", .5,0,Spam2)
  1665.  
  1666. normalspam = {}
  1667. normalspam[1] = "mods = fags"
  1668. normalspam[2] = "I hate niggers"
  1669. normalspam[3] = "sheo was here"
  1670. normalspam[4] = "try finger but hole"
  1671. normalspam[5] = "time for crab"
  1672. normalspam[6] = "THIS SERVER IS GETTING FUCKING NULLED RN"
  1673. normalspam[7] = "whoever made this server is a fucking downie holy shit"
  1674. normalspam[8] = "this serv sucks, fuck you guys"
  1675. normalspam[9] = "im not hacking wtf?"
  1676. normalspam[10] = "Mega.co.nz is famous for it's shitposting on 4chan."
  1677. normalspam[11] = "How much memes could a cock suck if 9/11?"
  1678. normalspam[12] = "assrape"
  1679. normalspam[13] = "AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH"
  1680. normalspam[14] = "Sweedish fish are like apples, they taste good as candy, not the actual thing."
  1681. normalspam[15] = "you what"
  1682. normalspam[16] = "I'll quote your head with a rock"
  1683. normalspam[17] = "fuck me harder daddy"
  1684. normalspam[18] = "dickrape is neat"
  1685. normalspam[19] = "Shitty memes from a shitty dream."
  1686. normalspam[20] = "sheogorath has aids"
  1687. normalspam[21] = "fuck niggers"
  1688. normalspam[22] = "♫im an alabama nigger and i wanna be free, to hell with the n double a-c-p♫"
  1689. normalspam[23] = "hey whats up guys it's scarce here"
  1690. normalspam[24] = "//this is a test of the emergency broadcast system"
  1691. normalspam[25] = "erp = b&"
  1692. normalspam[26] = "50 percent off all fat farts at the fag store"
  1693. normalspam[27] = "dennis the menace"
  1694. normalspam[28] = "that's how things came to be, and that can never change, that can never change, no way.  That's how things came to be and that can never change, except when things'll change some day."
  1695. normalspam[29] = "shoutout to poopnig420 for providing memes"
  1696. normalspam[30] = "shoutout to inboot for providing packets"
  1697. normalspam[31] = "geklmin is a grade-a autist."
  1698. normalspam[32] = "REMOVE KEBAB remove kebab"
  1699. normalspam[33] = "you are worst turk. you are the turk idiot you are the turk smell. return to croatioa. to our croatia cousins you may come our contry. you may live in the zoo….ahahahaha"
  1700. normalspam[34] = "hahahahaha idiot turk and bosnian smell so bad..wow i can smell it."
  1701. normalspam[35] = "you will get caught. russia+usa+croatia+slovak=kill bosnia…"
  1702. normalspam[36] = "you will ww2/ tupac alive in serbia, tupac making album of serbia . fast rap tupac serbia."
  1703. normalspam[37] = "2pac aliv and real strong wizard kill all the turk farm aminal with rap magic now we the serba rule ."
  1704. normalspam[38] = "ape of the zoo presidant georg bush fukc the great satan and lay egg this egg hatch and bosnia wa;s born."
  1705. normalspam[39] = "stupid baby form the eggn give bak our clay we will crush u lik a skull of pig. serbia greattst countrey"
  1706. normalspam[40] = "cetnik rascal FUck but fuck asshole turk stink bosnia sqhipere shqipare..turk genocide best day of my life."
  1707. normalspam[41] = "http://www.madbluntz.rs offical sponsor of the republika srpska - marijuana fanatics serbia"
  1708.  
  1709. local function Spam()
  1710.     if defcon.Settings["chatspam2"] then
  1711.          LocalPlayer():ConCommand("say "..table.Random(hl2rpvcspam).." " )
  1712.     end
  1713. end
  1714. timer.Create("Spammins", .5,0,Spam)
  1715.  
  1716. hl2rpvcspam = {}
  1717. hl2rpvcspam[1] = "noooo"
  1718. hl2rpvcspam[2] = "whistle tune"
  1719. hl2rpvcspam[3] = "i could eat a horse"
  1720. hl2rpvcspam[4] = "combine"
  1721. hl2rpvcspam[5] = "zombies"
  1722. hl2rpvcspam[6] = "run"
  1723. hl2rpvcspam[7] = "over here"
  1724. hl2rpvcspam[8] = "hey over here"
  1725. hl2rpvcspam[9] = "run for your life"
  1726. hl2rpvcspam[10] = "hes dead"
  1727.  
  1728. --laser eyes
  1729.  
  1730. hook.Add("PostDrawOpaqueRenderables", "lasereyes", function()
  1731.     if defcon.Settings["lasereyes"] then
  1732.     for k, v in pairs(player.GetAll())do
  1733.     if SafeCheck(v) == true then
  1734.         local pos, ang = v:GetShootPos();
  1735.         render.SetMaterial(Material("sprites/bluelaser1"));
  1736.         render.DrawBeam(pos, v:GetEyeTrace().HitPos, 5, 1, 1, team.GetColor(v:Team()));
  1737.     end
  1738.     end
  1739.     end
  1740. end)  
  1741.  
  1742. --shit shamelessly stolen from my pal rootie
  1743.  
  1744. function DupeInRadius()
  1745.         local ply = LocalPlayer()
  1746.             for k,v in pairs( ents.GetAll() ) do
  1747.                     local pos = v:GetPos()
  1748.                     if v:IsValid() and ply:GetPos():Distance(pos) <= 180 then
  1749.                             if v:GetClass() == "cw_item"  then
  1750.                                     for i=0,2,1 do
  1751.                                             Clockwork.datastream:Start("EntityMenuOption", {v, "cwItemTake", "cwItemTake"})
  1752.                                                                         end
  1753.                                                         elseif v:GetClass() == "cw_cash" then
  1754.                                                                 for i=0,2,1 do
  1755.                                             Clockwork.datastream:Start("EntityMenuOption", {v, "cwCashTake", "cwCashTake"})
  1756.                                     end
  1757.                             end
  1758.                     end
  1759.             end
  1760.     end
  1761.  
  1762.    concommand.Add( "dupeinradius", DupeInRadius )
  1763.  
  1764. function PickUpInRadius()
  1765.     local ply = LocalPlayer()
  1766.         for k,v in pairs( ents.GetAll() ) do
  1767.                 local pos = v:GetPos()
  1768.                 if v:IsValid() and ply:GetPos():Distance(pos) <= 2048 then
  1769.                         if v:GetClass() == "cw_item"  then
  1770.                                 Clockwork.datastream:Start("EntityMenuOption", {v, "cwItemTake", "cwItemTake"});
  1771.                         elseif v:GetClass() == "cw_cash" then
  1772.                                 Clockwork.datastream:Start("EntityMenuOption", {v, "cwCashTake", "cwCashTake"});
  1773.                         elseif v:GetClass() == "cw_shipment" then
  1774.                                 Clockwork.datastream:Start("EntityMenuOption", {v, "cwShipmentOpen", "cwShipmentOpen"});
  1775.                         elseif v:GetClass() == "prop_physics" then
  1776.                                 Clockwork.datastream:Start("EntityMenuOption", {v, "cwContainerOpen", "cwContainerOpen"});
  1777.                         elseif v:GetClass() == "prop_ragdoll" then
  1778.                                 Clockwork.datastream:Start("EntityMenuOption", {v, "cwContainerOpen", "cwContainerOpen"});
  1779.                          end
  1780.                 end
  1781.         end
  1782. end
  1783. concommand.Add( "pickupinradius", PickUpInRadius )
  1784.  
  1785. CreateClientConVar( "defcon.boxESP", 0, true, false)
  1786. CreateClientConVar( "defcon.propchams", 0, true, false)
  1787. CreateClientConVar( "defcon.radiochams", 0, true, false)
  1788. CreateClientConVar( "defcon.chams", 0, true, false)
  1789. --everything below is disabled, don't fuck with this unless you know what you're doing.
  1790.  
  1791. /*concommand.Add("debug", function()
  1792.     local pcash,gname = "", gmod.GetGamemode().Name
  1793.     print("Game-mode:\n    "..gname)
  1794.     if string.find(gname, "DarkRP") then
  1795.         print("Player Cash Amounts")
  1796.         for k,v in pairs(player.GetAll()) do
  1797.             if not(v.DarkRPVars and v.DarkRPVars.money)and(darkrpvar == true) then
  1798.                 darkrpvar = false
  1799.             end
  1800.             if v ~= LocalPlayer() then
  1801.                 pcash = pcash.."    "..v:Nick().." - "..v.DarkRPVars.money.."\n"
  1802.             end
  1803.         end
  1804.         if pcash ~= "" then
  1805.             print(pcash)
  1806.         end
  1807.     end
  1808.     if LocalPlayer().GetActiveWeapon and LocalPlayer():GetActiveWeapon() ~= nil and IsValid(LocalPlayer():GetActiveWeapon()) then
  1809.         print("Current Weapon")
  1810.         print("    "..LocalPlayer():GetActiveWeapon():GetClass())
  1811.     end
  1812.         local pos = LocalPlayer():GetShootPos()
  1813.     local ang = LocalPlayer():GetAimVector()
  1814.     local tracedata = {}
  1815.     tracedata.start = pos
  1816.     tracedata.endpos = pos+(ang*9999999999999)
  1817.     local trace = util.TraceLine(tracedata)
  1818.     if(trace.HitNonWorld) then
  1819.         target = trace.Entity
  1820.         print("Entity Info")
  1821.         print("    Class: "..target:GetClass())
  1822.         print("    Model: "..target:GetModel())
  1823.     end
  1824. end)*/
  1825.  
  1826. --GREETZ:
  1827. --Johnny Nutmegg, Tito, Komrade Seals, Lincent, Dr. Richard Head, Caliber, the rest of the Madbluntz.rs team, Nigel farage,
  1828. --Rush, Mack, Ghost, Shawntism, Fried_Kooch, Timi, AROLTD, Kibler, Adolf Hitler, Oscar, Rootie, Alex Jones and Quak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement