Release/Help: Aim-Assist?

Posts 1–9 of 9 · Page 1 of 1
Release/Help: Aim-Assist?
It works but I was wondering if you could add a anti-snap to it so it goes a bit slower. Or if you could make a Trigger Bot that shoots when its aimed only at the head would be nice

Code:
aimassist = {}
 
bot = {}
aimassist.Version = 1.0
aimassist.Owner = LocalPlayer()
aimassist.Enabled = false
aimassist.Target = NULL
 
function aimassist.Think() -- Starting the function
if ( aimassist.Enabled ) then
local ply = LocalPlayer() -- Getting ourselves
local trace = util.GetPlayerTrace( ply ) -- Player Trace part. 1
local traceRes = util.TraceLine( trace ) -- Player Trace part. 2
if traceRes.HitNonWorld then -- If the aimbot aims at something that isn't the map..
        local target = traceRes.Entity -- It's obviously an entity.
        if target:IsPlayer() then -- But it must be a player.
                local targethead = target:LookupBone("ValveBiped.Bip01_Head1") -- In this aimassist we only aim for the head.
                local targetheadpos,targetheadang = target:GetBonePosition(targethead) -- Get the position/angle of the head.
                ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle()) -- And finally, we snap our aim to the head of the target.
        end
end
end
 
 
                                                                        if ( aimassist.AttackState ) then
                                                                                        local targethead = target:LookupBone()
                                                                                        aimassist.AttackState = false
                                                                        end
                                                end
 
hook.Add( "Think", "aimassistThink", aimassist.Think )
hook.Add("Think","aimassist",aimassist)
 
function aimassist.Command( ply, command, args )
        if ( #args == 0 ) then
                        aimassist.Enabled = !aimassist.Enabled
                        if ( aimassist.Enabled ) then
                                        LocalPlayer():ChatPrint( "[AimAssist] Enabled.\n" )
                        else
                                       LocalPlayer():ChatPrint( "[AimAssist] Disabled.\n" )
                        end
                end
        end
 
concommand.Add( "Monster_aimassist",aimassist.Command )
Moved to Discussion & Help.
Sorry, again
You have to learn somehow, don't you?
It's not like you are all born with that knowledge and you were all new to it at one point, whether you like it or not.
@Gray i was born with knowledge and i was coding lua when i was 3 yrs old
also working in Black ops 2 ?

and where i should write this code?
Quote Originally Posted by crazyself View Post
also working in Black ops 2 ?

and where i should write this code?
Yes. You have to write the code in AHK.
Quote Originally Posted by crazyself View Post
also working in Black ops 2 ?

and where i should write this code?
The question here is how are you this special?
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us