Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("CreateMove", "lolwut", function(u)
- if input.IsKeyDown(KEY_B) then
- if input.IsKeyDown(KEY_DELETE) then hook.Remove("CreateMove", "lolwut") end
- for k,v in pairs(ents.FindInSphere(LocalPlayer():GetShootPos(), 1024*5)) do
- if (v:IsPlayer() and v ~= LocalPlayer() and v:Alive()) then
- if (v:Team() ~= LocalPlayer():Team()) then
- local bpos,bang = v:GetBonePosition(v:LookupBone("ValveBiped.Bip01_Head1"))
- u:SetViewAngles((bpos - LocalPlayer():GetShootPos()):Angle())
- RunConsoleCommand("+attack")
- timer.Simple(0.1, RunConsoleCommand, "-attack")
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement