I only has my not so old wich is bugged, duh.. well I got a old one... but dat is really basic n shit..
CreateClientConVar("bsic_triggerbot", 0, true, false)
function triggeerbot()
if GetConVarNumber("bsic_triggerbot") == 1 then
target = LocalPlayer():GetEyeTrace().Entity
if LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() and (target:IsPlayer() or target:IsNPC()) then
if !Firing then
RunConsoleCommand( "+attack" )
LocalPlayer():GetActiveWeapon().SetNextPrimaryFire ( LocalPlayer():GetActiveWeapon() ) // idunno.
Firing = true
else
RunConsoleCommand( "-attack" )
Firing = false
end
end
end
end
hook.Add("Think", "Triggeerbothook", triggeerbot)