Solved SendInput Bot issue

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Meow

Gimme food hooman.
Fleep Tier Donator
Nobleman
Apr 24, 2020
168
4,368
7
Game Name
SWBF2
Anticheat
Fairfight
How long you been coding/hacking?
3 years / few months
Coding Language
Nim
I've recoded my internal and can't get the aimbot working again. Mouse movement works but im not aiming at the entity. I'm using the same code in my internal before and it works so im kinda worried that my fault isn't at the aim function itself. ESP / WTS is working fine with that coords.

Assuming that SendInput is using 0, 0 as mid and my overlay setted up as 0, 0 bottom left the debug output looks fine to me:

Debug:
Mid: 960.0 540.0
Entpos: (x: 923.22412109375, y: 535.9989624023438)
Aiming at: -36 4

Mid: 960.0 540.0
Entpos: (x: 992.828857421875, y: 541.8271484375)
Aiming at: 32 -1
Code:
proc aimTo(target: Entity) =
  #[ Debug
  echo "Mid: ", OV.midX, " ", OV.midY
  echo "Entpos: ", target.headpos2d
  echo "Aiming at: ", (target.headpos2d.x - OV.midX).int32, " ", -(target.headpos2d.y - (target.distance.float32 * 0.02) - OV.midY).int32
  ]#
  var input: INPUT
  input.mi = MOUSE_INPUT(
    dwFlags: MOUSEEVENTF_MOVE,
    dx: (target.headpos2d.x - OV.midX).int32,
    dy: -(target.headpos2d.y - (target.distance.float32 * 0.02) - OV.midY).int32,
  )
  SendInput(1, input.addr, sizeof(input).int32)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods