Guest User

shitassfuck

a guest
Jul 3rd, 2013
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.74 KB | None | 0 0
  1. local TopFrame
  2. local AimbotButton
  3. local NoSpreadButton
  4. local RapidFireOffButton
  5. local RapidFireButton
  6. local SpeedhackButton
  7. local BypasserButton
  8. local NoclipButton
  9. local MorbusButton
  10.  
  11. local X = -50
  12. local Y = -100
  13.  
  14. local KeyPos =  {      
  15.         {X+5, Y+100, 25, 25, -2.2, 3.45, 1.3, -0},
  16.         {X+37.5, Y+100, 25, 25, -0.6, 1.85, 1.3, -0},
  17.         {X+70, Y+100, 25, 25, 1.0, 0.25, 1.3, -0},
  18.  
  19.         {X+5, Y+132.5, 25, 25, -2.2, 3.45, 2.9, -1.6},
  20.         {X+37.5, Y+132.5, 25, 25, -0.6, 1.85, 2.9, -1.6},
  21.         {X+70, Y+132.5, 25, 25, 1.0, 0.25, 2.9, -1.6},
  22.  
  23.         {X+5, Y+165, 25, 25, -2.2, 3.45, 4.55, -3.3},
  24.         {X+37.5, Y+165, 25, 25, -0.6, 1.85, 4.55, -3.3},
  25.         {X+70, Y+165, 25, 25, 1.0, 0.25, 4.55, -3.3},
  26.  
  27.         {X+5, Y+67.5, 50, 25, -2.2, 4.7, -0.3, 1.6},
  28.         {X+60, Y+67.5, 35, 25, 0.3, 1.65, -0.3, 1.6}
  29. }
  30.  
  31. local function FindDisplayText(ent)
  32.         if ent.GetDisplayText then
  33.                 return ent:GetDisplayText()
  34.         else
  35.                 return ent.Entity:GetNetworkedInt("keypad_num")
  36.         end
  37. end
  38.  
  39. local function FindStatus(ent)
  40.         if ent.GetStatus then
  41.                 return ent:GetStatus()
  42.         elseif ent.Entity:GetNetworkedBool("keypad_access") and ent.Entity:GetNetworkedBool("keypad_showaccess") then
  43.                 return 1
  44.         elseif not ent.Entity:GetNetworkedBool("keypad_access") and ent.Entity:GetNetworkedBool("keypad_showaccess") then
  45.                 return 2
  46.         else
  47.                 return 0
  48.         end
  49. end
  50.  
  51. hook.Add("Think", "Somethingoranotherthatissomething", function()
  52.         for k,v in pairs(player.GetAll()) do
  53.                 local kp = v:GetEyeTrace().Entity
  54.                 if IsValid(kp) and (string.find(kp:GetClass(), "keypad") and not(string.find(v:GetClass(), "cracker") or string.find(v:GetClass(), "checker"))) and v:EyePos():Distance(kp:GetPos()) <= 70 then
  55.                         kp.tempCode = kp.tempCode or ""
  56.                         kp.tempText = kp.tempText or ""
  57.                         kp.tempStatus = kp.tempStatus or 0
  58.                        
  59.                         if (FindDisplayText(kp) != kp.tempText) or (FindStatus(kp) != kp.tempStatus) then
  60.                                 kp.tempText = FindDisplayText(kp)
  61.                                 kp.tempStatus = FindStatus(kp)
  62.                                
  63.                                 local tr = util.TraceLine({
  64.                                         start = v:EyePos(),
  65.                                         endpos = v:GetAimVector() * 32 + v:EyePos(),
  66.                                         filter = v
  67.                                 })
  68.                                
  69.                                 local pos = kp:WorldToLocal(tr.HitPos)
  70.                                
  71.                                 for i,p in pairs(KeyPos) do
  72.                                         local x = (pos.y - p[5]) / (p[5] + p[6])
  73.                                         local y = 1 - (pos.z + p[7]) / (p[7] + p[8])
  74.                                        
  75.                                         if (x >= 0 and y >= 0 and x <= 1 and y <= 1) then
  76.                                                 if i == 11 then
  77.                                                         if kp.tempStatus == 1 then
  78.                                                                 kp.code = kp.tempCode
  79.                                                                 kp.tempCode = ""
  80.                                                         elseif kp.tempStatus == 2 then
  81.                                                                 kp.tempCode = ""
  82.                                                         end
  83.                                                 elseif i == 10 then
  84.                                                         kp.tempCode = ""
  85.                                                 elseif i > 0 then
  86.                                                         kp.tempCode = kp.tempCode..i
  87.                                                 end
  88.                                         end
  89.                                 end
  90.                         end
  91.                 end
  92.         end
  93. end)
  94.  
  95. hook.Add( "HUDPaint", "somethingoranotherthatissomethingelse", function()
  96.         local e = LocalPlayer():GetEyeTrace().Entity
  97.         if IsValid(e) and string.find(e:GetClass(), "keypad") then
  98.                 local text = e.code or "Not Found"
  99.                 draw.WordBox( 8, ScrW() / 2, ScrH() / 2, text, "Default", Color(50,50,75,100), Color(255,255,255,255) )
  100.         end
  101.        
  102.         for k,v in pairs(ents.GetAll()) do
  103.                 if IsValid(v) then
  104.                         if string.find(v:GetClass(), "keypad") and not(string.find(v:GetClass(), "cracker") or string.find(v:GetClass(), "checker")) then
  105.                                 if v != e then
  106.                                         local pos = v:GetPos():ToScreen()
  107.                                         if IsValid(v) and v.code then
  108.                                                 draw.RoundedBox( 4, pos.x-5, pos.y-5, 20, 20, Color( 0, 255, 0, 150 ) )
  109.                                         else
  110.                                                 draw.RoundedBox( 4, pos.x-5, pos.y-5, 20, 20, Color( 255, 0, 0, 150 ) )
  111.                                         end
  112.                                 end
  113.                         end
  114.                 end
  115.         end
  116. end)
  117.  
  118. function muudeahack()
  119. TopFrame = vgui.Create('DFrame')
  120. TopFrame:SetSize(160, 260)
  121. TopFrame:SetPos(5, 5)
  122. TopFrame:SetTitle('Muudea Hack v1.0')
  123. TopFrame:SetDeleteOnClose(false)
  124. TopFrame:MakePopup()
  125.  
  126. AimbotButton = vgui.Create('DButton')
  127. AimbotButton:SetSize(160, 25)
  128. AimbotButton:SetPos(5, 90)
  129. AimbotButton:SetText('Aimbot')
  130. AimbotButton:SetVisible('true')
  131. AimbotButton:SetParent( TopFrame )
  132. AimbotButton.DoClick = function()
  133. hook.Add( "Think", "ThinkAboutIt", function()
  134.         if input.IsKeyDown(KEY_T) then
  135.                 local closest = nil
  136.                
  137.                 local hitpos = LocalPlayer():GetEyeTrace()
  138.                
  139.                 for k, v in pairs( ents.FindInSphere(hitpos.HitPos,500) ) do
  140.                         if v:IsPlayer() and v != LocalPlayer() then
  141.                                 if v:Alive() then
  142.                                         closest = v
  143.                                 end
  144.                         end
  145.                 end
  146.                
  147.                 if closest and closest:IsPlayer() and closest:Alive() then
  148.                         local head = closest:LookupBone("ValveBiped.Bip01_Head1")
  149.                         local headpos, headang = closest:GetBonePosition(head)
  150.                        
  151.                         LocalPlayer():SetEyeAngles( (headpos-LocalPlayer():GetShootPos()):Angle() )
  152.                         end
  153.                 end
  154.         end)
  155. end
  156. NoSpreadButton = vgui.Create('DButton')
  157. NoSpreadButton:SetSize(160, 25)
  158. NoSpreadButton:SetPos(5, 180)
  159. NoSpreadButton:SetText('No Spread')
  160. NoSpreadButton:SetVisible('true')
  161. NoSpreadButton:SetParent( TopFrame );
  162. NoSpreadButton.DoClick = function()
  163. require( "nospread" )
  164.  
  165. local NormalCones                       = {
  166.         [ "weapon_cs_base" ]    = true,
  167.         [ "weapon_zs_base" ]    = true,
  168. }
  169.  
  170. local HL2Cones                          = {
  171.         [ "weapon_pistol" ]     = Vector( 0.0100, 0.0100, 0.0100 ),
  172.         [ "weapon_smg1" ]               = Vector( 0.04362, 0.04362, 0.04362 ),
  173.         [ "weapon_ar2" ]                = Vector( 0.02618, 0.02618, 0.02618 ),
  174.         [ "weapon_shotgun" ]    = Vector( 0.08716, 0.08716, 0.08716 ),
  175. }
  176.  
  177. function GetCone( wep )
  178.         if !IsValid( wep ) then return 0 end
  179.        
  180.         if HL2Cones[ wep:GetClass() ] then return HL2Cones[ wep:GetClass() ] end
  181.         if NormalCones[ wep.Base ] then return wep.Cone or wep.Primary.Cone or 0 end
  182.        
  183.         local Cone = wep.Cone
  184.        
  185.         if !Cone then
  186.                 Cone = wep.Primary and wep.Primary.Cone or 0
  187.         end
  188.        
  189.         return Cone
  190. end
  191.  
  192. function PredictSpread( cmd, ang )
  193. local w = LocalPlayer():GetActiveWeapon()
  194. local vecCone, valCone = Vector( 0, 0, 0 )
  195.         if ( w && w:IsValid() && ( type( w.Initialize ) == "function" ) ) then
  196.                 valCone = GetCone( w )                    
  197.                 if ( type( valCone ) == "number" ) then
  198.                         vecCone = Vector( -valCone, -valCone, -valCone )                      
  199.                 elseif ( type( valCone ) == "Vector" ) then
  200.                         vecCone = valCone * -1    
  201.                 elseif bit.band( cmd:GetButtons(), IN_SPEED ) or bit.band( cmd:GetButtons(), IN_JUMP ) then
  202.                         vecCone = valCone + (cone * 2 )                        
  203.                 end
  204.         else
  205.                 if ( w:IsValid() ) then
  206.                         local class = w:GetClass()
  207.                         if ( HL2Cones[ class ] ) then
  208.                                 vecCone = HL2Cones[ class ]
  209.                         end
  210.                 end
  211.         end
  212. return DS_manipulateShot( DS_md5PseudoRandom( DS_getUCMDCommandNumber( cmd ) ), ang:Forward(), vecCone ):Angle()
  213. end
  214.  
  215. local angles = Angle( 0, 0, 0 )
  216.  
  217. function GetAngles()
  218.         if ( !ValidEntity( LocalPlayer() ) ) then return end
  219.         angles = LocalPlayer():EyeAngles()
  220. end
  221.  
  222. function Parkinsons( ucmd )
  223.         angles.p = math.NormalizeAngle( angles.p )
  224.         angles.y = math.NormalizeAngle( angles.y )
  225.        
  226.         local correct = 1
  227.         angles.y = math.NormalizeAngle( angles.y + ( ucmd:GetMouseX() * -0.022 * correct ) )
  228.         angles.p = math.Clamp( angles.p + ( ucmd:GetMouseY() * 0.022 * correct ), -89, 90 )
  229.         ucmd:SetViewAngles( angles )
  230.        
  231.         if ( ucmd:GetButtons() && IN_ATTACK > 0 ) then
  232.                 local FakeAngle = PredictSpread( ucmd, angles )
  233.                 FakeAngle.p = math.NormalizeAngle( FakeAngle.p )
  234.                 FakeAngle.y = math.NormalizeAngle( FakeAngle.y )
  235.                 ucmd:SetViewAngles( FakeAngle )
  236.         end
  237. end
  238.  
  239. function CalcView( ply, origin, angles, FOV )
  240.         local ply = LocalPlayer()
  241.         local w = ply:GetActiveWeapon()
  242.        
  243.         local wep = ply:GetActiveWeapon()
  244.         if wep.Primary then wep.Primary.Recoil = 0 end
  245.         if wep.Secondary then wep.Secondary.Recoil = 0 end
  246.         local view = GAMEMODE:CalcView( ply, origin, angles, zoomFOV ) || {}
  247.         view.angles = angles
  248.         view.angles.r = 0
  249.         view.fov = zoomFOV
  250.         return view
  251. end
  252.  
  253. hook.Add( "CalcView", "I hate making hook names", CalcView )
  254. hook.Add( "CreateMove", "YouHaveParkinsons", Parkinsons )
  255. end
  256. RapidFireOffButton = vgui.Create('DButton')
  257. RapidFireOffButton:SetSize(140, 16)
  258. RapidFireOffButton:SetPos(15, 240)
  259. RapidFireOffButton:SetText('Rapid Fire Off')
  260. RapidFireOffButton:SetVisible('true')
  261. RapidFireOffButton:SetParent( TopFrame );
  262. RapidFireOffButton.DoClick = function()
  263. RunConsoleCommand("-muudeaspeedshoot")
  264. end
  265. RapidFireButton = vgui.Create('DButton')
  266. RapidFireButton:SetSize(160, 25)
  267. RapidFireButton:SetPos(5, 210)
  268. RapidFireButton:SetText('Rapid Fire')
  269. RapidFireButton:SetParent( TopFrame );
  270. RapidFireButton.DoClick = function()
  271.         local Shoot = false
  272.         hook.Add("Think", "SpeedShoot", function()
  273.                 if Shoot == false then
  274.                         RunConsoleCommand("+attack")
  275.                         Shoot = true
  276.                 elseif Shoot == true then
  277.                         RunConsoleCommand("-attack")
  278.                         Shoot = false
  279.                 end
  280.         end)
  281. end
  282. concommand.Add("+muudeaspeedshoot", SpeedShoot)
  283.  
  284. function RemoveSpeedShoot()
  285.         hook.Remove("Think", "SpeedShoot")
  286.         RunConsoleCommand("-attack")
  287. end
  288. concommand.Add("-muudeaspeedshoot", RemoveSpeedShoot)
  289. SpeedhackButton = vgui.Create('DButton')
  290. SpeedhackButton:SetSize(160, 25)
  291. SpeedhackButton:SetPos(5, 150)
  292. SpeedhackButton:SetText('Speedhack')
  293. SpeedhackButton:SetVisible('true')
  294. SpeedhackButton:SetParent( TopFrame );
  295. SpeedhackButton.DoClick = function()
  296. require("cvar3")
  297. CreateClientConVar("muudea_setspeed", 2)
  298.  
  299. concommand.Add("muudeaspeed+", function()
  300.         RunConsoleCommand("muudea_setspeed", ""..GetConVarNumber("muudea_setspeed") + 0.5)
  301.         timer.Simple(0.25, function()
  302.                 chat.AddText("Speed is: "..GetConVarNumber("muudea_setspeed").."x normal")
  303.          end)
  304. end)
  305. concommand.Add("muudeaspeed-", function()
  306.         RunConsoleCommand("muudea_setspeed", ""..GetConVarNumber("muudea_setspeed") - 0.5)
  307.         timer.Simple(0.25, function()
  308.                 chat.AddText("SpeedHack Speed is Now: "..GetConVarNumber("muudea_setspeed").."x normal")
  309.          end)
  310. end)
  311.  
  312.  
  313. concommand.Add("+muudeaspeed", function()
  314.         GetConVar("sv_cheats"):SetValue(1)
  315.         GetConVar("host_timescale"):SetValue(GetConVarNumber("muudea_setspeed"))
  316. end)
  317.  
  318. concommand.Add("-muudeaspeed", function()
  319.         GetConVar("host_timescale"):SetValue(1)
  320. end)
  321. end
  322. BypasserButton = vgui.Create('DButton')
  323. BypasserButton:SetSize(160, 25)
  324. BypasserButton:SetPos(5, 120)
  325. BypasserButton:SetText('Bypasser')
  326. BypasserButton:SetVisible('true')
  327. BypasserButton:SetParent( TopFrame );
  328. BypasserButton.DoClick = function()
  329. require("cvar3")
  330. GetConVar("sv_allowcslua"):SetFlags(0)
  331. GetConVar("sv_cheats"):SetFlags(0)
  332. GetConVar("sv_allowcslua"):SetValue(1)
  333. GetConVar("sv_cheats"):SetValue(1)
  334. end
  335. NoclipButton = vgui.Create('DButton')
  336. NoclipButton:SetSize(160, 25)
  337. NoclipButton:SetPos(5, 60)
  338. NoclipButton:SetText('Client Noclip')
  339. NoclipButton:SetVisible('true')
  340. NoclipButton:SetParent( TopFrame );
  341. NoclipButton.DoClick = function()
  342. local SW = {}
  343. SW.Enabled = false
  344. SW.ViewOrigin = Vector( 0, 0, 0 )
  345. SW.ViewAngle = Angle( 0, 0, 0 )
  346. SW.Velocity = Vector( 0, 0, 0 )
  347.  
  348. function SW.CalcView( ply, origin, angles, fov )
  349.         if ( !SW.Enabled ) then return end
  350.         if ( SW.SetView ) then
  351.                 SW.ViewOrigin = origin
  352.                 SW.ViewAngle = angles
  353.                
  354.                 SW.SetView = false
  355.         end
  356.         return { origin = SW.ViewOrigin, angles = SW.ViewAngle }
  357. end
  358. hook.Add( "CalcView", "SpiritWalk", SW.CalcView )
  359.  
  360. function SW.CreateMove( cmd )
  361.         if ( !SW.Enabled ) then return end
  362.        
  363.         // Add and reduce the old velocity.
  364.         local time = FrameTime()
  365.         SW.ViewOrigin = SW.ViewOrigin + ( SW.Velocity * time )
  366.         SW.Velocity = SW.Velocity * 0.95
  367.        
  368.         // Rotate the view when the mouse is moved.
  369.         local sensitivity = 0.022
  370.         SW.ViewAngle.p = math.Clamp( SW.ViewAngle.p + ( cmd:GetMouseY() * sensitivity ), -89, 89 )
  371.         SW.ViewAngle.y = SW.ViewAngle.y + ( cmd:GetMouseX() * -1 * sensitivity )
  372.        
  373.         // What direction we're going to move in.
  374.       local add = Vector( 0, 0, 0 )
  375.       local ang = SW.ViewAngle
  376.       if ( cmd:KeyDown( IN_FORWARD ) ) then add = add + ang:Forward() end
  377.       if ( cmd:KeyDown( IN_BACK ) ) then add = add - ang:Forward() end
  378.       if ( cmd:KeyDown( IN_MOVERIGHT ) ) then add = add + ang:Right() end
  379.       if ( cmd:KeyDown( IN_MOVELEFT ) ) then add = add - ang:Right() end
  380.       if ( cmd:KeyDown( IN_JUMP ) ) then add = add + ang:Up() end
  381.       if ( cmd:KeyDown( IN_DUCK ) ) then add = add - ang:Up() end
  382.    
  383.       // Speed.
  384.       add = add:GetNormal() * time * 500
  385.       if ( cmd:KeyDown( IN_SPEED ) ) then add = add * 2 end
  386.    
  387.       SW.Velocity = SW.Velocity + add
  388.    
  389.       // This stops us looking around crazily while spiritwalking.
  390.       if ( SW.LockView == true ) then
  391.               SW.LockView = cmd:GetViewAngles()
  392.       end
  393.       if ( SW.LockView ) then
  394.               cmd:SetViewAngles( SW.LockView )
  395.       end
  396.    
  397.       // This stops us moving while spiritwalking.
  398.       cmd:SetForwardMove( 0 )
  399.       cmd:SetSideMove( 0 )
  400.       cmd:SetUpMove( 0 )
  401. end
  402. hook.Add( "CreateMove", "SpiritWalk", SW.CreateMove )
  403.  
  404.       SW.Enabled = !SW.Enabled
  405.       SW.LockView = SW.Enabled
  406.       SW.SetView = true
  407.    
  408.       local status = { [ true ] = "ON", [ false ] = "OFF" }
  409.       print( "Muudea NoClip Enabled!" )
  410.                end
  411. concommand.Add( "sw_pos", function() print( SW.ViewOrigin ) end )
  412. MorbusButton = vgui.Create('DButton')
  413. MorbusButton:SetSize(160, 25)
  414. MorbusButton:SetPos(5, 30)
  415. MorbusButton:SetText('Morbus Alien Finder')
  416. MorbusButton:SetVisible('true')
  417. MorbusButton:SetParent( TopFrame );
  418. MorbusButton.DoClick = function()
  419.        for k, v in pairs(player.GetAll()) do
  420.                for k2, v2 in pairs(v:GetWeapons()) do
  421.                        if string.find(v2:GetPrintName(), "Alien") then
  422.                                print(v:Name().." is an Alien Brood!")
  423.                        end
  424.                end
  425.        end
  426. end
  427. end
  428. concommand.Add("openmuudeahack", muudeahack )
  429. chat.AddText(Color( 255, 50, 63 ), "Muudea Hack Loaded! - [email protected]")
  430. chat.PlaySound()
Advertisement
Add Comment
Please, Sign In to add comment