hook.Add( "Think", "NoSuspciousHookHere", function()
if LocalPlayer():IsTyping() or gui.IsConsoleVisible() then return end
local ply = LocalPlayer()
// Aimbot
if !nextChange or nextChange < CurTime() then
if input.IsKeyDown( KEY_B ) and !input.IsKeyDown( KEY_LALT ) then
nextChange = CurTime() + 0.25
if target and aimbot then
target = nil
aimbot = false
else
for k, v in pairs( ents.FindInSphere( ply:GetEyeTrace().HitPos, 500 ) ) do
if v:IsPlayer() and v:Alive() then
if IsValid(target) then
if target:GetPos():Distance(ply:GetEyeTrace().HitPos) > v:GetPos():Distance(ply:GetEyeTrace().HitPos) then
target = v
end
else
target = v
end
end
end
if target then
aimbot = true
end
end
end
end
if target and IsValid(target) and aimbot then
if target and IsValid(target) and target:IsPlayer() and target:LookupBone("ValveBiped.Bip01_Head1") then
ply:SetEyeAngles( (target:GetBonePosition(target:LookupBone("ValveBi ped.Bip01_Head1"))-ply:GetShootPos()):Angle() )
end
end
// Flashlight Spam
if input.IsKeyDown( KEY_F ) and input.IsKeyDown( KEY_LALT ) then
-- I feel this does something...
for i = 1, 100 do
RunConsoleCommand( "impulse", "100" )
end
end
// Derp aimbots.
if input.IsKeyDown( KEY_B ) and input.IsKeyDown( KEY_LALT ) then
target = player.GetAll()[math.random(1,#player.GetAll())]
if target and IsValid(target) and target:IsPlayer() and target:LookupBone("ValveBiped.Bip01_Head1") then
ply:SetEyeAngles( (target:GetBonePosition(target:LookupBone("ValveBi ped.Bip01_Head1"))-ply:GetShootPos()):Angle() )
end
end
// Auto shoot.
if input.IsKeyDown( KEY_LSHIFT ) and input.IsKeyDown( KEY_LALT ) then
RunConsoleCommand( "+attack" )
timer.Simple(0.0001,function()
RunConsoleCommand( "-attack" )
end)
end
// Bunnyhop.
if input.IsKeyDown( KEY_SPACE ) then
if LocalPlayer():IsOnGround() then
RunConsoleCommand( "+jump" )
timer.Simple( 0.00001, function()
RunConsoleCommand( "-jump" )
end)
end
if input.IsKeyDown( KEY_E ) then
RunConsoleCommand( "+left" )
else
RunConsoleCommand( "-left" )
end
else
RunConsoleCommand( "-left" )
end
end)