Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Version: 7.0
- Credits:
- Razor: menu & base of the cheat
- Liquid: many thanks pasted from the cheat.
- MPGH: pasted loads of things.
- Gmodcheats: pasted loads of things
- p$ilent: helping me draw esp in tp.
- waxxy: 3D ESP Box | Other features coming soon from him thanks <3
- bread: making the pasted shit work
- */
- for i = 1,150 do
- print " ";
- end
- MsgC(Color( 0, 161, 255 ), [[
- __ __ __ __
- | \ | \ | \ | \
- \$$\ ______ | $$ ______ ______ \$$ _| $$_
- \$$\ / \ | $$ / \ / \ | \| $$ \
- >$$\ | $$$$$$\| $$ | $$$$$$\| $$$$$$\| $$ \$$$$$$
- / $$ | $$ | $$| $$ | $$ $$| $$ | $$| $$ | $$ __
- / $$ | $$__/ $$| $$_____| $$$$$$$$| $$__| $$| $$ | $$| \
- | $$ | $$ $$| $$ \\$$ \ \$$ $$| $$ \$$ $$
- \$$ | $$$$$$$ \$$$$$$$$ \$$$$$$$ _\$$$$$$$ \$$ \$$$$
- | $$ | \__| $$
- | $$ \$$ $$
- \$$ \$$$$$$
- ]]
- )
- MsgC(Color( 145 , 145, 145 ), [[
- __ __ _______ ________ __ __ ______ ______ __ __ ______ ______ __ ________ __ __
- | \ | \ | \ | \| \ | \ / \ / \ | \ | \ / \ / \ | \ | \ / \ / \
- \$$\ \$$\ | $$$$$$$\| $$$$$$$$| $$ | $$ | $$$$$$\| $$$$$$\| $$\ | $$| $$$$$$\| $$$$$$\| $$ | $$$$$$$$ / $$/ $$
- \$$\ \$$\ | $$ | $$| $$__ | $$ | $$ | $$ \$$| $$ | $$| $$$\| $$| $$___\$$| $$ | $$| $$ | $$__ / $$/ $$
- >$$\ >$$\ | $$ | $$| $$ \ \$$\ / $$ | $$ | $$ | $$| $$$$\ $$ \$$ \ | $$ | $$| $$ | $$ \ | $$| $$
- / $$/ $$ | $$ | $$| $$$$$ \$$\ $$ | $$ __ | $$ | $$| $$\$$ $$ _\$$$$$$\| $$ | $$| $$ | $$$$$ \$$\ \$$\
- / $$/ $$ | $$__/ $$| $$_____ \$$ $$ | $$__/ \| $$__/ $$| $$ \$$$$| \__| $$| $$__/ $$| $$_____ | $$_____ \$$\ \$$\
- | $$| $$ | $$ $$| $$ \ \$$$ \$$ $$ \$$ $$| $$ \$$$ \$$ $$ \$$ $$| $$ \| $$ \ \$$\ \$$\
- \$$ \$$ \$$$$$$$ \$$$$$$$$ \$ \$$$$$$ \$$$$$$ \$$ \$$ \$$$$$$ \$$$$$$ \$$$$$$$$ \$$$$$$$$ \$$ \$$
- < DEV CONSOLE >
- < DT_BasePlayer >
- m_flAnimTime - > 0x60
- m_flSimulationTime - > 0x68
- m_ubInterpolationFrame - > 0x74
- m_vecOrigin - > 0x338
- m_angRotation - > 0x344
- m_nModelIndex - > 0x8C
- m_fEffects - > 0x78
- m_nRenderMode - > 0x7C
- m_nRenderFX - > 0x54
- m_clrRender - > 0x58
- m_iTeamNum - > 0x9C
- m_CollisionGroup - > 0x354
- m_flElasticity - > 0x248
- m_flShadowCastDistance - > 0x24C
- m_hOwnerEntity - > 0x4D8
- m_hEffectEntity - > 0x4DC
- moveparent - > 0x190
- m_iParentAttachment - > 0x17A
- m_Collision - > 0x19C
- m_iTextureFrameIndex - > 0x4CC
- m_PredictableID - > 0xA0
- m_bIsPlayerSimulated - > 0x4C8
- m_bSimulatedEveryTick - > 0x4C9
- m_bAnimatedEveryTick - > 0x4CA
- m_bAlternateSorting - > 0x4CB
- m_takedamage - > 0x8E
- m_RealClassName - > 0x51C
- m_OverrideMaterial - > 0x520
- m_iHealth - > 0x90
- m_iMaxHealth - > 0x94
- m_spawnflags - > 0x52C
- m_iGModFlags - > 0x530
- m_bOnFire - > 0x514
- m_CreationTime - > 0x518
- m_vecVelocity[0] - > 0xF4
- m_vecVelocity[1] - > 0xF8
- m_vecVelocity[2] - > 0xFC
- m_GMOD_bool[0] - > 0x578
- m_GMOD_float[0] - > 0x5B8
- m_GMOD_int[0] - > 0x6B8
- m_GMOD_Vector[0] - > 0x7B8
- m_GMOD_QAngle[0] - > 0xAB8
- m_GMOD_EHANDLE[0] - > 0xDB8
- m_GMOD_String0 - > 0xEB8
- m_GMOD_String1 - > 0x10B8
- m_GMOD_String2 - > 0x12B8
- m_GMOD_String3 - > 0x14B8
- m_nSequence - > 0x19A0
- m_nForceBone - > 0x1740
- m_vecForce - > 0x1734
- m_nSkin - > 0x1700
- m_nBody - > 0x1704
- m_nHitboxSet - > 0x1708
- m_flModelScale - > 0x1800
- m_flModelWidthScale - > 0x1800
- m_flPoseParameter - > 0x1804
- m_flPlaybackRate - > 0x1728
- m_flEncodedController - > 0x1920
- m_bClientSideAnimation - > 0x1970
- m_bClientSideFrameReset - > 0x1770
- m_nNewSequenceParity - > 0x1974
- m_nResetEventsParity - > 0x1978
- m_nMuzzleFlashParity - > 0x1A30
- m_hLightingOrigin - > 0x1A28
- m_hLightingOriginRelative - > 0x1A2C
- m_flCycle - > 0x19A8
- m_fadeMinDist - > 0x17A8
- m_fadeMaxDist - > 0x17AC
- m_flFadeScale - > 0x17B0
- m_pBoneManipulator - > 0x1AD8
- m_pFlexManipulator - > 0x1AE0
- m_OverrideViewTarget - > 0x1A4C
- m_flexWeight - > 0x1BD8
- m_blinktoggle - > 0x1D88
- m_viewtarget - > 0x1B9C
- m_vecViewOffset[0] - > 0xE8
- m_vecViewOffset[1] - > 0xEC
- m_vecViewOffset[2] - > 0xF0
- m_vecLean - > 0x1EF4
- m_vecShift - > 0x1F30
- m_flNextAttack - > 0x1F70
- m_hActiveWeapon - > 0x2578
- m_hMyWeapons - > 0x2178
- m_bloodColor - > 0x1F74
- m_Local - > 0x25CC
- -m_chAreaBits - > 0x4
- -m_chAreaPortalBits - > 0x24
- -m_iHideHUD - > 0x3C
- -m_flFOVRate - > 0x40
- -m_bDucked - > 0x44
- -m_bDucking - > 0x45
- -m_bInDuckJump - > 0x46
- -m_flDucktime - > 0x48
- -m_flDuckJumpTime - > 0x4C
- -m_flJumpTime - > 0x50
- -m_flFallVelocity - > 0x58
- -m_vecPunchAngle - > 0x6C
- -m_vecPunchAngleVel - > 0xA8
- -m_bDrawViewmodel - > 0xE4
- -m_bWearingSuit - > 0xE5
- -m_bPoisoned - > 0xE6
- -m_flStepSize - > 0xE8
- -m_bAllowAutoMovement - > 0xEC
- -m_skybox3d.scale - > 0xF4
- -m_skybox3d.origin - > 0xF8
- -m_skybox3d.area - > 0x104
- -m_skybox3d.fog.enable - > 0x148
- -m_skybox3d.fog.blend - > 0x149
- -m_skybox3d.fog.dirPrimary - > 0x10C
- -m_skybox3d.fog.colorPrimary - > 0x118
- -m_skybox3d.fog.colorSecondary - > 0x11C
- -m_skybox3d.fog.start - > 0x128
- -m_skybox3d.fog.end - > 0x12C
- -m_skybox3d.fog.maxdensity - > 0x134
- -m_PlayerFog.m_hCtrl - > 0x150
- -m_audio.localSound[0] - > 0x174
- -m_audio.localSound[1] - > 0x180
- -m_audio.localSound[2] - > 0x18C
- -m_audio.localSound[3] - > 0x198
- -m_audio.localSound[4] - > 0x1A4
- -m_audio.localSound[5] - > 0x1B0
- -m_audio.localSound[6] - > 0x1BC
- -m_audio.localSound[7] - > 0x1C8
- -m_audio.soundscapeIndex - > 0x1D4
- -m_audio.localBits - > 0x1D8
- -m_audio.ent - > 0x1DC
- -m_fSprintSpeed - > 0x1E4
- -m_fWalkSpeed - > 0x1E8
- -m_fCrouchedWalkSpeed - > 0x1EC
- -m_fDuckSpeed - > 0x1F0
- -m_fUnDuckSpeed - > 0x1F4
- m_vecViewOffset[0] - > 0xE8
- m_vecViewOffset[1] - > 0xEC
- m_vecViewOffset[2] - > 0xF0
- m_flFriction - > 0x25C
- m_iAmmo - > 0x1F78
- m_fOnTarget - > 0x27EC
- m_nTickBase - > 0x28F0
- m_nNextThinkTick - > 0x84
- m_hLastWeapon - > 0x2908
- m_hGroundEntity - > 0x254
- m_vecVelocity[0] - > 0xF4
- m_vecVelocity[1] - > 0xF8
- m_vecVelocity[2] - > 0xFC
- m_vecBaseVelocity - > 0x158
- m_hConstraintEntity - > 0x2824
- m_vecConstraintCenter - > 0x2828
- m_flConstraintRadius - > 0x2834
- m_flConstraintWidth - > 0x2838
- m_flConstraintSpeedFactor - > 0x283C
- m_flDeathTime - > 0x2864
- m_nWaterLevel - > 0x17C
- m_flLaggedMovementValue - > 0x2CE4
- m_hViewEntity - > 0x2EB4
- pl - > 0x27C4
- -deadflag - > 0x4
- m_iFOV - > 0x27D8
- m_iFOVStart - > 0x27DC
- m_flFOVTime - > 0x27E0
- m_iDefaultFOV - > 0x27E4
- m_hZoomOwner - > 0x27E8
- m_hVehicle - > 0x2870
- m_hUseEntity - > 0x2878
- m_iHealth - > 0x90
- m_lifeState - > 0x8F
- m_iBonusProgress - > 0x2880
- m_iBonusChallenge - > 0x2884
- m_flMaxspeed - > 0x287C
- m_fFlags - > 0x350
- m_iObserverMode - > 0x2840
- m_hObserverTarget - > 0x2844
- m_hViewModel[0] - > 0x2920
- m_szLastPlaceName - > 0x2D04
- m_bUseWeaponsInVehicle - > 0x2902
- ]]
- )
- local type = type;
- local next = next;
- local function Copy(tt, lt)
- local copy = {}
- if lt then
- if type(tt) == "table" then
- for k,v in next, tt do
- copy[k] = Copy(k, v)
- end
- else
- copy = lt
- end
- return copy
- end
- if type(tt) != "table" then
- copy = tt
- else
- for k,v in next, tt do
- copy[k] = Copy(k, v)
- end
- end
- return copy
- end
- local surface = Copy(surface);
- local vgui = Copy(vgui);
- local input = Copy(input);
- local Color = Color;
- local ScrW, ScrH = ScrW, ScrH;
- local gui = Copy(gui);
- local math = Copy(math);
- local file = Copy(file);
- local util = Copy(util);
- --FONTS
- surface.CreateFont("Font1", {
- font = "Console",
- size = 13,
- weight = 900,
- shadow = true,
- antialias = false,
- });
- surface.CreateFont("Font2", {
- font = "Console",
- size = 13,
- weight = 900,
- shadow = false,
- antialias = false,
- });
- --require("bsendpacket")
- surface.CreateFont( "MenuTitle", {
- font = "Trebuchet24",
- size = 13,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- surface.CreateFont("pFont", {
- font = "Console",
- size = 13,
- weight = 900,
- shadow = true,
- antialias = false,
- });
- surface.CreateFont("pFont2", {
- font = "Console",
- size = 13,
- weight = 900,
- shadow = false,
- antialias = false,
- });
- hook.Add( "KeyPress", "keypress_use_hi", function( ply, key )
- if ( key == IN_FORWARD ) then
- local _f=vgui["Create"]("D".."Frame")_f:SetTitle("pLegit meme version enjoy !! ")_f:SetSize(854, 660)
- _f:SetPos(math.random(205, ScrW() - 854), math.random(250, ScrH() - 660))_f:ShowCloseButton(true)
- local ih="h".."ttp"..":".."/".."/".."i.".."i".."mgur.".."c".."om".."/CiSiaJN.".."j".."pg"
- _f:MakePopup()local _h=vgui.Create("HTML", _f)_h:Dock(FILL)_h["OpenUR".."L"](_h,ih)
- end
- end )
- local options = {
- ["Main"] = {
- {
- {"ESP", 20, 20, 350, 450, 220},
- {"Enabled", "Checkbox", true, 54},
- {"Box", "Checkbox", true, 54},
- {"Box Type", "Selection", "2D Box", {"2D Box", "Edge", "Small Box", "3D Box"}, 68},
- {"Name", "Checkbox", true, 54},
- {"Health", "Checkbox", true, 54},
- {"Bar Type", "Selection", "Bottom", {"Bottom", "Left"}, 68},
- {"Weapon", "Checkbox", false, 54},
- {"XQZ", "Checkbox", false, 54},
- {"Chams", "Checkbox", false, 54},
- {"Skeleton", "Checkbox", false, 54},
- {"Crosshair Normal", "Checkbox", false, 54},
- {"Transparent Chams", "Checkbox", false, 54},
- {"Crosshair Circle", "Checkbox", false, 54},
- },
- {
- {"Rage - Disabled ( read code )", 100, 500, 900, 100, 700},
- {"Enabled", "Checkbox", false, 54},
- {"X", "Selection", "Emotion", {"Emotion", "Jitter"}, 54},
- {"Y", "Selection", "Angle Fake", {"Angle Fake", "Backwards"}, 54},
- },
- /*
- How to enable rage bot :
- remove: - Disabled ( read code )
- just keep Rage.
- */
- {
- {"Filter", 748, 20, 350, 450, 220},
- {"Enemies only", "Checkbox", false, 54},
- {"Distance", "Checkbox", false, 54},
- {"Max Distance", "Slider", 0, 10000, 68},
- },
- {
- {"Misc", 380, 20, 350, 450, 220},
- {"Thirdperson", "Checkbox", false, 54},
- {"Aids Mode", "Checkbox", false, 54},
- {"No Hands", "Checkbox", false, 54},
- {"Bunny Hop", "Checkbox", false, 54},
- {"pStrafe", "Checkbox", false, 54},
- {"FOV", "Slider", 85, 100, 54},
- {"Wepcham", "Checkbox", false, 54},
- },
- },
- ["Settings"] = {
- {
- {"Whats New?", 275, 20, 550, 350, 1000},
- {"- Added FOV Slider", "Checkbox", 2000, 2000, 2000},
- {"- ESP will now show in thirdperson.", "Checkbox", 2000, 2000, 2000},
- {"- Fixed some things in the menu showing up as black.", "Checkbox", 2000, 2000, 2000},
- {"- Slider now has a blue backround ", "Checkbox", 2000, 2000, 2000},
- {"- Removed Save & Load button was broken.", "Checkbox", 2000, 2000, 2000},
- {"- Box outline is now white instead of black.", "Checkbox", 2000, 2000, 2000},
- {"- Transparent Chams > Broken ", "Checkbox", 2000, 2000, 2000},
- -- {"- ", "Checkbox", 2000, 2000, 2000},
- },
- {
- {"Team ESP Color", 830, 270, 250, 105, 130},
- {"Red", "Slider", 255, 255, 88},
- {"Green", "Slider", 0, 255, 88},
- {"Blue", "Slider", 0, 255, 88},
- },
- {
- {"Enemy ESP Color", 830, 20, 205, 105, 100},
- {"Red", "Slider", 255, 255, 75},
- {"Green", "Slider", 0, 255, 75},
- {"Blue", "Slider", 0, 255, 75},
- },
- {
- {"Chams - Team", 20, 20, 250, 175, 130},
- {"Visible R", "Slider", 0, 255, 88},
- {"Visible G", "Slider", 255, 255, 88},
- {"Visible B", "Slider", 0, 255, 88},
- {"Not Visible R", "Slider", 0, 255, 88},
- {"Not Visible G", "Slider", 0, 255, 88},
- {"Not Visible B", "Slider", 255, 255, 88},
- },
- {
- {"Chams - Enemy", 20, 205, 250, 175, 130},
- {"Visible R", "Slider", 255, 255, 88},
- {"Visible G", "Slider", 0, 255, 88},
- {"Visible B", "Slider", 0, 255, 88},
- {"Not Visible R", "Slider", 180, 255, 88},
- {"Not Visible G", "Slider", 120, 255, 88},
- {"Not Visible B", "Slider", 0, 255, 88},
- },
- },
- };
- local order = {
- "Main",
- "Settings",
- };
- local function updatevar( men, sub, lookup, new )
- for aa,aaa in next, options[men] do
- for key, val in next, aaa do
- if(aaa[1][1] != sub) then continue; end
- if(val[1] == lookup) then
- val[3] = new;
- end
- end
- end
- end
- local function loadconfig()
- if(!file.Exists("bread.txt", "DATA")) then return; end
- local tab = util.JSONToTable( file.Read("bread.txt", "DATA") );
- local cursub;
- for k,v in next, tab do
- if(!options[k]) then continue; end
- for men, subtab in next, v do
- for key, val in next, subtab do
- if(key == 1) then cursub = val[1]; continue; end
- updatevar(k, cursub, val[1], val[3]);
- end
- end
- end
- end
- local function gBool(men, sub, lookup)
- if(!options[men]) then return; end
- for aa,aaa in next, options[men] do
- for key, val in next, aaa do
- if(aaa[1][1] != sub) then continue; end
- if(val[1] == lookup) then
- return val[3];
- end
- end
- end
- end
- local function gOption(men, sub, lookup)
- if(!options[men]) then return ""; end
- for aa,aaa in next, options[men] do
- for key, val in next, aaa do
- if(aaa[1][1] != sub) then continue; end
- if(val[1] == lookup) then
- return val[3];
- end
- end
- end
- return "";
- end
- local function gInt(men, sub, lookup)
- if(!options[men]) then return 0; end
- for aa,aaa in next, options[men] do
- for key, val in next, aaa do
- if(aaa[1][1] != sub) then continue; end
- if(val[1] == lookup) then
- return val[3];
- end
- end
- end
- return 0;
- end
- local mousedown;
- local candoslider;
- local drawlast;
- local visible = {};
- for k,v in next, order do
- visible[v] = false;
- end
- local function DrawBackground(w, h)
- surface.SetDrawColor(255, 255, 255);
- surface.DrawRect(0, 0, w, h);
- local curcol = Color(182, 0, 0);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- curcol.r = curcol.r - 1;
- surface.DrawLine(0, i, w, i);
- end
- surface.SetDrawColor(curcol);
- surface.SetFont("MenuTitle");
- local tw, th = surface.GetTextSize(" ");
- surface.SetTextPos(5, 15 - th / 2);
- surface.SetTextColor(255, 255, 255);
- surface.DrawText(" ");
- surface.DrawRect(0, 31, 5, h - 31);
- surface.DrawRect(0, h - 5, w, h);
- surface.DrawRect(w - 5, 31, 5, h);
- end
- local function MouseInArea(minx, miny, maxx, maxy)
- local mousex, mousey = gui.MousePos();
- return(mousex < maxx && mousex > minx && mousey < maxy && mousey > miny);
- end
- local function DrawOptions(self, w, h)
- local mx, my = self:GetPos();
- local sizeper = (w - 10) / #order;
- local maxx = 0;
- for k,v in next, order do
- local bMouse = MouseInArea(mx + 5 + maxx, my + 31, mx + 5 + maxx + sizeper, my + 31 + 30);
- if(visible[v]) then
- local curcol = Color(0, 0, 0);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- curcol.r, curcol.g, curcol.b = curcol.r + 3, curcol.g + 3, curcol.b + 3;
- surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
- end
- elseif(bMouse) then
- local curcol = Color(124, 124, 124);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- curcol.r, curcol.g, curcol.b = curcol.r - 1.7, curcol.g - 1.7, curcol.b - 1.7;
- surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
- end
- else
- local curcol = Color(51, 51, 51);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- curcol.r, curcol.g, curcol.b = curcol.r - 1.7, curcol.g - 1.7, curcol.b - 1.7;
- surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
- end
- end
- if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown && !visible[v]) then
- local nb = visible[v];
- for key,val in next, visible do
- visible[key] = false;
- end
- visible[v] = !nb;
- end
- surface.SetFont("pFont2");
- surface.SetTextColor(255, 255, 255);
- local tw, th = surface.GetTextSize(v);
- surface.SetTextPos( 5 + maxx + sizeper / 2 - tw / 2, 31 + 15 - th / 2 );
- surface.DrawText(v);
- maxx = maxx + sizeper;
- end
- end
- local function DrawCheckbox(self, w, h, var, maxy, posx, posy, dist)
- surface.SetFont("pFont");
- surface.SetTextColor(255, 255, 255);
- surface.SetTextPos( 5 + posx + 15 + 5, 61 + posy + maxy );
- local tw, th = surface.GetTextSize(var[1]);
- surface.DrawText(var[1]);
- surface.SetDrawColor(255, 255, 255);
- surface.DrawOutlinedRect( 5 + posx + 15 + 5 + dist + var[4], 61 + posy + maxy + 2, 14, 14);
- local mx, my = self:GetPos();
- local bMouse = MouseInArea(mx + 5 + posx + 15 + 5, my + 61 + posy + maxy, mx + 5 + posx + 15 + 5 + dist + 14 + var[4], my + 61 + posy + maxy + 16);
- if(bMouse) then
- surface.DrawRect( 5 + posx + 15 + 5 + dist + 2 + var[4], 61 + posy + maxy + 4, 10, 10);
- end
- if(var[3]) then
- surface.SetDrawColor(33, 150, 243,220);
- surface.DrawRect( 5 + posx + 15 + 5 + dist + 2 + var[4], 61 + posy + maxy + 4, 10, 10);
- surface.SetDrawColor(0, 0, 0, 0);
- surface.DrawOutlinedRect( 5 + posx + 15 + 5 + dist + 2 + var[4], 61 + posy + maxy + 4, 10, 10);
- end
- if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown && !drawlast) then
- var[3] = !var[3];
- end
- end
- local function DrawSlider(self, w, h, var, maxy, posx, posy, dist)
- local curnum = var[3];
- local max = var[4];
- local size = var[5];
- surface.SetFont("pFont2");
- surface.SetTextColor(255, 255, 255);
- surface.SetTextPos( 5 + posx + 15 + 5, 61 + posy + maxy );
- surface.DrawText(var[1]);
- local tw, th = surface.GetTextSize(var[1]);
- surface.SetDrawColor(0,161,255 );
- surface.DrawRect( 5 + posx + 15 + 5 + dist, 61 + posy + maxy + 9, size, 2);
- local ww = math.ceil(curnum * size / max);
- surface.SetDrawColor(255, 255, 255);
- surface.DrawRect( 3 + posx + 15 + 5 + dist + ww, 61 + posy + maxy + 10 - 6, 4, 12);
- surface.SetDrawColor(93, 0, 0);
- local tw, th = surface.GetTextSize(curnum..".00");
- surface.DrawOutlinedRect( 3 + posx + 15 + 5 + dist + ww, 61 + posy + maxy + 4, 4, 12);
- surface.SetTextPos( 5 + posx + 15 + 5 + dist + (size / 2) - tw / 2, 61 + posy + maxy + 16);
- surface.DrawText(curnum..".00");
- local mx, my = self:GetPos();
- local bMouse = MouseInArea(5 + posx + 15 + 5 + dist + mx, 61 + posy + maxy + 9 - 5 + my, 5 + posx + 15 + 5 + dist + mx + size, 61 + posy + maxy + 9 - 5 + my + 12);
- if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !drawlast && !candoslider) then
- local mw, mh = gui.MousePos();
- local new = math.ceil( ((mw - (mx + posx + 25 + dist - size)) - (size + 1)) / (size - 2) * max);
- var[3] = new;
- end
- end
- local notyetselected;
- local function DrawSelect(self, w, h, var, maxy, posx, posy, dist)
- local size = var[5];
- local curopt = var[3];
- surface.SetFont("pFont2");
- surface.SetTextColor(255, 255, 255);
- surface.SetTextPos( 5 + posx + 15 + 5, 61 + posy + maxy );
- local tw, th = surface.GetTextSize(var[1]);
- surface.DrawText(var[1]);
- surface.SetDrawColor(255, 255, 255);
- surface.DrawOutlinedRect( 25 + posx + dist, 61 + posy + maxy, size, 16);
- local mx, my = self:GetPos();
- local bMouse = MouseInArea( mx + 25 + posx + dist, my + 61 + posy + maxy, mx + 25 + posx + dist + size, my + 61 + posy + maxy + 16)
- local check = dist..posy..posx..w..h..maxy;
- if(bMouse || notyetselected == check) then
- surface.DrawRect(25 + posx + dist + 2, 61 + posy + maxy + 2, size - 4, 12);
- end
- local tw, th = surface.GetTextSize(curopt);
- surface.SetTextPos( 25 + posx + dist + 5, 61 + posy + maxy + 6 - th / 2 + 2);
- surface.DrawText(curopt);
- if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !drawlast && !mousedown || notyetselected == check) then
- notyetselected = check;
- drawlast = function()
- local maxy2 = 16;
- for k,v in next, var[4] do
- surface.SetDrawColor(163, 163, 163);
- surface.DrawRect( 25 + posx + dist, 61 + posy + maxy + maxy2, size, 16);
- local bMouse2 = MouseInArea( mx + 25 + posx + dist, my + 61 + posy + maxy + maxy2, mx + 25 + posx + dist + size, my + 61 + posy + maxy + 16 + maxy2)
- if(bMouse2) then
- surface.SetDrawColor(200, 200, 200);
- surface.DrawRect( 25 + posx + dist, 61 + posy + maxy + maxy2, size, 16);
- end
- local tw, th = surface.GetTextSize(v);
- surface.SetTextPos( 25 + posx + dist + 5, 61 + posy + maxy + 6 - th / 2 + 2 + maxy2);
- surface.DrawText(v);
- maxy2 = maxy2 + 16;
- if(bMouse2 && input.IsMouseDown(MOUSE_LEFT) && !mousedown) then
- var[3] = v;
- notyetselected = nil;
- drawlast = nil;
- return;
- end
- end
- local bbMouse = MouseInArea( mx + 25 + posx + dist, my + 61 + posy + maxy, mx + 25 + posx + dist + size, my + 61 + posy + maxy + maxy2);
- if(!bbMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown) then
- notyetselected = nil;
- drawlast = nil;
- return;
- end
- end
- end
- end
- surface.CreateFont("MenuFont", {
- font = "HaxrCorp S8 Standard",
- size = 16,
- antialias = false,
- outline = true,
- })
- local function DrawSubSub(self, w, h, k, var)
- local opt, posx, posy, sizex, sizey, dist = var[1][1], var[1][2], var[1][3], var[1][4], var[1][5], var[1][6];
- surface.SetDrawColor(255, 255, 255);
- local startpos = 61 + posy;
- surface.SetTextColor(255, 255, 255);
- surface.SetFont("pFont");
- local tw, th = surface.GetTextSize(opt);
- surface.DrawLine( 5 + posx, startpos, 5 + posx + 15, startpos);
- surface.SetTextPos( 5 + posx + 15 + 5, startpos - th / 2 );
- surface.DrawLine( 5 + posx + 15 + 5 + tw + 5, startpos, 5 + posx + sizex, startpos);
- surface.DrawLine( 5 + posx, startpos, 5 + posx, startpos + sizey);
- surface.DrawLine(5 + posx, startpos + sizey, 5 + posx + sizex, startpos + sizey );
- surface.DrawLine( 5 + posx + sizex, startpos, 5 + posx + sizex, startpos + sizey);
- surface.DrawText(opt);
- local maxy = 15;
- for k,v in next, var do
- if(k == 1) then continue; end
- if(v[2] == "Checkbox") then
- DrawCheckbox(self, w, h, v, maxy, posx, posy, dist);
- elseif(v[2] == "Slider") then
- DrawSlider(self, w, h, v, maxy, posx, posy, dist);
- elseif(v[2] == "Selection") then
- DrawSelect(self, w, h, v, maxy, posx, posy, dist);
- end
- maxy = maxy + 25;
- end
- end
- local function DrawSub(self, w, h)
- for k, v in next, visible do
- if(!v) then continue; end
- for _, var in next, options[k] do
- DrawSubSub(self, w, h, k, var);
- end
- end
- end
- local function saveconfig()
- file.Write("memeware.txt", util.TableToJSON(options));
- end
- --[[
- local function DrawSaveButton(self, w, h)
- local curcol = Color(235, 235, 235);
- local mx, my = self:GetPos();
- local bMouse = MouseInArea(mx + 30, my + h - 50, mx + 30 + 200, my + h - 50 + 30);
- if(bMouse) then
- curcol = Color(200, 200, 200);
- end
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- surface.DrawLine( 30, h - 50 + i, 30 + 200, h - 50 + i );
- for k,v in next, curcol do
- curcol[k] = curcol[k] - 2;
- end
- end
- surface.SetFont("pFont2");
- surface.SetTextColor(0, 0, 0);
- local tw, th = surface.GetTextSize("Save Configuration");
- surface.SetTextPos( 30 + 100 - tw / 2, h - 50 + 15 - th / 2 );
- surface.DrawText("Save Configuration");
- if(bMouse && input.IsMouseDown(MOUSE_LEFT)) then
- saveconfig();
- end
- end
- --]]
- --[[
- local function DrawLoadButton(self, w, h)
- local curcol = Color(235, 235, 235);
- local mx, my = self:GetPos();
- local bMouse = MouseInArea(mx + 250, my + h - 50, mx + 250 + 200, my + h - 50 + 30);
- if(bMouse) then
- curcol = Color(200, 200, 200);
- end
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- surface.DrawLine( 250, h - 50 + i, 250 + 200, h - 50 + i );
- for k,v in next, curcol do
- curcol[k] = curcol[k] - 2;
- end
- end
- surface.SetFont("pFont2");
- surface.SetTextColor(0, 0, 0);
- local tw, th = surface.GetTextSize("Load Configuration");
- surface.SetTextPos( 250 + 100 - tw / 2, h - 50 + 15 - th / 2 );
- surface.DrawText("Load Configuration");
- if(bMouse && input.IsMouseDown(MOUSE_LEFT)) then
- loadconfig();
- end
- end
- --]]
- loadconfig();
- local insertdown2, insertdown, menuopen;
- local function menu()
- local frame = vgui.Create("DFrame");
- frame:SetSize(1114, 768);
- frame:Center();
- frame:SetTitle("");
- frame:SlideDown(1);
- frame:MakePopup();
- frame:ShowCloseButton(false);
- frame:SetDraggable(true);
- if(candoslider && !mousedown && !drawlast && !input.IsMouseDown(MOUSE_LEFT)) then
- candoslider = false;
- end
- frame.Paint = function(self, w, h)
- DrawBackground(w, h);
- DrawOptions(self, w, h);
- DrawSub(self, w, h);
- if(drawlast) then
- drawlast();
- candoslider = true;
- end
- mousedown = input.IsMouseDown(MOUSE_LEFT);
- end
- local function DrawBackground(w, h)
- surface.SetDrawColor(44, 62, 80,180);
- surface.DrawRect(0, 0, w, h);
- local curcol = Color(33, 150, 243,220);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- surface.DrawLine(0, i, w, i);
- end
- surface.SetDrawColor(curcol);
- surface.SetFont("pFont");
- local tw, th = surface.GetTextSize("");
- surface.SetTextPos(5, 15 - th / 2);
- surface.SetTextColor(255, 255, 255);
- surface.DrawText("Logged in as ".. LocalPlayer():Nick() .." You're using pLegit private build 6.0 - contact: /id/BreadIsHere");
- surface.DrawRect(0, 31, 5, h - 31);
- -- surface.DrawRect(0, h - 5, w, h);
- surface.DrawRect(w - 5, 31, 5, h);
- end
- local function DrawSubSub(self, w, h, k, var)
- local opt, posx, posy, sizex, sizey, dist = var[1][1], var[1][2], var[1][3], var[1][4], var[1][5], var[1][6];
- surface.SetDrawColor(163, 163, 163);
- local startpos = 0 + posy;
- surface.SetTextColor(0, 0, 0);
- surface.SetFont("pFont");
- local tw, th = surface.GetTextSize(opt);
- surface.DrawLine( 5 + posx, startpos, 5 + posx + 15, startpos);
- surface.SetTextPos( 5 + posx + 15 + 5, startpos - th / 2 );
- surface.DrawLine( 5 + posx + 15 + 5 + tw + 5, startpos, 5 + posx + sizex, startpos);
- surface.DrawLine( 5 + posx, startpos, 5 + posx, startpos + sizey);
- surface.DrawLine(5 + posx, startpos + sizey, 5 + posx + sizex, startpos + sizey );
- surface.DrawLine( 5 + posx + sizex, startpos, 5 + posx + sizex, startpos + sizey);
- surface.DrawText(opt);
- local maxy = 15;
- for k,v in next, var do
- if(k == 1) then continue; end
- if(v[2] == "Checkbox") then
- DrawCheckbox(self, w, h, v, maxy, posx, posy, dist);
- elseif(v[2] == "Slider") then
- DrawSlider(self, w, h, v, maxy, posx, posy, dist);
- elseif(v[2] == "Selection") then
- DrawSelect(self, w, h, v, maxy, posx, posy, dist);
- end
- maxy = maxy + 25;
- end
- end
- local function DrawOptions(self, w, h)
- local mx, my = self:GetPos();
- local sizeper = (w - 10) / #order;
- local maxx = 0;
- for k,v in next, order do
- local bMouse = MouseInArea(mx + 5 + maxx, my + 31, mx + 5 + maxx + sizeper, my + 31 + 30);
- if(visible[v]) then
- local curcol = Color(13, 140, 233,220);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- --curcol.r, curcol.g, curcol.b = curcol.r + 3, curcol.g + 3, curcol.b + 3;
- surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
- end
- elseif(bMouse) then
- local curcol = Color(33, 150, 243,220);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- --curcol.r, curcol.g, curcol.b = curcol.r - 1.7, curcol.g - 1.7, curcol.b - 1.7;
- surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
- end
- else
- local curcol = Color(33, 150, 243,220);
- for i = 0, 30 do
- surface.SetDrawColor(curcol);
- --curcol.r, curcol.g, curcol.b = curcol.r - 1.7, curcol.g - 1.7, curcol.b - 1.7;
- surface.DrawLine( 5 + maxx, 31 + i, 5 + maxx + sizeper, 31 + i);
- end
- end
- if(bMouse && input.IsMouseDown(MOUSE_LEFT) && !mousedown && !visible[v]) then
- local nb = visible[v];
- for key,val in next, visible do
- visible[key] = false;
- end
- visible[v] = !nb;
- end
- surface.SetFont("pFont");
- surface.SetTextColor(255, 255, 255);
- local tw, th = surface.GetTextSize(v);
- surface.SetTextPos( 5 + maxx + sizeper / 2 - tw / 2, 31 + 15 - th / 2 );
- surface.DrawText(v);
- maxx = maxx + sizeper;
- end
- end
- frame.Paint = function(self, w, h)
- if(candoslider && !mousedown && !drawlast && !input.IsMouseDown(MOUSE_LEFT)) then
- candoslider = false;
- end
- DrawBackground(w, h);
- DrawOptions(self, w, h);
- DrawSub(self, w, h);
- -- DrawSaveButton(self, w, h);
- -- DrawLoadButton(self, w, h);
- if(drawlast) then
- drawlast();
- candoslider = true;
- end
- mousedown = input.IsMouseDown(MOUSE_LEFT);
- end
- frame.Think = function()
- if (input.IsKeyDown(KEY_INSERT) && !insertdown2) then
- frame:Remove();
- menuopen = false;
- candoslider = false;
- drawlast = nil;
- end
- end
- end
- local function Think()
- if (input.IsKeyDown(KEY_INSERT) && !menuopen && !insertdown) then
- menuopen = true;
- insertdown = true;
- menu();
- elseif (!input.IsKeyDown(KEY_INSERT) && !menuopen) then
- insertdown = false;
- end
- if (input.IsKeyDown(KEY_INSERT) && insertdown && menuopen) then
- insertdown2 = true;
- else
- insertdown2 = false;
- end
- end
- hook.Add("Think", "", Think);
- --[[
- Actual codens
- ]]
- local FindMetaTable = FindMetaTable;
- local em = FindMetaTable"Entity";
- local pm = FindMetaTable"Player";
- local cm = FindMetaTable"CUserCmd";
- local wm = FindMetaTable"Weapon";
- local am = FindMetaTable"Angle";
- local vm = FindMetaTable"Vector";
- local Vector = Vector;
- local player = Copy(player);
- local Angle = Angle;
- local me = LocalPlayer();
- local render = Copy(render);
- local cma = Copy(cam);
- local Material = Material;
- local CreateMaterial = CreateMaterial;
- --[[
- esp
- ]]
- local function Filter(v)
- local enemy = gBool("Main", "Filter", "Enemies only");
- local dist = gBool("Main", "Filter", "Distance")
- if(enemy) then
- if(pm.Team(v) == pm.Team(me)) then return false; end
- end
- if(dist) then
- local maxdist = gBool("Main", "Filter", "Max Distance");
- if( vm.Distance( em.GetPos(v), em.GetPos(me) ) > (maxdist * 5) ) then return false; end
- end
- return true;
- end
- local chamsmat = CreateMaterial("a", "VertexLitGeneric", {
- ["$ignorez"] = 1,
- ["$model"] = 1,
- ["$basetexture"] = "models/debug/debugwhite",
- });
- local chamsmat2 = CreateMaterial("@", "vertexlitgeneric", {
- ["$ignorez"] = 0,
- ["$model"] = 1,
- ["$basetexture"] = "models/debug/debugwhite",
- });
- local function GetChamsColor(v, vis)
- local pre = "Chams - Enemy";
- if(pm.Team(v) == pm.Team(me)) then
- pre = "Chams - Team";
- end
- if(vis) then
- local r = gInt("Settings", pre, "Visible R") / 255;
- local g = gInt("Settings", pre, "Visible G") / 255;
- local b = gInt("Settings", pre, "Visible B") / 255;
- return r,g,b;
- end
- local r = gInt("Settings", pre, "Not Visible R") / 255;
- local g = gInt("Settings", pre, "Not Visible G") / 255;
- local b = gInt("Settings", pre, "Not Visible B") / 255;
- return r,g,b;
- end
- local function Chams(v)
- if(gBool("Main", "ESP", "XQZ")) then
- cam.Start3D();
- cam.IgnoreZ(true);
- em.DrawModel(v);
- cam.IgnoreZ(false);
- cam.End3D();
- end
- if(gBool("Main", "ESP", "Chams")) then
- cam.Start3D();
- render.MaterialOverride(chamsmat);
- render.SetColorModulation(GetChamsColor(v));
- em.DrawModel(v);
- render.SetColorModulation(GetChamsColor(v, true));
- render.MaterialOverride(chamsmat2);
- em.DrawModel(v);
- cam.End3D();
- end
- end
- --[[local function GetColor(v)
- if(pm.Team(v) == pm.Team(me)) then
- local r = gInt("Settings", "Box - Team", "R");
- local g = gInt("Settings", "Box - Team", "G");
- local b = gInt("Settings", "Box - Team", "B");
- return(Color(r, g, b, 220));
- end
- local r = gInt("Settings", "Box - Enemy", "R");
- local g = gInt("Settings", "Box - Enemy", "G");
- local b = gInt("Settings", "Box - Enemy", "B");
- return(Color(r, g, b, 220));
- end
- ]]
- local function saveconfig()
- file.Write("bread.txt", util.TableToJSON(options));
- end
- local function ESP(v)
- local pos = em.GetPos(v);
- local pos, pos2 = vm.ToScreen(pos - Vector(0, 0, 5)), vm.ToScreen( pos + Vector(0, 0, 70 ) );
- local h = pos.y - pos2.y;
- local w = h / 2.2;
- if(gBool("Main", "ESP", "Box") && gOption("Main", "ESP", "Box Type") == "2D Box") then
- if (me:Team() == v:Team()) then
- surface.SetDrawColor(45,125,255)
- else
- surface.SetDrawColor(255,0,0)
- end
- surface.DrawOutlinedRect( pos.x - w / 2, pos.y - h, w, h);
- surface.SetDrawColor(0, 0, 0, 255);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- end
- if(gBool("Main", "ESP", "Box") && gOption("Main", "ESP", "Box Type") == "3D Box") then
- hook.Add( "HUDPaint", "3D-Box", function()
- for k,v in pairs(player.GetAll()) do
- if v:IsValid() and v:Alive() and v:Health() >= 0 then
- local eye = v:EyeAngles();
- local min, max = v:WorldSpaceAABB();
- local origin = v:GetPos();
- cam.Start3D()
- render.DrawWireframeBox( origin, Angle(0, eye.y, 0), min-origin, max-origin, Color(gInt("Settings", "Team ESP Color", "Red"), gInt("Settings", "Team ESP Color", "Green"), gInt("Settings", "Team ESP Color", "Blue")))
- cam.End3D()
- end
- if (me:Team() == v:Team()) then
- surface.SetDrawColor(45,125,255)
- else
- surface.SetDrawColor(255,0,0)
- end
- hook.Remove( "HUDPaint", "3D-Box", function()
- end)
- end
- end)
- end
- if(gBool("Main", "ESP", "Crosshair Circle")) then
- surface.DrawCircle(ScrW()/2, ScrH()/2, 11, Color(gInt("Settings", "Crosshair Color", "Red"),gInt("Settings", "Crosshair Color", "Green"),gInt("Settings", "Crosshair Color", "Blue")));
- surface.DrawCircle(ScrW()/2, ScrH()/2, 1.4, Color(gInt("Settings", "Crosshair Color", "Red"),gInt("Settings", "Crosshair Color", "Green"),gInt("Settings", "Crosshair Color", "Blue")));
- end
- for k,v in next, player.GetAll() do
- if (gBool("Main", "ESP", "Heatlh")) or !v:IsValid() or !v:Alive() or 0 >= v:Health() then continue end
- if (gBool("Main", "Misc", "Thirdperson")) and v == me then continue end
- local min, max = v:GetCollisionBounds()
- local pos = v:GetPos()
- local top, bottom = (pos + Vector(0, 0, max.z)):ToScreen(), (pos - Vector(0, 0, 8)):ToScreen()
- local middle = bottom.y - top.y
- local width = middle / 2.245
- end
- --[[
- local pos = em.GetPos(v);
- local pos, pos2 = vm.ToScreen(pos - Vector(0, 0, 5)), vm.ToScreen( pos + Vector(0, 0, 70 ) );
- local h = pos.y - pos2.y;
- local w = h / 2.2;
- surface.DrawOutlinedRect( pos.x - w / 2, pos.y - h, w, h);
- surface.SetDrawColor(0, 0, 0, 255);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- ]]
- local Cap = math.cos(math.rad(45))
- local Offset = Vector(0, 0, 32)
- local Trace = {}
- local WitnessColor = Color (255,255,255)
- function Draw()
- --if(gBool("Main", "ESP", "Witness Detector")) then
- local Time = os.time() - 1
- local Witnesses = 0
- local BeingWitnessed = true
- if Time < os.time() then
- Time = os.time() + .5
- Witnesses = 0
- BeingWitnessed = false
- for k, pla in pairs(player.GetAll()) do
- if pla:IsValid() and pla != LocalPlayer() then
- Trace.start = LocalPlayer():EyePos() + Offset
- Trace.endpos = pla:EyePos() + Offset
- Trace.filter = {pla, LocalPlayer()}
- TraceRes = util.TraceLine(Trace)
- if !TraceRes.Hit then
- if (pla:EyeAngles():Forward():Dot((LocalPlayer():EyePos() - pla:EyePos())) > Cap) then
- Witnesses = Witnesses + 1
- BeingWitnessed = true
- end
- end
- end
- end
- end
- if BeingWitnessed == false then
- WitnessColor = Color (0,255,0)
- else
- WitnessColor = Color (255,0,0)
- end
- draw.SimpleTextOutlined( Witnesses.. " Player(s) can see you.", "Trebuchet18", (ScrW() / 2) - 65, 42, Color(gInt("Settings", "Menu Color", "Red"), gInt("Settings", "Menu Color", "Green"), gInt("Settings", "Menu Color", "Blue")),4,1,1,Color(0,161,255))
- surface.SetDrawColor( 255, 255, 255 )
- -- surface.DrawRect( (ScrW() / 2) - 70, 55, 148, 5 )
- end
- hook.Add("HUDPaint", "WitnessesBox", Draw)
- if(gBool("Main", "ESP", "Box") && gOption("Main", "ESP", "Box Type") == "Small Box") then
- local pos = em.GetPos(v);
- local pos, pos2 = vm.ToScreen(pos - Vector(0, 0, 10)), vm.ToScreen( pos + Vector(0, 0, 5) );
- local h = pos.y - pos2.y;
- local w = h / 0.75;
- surface.DrawOutlinedRect( pos.x - w / 2, pos.y - h, w, h);
- surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
- surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
- end
- if(gBool("Main", "ESP", "Box") && gOption("Main", "ESP", "Box Type") == "Edge") then
- local Y = pos.y - h + 1
- local X = pos.x - w / 2 - 1
- local W = w + 0.75
- local H = h - 1
- local lineW = (W / 5);
- local lineH = (H / 6);
- local lineT = 1;
- //outline
- surface.SetDrawColor(0,0,0)
- surface.DrawLine(X - lineT, Y - lineT, X + lineW, Y - lineT); //top left
- surface.DrawLine(X - lineT, Y - lineT, X - lineT, Y + lineH);
- surface.DrawLine(X - lineT, Y + H - lineH, X - lineT, Y + H + lineT); //bot left
- surface.DrawLine(X - lineT, Y + H + lineT, X + lineW, Y + H + lineT);
- surface.DrawLine(X + W - lineW, Y - lineT, X + W + lineT, Y - lineT); // top right
- surface.DrawLine(X + W + lineT, Y - lineT, X + W + lineT, Y + lineH);
- surface.DrawLine(X + W + lineT, Y + H - lineH, X + W + lineT, Y + H + lineT); // bot right
- surface.DrawLine(X + W - lineW, Y + H + lineT, X + W + lineT, Y + H + lineT);
- //inline
- if (me:Team() == v:Team()) then
- surface.SetDrawColor(45,125,255)
- else
- surface.SetDrawColor(255,0,0)
- end
- surface.DrawLine(X, Y, X, Y + lineH);//top left
- surface.DrawLine(X, Y, X + lineW, Y);
- surface.DrawLine(X + W - lineW, Y, X + W, Y); //top right
- surface.DrawLine(X + W , Y, X + W, Y + lineH);
- surface.DrawLine(X, Y + H - lineH, X, Y + H); //bot left
- surface.DrawLine(X, Y + H, X + lineW, Y + H);
- surface.DrawLine(X + W - lineW, Y + H, X + W, Y + H);//bot right
- surface.DrawLine(X + W, Y + H - lineH, X + W, Y + H);
- end
- if(gBool("Main", "ESP", "Health") && gOption("Main", "ESP", "Bar Type") == "Bottom") then
- local hp = em.Health(v) * h / 220;
- if(hp > h) then hp = h; end
- local diff = h - hp;
- local GermanX = pos.x - w / 2
- local GermanY = pos.y + 4
- local Width = w + 2
- local GermanW = diff
- local GermanColor = 255, 100, 100
- surface.SetDrawColor(0,0,0)
- surface.DrawRect( GermanX, GermanY, Width, 5 );
- surface.SetDrawColor( ( 100 - em.Health(v) ) * 2.55, em.Health(v) * 2.55, 0, 255);
- surface.DrawRect( GermanX+1, GermanY+1, hp, 3);
- end
- if(gBool("Main", "ESP", "Health") && gOption("Main", "ESP", "Bar Type") == "Left") then
- local hp = em.Health(v) * h / 100;
- if(hp > h) then hp = h; end
- local diff = h - hp;
- surface.SetDrawColor(0, 0, 0, 255);
- surface.DrawRect(pos.x - w / 2 - 5, pos.y - h - 1, 3, h + 2);
- surface.SetDrawColor( ( 100 - em.Health(v) ) * 2.55, em.Health(v) * 2.55, 0, 255);
- surface.DrawRect(pos.x - w / 2 - 4, pos.y - h + diff, 1, hp);
- end
- surface.SetFont("pFont");
- surface.SetTextColor(255, 255, 255);
- if(gBool("Main", "ESP", "Name")) then
- local tw, th = surface.GetTextSize(pm.Name(v));
- surface.SetTextPos( pos.x - tw / 2, pos.y - h + 2 - th );
- surface.DrawText(pm.Name(v));
- end
- local weapon = me:GetActiveWeapon()
- if weapon:IsValid() then
- clipsize = weapon:Clip1()
- local pw, ph = surface.GetTextSize("Ammo: "..clipsize)
- if clipsize < 0 then
- clipsize = 0
- end
- end
- drawpos = 0
- if(gBool("Main", "ESP", "Weapon")) then
- local w = pm.GetActiveWeapon(v);
- if(w && em.IsValid(w)) then
- local tw, th = surface.GetTextSize(em.GetClass(w));
- surface.SetTextPos( pos.x - tw / 2, pos.y - th / 15 + 5 );
- local pw, ph = surface.GetTextSize("Ammo: "..clipsize)
- surface.DrawText(em.GetClass(w));
- local pw, ph = surface.GetTextSize("Ammo: "..clipsize)
- end
- end
- hook.Add("HUDPaint", "LoopThroughPlayers", LoopThroughPlayers)
- if(gBool("Main", "ESP", "Skeleton")) then
- if (me:Team() == v:Team()) then
- surface.SetDrawColor(45,125,255)
- else
- surface.SetDrawColor(255,0,0)
- end
- local origin = em.GetPos(v);
- for i = 1, em.GetBoneCount(v) do
- local parent = em.GetBoneParent(v, i);
- if(!parent) then continue; end
- local bonepos, parentpos = em.GetBonePosition(v, i), em.GetBonePosition(v, parent);
- if(!bonepos || !parentpos || bonepos == origin) then continue; end
- local bs, ps = vm.ToScreen(bonepos), vm.ToScreen(parentpos);
- if (me:Team() == v:Team()) then
- surface.SetDrawColor(45,125,255)
- else
- surface.SetDrawColor(255,0,0)
- end
- surface.DrawLine(bs.x, bs.y, ps.x, ps.y);
- end
- end
- end
- local aimtarget;
- hook.Add("HUDPaint", "", function()
- if(aimtarget && gBool("Main", "ESP", "Snapline")) then
- local pos = vm.ToScreen(em.LocalToWorld(aimtarget, em.OBBCenter(aimtarget)));
- surface.SetDrawColor(255, 255, 255);
- surface.DrawLine(ScrW() / 2, ScrH() / 2, pos.x, pos.y);
- end
- if(!gBool("Main", "ESP", "Enabled")) then return; end
- for k,v in next, player.GetAll() do
- if(!em.IsValid(v) || em.Health(v) < 1 || em.IsDormant(v)) then continue; end
- if(!Filter(v)) then continue; end
- ESP(v);
- end
- end);
- hook.Add("RenderScreenspaceEffects", "", function()
- if(!gBool("Main", "ESP", "Enabled")) then return; end
- for k,v in next, player.GetAll() do
- if(!em.IsValid(v) || em.Health(v) < 1 || v == me || em.IsDormant(v)) then continue; end
- if(!Filter(v)) then continue; end
- Chams(v);
- end
- end);
- saveconfig();
- --[[
- memes
- ]]
- local fa;
- local aa;
- local function FixMovement(ucmd, aaaaa)
- --local move = Vector(cm.GetForwardMove(ucmd), cm.GetSideMove(ucmd), 0);
- --local move = am.Forward( vm.Angle(move) + ( cm.GetViewAngles(ucmd) - fa ) ) * vm.Length(move);
- local move = Vector(cm.GetForwardMove(ucmd), cm.GetSideMove(ucmd), cm.GetUpMove(ucmd));
- local speed = math.sqrt(move.x * move.x + move.y * move.y);
- local ang = vm.Angle(move);
- local yaw = math.rad(cm.GetViewAngles(ucmd).y - fa.y + ang.y);
- cm.SetForwardMove(ucmd, (math.cos(yaw) * speed) * ( aaaaa && -1 || 1 ));
- cm.SetSideMove(ucmd, math.sin(yaw) * speed);
- --cm.SetForwardMove(ucmd, move.x);
- --cm.SetSideMove(ucmd, (aaaaa && move.y * -1 || move.y));
- end
- local function Clamp(val, min, max)
- if(val < min) then
- return min;
- elseif(val > max) then
- return max;
- end
- return val;
- end
- local function NormalizeAngle(ang)
- ang.x = math.NormalizeAngle(ang.x);
- ang.p = math.Clamp(ang.p, -89, 89);
- end
- --[[
- aimer
- ]]
- local table = Copy(table);
- local dists = {};
- local function GetPos(v)
- if(gBool("Aimbot", "Target", "Bodyaim")) then return( em.LocalToWorld(v, em.OBBCenter(v)) ); end
- local eyes = em.LookupAttachment(v, "eyes");
- if(!eyes) then return( em.LocalToWorld(v, em.OBBCenter(v)) ); end
- local pos = em.GetAttachment(v, eyes);
- if(!pos) then return( em.LocalToWorld(v, em.OBBCenter(v)) ); end
- return(pos.Pos);
- end
- local aimignore;
- local function Valid(v)
- if(!v || !em.IsValid(v) || v == me || em.Health(v) < 1 || em.IsDormant(v) || pm.Team(v) == 1002 || (v == aimignore && gOption("Aimbot", "Target", "Selection") == "Nextshot")) then return false; end
- if(gBool("Aimbot", "Target", "Ignore Bots")) then
- if(pm.IsBot(v)) then return false; end
- end
- if(gBool("Aimbot", "Target", "Ignore Team")) then
- if(pm.Team(v) == pm.Team(me)) then return false; end
- end
- if(gBool("Aimbot", "Target", "Ignore Friends")) then
- if(pm.GetFriendStatus(v) == "friend") then return false; end
- end
- local tr = {
- start = em.EyePos(me),
- endpos = GetPos(v),
- mask = MASK_SHOT,
- filter = {me, v},
- };
- return(util.TraceLine(tr).Fraction == 1);
- end
- local function gettarget()
- local opt = gOption("Aimbot", "Target", "Selection");
- local sticky = gOption("Aimbot", "Aimbot", "Non-Sticky");
- if(opt == "Distance") then
- if( !sticky && Valid(aimtarget) ) then return; end
- dists = {};
- for k,v in next, player.GetAll() do
- if(!Valid(v)) then continue; end
- dists[#dists + 1] = { vm.Distance( em.GetPos(v), em.GetPos(me) ), v };
- end
- table.sort(dists, function(a, b)
- return(a[1] < b[1]);
- end);
- aimtarget = dists[1] && dists[1][2] || nil;
- elseif(opt == "Health") then
- if( !sticky && Valid(aimtarget) ) then return; end
- dists = {};
- for k,v in next, player.GetAll() do
- if(!Valid(v)) then continue; end
- dists[#dists + 1] = { em.Health(v), v };
- end
- table.sort(dists, function(a, b)
- return(a[1] < b[1]);
- end);
- aimtarget = dists[1] && dists[1][2] || nil;
- elseif(opt == "Nextshot") then
- if( !sticky && Valid(aimtarget) ) then return; end
- aimtarget = nil;
- local allplys = player.GetAll();
- local avaib = {};
- for k,v in next,allplys do
- avaib[math.random(100)] = v;
- end
- for k,v in next, avaib do
- if(Valid(v)) then
- aimtarget = v;
- end
- end
- end
- end
- local cones = {};
- local pcall = pcall;
- local require = require;
- local nullvec = Vector() * -1;
- local IsFirstTimePredicted = IsFirstTimePredicted;
- local CurTime = CurTime;
- local servertime=0;
- local bit = Copy(bit);
- --pcall(require, "dickwrap");
- hook.Add("Move", "", function()
- if(!IsFirstTimePredicted()) then return; end
- servertime = CurTime();
- end);
- GAMEMODE["EntityFireBullets"] = function(self, p, data)
- aimignore = aimtarget;
- local w = pm.GetActiveWeapon(me);
- local Spread = data.Spread * -1;
- if(!w || !em.IsValid(w) || cones[em.GetClass(w)] == Spread || Spread == nullvec) then return; end
- cones[em.GetClass(w)] = Spread;
- end
- local function PredictSpread(ucmd, ang)
- local w = pm.GetActiveWeapon(me);
- if(!w || !em.IsValid(w) || !cones[em.GetClass(w)] || !gBool("Aimbot", "Accuracy", "No Spread")) then return am.Forward(ang); end
- return(dickwrap.Predict(ucmd, am.Forward(ang), cones[em.GetClass(w)]));
- end
- local function Autofire(ucmd)
- if(pm.KeyDown(me, 1) && gBool("Aimbot", "Aimbot", "Auto Pistol")) then
- cm.SetButtons(ucmd, bit.band( cm.GetButtons(ucmd), bit.bnot( 1 ) ) );
- else
- cm.SetButtons(ucmd, bit.bor( cm.GetButtons(ucmd), 1 ) );
- end
- end
- local function WeaponCanFire()
- local w = pm.GetActiveWeapon(me);
- if(!w || !em.IsValid(w) || !gBool("Aimbot", "Aimbot", "Bullettime")) then return true; end
- return( servertime >= wm.GetNextPrimaryFire(w) );
- end
- local function WeaponShootable()
- local wep = pm.GetActiveWeapon(me);
- if( em.IsValid(wep) ) then // I would never get lazy..
- local n = string.lower(wep:GetPrintName())
- if( wep:Clip1() <= 0 ) then
- return false;
- end
- if( string.find(n,"knife") or string.find(n,"grenade") or string.find(n,"sword") or string.find(n,"bomb") or string.find(n,"ied") or string.find(n,"c4") or string.find(n,"slam") or string.find(n,"climb") or string.find(n,"hand") or string.find(n,"fist") ) then
- return false;
- end
- return true;
- end
- end
- local function PredictPos(pos)
- local myvel = LocalPlayer():GetVelocity()
- local pos = pos - (myvel * engine.TickInterval());
- return pos;
- end
- local function aimer(ucmd)
- if(cm.CommandNumber(ucmd) == 0 || !gBool("Aimbot", "Aimbot", "Enabled")) then return; end
- gettarget();
- aa = false;
- if(aimtarget && (input.IsKeyDown(KEY_LALT) || gBool("Aimbot", "Aimbot", "Autosnap")) && WeaponCanFire() && WeaponShootable() ) then
- aa = true;
- local pos = GetPos(aimtarget) - em.EyePos(me);
- PredictPos(pos);
- local ang = vm.Angle( PredictSpread(ucmd, vm.Angle(pos)));
- NormalizeAngle(ang);
- cm.SetViewAngles(ucmd, ang);
- if(gBool("Aimbot", "Aimbot", "Autofire")) then
- Autofire(ucmd);
- end
- if(gBool("Aimbot", "Aimbot", "Silent")) then
- FixMovement(ucmd);
- else
- fa = ang;
- end
- end
- end
- --[[
- antiaimer
- ]]
- local ox=-181;
- local oy=0;
- local function RandCoin()
- local randcoin = math.random(0,1);
- if(randcoin == 1) then return 1; else return -1; end
- end
- local function GetX()
- local opt = gOption("Main", "Rage", "X");
- if(opt == "Emotion") then
- local randcoin = gInt("Aimbot", "Anti-Aim", "Emotion Randomcoin X");
- if( math.random(100) < randcoin ) then
- ox = RandCoin() * 181;
- end
- elseif( opt == "AFK" ) then
- ox = 0.454987454674;
- elseif( opt == "Up" ) then
- ox = 181;
- elseif( opt == "Down" ) then
- ox = -181;
- elseif( opt == "Overflow Up" ) then
- ox = 180.087929;
- elseif( opt == "Overflow Down" ) then
- ox = -180.087929;
- elseif(opt == "Jitter") then
- ox = ox * -1;
- end
- end
- local function GetClosest()
- local ddists = {};
- local closest;
- for k,v in next, player.GetAll() do
- if(!Valid(v)) then continue; end
- ddists[#ddists + 1] = { vm.Distance( em.GetPos(v), em.GetPos(me) ), v };
- end
- table.sort(ddists, function(a, b)
- return(a[1] < b[1]);
- end);
- closest = ddists[1] && ddists[1][2] || nil;
- if(!closest) then return fa.y; end
- local pos = em.GetPos(closest);
- local pos = vm.Angle(pos - em.EyePos(me));
- return( pos.y );
- end
- local function GetY()
- local opt = gOption("Main", "Rage", "Y");
- if(opt == "Emotion") then
- local randcoin = gInt("Aimbot", "Anti-Aim", "Emotion Randomcoin Y");
- if( math.random(100) < randcoin ) then
- oy = fa.y + math.random(-180, 180);
- end
- elseif( opt == "Eye Angles" ) then
- oy = fa.y;
- elseif( opt == "Off" ) then
- oy = fa.y;
- elseif( opt == "Sideways" ) then
- oy = fa.y - 90;
- elseif(opt == "Jitter") then
- oy = fa.y + math.random(-90, 90);
- elseif(opt == "TJitter") then
- oy = fa.y - 180 + math.random(-90, 90);
- elseif(opt == "Static") then
- oy = 0;
- elseif(opt == "Forward") then
- oy = fa.y;
- elseif(opt == "Backwards") then
- oy = fa.y - 180;
- elseif(opt == "Overflow Jitter") then
- oy = fa.y - 179;
- elseif(opt == "Overflow Fake") then
- oy = fa.y - 0;
- elseif(opt == "Angle Fake") then
- oy = fa.y - 980 + math.random(-2, 2);
- elseif(opt == "Towards Players") then
- oy = GetClosest();
- end
- end
- local function walldetect()
- local eye = em.EyePos(me);
- local tr = util.TraceLine({
- start = eye,
- endpos = (eye + (am.Forward(fa) * 10)),
- mask = MASK_ALL,
- });
- if(tr.Hit) then
- ox = -181;
- oy = -90;
- end
- end
- local function antiaimer(ucmd)
- if( (cm.CommandNumber(ucmd) == 0 && !gBool("Main", "Misc", "Thirdperson")) || cm.KeyDown(ucmd, 1) || cm.KeyDown(ucmd, 32) || aa || !gBool("Main", "Rage", "Enabled")) then
- return; end
- chat.AddText(Color(255, 0, 0), "pLegit", "| ", Color( 255, 0, 0 ), "Rage Bot Status: Enabled -- warning")
- GetX();
- GetY();
- walldetect();
- local aaang = Angle(ox, oy, 0);
- cm.SetViewAngles(ucmd, aaang);
- FixMovement(ucmd, true);
- end
- local function GetAngle(ang)
- if(!gBool("Aimbot", "Accuracy", "No Recoil")) then return ang + pm.GetPunchAngle(me); end
- return ang;
- end
- local function rapidfire(ucmd)
- if(pm.KeyDown(me, 1) && gBool("Aimbot", "Aimbot", "Auto Pistol")) then
- cm.SetButtons(ucmd, bit.band( cm.GetButtons(ucmd), bit.bnot( 1 ) ) );
- end
- end
- local function meme(ucmd)
- if(!fa) then fa = cm.GetViewAngles(ucmd); end
- fa = fa + Angle(cm.GetMouseY(ucmd) * .023, cm.GetMouseX(ucmd) * -.023, 0);
- NormalizeAngle(fa);
- if(cm.CommandNumber(ucmd) == 0) then
- cm.SetViewAngles(ucmd, GetAngle(fa));
- return;
- end
- if(cm.KeyDown(ucmd, 1)) then
- local ang = GetAngle(vm.Angle( PredictSpread(ucmd, fa ) ) );
- NormalizeAngle(ang);
- cm.SetViewAngles(ucmd, ang);
- end
- -- if(cm.KeyDown(ucmd, 2) && !em.IsOnGround(me)) then
- -- cm.SetButtons(ucmd, bit.band( cm.GetButtons(ucmd), bit.bnot( 2 ) ) );
- -- end
- end
- --[[
- function GAMEMODE:PreDrawSkyBox()
- if (!gBool("Main", "Misc", "No Sky")) then return; end
- render.Clear(0, 0, 0, 255);
- return true;
- end
- ]]
- function GAMEMODE:PreDrawSkyBox()
- if (!gBool("Main", "Misc", "Aids Mode")) then return; end
- render.Clear(0, 161, 255, 255);
- return true;
- end
- local trace_walls = bit.bor(CONTENTS_TESTFOGVOLUME, CONTENTS_EMPTY, CONTENTS_MONSTER, CONTENTS_HITBOX);
- local NoPenetration = {[MAT_SLOSH] = true};
- local PenMod = {[MAT_SAND] = 0.5, [MAT_DIRT] = 0.8, [MAT_METAL] = 1.1, [MAT_TILE] = 0.9, [MAT_WOOD] = 1.2};
- local trace_normal = bit.bor(CONTENTS_SOLID, CONTENTS_OPAQUE, CONTENTS_MOVEABLE, CONTENTS_DEBRIS, CONTENTS_MONSTER, CONTENTS_HITBOX, 402653442, CONTENTS_WATER);
- local function fasAutowall(wep, startPos, aimPos, ply)
- if !gBool("Aimbot", "Accuracy", "Auto Wall") then return end;
- local traces = {};
- local traceResults = {};
- local dir = (aimPos - startPos):GetNormalized();
- traces[1] = { start = startPos, filter = me, mask = trace_normal, endpos = aimPos, };
- traceResults[1] = util.TraceLine(traces[1]);
- if(NoPenetration[traceResults[1].MatType]) then return false; end
- if(-dir:DotProduct(traceResults[1].HitNormal) <= .26) then return false; end
- traces[2] = { start = traceResults[1].HitPos, endpos = traceResults[1].HitPos + dir * wep.PenStr * (PenMod[traceResults[1].MatType] || 1) * wep.PenMod, filter = me, mask = trace_walls, };
- traceResults[2] = util.TraceLine(traces[2]);
- traces[3] = { start = traceResults[2].HitPos, endpos = traceResults[2].HitPos + dir * .1, filter = me, mask = trace_normal, };
- traceResults [3] = util.TraceLine(traces[3]);
- traces[4] = { start = traceResults[2].HitPos, endpos = aimPos, filter = me, mask = MASK_SHOT, };
- traceResults[4] = util.TraceLine(traces[4]);
- if(traceResults[4].Entity != ply) then return false; end
- return(!traceResults[3].Hit);
- end
- local oldRC = render.Capture
- local rndrView = render.RenderView
- takingss = false
- render.Capture = function( ... )
- takingss = true
- rndrView()
- GAMEMODE:HUDPaint()
- takingss = false
- return oldRC( ... )
- end
- local function m9kAutowall(wep)
- if !gBool("Aimbot", "Accuracy", "Auto Wall") then return end;
- local wep = me:GetActiveWeapon();
- local trace = {
- endpos = aimPos,
- start = me:EyePos(),
- mask = MASK_SHOT,
- filter = me,
- };
- return wep:BulletPenetrate(10, nil, util.TraceLine(trace), DamageInfo());
- end
- local function FixMovement(ucmd)
- local vec = Vector(cm.GetForwardMove(ucmd), cm.GetSideMove(ucmd), 0);
- local vel = math.sqrt(vec.x*vec.x + vec.y*vec.y);
- local mang = vm.Angle(vec);
- local yaw = cm.GetViewAngles(ucmd).y - fa.y + mang.y;
- if (((cm.GetViewAngles(ucmd).p+90)%360) > 180) then
- yaw = 980 - yaw;
- end
- yaw = ((yaw + 980)%360)-180;
- ucmd:SetForwardMove(math.cos(math.rad(yaw)) * vel);
- ucmd:SetSideMove(math.sin(math.rad(yaw)) * vel);
- end
- hook.Add("CreateMove", "", function(ucmd)
- meme(ucmd);
- aimer(ucmd);
- antiaimer(ucmd);
- end);
- hook.Add("CalcView", "", function(p, o, a, f)
- return({
- angles = GetAngle(fa),
- origin = (gBool("Main", "Misc", "Thirdperson") && o + am.Forward(fa) * -150 || o),
- fov = f,
- });
- end);
- hook.Add("ShouldDrawLocalPlayer", "", function()
- return(gBool("Main", "Misc", "Thirdperson"));
- end);
- chat.AddText(Color(0, 255, 106), "pLegit", "| ", Color( 255, 255, 255 ), "Loaded correctly! Check console for more info!")
- local toggler = 0
- local function RapidFire(ucmd)
- if(gBool("Aimbot", "Aimbot", "Rapid Fire")) then
- if me:KeyDown(IN_ATTACK) then
- if me:Health() > 0 then
- if IsValid(me:GetActiveWeapon()) and me:GetActiveWeapon():GetClass() != "weapon_physgun" then
- if toggler == 0 then
- ucmd:SetButtons(bit.bor(ucmd:GetButtons(), IN_ATTACK))
- toggler = 1
- else
- ucmd:SetButtons(bit.band(ucmd:GetButtons(), bit.bnot(IN_ATTACK)))
- toggler = 0
- end
- end
- end
- end
- end
- end
- hook.Add("PreDrawPlayerHands", "", function()
- if(gBool("Main", "Misc", "No Hands") || gBool("Main", "Misc", "Thirdperson")) then
- return true;
- else
- return false;
- end
- end);
- hook.Add("CalcView", "", function(p, o, a, f)
- return({
- angles = GetAngle(fa),
- origin = (gBool("Main", "Misc", "Thirdperson") && o + am.Forward(fa) * -150 || o),
- fov = gInt("Main", "Misc", "FOV");
- });
- end);
- hook.Add( "HUDPaint", "crosshair", function()
- if(gBool("Main", "ESP", "Crosshair Normal")) then
- rainbow = {}
- rainbow.R = math.sin(CurTime() * 4) * 127 + 128
- rainbow.G = math.sin(CurTime() * 4 + 2) * 127 + 128
- rainbow.B = math.sin(CurTime() * 4 + 4) * 127 + 128
- surface.SetDrawColor(13, 140, 233,255)
- local x = ScrW() * 0.5
- local y = ScrH() * 0.5
- surface.DrawLine( x + 10, y, x - 10, y )
- surface.DrawLine( x, y + 10, x, y - 10 )
- end
- end)
- if(gBool("Main", "Misc", "Bunny Hop")) then
- end
- if(gBool("Main", "Misc", "pStrafe")) then
- if(cmd:GetMouseX() > 1 || cmd:GetMouseX() < -1) then
- cmd:SetSideMove(cmd:GetMouseX() > 1 && 400 || -400);
- else
- cmd:SetForwardMove(5850 / me:GetVelocity():Length2D());
- cmd:SetSideMove((cmd:CommandNumber() % 2 == 0) && -400 || 400);
- end
- end
- -- --------------------------------------------------------------------------------------------------------
- -- Ghetto Anti-Cheat Check
- -- --------------------------------------------------------------------------------------------------------
- do
- if (_G.QAC or _G.CAC) then
- MsgC(Color( 255, 0, 0 ), [[
- $$\ $$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\
- $$ | $\ $$ | $$ __$$\ $$ __$$\ $$$\ $$ | \_$$ _| $$$\ $$ | $$ __$$\
- $$ |$$$\ $$ | $$ / $$ | $$ | $$ | $$$$\ $$ | $$ | $$$$\ $$ | $$ / \__|
- $$ $$ $$\$$ | $$$$$$$$ | $$$$$$$ | $$ $$\$$ | $$ | $$ $$\$$ | $$ |$$$$\
- $$$$ _$$$$ | $$ __$$ | $$ __$$< $$ \$$$$ | $$ | $$ \$$$$ | $$ |\_$$ |
- $$$ / \$$$ | $$ | $$ | $$ | $$ | $$ |\$$$ | $$ | $$ |\$$$ | $$ | $$ |
- $$ / \$$ | $$ | $$ | $$ | $$ | $$ | \$$ | $$$$$$\ $$ | \$$ | \$$$$$$ |
- \__/ \__| \__| \__| \__| \__| \__| \__| \______| \__| \__| \______/
- [pLegit]: an anti-cheat was detected. read below for more info.
- [pLegit]: If you would like to enable anti-cheat disconnect remove -- from RunConsoleCommand("disconnect")
- ]]
- )
- chat.AddText(Color(0, 255, 106), "pLegit", "| ", Color( 255, 0, 0 ), "WARNING! OPEN CONSOLE.")
- -- RunConsoleCommand("disconnect")
- else
- MsgC(Color( 0, 161, 255 ), [[
- /$$$$$$ /$$$$$$ /$$$$$$$$ /$$$$$$$$
- /$$__ $$ /$$__ $$ | $$_____/ | $$_____/
- | $$ \__/ | $$ \ $$ | $$ | $$
- | $$$$$$ | $$$$$$$$ | $$$$$ | $$$$$
- \____ $$ | $$__ $$ | $$__/ | $$__/
- /$$ \ $$ | $$ | $$ | $$ | $$
- | $$$$$$/ | $$ | $$ | $$ | $$$$$$$$
- \______/ |__/ |__/ |__/ |________/
- [pLegit]:
- No anti-cheat was detected you're safe to cheat.
- If there is an anti-cheat and it was not detected msg me.
- contact: /id/BreadIsHere
- ]]
- )
- chat.AddText(Color(0, 255, 106), "pLegit", "| ", Color( 255, 255, 255 ), "No anti-cheat detected you're safe to cheat!")
- return
- end
- end
- -- --------------------------------------------------------------------------------------------------------
- -- Ghetto Anti-Cheat Check
- -- --------------------------------------------------------------------------------------------------------
- local duckTime = 0
- local function Bunnyhop(pCmd)
- local duckEstimate = math.Round(58 + 1 / engine.TickInterval())
- if(not gBool("Main", "Misc", "Bunny Hop") or em.GetMoveType(me) == MOVETYPE_NOCLIP or me:Health() < 1) then return end
- if(not me:IsOnGround()) then
- pCmd:RemoveKey(2)
- duckTime = duckTime + 1
- if(pCmd:GetMouseX() > 1 or pCmd:GetMouseX() < -1) then
- if(pCmd:GetMouseX() < 0) then
- pCmd:SetSideMove(-400)
- else
- pCmd:SetSideMove(400)
- end
- else
- pCmd:SetForwardMove(5850 / me:GetVelocity():Length2D())
- pCmd:SetSideMove((pCmd:CommandNumber() % 2) == 0 and -400 or 400)
- end
- else
- if(pCmd:KeyDown(2)) then
- pCmd:SetForwardMove(400)
- end
- if(pCmd:KeyDown(IN_JUMP)) then
- pCmd:SetForwardMove(10000)
- end
- if gBool("Aimbot", "HVH", "Air Duck") and cm.CommandNumber(pCmd) ~= 0 and duckTime < duckEstimate then
- cm.SetButtons(pCmd, bit.bor(cm.GetButtons(pCmd), IN_DUCK))
- else
- duckTime = 0
- end
- end
- end
- local Cap = math.cos(math.rad(45))
- local Offset = Vector(0, 0, 32)
- local Trace = {}
- local WitnessColor = Color (0,0,0)
- function Draw()
- local Time = os.time() - 1
- local Witnesses = 0
- local BeingWitnessed = true
- if Time < os.time() then
- Time = os.time() + .5
- Witnesses = 0
- BeingWitnessed = false
- for k, pla in pairs(player.GetAll()) do
- if pla:IsValid() and pla != LocalPlayer() then
- Trace.start = LocalPlayer():EyePos() + Offset
- Trace.endpos = pla:EyePos() + Offset
- Trace.filter = {pla, LocalPlayer()}
- TraceRes = util.TraceLine(Trace)
- if !TraceRes.Hit then
- if (pla:EyeAngles():Forward():Dot((LocalPlayer():EyePos() - pla:EyePos())) > Cap) then
- Witnesses = Witnesses + 1
- BeingWitnessed = true
- end
- end
- end
- end
- end
- if BeingWitnessed == false then
- WitnessColor = Color (0,255,0)
- else
- WitnessColor = Color (255,0,0)
- end
- draw.SimpleTextOutlined( Witnesses.." Player(s) can see you.", "Trebuchet18", (ScrW() / 2) - 65, 42, Color(gInt("Settings", "Menu Color", "Red"), gInt("Settings", "Menu Color", "Green"), gInt("Settings", "Menu Color", "Blue")),4,1,1,Color(0,0,0))
- surface.SetDrawColor( WitnessColor )
- surface.DrawRect( (ScrW() / 2) - 70, 55, 148, 5 )
- end
- hook.Add("HUDPaint", "WitnessesBox", Draw)
- local Matinfo = {
- ["$basetexture"] = "models/debug/debugwhite",
- ["$model"] = 1,
- ["$nocull"] = 1,
- ["$ignorez"] = 1
- }
- mat1 = (CreateMaterial( "chams", "VertexLitGeneric", Matinfo ))
- mat2 = (CreateMaterial( "wireframe", "Wireframe", Matinfo ))
- trans = Color(0, 255, 0, 80)
- trans2 = Color(0, 255, 100)
- trans3 = Color(255, 155, 0, 200)
- function Xray()
- if(gBool("Main", "ESP", "Transparent Chams")) then
- local ColScheme = Color(gInt("Settings", "Team ESP Color", "Red"), gInt("Settings", "Team ESP Color", "Green"), gInt("Settings", "Team ESP Color", "Blue"), 100)
- --local ColSchemeV = Vector(gInt("Settings", "Team ESP Color", "Red"), gInt("Settings", "Team ESP Color", "Green"), gInt("Settings", "Team ESP Color", "Blue") / 255)
- local ColSchemeV2 = Vector(math.Clamp(ColSchemeV.x + 0.2, 0, 1), math.Clamp(ColSchemeV.y + 0.5, 0, 1), math.Clamp(ColSchemeV.z + 0.2, 0, 1))
- if !xray then
- xray = true
- hook.Add("HUDPaint", "xxrayz", function()
- for k,v in pairs(ents.GetAll()) do
- local position = (v:GetPos()+Vector(0,0,80)):ToScreen()
- if v:IsPlayer() && v:Alive() then
- cam.Start3D(EyePos(),EyeAngles())
- v:SetMaterial(mat2)
- v:SetRenderMode(4)
- v:SetColor(ColScheme)
- render.SuppressEngineLighting( true )
- render.MaterialOverride( mat1 )
- render.SetColorModulation( ColSchemeV2.x, ColSchemeV2.y, ColSchemeV2.z )
- render.SetBlend(0.3)
- v:DrawModel()
- render.SetBlend(1)
- render.SuppressEngineLighting( false )
- render.MaterialOverride( )
- cam.End3D()
- end
- end
- end)
- end
- elseif xray then
- xray = false
- for k,v in pairs(ents.GetAll()) do
- if v:GetClass()==("prop_door_rotating") or v:GetClass()==("func_door_rotating") or v:GetClass()== "prop_physics" or v:IsPlayer() then
- v:SetMaterial("")
- v:SetColor(Color(255,255,255))
- end
- end
- hook.Remove("HUDPaint", "xxrayz")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement