Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local defcon = { Menu = { t = {}; b = {}; c = 0}; Alive = {};}
- defcon.Normal = {
- aimbot = true;
- aimbot_fov = 5;
- aimbot_friendly_fire = true;
- triggerbot = true;
- esp_player = true;
- esp_player_dist = 16000;
- esp_player_showdist = true;
- esp_player_name = true;
- esp_player_rank = true;
- esp_player_health = true;
- esp_player_armor = true;
- esp_player_glow = true;
- esp_entity = true;
- esp_entity_dist = 16000;
- flashlight_spam = false;
- darkrp_money = false;
- darkrp_god = false;
- ttt_deathnotifs = true;
- bhop_bhop = true;
- crosshair = false;
- velocity = false;
- chatspam1 = false;
- chatspam2 = false;
- lasereyes = false;
- freecam_below = false;
- freecam_below2 = false;
- freecam_below3 = false;
- freecam_above = false;
- freecam_above2 = false;
- freecam_above3 = false;
- freecam_side = false;
- freecam_side2 = false;
- freecam_side3 = false;
- }
- defcon.Settings = (file.Exists("d_settings.txt", "DATA") and util.JSONToTable(file.Read("d_settings.txt", "DATA"))) or defcon.Normal
- defcon.Entities = (file.Exists("d_entities.txt", "DATA") and util.JSONToTable(file.Read("d_entities.txt", "DATA"))) or {}
- defcon.Whitelist = (file.Exists("d_whitelist.txt", "DATA") and util.JSONToTable(file.Read("d_whitelist.txt", "DATA"))) or {}
- defcon.AimKey = (file.Exists("d_aimkey.txt", "DATA") and tonumber(file.Read("d_aimkey.txt", "DATA"))) or KEY_LALT
- --print shit
- MsgC( iceblue,[[
- ____ _ _ _ ____ _ _ ____ _____
- / ___|| |__ (_) |_ / ___| |__ ___ __ _| |_ |___ \ |___ /
- \___ \| '_ \| | __| | | '_ \ / _ \/ _` | __| __) | |_ \
- ___) | | | | | |_| |___| | | | __/ (_| | |_ / __/ _ ___) |
- |____/|_| |_|_|\__|\____|_| |_|\___|\__,_|\__| |_____(_)____/
- By The Madbluntz.rs Team
- ]])
- MsgC( gold,[[
- Aimbot key is F, press TAB + Q simultaneously to open the menu.
- ]])
- --colors
- red = Color(255,0,0,255);
- black = Color(0,0,0,255);
- green = Color(0,255,0,255);
- white = Color(255,255,255,255);
- blue = Color(0,0,255,255);
- cyan = Color(0,255,255,255);
- pink = Color(255,0,255,255);
- blue = Color(0,0,255,255);
- grey = Color(100,100,100,255);
- gold = Color(255,228,0,255);
- lightblue = Color(155,205,248);
- lightgreen = Color(174,255,0);
- iceblue = Color(116,187,251,255);
- orange = Color(255,165,0,255);
- brown = Color(112, 89, 50, 255);
- --menu display messages
- defcon.Phrases = {
- "niggerniggerniggernigger";
- "bob good is not so good";
- "sheo is a kike";
- "new shitcheat";
- "i hate niggers";
- "suck my dick";
- "donul trump";
- "remove kebab";
- "remember, no russian";
- "Made by the Madbluntz.rs Team";
- "we need to nuke japan again";
- "now with freecam";
- "go fast eat ass";
- "[OOC]Johnny Nutmegg: you fucking suck dick bro";
- }
- defcon.Keys = {
- "KEY_0", "KEY_1", "KEY_2", "KEY_3", "KEY_4", "KEY_5",
- "KEY_6", "KEY_7", "KEY_8", "KEY_9", "KEY_A", "KEY_B", "KEY_C",
- "KEY_D", "KEY_E", "KEY_F", "KEY_G", "KEY_H", "KEY_I", "KEY_J",
- "KEY_K", "KEY_L", "KEY_M", "KEY_N", "KEY_O", "KEY_P", "KEY_Q",
- "KEY_R", "KEY_S", "KEY_T", "KEY_U", "KEY_V", "KEY_W", "KEY_X",
- "KEY_Y", "KEY_Z", "KEY_PAD_0", "KEY_PAD_1", "KEY_PAD_2", "KEY_PAD_3",
- "KEY_PAD_4", "KEY_PAD_5", "KEY_PAD_6", "KEY_PAD_7", "KEY_PAD_8", "KEY_PAD_9",
- "KEY_PAD_DIVIDE", "KEY_PAD_MULTIPLY", "KEY_PAD_MINUS", "KEY_PAD_PLUS", "KEY_PAD_ENTER",
- "KEY_PAD_DECIMAL", "KEY_LBRACKET", "KEY_RBRACKET", "KEY_SEMICOLON", "KEY_APOSTROPHE",
- "KEY_BACKQUOTE", "KEY_COMMA", "KEY_PERIOD", "KEY_SLASH", "KEY_BACKSLASH", "KEY_MINUS",
- "KEY_EQUAL", "KEY_ENTER", "KEY_SPACE", "KEY_BACKSPACE", "KEY_TAB", "KEY_CAPSLOCK",
- "KEY_NUMLOCK", "KEY_ESCAPE", "KEY_SCROLLLOCK", "KEY_INSERT", "KEY_DELETE", "KEY_HOME",
- "KEY_END", "KEY_PAGEUP", "KEY_PAGEDOWN", "KEY_BREAK", "KEY_LSHIFT", "KEY_RSHIFT",
- "KEY_LALT", "KEY_RALT", "KEY_LCONTROL", "KEY_RCONTROL", "KEY_LWIN", "KEY_RWIN",
- "KEY_APP", "KEY_UP", "KEY_LEFT", "KEY_DOWN", "KEY_RIGHT", "KEY_F1", "KEY_F2",
- "KEY_F3", "KEY_F4", "KEY_F5", "KEY_F6", "KEY_F7", "KEY_F8", "KEY_F9",
- "KEY_F10", "KEY_F11", "KEY_F12", "KEY_CAPSLOCKTOGGLE", "KEY_NUMLOCKTOGGLE",
- "KEY_SCROLLLOCKTOGGLE"
- };
- for k,v in pairs(defcon.Normal) do
- if defcon.Settings[k] == nil then
- defcon.Settings = defcon.Normal
- -- so that if a new key is added to the normal config, the Settings will reset
- end
- end
- -- functions
- function defcon.Update(x,y,z, ok)
- if x == "setting" then
- defcon.Settings[y] = z
- if ok == true then
- file.Write("d_settings.txt", util.TableToJSON(defcon.Settings))
- end
- elseif x == "entity" then
- file.Write("d_entities.txt", util.TableToJSON(defcon.Entities))
- elseif x == "friend" then
- file.Write("d_whitelist.txt", util.TableToJSON(defcon.Whitelist))
- end
- end
- function defcon.ESPCheck(typ, v)
- if typ == "player" then
- if v:Alive() && v:Health() >= 1 && v ~= LocalPlayer() /*&& /*LocalPlayer():Alive() &&*/ /*LocalPlayer():Team() ~= TEAM_SPECTATOR*/ then
- return true
- end
- elseif typ == "entity" then
- if IsValid(v) then
- return true
- end
- end
- return false
- end
- function defcon.ESPDistance(typ, v)
- if typ == "player" then
- if defcon.Settings["esp_player_dist"] >= 16000 then
- return true
- elseif v:GetPos():Distance(LocalPlayer():GetPos()) < (defcon.Settings["esp_player_dist"]) then
- return true
- end
- elseif typ == "entity" then
- if defcon.Settings["esp_entity_dist"] >= 16000 then
- return true
- elseif v:GetPos():Distance(LocalPlayer():GetPos()) < (defcon.Settings["esp_entity_dist"]) then
- return true
- end
- end
- return false
- end
- function defcon.GetShootPos(ent)
- local eyes = ent:LookupAttachment("eyes");
- if(eyes ~= 0) then
- eyes = ent:GetAttachment(eyes);
- if(eyes and eyes.Pos) then
- return eyes.Pos, eyes.Ang;
- end
- end
- end
- function defcon.Visible(ent)
- local pos = LocalPlayer():GetShootPos()
- local ang = LocalPlayer():GetAimVector()
- local trace = {start = LocalPlayer():GetShootPos(), endpos = defcon.GetShootPos(ent), filter = {LocalPlayer(), ent}, mask = 1174421507};
- local tr = util.TraceLine(trace);
- return(tr.Fraction == 1);
- end
- function defcon.Whitelisted(ent)
- if defcon.Whitelist[ent:SteamID()] then return true
- else return false end
- end
- function defcon.CanTarget(v)
- if v:IsPlayer() then
- if (defcon.Visible(v) and (not defcon.Whitelisted(v)) and v:Alive() and (v:Health() > 0) and v:Team() ~= TEAM_SPECTATOR) then
- if (v ~= LocalPlayer() and LocalPlayer():Alive() and LocalPlayer():Team() ~= TEAM_SPECTATOR) then
- if not(defcon.Settings["aimbot_friendly_fire"]) then
- if (v:Team() ~= LocalPlayer():Team()) then
- return true
- end
- else
- return true
- end
- end
- end
- end
- return false
- end
- function defcon.Ents()
- local t = {}
- for k,v in pairs(ents.GetAll()) do
- if IsValid(v) and not(table.HasValue(t, v:GetClass())) then
- table.insert(t, v:GetClass())
- end
- end
- table.sort(t, function(a,b) return a < b end)
- return t
- end
- -- fonts
- surface.CreateFont("deffont", {
- font = "impact",
- size = 64
- });
- surface.CreateFont("deffontesp1", {
- font="TabLarge",
- size=13,
- weight=700
- });
- surface.CreateFont("deffontesp2", {
- font="TabLarge",
- size=10,
- weight=700
- });
- surface.CreateFont("velmet", {
- size = 50,
- weight = 500,
- antialias = true,
- font = "VCR OSD Mono"});
- surface.CreateFont("warnign", {
- size = 18,
- weight = 0,
- antialias = false,
- font = "times new roman"});
- -- short vars
- local menu = defcon.Menu
- local current = defcon.Current
- local alive = defcon.Alive
- local normal = defcon.Normal
- local settings = defcon.Settings
- local entities = defcon.Entities
- local whitelist = defcon.Whitelist
- local phrases = defcon.Phrases
- local espcheck = defcon.ESPCheck
- local espdistance = defcon.ESPDistance
- -- menu
- local function AddTab(txt, tab, func)
- menu.c = menu.c + 1 -- increase the counter for the amount of tabs
- local panel
- if tab and tab == true then
- panel = vgui.Create("DPanel", menu.frame);
- panel:SetPos(120,25);
- panel:SetSize(376,406);
- if menu.Current == txt then
- panel:SetVisible(true)
- else
- panel:SetVisible(false)
- end
- panel.Paint = function()
- surface.SetDrawColor( 10, 10, 10, 255 )
- surface.DrawOutlinedRect( 0, 0, panel:GetWide() - 1, panel:GetTall() - 1)
- draw.SimpleText(string.upper(txt), "deffont", 10, 5, Color(210, 210, 210, 235), TEXT_ALIGN_LEFT);
- end
- end
- local button = vgui.Create("DButton", menu.buttons);
- button:SetText(txt);
- button:SetSize(80, 20);
- button:SetPos(15, -15+(25*menu.c));
- button:SetTextColor(color_white)
- button.Paint = function(self)
- surface.SetDrawColor(100,100,100,220)
- surface.DrawRect(0, 0,self:GetSize())
- surface.SetDrawColor(0,0,0,255)
- surface.DrawOutlinedRect(0,0,self:GetSize())
- end
- button.DoClick = func or (tab and tab == true and function()
- for k,v in pairs(menu.t) do
- if v ~= panel then
- v:SetVisible(false)
- end
- end
- panel:SetVisible(true)
- menu.Current = txt
- surface.PlaySound("ambient/levels/canals/drip4.wav");
- end)
- return panel, button;
- end
- --gay shit for menu
- local function AddFeature(id, parent, typ, name, setting, o1, o2)
- if not parent then return end
- if typ == "button" then
- local label = vgui.Create("DLabel", parent)
- label:SetText(name)
- label:SetPos(5,(55+(id*25)))
- label:SizeToContents(false)
- local button = vgui.Create("DButton", parent)
- if defcon.Settings[setting] == true then
- button:SetText("enabled")
- else
- button:SetText("disabled")
- end
- button:SetSize(80,20)
- if not id then
- button:SetPos(285,45)
- else
- button:SetPos(285,(55+(id*25)))
- end
- button.DoClick = function()
- if button:GetText() == "enabled" then
- button:SetText("disabled"); defcon.Update("setting", setting, false, true)
- else
- button:SetText("enabled"); defcon.Update("setting", setting, true, true)
- end
- end
- button:SetTextColor(color_white)
- button.Paint = function(self)
- surface.SetDrawColor(100,100,100,220)
- surface.DrawRect(0, 0,self:GetSize())
- surface.SetDrawColor(0,0,0,255)
- surface.DrawOutlinedRect(0,0,self:GetSize())
- end
- return button,label
- elseif typ == "slider" then
- local slider = vgui.Create("DNumSlider", parent)
- slider:SetPos(5, (45+(id*25)))
- slider:SetText(name)
- slider:SetMinMax(o1, o2)
- slider:SetWide(372.5)
- slider:SetDecimals( 0 )
- slider:SetFGColor(255,255,255,255)
- slider:SetBGColor(255,255,255,255)
- slider:SetValue(defcon.Settings[setting])
- slider.OnValueChanged = function(panel, value)
- local c = tonumber(value)
- defcon.Update("setting", setting, math.Round(c), true)
- end
- return slider;
- end
- if typ == "label" then
- local label = vgui.Create("DLabel", parent)
- label:SetText(name)
- label:SetPos(50,(55+(id*25)))
- label:SizeToContents(false)
- label:SetFont("warnign")
- label.Paint = function(self)
- label:SetTextColor(Color( 255, 190, 24, 255 ))
- end
- return label
- end
- if typ == "label2" then
- local label = vgui.Create("DLabel", parent)
- label:SetText(name)
- label:SetPos(160,(55+(id*25)))
- label:SizeToContents(false)
- label:SetFont("warnign")
- label.Paint = function(self)
- label:SetTextColor(Color( 255, 190, 24, 255 ))
- end
- return label2
- end
- end
- --menu look
- local function AddButton(parent, text, posx, posy, func)
- local button = vgui.Create("DButton", parent)
- button:SetText(text)
- button:SetSize(80,20)
- button:SetPos(posx,posy)
- button:SetTextColor(color_white)
- button.DoClick = func or function() end
- button.Paint = function(self)
- surface.SetDrawColor(100,100,100,220)
- surface.DrawRect(0, 0,self:GetSize())
- surface.SetDrawColor(0,0,0,255)
- surface.DrawOutlinedRect(0,0,self:GetSize())
- end
- return button
- end
- --menu
- local function DrawMenu()
- if(menu.frame) then menu.frame:Remove(); menu.frame = nil; end
- menu.c = 0
- menu.frame = vgui.Create("DFrame");
- menu.frame:SetPos(ScrW()/2-184, ScrH()/2-155);
- menu.frame:SetSize(500, 435);
- menu.frame:SetTitle("Shitcheat 2.2 :: "..defcon.Phrases[math.random(1, table.Count(defcon.Phrases))]);
- menu.frame.Paint = function()
- surface.SetDrawColor(50,50,50,200)
- surface.DrawRect(0, 0,menu.frame:GetWide(),menu.frame:GetTall())
- surface.SetDrawColor(0,0,0,255)
- surface.DrawOutlinedRect(0,0,menu.frame:GetWide(),menu.frame:GetTall())
- end
- menu.frame:SetVisible(true);
- menu.frame:SetDraggable(true);
- menu.frame:SetSizable(false);
- menu.frame:ShowCloseButton(false);
- menu.frame:SetBackgroundBlur(true)
- menu.frame:MakePopup();
- menu.close = vgui.Create("DButton", menu.frame)
- menu.close:SetFont('marlett')
- menu.close:SetText('r')
- menu.close:SetColor(Color(255, 255, 255))
- menu.close:SetSize(15, 15)
- menu.close:SetDrawBackground(false)
- menu.close:SetPos(menu.frame:GetWide() - 20, 5)
- menu.close.DoClick = function()
- menu.frame:Remove(); menu.frame = nil;
- end
- menu.buttons = vgui.Create("DPanel",menu.frame)
- menu.buttons:SetPos(5, 25)
- menu.buttons:SetSize(111,406)
- menu.buttons:SetVisible(true)
- menu.buttons.Paint = function()
- surface.SetDrawColor(10,10,10,255)
- surface.DrawOutlinedRect(0,0,110,405)
- end
- menu.t.def = vgui.Create("DPanel", menu.frame);
- menu.t.def:SetPos(120,25);
- menu.t.def:SetSize(376,406);
- if menu.Current ~= nil then menu.t.def:SetVisible(false) end
- menu.t.def.Paint = function()
- surface.SetDrawColor( 10, 10, 10, 255 )
- surface.DrawOutlinedRect( 0, 0, menu.t.def:GetWide() - 1, menu.t.def:GetTall() - 1)
- end
- menu.t.a, menu.b.a = AddTab("Aimbot", true)
- menu.t.p, menu.b.p = AddTab("Player ESP", true)
- menu.t.e, menu.b.e = AddTab("Entity ESP", true)
- menu.t.m, menu.b.m = AddTab("Misc.", true)
- menu.t.f, menu.b.f = AddTab("Freecam", true)
- --id, parent , the type, the text , setting
- AddFeature(1, menu.t.a, "button", "Enabled", "aimbot")
- AddFeature(2, menu.t.a, "button", "Triggerbot", "triggerbot")
- AddFeature(3, menu.t.a, "button", "Friendly Fire", "aimbot_friendly_fire")
- AddFeature(4, menu.t.a, "slider", "FOV", "aimbot_fov", 0, 180)
- AddFeature(1, menu.t.p, "button", "Enabled", "esp_player")
- AddFeature(2, menu.t.p, "button", "Show Name", "esp_player_name")
- AddFeature(3, menu.t.p, "button", "Show Rank", "esp_player_rank")
- AddFeature(4, menu.t.p, "button", "Show Health", "esp_player_health")
- AddFeature(5, menu.t.p, "button", "Show Armor", "esp_player_armor")
- AddFeature(6, menu.t.p, "button", "Show Distance", "esp_player_showdist")
- AddFeature(7, menu.t.p, "slider", "Draw Distance", "esp_player_dist", 0, 16000)
- AddFeature(8, menu.t.p, "button", "Draw Glow Halo", "esp_player_glow")
- AddFeature(9, menu.t.p, "button", "Laser Eyes", "lasereyes")
- AddFeature(1, menu.t.e, "button", "Enabled", "esp_entity")
- AddFeature(2, menu.t.e, "slider", "Draw Distance", "esp_entity_dist", 0, 16000)
- AddFeature(1, menu.t.m, "button", "Flashlight Spam [hold leftarrow]", "flashlight_spam")
- AddFeature(2, menu.t.m, "button", "Bunny hopping [hold space]", "bhop_bhop")
- AddFeature(3, menu.t.m, "button", "Client side crosshair", "crosshair")
- AddFeature(4, menu.t.m, "button", "Big velocity meter", "velocity")
- AddFeature(5, menu.t.m, "button", "Chat spammer 1 [random messages, no vc]", "chatspam1")
- AddFeature(6, menu.t.m, "button", "Chat spammer 2 [hl2rp vc messages]", "chatspam2")
- AddFeature(1, menu.t.f, "button", "Down, in front of player", "freecam_below")
- AddFeature(2, menu.t.f, "button", "Down, behind player", "freecam_below2")
- AddFeature(3, menu.t.f, "button", "Down, extreme", "freecam_below3")
- AddFeature(4, menu.t.f, "button", "Up, in front of player", "freecam_above2")
- AddFeature(5, menu.t.f, "button", "Up, behind player", "freecam_above")
- AddFeature(6, menu.t.f, "button", "Up, extreme", "freecam_above3")
- AddFeature(7, menu.t.f, "button", "Sideways, in front of player", "freecam_side2")
- AddFeature(8, menu.t.f, "button", "Sideways, behind player", "freecam_side")
- AddFeature(9, menu.t.f, "button", "Sideways, extreme", "freecam_side3")
- AddFeature(10, menu.t.f, "label", "NOTICE: entities may not appear when using ")
- AddFeature(11, menu.t.f, "label2", "freecam. ")
- if string.find(gmod.GetGamemode().Name, "DarkRP") then
- AddFeature(1, menu.t.g, "button", "God-mode Exploit (Costs in-game $$$)", "darkrp_god")
- elseif string.find(gmod.GetGamemode().Name, "Trouble in Terrorist Town") then
- AddFeature(1, menu.t.g, "button", "Display Death Notifications", "ttt_deathnotifs")
- end
- local elist
- local elist2
- local elistc
- local elistc2
- local function makeelist()
- elist = vgui.Create("DComboBox", menu.t.e)
- elist:SetPos(10,menu.t.e:GetTall()-43)
- elist:SetSize(130,20)
- for k,v in pairs(defcon.Ents()) do
- if not(defcon.Entities[v]) then
- local i = elist:AddChoice(v)
- end
- end
- elist.OnSelect = function(index,value,data)
- print(data)
- elist2 = data
- end
- end
- local function makeelistc()
- elistc = vgui.Create("DComboBox", menu.t.e)
- elistc:SetPos(235, menu.t.e:GetTall()-43)
- elistc:SetSize(130,20)
- for k,v in pairs(defcon.Entities) do
- local i = elistc:AddChoice(v)
- end
- elistc.OnSelect = function(index,value,data)
- elistc2 = data
- end
- end
- makeelist()
- makeelistc()
- AddButton(menu.t.e, "Add Entity", 35, menu.t.e:GetTall()-23, function()
- if(elist2) then
- for k,v in pairs(defcon.Ents()) do
- if (v == elist2) then
- print(v)
- table.insert(defcon.Entities, v)
- defcon.Update("entity")
- end
- end
- end
- makeelist()
- makeelistc()
- end)
- AddButton(menu.t.e, "Remove Entity", 260, menu.t.e:GetTall()-23, function()
- if(elistc2) then
- for k,v in pairs(defcon.Entities) do
- if (v == elistc2) then
- defcon.Entities[k] = nil;
- defcon.Update("entity")
- end
- end
- end
- makeelist()
- makeelistc()
- end)
- local flist
- local flist2
- local flistc
- local flistc2
- local function makeflist()
- flist = vgui.Create("DComboBox", menu.t.a)
- flist:SetPos(10,menu.t.a:GetTall()-43)
- flist:SetSize(130,20)
- for k,v in pairs(player.GetAll()) do
- if v ~= LocalPlayer() then
- if not(defcon.Whitelist[v:SteamID()]) then
- local i = flist:AddChoice(v:Nick())
- end
- end
- end
- flist.OnSelect = function(index,value,data)
- print(data)
- elist2 = data
- end
- end
- local function makeflistc()
- flistc = vgui.Create("DComboBox", menu.t.a)
- flistc:SetPos(235, menu.t.a:GetTall()-43)
- flistc:SetSize(130,20)
- for k,v in pairs(player.GetAll()) do
- if v ~= LocalPlayer() then
- if defcon.Whitelist[v:SteamID()] then
- local i = flistc:AddChoice(v:Nick())
- end
- end
- end
- flistc.OnSelect = function(index,value,data)
- flistc2 = data
- end
- end
- makeflist()
- makeflistc()
- AddButton(menu.t.a, "Add Friend", 35, menu.t.a:GetTall()-23, function()
- if(flist2) then
- for k,v in pairs(player.GetAll()) do
- if (v:Nick() == flist2) then
- print(v:Nick())
- table.insert(defcon.Whitelist, v:SteamID())
- PrintTable(defcon.Whitelist)
- defcon.Update("friend")
- end
- end
- end
- makeflist()
- makeflistc()
- end)
- AddButton(menu.t.a, "Remove Friend", 260, menu.t.a:GetTall()-23, function()
- if(flistc2) then
- for k,v in pairs(defcon.Whitelist) do
- if (v:SteamID() == flistc2) then
- defcon.Whitelist[k] = nil;
- defcon.Update("friend")
- end
- end
- end
- makeflist()
- makeflistc()
- end)
- end
- --freecam shit
- hook.Add( "ShouldDrawLocalPlayer", "ThirdPersonDrawPlayer", function()
- 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
- return true
- end
- end )
- hook.Add( "CalcView", "ThirdPersonView", function( ply, pos, angles, fov )
- if defcon.Settings["freecam_below"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * -200 ) + ( angles:Right() * 0 ) + ( angles:Up() * -150 )
- view.angles = ply:EyeAngles() + Angle( 0, 180, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_below2"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * -150 )
- view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_below3"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * -650 )
- view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_above"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * 150 )
- view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_above2"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * -200 ) + ( angles:Right() * 0 ) + ( angles:Up() * 150 )
- view.angles = ply:EyeAngles() + Angle( 0, 180, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_above3"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * 200 ) + ( angles:Right() * 0 ) + ( angles:Up() * 650 )
- view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_side"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * 150 ) + ( angles:Right() * 150 ) + ( angles:Up() * 0 )
- view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_side2"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * -150 ) + ( angles:Right() * 150 ) + ( angles:Up() * 0 )
- view.angles = ply:EyeAngles() + Angle( 0, 180, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- if defcon.Settings["freecam_side3"] then
- local view = {}
- view.origin = pos - ( angles:Forward() * 150 ) + ( angles:Right() * 650 ) + ( angles:Up() * 0 )
- view.angles = ply:EyeAngles() + Angle( 0, 0, 0 )
- view.fov = fov
- return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
- end
- end)
- --esp and shit
- hook.Add("HUDPaint", "catHUD", function()
- if defcon.Settings["esp_player"] or defcon.Settings["esp_entity"] then
- for k,v in pairs(ents.GetAll()) do
- if defcon.Settings["esp_player"] && v:IsPlayer() then
- if(espcheck("player", v) and espdistance("player", v))then
- local ESP = (v:EyePos()):ToScreen()
- local name,health,rank,col,distance = "","","","",""
- local outcol = Color(0,0,0,255)
- local white = Color(255,255,255,255)
- local outcol2 = outcol
- if defcon.Settings["esp_player_name"] then
- if v.GetRPName then name = v:GetRPName()
- else name = v:Nick() end
- end
- if v:Nick() ~= name then rank = " "..v:Nick() end
- if v.SteamName and name ~= v:SteamName() then rank = " "..v:SteamName() end
- if defcon.Settings["esp_player_rank"] then
- if v:IsSuperAdmin() then
- rank = "[Super Admin]"..rank
- elseif v:IsAdmin() then
- rank = "[Admin]"..rank
- elseif v:IsUserGroup("moderator") or v:IsUserGroup("mod") then
- rank = "[Moderator]"..rank
- elseif v:IsUserGroup("vip") or v:IsUserGroup("donator") then
- rank = "[Donator]"..rank
- end
- end
- if defcon.Settings["esp_player_health"] and not(defcon.Settings["esp_player_armor"]) then
- health = v:Health().."H"
- elseif defcon.Settings["esp_player_armor"] and not(defcon.Settings["esp_player_health"]) then
- health = v:Armor().."A"
- elseif defcon.Settings["esp_player_armor"] and defcon.Settings["esp_player_health"] then
- health = v:Health().. "H - "..v:Armor().."A"
- end
- if defcon.Settings["esp_player_showdist"] then
- distance = v:GetPos():Distance(LocalPlayer():GetPos())
- distance = math.Round(distance).." m"
- end
- col = team.GetColor(v:Team())
- if(col.r <= 50 and col.g <= 50 and col.b <= 50) then
- outcol2 = Color(200,200,200,255)
- end
- if col.a <= 50 then
- col = Color(col.r,col.g,col.b, 255)
- end
- draw.SimpleTextOutlined(rank, "deffontesp2", ESP.x, ESP.y -46, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol2)
- draw.SimpleTextOutlined(name, "deffontesp1", ESP.x, ESP.y - 34, col, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol2)
- if health ~= "" then
- draw.SimpleTextOutlined(health, "deffontesp2", ESP.x, ESP.y -22, white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol)
- draw.SimpleTextOutlined(distance, "deffontesp2", ESP.x, ESP.y - 10, white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol)
- else
- draw.SimpleTextOutlined(distance, "deffontesp2", ESP.x, ESP.y - 22, white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, outcol)
- end
- if defcon.Settings["esp_player_glow"] then
- halo.Add({v}, col, 2, 2, 1, true, true)
- end
- end
- end
- if (defcon.Settings["esp_entity"] and espcheck("entity", v) and espdistance("entity", v))then
- if table.HasValue(defcon.Entities, v:GetClass()) then
- local ESP = (v:EyePos()):ToScreen()
- 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))
- end
- end
- end
- end
- end)
- hook.Add("Think", "catBOT", function()
- if(input.IsKeyDown(KEY_TAB) && input.IsKeyDown(KEY_Q) && !menu.frame)then
- DrawMenu()
- elseif(menu.frame && input.IsKeyDown(KEY_ESCAPE))then
- menu.frame:Remove();menu.frame = nil
- end
- if defcon.Settings["flashlight_spam"] and input.IsKeyDown(KEY_LEFT) then
- RunConsoleCommand("impulse", "100")
- end
- if(defcon.Settings["triggerbot"] && input.IsMouseDown(MOUSE_4)) then
- local pos = LocalPlayer():GetShootPos()
- local ang = LocalPlayer():GetAimVector()
- local tracedata = {}
- tracedata.start = pos
- tracedata.endpos = pos+(ang*9999999999999)
- local trace = util.TraceLine(tracedata)
- if(trace.HitNonWorld) then
- target = trace.Entity
- if(target:IsPlayer() and defcon.CanTarget(target)) then
- RunConsoleCommand("+attack")
- timer.Simple(0.000000000000000000001, function() RunConsoleCommand("-attack") end)
- end
- end
- end
- if(defcon.Settings["aimbot"] && /*input.IsKeyDown(defcon.AimKey)*/ input.IsKeyDown(KEY_F)) then
- for k,v in pairs(player.GetAll()) do
- if defcon.CanTarget(v) then
- local head = v:LookupBone("ValveBiped.Bip01_Head1")
- if head ~= nil then
- local fov = defcon.Settings["aimbot_fov"]
- if fov == 0 then
- local headpos,targetheadang = v:GetBonePosition(head)
- LocalPlayer():SetEyeAngles((headpos - LocalPlayer():GetShootPos()):Angle())
- else
- local lpang = LocalPlayer():GetAngles();
- local ang = (v:GetPos() - LocalPlayer():GetPos()):Angle();
- local ady = math.abs(math.NormalizeAngle(lpang.y - ang.y))
- local adp = math.abs(math.NormalizeAngle(lpang.p - ang.p ))
- if not(ady > fov or adp > fov) then
- local headpos,targetheadang = v:GetBonePosition(head)
- if headpos != nil and targetheadang != nil then
- LocalPlayer():SetEyeAngles((headpos - LocalPlayer():GetShootPos()):Angle())
- end
- end
- end
- end
- end
- end
- end
- if defcon.Settings["ttt_deathnotifs"] then
- for k,v in pairs(player.GetAll()) do
- if v:Alive() and not (defcon.Alive[v:UniqueID()] == true) then
- defcon.Alive[v:UniqueID()] = true
- elseif not v:Alive() and (defcon.Alive[v:UniqueID()] == true) then
- defcon.Alive[v:UniqueID()] = false
- notification.AddLegacy(v:Nick().. " has died!", NOTIFY_GENERIC, 5)
- end
- end
- end
- end)
- --bhop
- hook.Add( "CreateMove", "Billard_Bhop", function( ucmd )
- if defcon.Settings["bhop_bhop"] then
- if ucmd:KeyDown( IN_JUMP ) then
- if LocalPlayer():WaterLevel() <= 1 && LocalPlayer():GetMoveType() != MOVETYPE_LADDER && !LocalPlayer():IsOnGround() then
- ucmd:RemoveKey( IN_JUMP )
- end
- end
- end
- end )
- --velocity meter
- hook.Add("HUDPaint", "Velocity", function()
- for k,v in pairs(player.GetAll()) do
- if defcon.Settings ["velocity"] then
- local showvel = math.floor(LocalPlayer():GetVelocity():Length())
- draw.RoundedBox(1, ScrW()/2.5, ScrH()/1.07, ScrW()/4.21, ScrH()/26, Color(50, 50, 50, 150))
- draw.DrawText("velocity: "..showvel, "velmet", ScrW()/2.5, ScrH()/1.08, Color(255, 255, 255, 185))
- end
- end
- end)
- --crosshair
- hook.Add( "HUDPaint", "CrossHair", function ( ucmd )
- if defcon.Settings["crosshair"] then
- local h = ScrH() / 2
- local w = ScrW() / 2
- local h1 = ScrH() / 2
- local w1 = ScrW() / 2
- surface.SetDrawColor( 0, 255, 255 )
- surface.DrawLine( w + 10, h, w - 10, h )
- surface.DrawLine( w, h + 10, w, h - 10 )
- end
- end)
- --chat spam
- local function Spam2()
- if defcon.Settings["chatspam1"] then
- LocalPlayer():ConCommand("say "..table.Random(normalspam).." " )
- end
- end
- timer.Create("Spammins2", .5,0,Spam2)
- normalspam = {}
- normalspam[1] = "mods = fags"
- normalspam[2] = "I hate niggers"
- normalspam[3] = "sheo was here"
- normalspam[4] = "try finger but hole"
- normalspam[5] = "time for crab"
- normalspam[6] = "THIS SERVER IS GETTING FUCKING NULLED RN"
- normalspam[7] = "whoever made this server is a fucking downie holy shit"
- normalspam[8] = "this serv sucks, fuck you guys"
- normalspam[9] = "im not hacking wtf?"
- normalspam[10] = "Mega.co.nz is famous for it's shitposting on 4chan."
- normalspam[11] = "How much memes could a cock suck if 9/11?"
- normalspam[12] = "assrape"
- normalspam[13] = "AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH"
- normalspam[14] = "Sweedish fish are like apples, they taste good as candy, not the actual thing."
- normalspam[15] = "you what"
- normalspam[16] = "I'll quote your head with a rock!"
- normalspam[17] = "fuck me harder daddy"
- normalspam[18] = "dickrape is neat"
- normalspam[19] = "Shitty memes from a shitty dream."
- normalspam[20] = "sheogorath has aids"
- normalspam[21] = "fuck niggers"
- normalspam[22] = "♫im an alabama nigger and i wanna be free, to hell with the n double a-c-p!♫"
- normalspam[23] = "hey whats up guys it's scarce here"
- normalspam[24] = "//this is a test of the emergency broadcast system"
- normalspam[25] = "erp = b&"
- normalspam[26] = "50 percent off all fat farts at the fag store"
- normalspam[27] = "dennis the menace"
- 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."
- normalspam[29] = "shoutout to poopnig420 for providing memes"
- normalspam[30] = "shoutout to inboot for providing packets"
- normalspam[31] = "geklmin is a grade-a autist."
- normalspam[32] = "REMOVE KEBAB remove kebab"
- 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"
- normalspam[34] = "hahahahaha idiot turk and bosnian smell so bad..wow i can smell it."
- normalspam[35] = "you will get caught. russia+usa+croatia+slovak=kill bosnia…"
- normalspam[36] = "you will ww2/ tupac alive in serbia, tupac making album of serbia . fast rap tupac serbia."
- normalspam[37] = "2pac aliv and real strong wizard kill all the turk farm aminal with rap magic now we the serba rule ."
- normalspam[38] = "ape of the zoo presidant georg bush fukc the great satan and lay egg this egg hatch and bosnia wa;s born."
- normalspam[39] = "stupid baby form the eggn give bak our clay we will crush u lik a skull of pig. serbia greattst countrey"
- normalspam[40] = "cetnik rascal FUck but fuck asshole turk stink bosnia sqhipere shqipare..turk genocide best day of my life."
- normalspam[41] = "http://www.madbluntz.rs offical sponsor of the republika srpska - marijuana fanatics serbia"
- local function Spam()
- if defcon.Settings["chatspam2"] then
- LocalPlayer():ConCommand("say "..table.Random(hl2rpvcspam).." " )
- end
- end
- timer.Create("Spammins", .5,0,Spam)
- hl2rpvcspam = {}
- hl2rpvcspam[1] = "noooo"
- hl2rpvcspam[2] = "whistle tune"
- hl2rpvcspam[3] = "i could eat a horse"
- hl2rpvcspam[4] = "combine"
- hl2rpvcspam[5] = "zombies"
- hl2rpvcspam[6] = "run"
- hl2rpvcspam[7] = "over here"
- hl2rpvcspam[8] = "hey over here"
- hl2rpvcspam[9] = "run for your life"
- hl2rpvcspam[10] = "hes dead"
- --laser eyes
- hook.Add("PostDrawOpaqueRenderables", "lazereyes", function()
- if defcon.Settings["lasereyes"] then
- for k, v in pairs(player.GetAll())do
- local pos, ang = v:GetShootPos();
- render.SetMaterial(Material("sprites/bluelaser1"));
- render.DrawBeam(pos, v:GetEyeTrace().HitPos, 5, 1, 1, team.GetColor(v:Team()));
- end
- end
- end)
- --everything below is disabled, don't fuck with this unless you know what you're doing.
- /*concommand.Add("debug", function()
- local pcash,gname = "", gmod.GetGamemode().Name
- print("Game-mode:\n "..gname)
- if string.find(gname, "DarkRP") then
- print("Player Cash Amounts")
- for k,v in pairs(player.GetAll()) do
- if not(v.DarkRPVars and v.DarkRPVars.money)and(darkrpvar == true) then
- darkrpvar = false
- end
- if v ~= LocalPlayer() then
- pcash = pcash.." "..v:Nick().." - "..v.DarkRPVars.money.."\n"
- end
- end
- if pcash ~= "" then
- print(pcash)
- end
- end
- if LocalPlayer().GetActiveWeapon and LocalPlayer():GetActiveWeapon() ~= nil and IsValid(LocalPlayer():GetActiveWeapon()) then
- print("Current Weapon")
- print(" "..LocalPlayer():GetActiveWeapon():GetClass())
- end
- local pos = LocalPlayer():GetShootPos()
- local ang = LocalPlayer():GetAimVector()
- local tracedata = {}
- tracedata.start = pos
- tracedata.endpos = pos+(ang*9999999999999)
- local trace = util.TraceLine(tracedata)
- if(trace.HitNonWorld) then
- target = trace.Entity
- print("Entity Info")
- print(" Class: "..target:GetClass())
- print(" Model: "..target:GetModel())
- end
- end)*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement