ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 11293

Gmod Silent Aimbot

by 0xVerplix - 01-25-2016 - 09:17 PM
#1
local ang;
chat.AddText( Color( 0, 0, 255), "Xlag's Silent Aimbot")
chat.AddText( Color( 0, 255, 0), "Hold F To Use The Silent Aimbot")
hook.Add("CreateMove", "", function(ucmd)
if(!ang) then ang = ucmd:GetViewAngles(); end
ang = ang + Angle(ucmd:GetMouseY() * .023, ucmd:GetMouseX() * -.023, 0);
ang.x = math.NormalizeAngle(ang.x);
ang.p = math.Clamp(ang.p, -89, 89);
if(ucmd:CommandNumber() == 0) then
ucmd:SetViewAngles(ang);
return;
end
local target = nil
hook.Add("Think","",function()
if not input.IsKeyDown(KEY_F) then return end
target = nil
local ply = LocalPlayer()
for k,v in next, player.GetAll() do
if ( v == ply ) or ( not v:IsValid() ) or ( v:IsDormant() ) or ( v:Team() == TEAM_SPECTATOR ) or ( v:Health() < 1 ) or ( not v:Alive() ) then
continue 
end
local Visible = { start = ply:GetShootPos(), endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos, filter = {ply,v}, mask = MASK_SHOT}
local tr = util.TraceLine(Visible)
if tr.Fraction == 1 then
target = v
end
end
if ( target != nil ) then
local GetPosition = (target:GetAttachment(target:LookupAttachment("forward")).Pos - ply:GetShootPos()):Angle()
ply:SetEyeAngles(GetPosition)
RunConsoleCommand("+attack")
timer.Simple(0.1, function() 
RunConsoleCommand("-attack")
end)
end
end)
end);
#2
Code:
Put
Hidden Content
You must register or login to view this content.

in the end of the text please


[Image: ToleratedNine.jpg]
#3
where would we put this?
#4
I tried to change some settings manually now game crashes every time even when mod is unistalled. Just reinstall helps.
#5
very smooth my dude

111111111111111111111111111111111111111111

Users browsing: 1 Guest(s)