Thread: BoohbahBot v1

Results 1 to 6 of 6
  1. #1
    pcdriza's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    90

    BoohbahBot v1



    yes this is an actual tv show but why



    Code:
    local ply = LocalPlayer()
    local boohbah = {}
    boohbah.Target = nil
    boohbah.Attacking = false
    
    function boohbah.FindTarget()
    	boohbah.Target = nil
    
    	local idx = #player.GetAll()
    	for i = 1, idx do
    		local v = player.GetAll()[i]
    
    		if !v or v == ply or !IsValid(v) or !IsEntity(v) or 0 >= v:Health() or v:IsDormant() then continue end
    
    		local tdata = {
    			start = ply:GetShootPos(), 
    			endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos, 
    			filter = {ply, v}, 
    			mask = MASK_SHOT,
    		}
    
    		local trace = util.TraceLine(tdata)
    		
    		if trace.Fraction == 1 then
    			boohbah.Target = v
    		end	
    	end
    end
    
    function boohbah.Attack(cmd)
    	if boohbah.Attacking then
    		cmd:RemoveKey(IN_ATTACK)
    		boohbah.Attacking = false
    	else
    		cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
    		boohbah.Attacking = true
    	end
    end
    
    function boohbah.Aimbot(cmd)
    	if boohbah.Target != nil then
    		local tpos = (boohbah.Target:GetAttachment(boohbah.Target:Looku  pAttachment("forward")).Pos - ply:GetShootPos()):Angle()
    		cmd:SetViewAngles(tpos)
    		boohbah.Attack(cmd)
    	end
    end
    
    hook.Add("Think", "boohbah.FindTarget", boohbah.FindTarget)
    hook.Add("CreateMove", "boohbah.Aimbot", boohbah.Aimbot)
    no toggle or switch thank me for the pro codes ok bye

  2. #2
    snipwnage3's Avatar
    Join Date
    Jul 2015
    Gender
    female
    Posts
    75
    Reputation
    10
    Thanks
    84
    Quote Originally Posted by pcdriza View Post


    yes this is an actual tv show but why



    Code:
    local ply = LocalPlayer()
    local boohbah = {}
    boohbah.Target = nil
    boohbah.Attacking = false
    
    function boohbah.FindTarget()
    	boohbah.Target = nil
    
    	local idx = #player.GetAll()
    	for i = 1, idx do
    		local v = player.GetAll()[i]
    
    		if !v or v == ply or !IsValid(v) or !IsEntity(v) or 0 >= v:Health() or v:IsDormant() then continue end
    
    		local tdata = {
    			start = ply:GetShootPos(), 
    			endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos, 
    			filter = {ply, v}, 
    			mask = MASK_SHOT,
    		}
    
    		local trace = util.TraceLine(tdata)
    		
    		if trace.Fraction == 1 then
    			boohbah.Target = v
    		end	
    	end
    end
    
    function boohbah.Attack(cmd)
    	if boohbah.Attacking then
    		cmd:RemoveKey(IN_ATTACK)
    		boohbah.Attacking = false
    	else
    		cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
    		boohbah.Attacking = true
    	end
    end
    
    function boohbah.Aimbot(cmd)
    	if boohbah.Target != nil then
    		local tpos = (boohbah.Target:GetAttachment(boohbah.Target:Looku  pAttachment("forward")).Pos - ply:GetShootPos()):Angle()
    		cmd:SetViewAngles(tpos)
    		boohbah.Attack(cmd)
    	end
    end
    
    hook.Add("Think", "boohbah.FindTarget", boohbah.FindTarget)
    hook.Add("CreateMove", "boohbah.Aimbot", boohbah.Aimbot)
    no toggle or switch thank me for the pro codes ok bye
    I recognise this TV Show, I watched it as a kid a few times I think ;-;

  3. #3
    pcdriza's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    90
    Quote Originally Posted by snipwnage3 View Post
    I recognise this TV Show, I watched it as a kid a few times I think ;-;
    you've had a very bad life haven't you

  4. The Following User Says Thank You to pcdriza For This Useful Post:

    ganesh7 (08-29-2015)

  5. #4
    DeVoExploiter's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    34
    hahhahah xD

  6. #5
    ehex's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    150
    Reputation
    22
    Thanks
    555
    Quote Originally Posted by pcdriza View Post
    Code:
    	local idx = #player.GetAll()
    	for i = 1, idx do
    		local v = player.GetAll()[i]
    
    		if !v or v == ply or !IsValid(v) or !IsEntity(v) or 0 >= v:Health() or v:IsDormant() then continue end
    ...
    Please stop with this.

    funny thing is i bet you actually do player iterations like this. Also remember; it's slower.

  7. #6
    Kyouko's Avatar
    Join Date
    May 2015
    Gender
    female
    Posts
    102
    Reputation
    10
    Thanks
    99
    Quote Originally Posted by ehex View Post
    Please stop with this.

    funny thing is i bet you actually do player iterations like this. Also remember; it's slower.
    no dude calling player.GetAll() is faster since it will actually look for players twice
    when you loose an object and you search twice, you have even more chance of finding it
    maybe if player.GetAll() looses some players the second call will find them back?