Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Aimbot( cmd )
- FakeAngles(cmd)
- bhop(cmd)
- local target = FindTarget()
- if IsValid( target ) and CanFire() then
- bSendPacket = true
- AAA( target )
- local AimPos = ( GetHeadPos( target ) - LocalPlayer():GetShootPos() ):Angle()
- AimPos:Normalize()
- if AimPos[1] > 0 then
- AimPos[1] = -AimPos[1] - 180
- elseif AimPos[1] < 0 then
- AimPos[1] = -AimPos[1] + 180
- else
- AimPos[1] = -AimPos[1] + 180
- end
- AimPos[2] = AimPos[2] + 180
- cmd:SetForwardMove( -cmd:GetForwardMove() )
- cmd:SetViewAngles( AimPos )
- PredictSpread( cmd )
- cmd:SetButtons( bit.bor(cmd:GetButtons(), IN_ATTACK) )
- FixMove(cmd)
- else
- AA( cmd )
- end
- end
- hook.Add("CreateMove", "zz", Aimbot)
- local function DrawPlayer( Target )
- local Min = Target:GetPos();
- local Max = Min + Vector( 0, 0, 70 );
- Min,Max = Min:ToScreen(), Max:ToScreen();
- local Height = (Min.y - Max.y);
- local Width = Height * 0.5;
- surface.SetDrawColor( 0, 255, 0, 255 );
- surface.DrawOutlinedRect(Max.x - (Width*.5), Max.y, Width, Height);
- for i = 1, Target:GetBoneCount() do
- local Parent = Target:GetBoneParent(i)
- if Parent == -1 then continue end
- local FirstBone,SecondBone = Target:GetBonePosition(i), Target:GetBonePosition(Parent)
- if Target:GetPos() == FirstBone then continue end
- local LineStart, LineEnd = FirstBone:ToScreen(), SecondBone:ToScreen()
- surface.DrawLine( LineStart.x, LineStart.y, LineEnd.x, LineEnd.y )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement