Giter Site home page Giter Site logo

overwatch-aim-assist's Introduction

Overwatch Aim Assistance

A program written in C++ that helps a player aim at a target in Overwatch (includes trigger bot functionality).

Demo: https://www.youtube.com/watch?v=tgjQR0CJ2Ys&feature=youtu.be

How it Works

The program uses Windows GDI to capture a screenshot. The screenshot is scanned in an attempt to find a player's health bar. Upon finding a health bar, the program will scan for the player's border from which it can obtain the coordinates of the player's head or body.

The program can then either move the cursor smoothly to the desired location so as to simulate human like movements or just snap directly to the target location. Trigger bot functionality was also implemented, however just like all other external colour recognition software, the crosshair must cross the target's border in order to fire.

alt tag

Limitations

  • Shield/Armor bars were not included in the function that calculates the width of the health bar. Should be easy to implement.
  • Program only scans for red borders which can occasionally change. Can use opencv's canny function to overcome this or scan for different border colours.
  • Mouse movements are based on a constant (0.116) which is not perfectly accurate with varying distances.
  • Trigger bot needs to be optimised to exclude clustered pixels which are not part of a border. This is problematic in maps with a lot of red such as route 66.
  • No threading.

overwatch-aim-assist's People

Contributors

jpxue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

overwatch-aim-assist's Issues

Mouse not moving to the enemy

The mouse not moving to the enemy's head/body at all. It just keep moving to the lower right corner whenever the Hp bar is presented. I tried with both borderless 1920x1080 and 1280x720. With different mouse sen but still not work. Seems like it calculated the coordination of the enemy's head/body wrong.

Issue with performance

Other aim assist and this are low frame when running capturing~searching in 32bit color mode.

but, example autohotkey can capture 16bit color mode so it does't slow/drop Frame

How can I capture 16bit color screen.
I did searching, I don't know.

could you teach me how to compile it?

I'm a newbie in vb things, but i know it's perfect program for my ow life..

but i don't know how to compile it , there is no project file? to open it, many cpp, h files there

plz tell me how to compile it and apply it to ow in detail..

thanks for all.. (even i install vb 2015 from website only for this)

Could you make it run for Ana?

I've been using it well, but need a aimbot which aiming to alliance. (for Ana)

Is it possible to make it as chaning little bit part of code?

Request for updating the aimbot

Hey Jpxue!
Can you please update the aimbot with fast aiming method?
I have tried to change the integers in the mouse.cpp but i haven't got any good results yet.
else can you recommend fast setting without humanizing?
Thanks

issue with aim assist

default
I have a very big issue with aim assist
so, if the aim has to go to the yellow circle, it goes to the red one...
how can i solve this

localtime

Hi man I have issues using localtime it gives c4996 error dunno why
error2
error1

Blank screenshot or incorrect settings

I tested using vs2015, only made some changes to work here, but it is absurd lag and delay to detect.

the project is good, it should be based on the hack soldier82:
https://soldier82.com/

he and based on red-bordered set for the first shot after the first hit, it fits the hp bar.

here gif ONLY detect HP Bar:
https://i.imgur.com/8NfMjo3.gif

here gif red-bordered AND HP Bar:
https://i.imgur.com/sbevqBf.gif
yellow line: probably an enemy.
Red line: enemy according to the hp bar

multiples targets:
https://i.imgur.com/hvT20Ah.gif

program:
https://i.imgur.com/1UaIhQr.png
https://i.imgur.com/E17pQRi.png

probably used opencv.

OpenCV:
http://imgur.com/YDgBwXT
http://imgur.com/F1LHNbz

I created something with opencv to detect the contours, and even the bar. but I do not know much of opencv.

thank you for the source files.

Question about switching between game modes-关于切换快速模式之后失效的问题

This issue has been solved, please read the answer from the owner. I hope you love the answer as I do!

HI,thank you for provide such an interesting assist tool!
I have successfully run it on my desktop. But with just some confusions: When I switched from one mode to another, for example, training ->quick game, the tool would be failed and I have to restart the Overwatch to re-use this tool again.
I tried to debug, and it seems that after I switch to quick game, the pixel color match (pixel.isHealth) does NOT return a "true". As a result, all following parts cannot be executed (such as "foundAnyRedsBefore"). The next step should check if there is something wrong about the "Capture", but I am not familiar with it and I have no idea about how to solve it.
Update: if you make a screenshot using the official method (key PrtSc as default), it will be saved into username/document/overwatch. But if you paste onto photoshop, it is just a totally black picture. Maybe about image dumping?

Switch to a faster method of capturing the screen.

I find the performance somewhat lacking, even when set to 'release'. You've mentioned in other threads that the screen capture step is the most time consuming (40ms). This can be improved by using more efficient methods.

Some possible solutions include using DirectX and reading from the front buffer or back buffer. Or use Windows Media API for capturing the screen. I think either of these would offer superior performance to GDI.

Can't compile

I don't have the same application as you in your video, I use visual studio 2012 and I don't have the "x64" option.
When I attempt to attach, my overwatch crashes
When I attempt to debug, the program "unable to be found" and "doesn't exist"

aim

hi,i dont't know how to this project, can you help me?

Screen Lock doubt

Is it possible to have screen lock by the code? Since I use a bypass and I still get screenblock
The colors change from nothing in the game and ready :( solution?

Hey can we get in contact?

I have a lot of money and i was wondering if you could make me an overwatch cheat? Are you interested in something like this?

I've met some problems with a similar cheat i wrote myself

Hi, jpxue, are you still working on it? Recently I've written a widowmaker aimbot, but it just cannot work very well. In my aimbot, when I click the midButton, it will automatically locate an enemy. Here's some of my problems:

  1. After I click the midButton, there's a delay of about 10 ms I think, before widowmaker shoots. I think it's because the process of capturing a screenshot is slow. But in your demo video, your bot works pretty well.
  2. The red line around an enemy are not the only thing that is red, so my bot cannot always choose the right target.
    Can we get in contact? Thanks :D

How do I aim my teammates?

The Health Bar of teammates will always exist. (Settings: Show teammate Health Bar)
So program can always find out the teammates, then you can aim them.
How can I modify the program to bring this purpose? (Just change the RGB Values of teammates? What's them? And teammates has the different Health Bar. But the name of the teammate is fixed. Can I only search for the name? )
That's important for an Anna player.
I am a C++ beginner.
Can you tell me how to do that?
Thanks!

Donation

Thanks man. I would like to donate $50. Is there any way I can pay you? You did help me alot ^^

Error E0144 Debugging

C4996 has been fixed but this cannot be fixed by disabling warning with pragma.
E0144: a value of type "const char *" cannot be used to initialize an entity of type "char *"

The only way to fix this error is to make sure every WindowName variables type as const char*.

  1. Change the variable type of WindowName to const char*.
  2. Change Capture(char *windowName) to Capture(const char *windowName) on line 35 in capture.h
  3. Change Capture::Capture(char *windowName) to Capture::Capture(const char *windowName) on line 21 in capture.cpp

If you did all the things above, the code must work fine.

mouse_event() get detected and screenshots are blocked!

HI jpxue,are you still working on it?Now They(you konw who i refer to-:)) DO DETECT the mouse messages or events,but this is not trivial(we have baskets of methods of mouse simulation),the importance is that they also anti SCREENSHOTS!!! so the DC/Bitmap functions may not work...So I use GetPixel,buf this function is TOOOOO SLOW...so,Any better idea???

Issue with aim assist.

Hello, So I can't seem to get the aim assist to work, triggerbot works just fine.
I was hoping to find a way to resolve this on my own, so I can learn. However I simply have no clue where to begin.

you've already done more than enough by sharing this with us, however if you could point me in the right direction, I'd be grateful

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.