Guest User

functiondump.lua

a guest
May 24th, 2014
1,120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.34 KB | None | 0 0
  1. if QAC then     local printShit = true      local hooker = hook.GetTable    local receive = net.Receive     local sendtoserv = net.SendToServer     local writeint = net.WriteInt   local writebit = net.WriteBit   local start = net.Start     local hairs = pairs     local undack = unpack   local info = debug.getinfo      local shitfunc = function()     end     local shitfunc2 = function()        local poop = net.ReadInt(10)                start("Debug1")                     net.WriteInt(poop, 16)                  sendtoserv()        if ( not printShit ) then return end    end     hooker()["Think"]["penis"] = function()         hook.Remove("OnGamemodeLoaded", "___scan_g_init")       hooker()["OnGamemodeLoaded"]["___scan_g_init"] = shitfunc       receive("Debug2", shitfunc2)        receive("gcontrol_vars", shitfunc)      receive("control_vars", shitfunc)       receive("checksaum", shitfunc)          net.Receivers["Debug2"] = shitfunc2         net.Receivers["gcontrol_vars"] = shitfunc       net.Receivers["control_vars"] = shitfunc        net.Receivers["checksaum"] = shitfunc   end     hook.Remove("OnGamemodeLoaded", "___scan_g_init")   hooker()["OnGamemodeLoaded"]["___scan_g_init"] = shitfunc   receive("Debug2", shitfunc2)    receive("gcontrol_vars", shitfunc)  receive("control_vars", shitfunc)   receive("checksaum", shitfunc)      net.Receivers["Debug2"] = shitfunc2     net.Receivers["gcontrol_vars"] = shitfunc   net.Receivers["control_vars"] = shitfunc    net.Receivers["checksaum"] = shitfunc       start("gcontrol_vars")          writebit()  sendtoserv()    function pairs( ... )       local tbl = { ... }                 local dbg = info(2)         if ( dbg ) then             local src = dbg.short_src           if src:find("cl_qac") then              return hairs( { } )             end                     end                 return hairs(undack(tbl))   end end
  2.  
  3. local GG = {}
  4.  
  5. GG.Use_print_func = GG.Use_print_func or function() end
  6.  
  7. if debug.getinfo(print).short_src == "[C]" then
  8.     GG.Use_print_func = print
  9. elseif debug.getinfo(Msg).short_src == "[C]" then
  10.     GG.Use_print_func = Msg
  11. end
  12.  
  13. GG.Use_print_func("-----------------------")
  14. GG.Use_print_func("-[Good Game] -Starting-")
  15. GG.Use_print_func("-----------------------")
  16.  
  17. GG.Plugin_Name = "Plugin Loaded"
  18.  
  19. GG.Use_print_func("[Good Game] - " .. GG.Plugin_Name.. " GG Table Init")
  20.  
  21. GG.WP = {}
  22. GG.WP['Aimbot'] = true
  23. GG.WP['Big_Aimbot'] = false
  24. GG.WP.StoreTarg = {}
  25.  
  26. GG.Use_print_func("[Good Game] - " .. GG.Plugin_Name.. " Well Played Loaded")
  27.  
  28. GG.ply = FindMetaTable("Player")
  29. function GG.ply:EyeObstructed(ent)
  30.     if (!IsValid(ent)) then return end
  31.     local trace = {start = self:LocalToWorld(self:OBBCenter()), endpos = ent:LocalToWorld(ent:OBBCenter()), filter = {self, ent}, mask = 1174421507};
  32.     local tr = util.TraceLine(trace);
  33.     return (tr.Fraction == 1);
  34. end
  35.  
  36. GG.Targ = function()
  37.    
  38.     if GG.WP['Big_Aimbot'] == true then
  39.         for k,v in pairs(player.GetAll()) do
  40.             if v ~= LocalPlayer() then
  41.                 table.insert(GG.WP.StoreTarg, v)
  42.             end
  43.         end
  44.        
  45.         local targ = LocalPlayer():GetEyeTrace().Entity
  46.        
  47.         if targ and !targ:IsPlayer() then return end
  48.        
  49.         return targ
  50.     end
  51.    
  52.     if GG.WP['Big_Aimbot'] == false then
  53.  
  54.         if #GG.WP.StoreTarg > #player.GetAll() - 1 then GG.WP.StoreTarg = {} end
  55.        
  56.         for k,v in pairs(player.GetAll()) do
  57.             if v ~= LocalPlayer() and LocalPlayer():EyeObstructed(v) and v:Health() > 0 then
  58.                 table.insert(GG.WP.StoreTarg, v)
  59.             end
  60.         end
  61.        
  62.         return table.Random(GG.WP.StoreTarg)
  63.        
  64.     end
  65.    
  66.    
  67. end
  68.  
  69. GG.Rand = function(tbl)
  70.     return tbl[math.random(1,#tbl)]
  71. end
  72.  
  73. local target = NULL
  74.  
  75. function GAMEMODE:CreateMove( uc )
  76.     local wep = LocalPlayer():GetActiveWeapon()
  77.     if not string.find(string.lower(wep:GetClass()),"weapon_") then return end
  78.     if wep and wep:Clip1() <= 0 then
  79.         RunConsoleCommand("+reload")
  80.         timer.Simple(0.2, function() RunConsoleCommand("-reload") end)
  81.     end
  82.     if uc:KeyDown(IN_SPEED) and GG.WP['Aimbot'] == true and GG.WP['Big_Aimbot'] == true then
  83.         target = GG.Targ()
  84.     end
  85.     if uc:KeyDown(IN_ATTACK) and GG.WP['Aimbot'] == true then
  86.         if GG.WP['Big_Aimbot'] == false then
  87.             target = GG.Targ()
  88.         end
  89.         if target ~= nil and target ~= NULL and target:Health() > 0 then
  90.             local targethead = target:LookupBone(GG.Rand({"ValveBiped.Bip01_Spine","ValveBiped.Bip01_Neck1"}))
  91.             if targethead ~= nil then
  92.                 local targetheadpos,targetheadang = target:GetBonePosition(targethead)
  93.                 if LocalPlayer():EyeObstructed(target) and target:IsPlayer() then
  94.                     if wep.Primary ~= nil then
  95.                         wep.Primary.Recoil = 0
  96.                         wep.Primary.Cone = 0
  97.                     end
  98.                     uc:SetViewAngles((targetheadpos - LocalPlayer():GetShootPos()):Angle())
  99.                 end
  100.             end    
  101.         end
  102.     end
  103. end
  104.  
  105. GG.Use_print_func("[Good Game] - " .. GG.Plugin_Name.. " CreateMove Created")
  106.  
  107.  
  108. function GAMEMODE:CalcView( ply, pos, ang, fov )
  109.     local view = {}
  110.  
  111.     view.origin = pos-( ang:Forward()*120 )
  112.     view.angles = ang - Angle(0,0,0)
  113.     view.fov = 50
  114.  
  115.     return view
  116. end
  117.  
  118. function GAMEMODE:ShouldDrawLocalPlayer()
  119.     return true
  120. end
  121.  
  122. GG.Use_print_func("[Good Game] - " .. GG.Plugin_Name.. " CalcView Created")
  123.  
  124. GG.Use_print_func("-----------------")
  125. GG.Use_print_func("[Good Game] -End-")
  126. GG.Use_print_func("-----------------")
  127.  
  128. GG.Url = "https://dl.dropboxusercontent.com/u/17743302/update.txt"
  129. GG.Version = 0.1
  130. http.Fetch(GG.Url, function(c)
  131. local ver = string.Explode(" ",c)
  132.  
  133. if GG.Version != tonumber(ver[1]) then
  134.     print("Your version is out of date download newest here.. "..tostring(ver[2]))
  135.     else
  136.     print("Your version is up to date")
  137. end
  138.  
  139. end, function(err) print(err) end)
Advertisement
Add Comment
Please, Sign In to add comment