Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("HUDPaint", "TestESP", function()
- for k,v in pairs(player.GetAll()) do
- local pos=v:GetPos():ToScreen()
- draw.DrawText(v:Nick(), "TargetID", pos.x, pos.y, Color(0, 0, 255, 255), 1)
- end
- for k,v in pairs(ents.FindByClass("drug_plant")) do
- local pos=v:GetPos():ToScreen()
- draw.DrawText("DRUGS", "TargetID", pos.x, pos.y, Color(0, 255, 0, 255), 1)
- end
- for k,v in pairs(ents.FindByClass("spawned_money")) do
- local pos=v:GetPos():ToScreen()
- draw.DrawText("MONEY", "TargetID", pos.x, pos.y, Color(0, 255, 0, 255), 1)
- end
- for k,v in pairs(ents.FindByClass("money_printer")) do
- local pos=v:GetPos():ToScreen()
- draw.DrawText("PRINTER", "TargetID", pos.x, pos.y, Color(0, 255, 0, 255), 1)
- end
- end)
- hook.Add("CreateMove", "TestBot", function(cmd)
- if not cmd:KeyDown(IN_ATTACK) then return end
- local bet = 0
- local targ = nil
- for k,v in pairs(player.GetAll()) do
- if v ~= LocalPlayer() and v:GetName() ~= "daervikus" and v:GetName() ~= "Poop on me hard" and v:GetName() ~= "Ass" then
- local trace = {}
- trace.start = v:GetShootPos()
- trace.endpos = LocalPlayer():GetShootPos()
- trace.filter = {v, LocalPlayer()}
- local tr = util.TraceLine(trace)
- if not tr.Hit then
- local between = (v:GetShootPos() - LocalPlayer():GetShootPos()):Normalize()
- if math.abs(LocalPlayer():GetAimVector():DotProduct(between)) > bet then
- bet = math.abs(LocalPlayer():GetAimVector():DotProduct(between))
- targ = v
- end
- end
- end
- end
- if not targ then return end
- local indx = targ:LookupBone("ValveBiped.Bip01_Head1")
- local pos, ang = targ:GetBonePosition(indx)
- cmd:SetViewAngles((pos - LocalPlayer():GetShootPos()):Normalize():Angle())
- end)
Add Comment
Please, Sign In to add comment