Giter Site home page Giter Site logo

Comments (9)

Fink233H avatar Fink233H commented on May 27, 2024

By the way, Blizzard gave me a screen lock, how do I bypasses them?

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 27, 2024

I would assume that the principle is still similar, find FRIENDLY player health bars (clusters of white?).
Once you find the health bar determine how much health player has, you can do this by scanning horizontally for HSV ranges that are of a typical health bar (hue+sats). From there on just use simple proportion to determine health % given that you know that width of a normally full health bar (I believe it is ~150?) and continue from there.

I address bypassing screen locks here:
#30
#29

from overwatch-aim-assist.

Fink233H avatar Fink233H commented on May 27, 2024

Can you give me specific code?
I don't know anything.
Can you update the repository?

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 27, 2024

I stopped developing this and the code that I have that addresses your issue are in other projects which I do not intend to publish (didn't write the code with publishing in mind).

What can't you understand? I do not mean to come across as condescending, but if you are expecting full-fledged copy/paste solutions to your problem without putting any effort in yourself then you will find no one that's willing to help you.

from overwatch-aim-assist.

Fink233H avatar Fink233H commented on May 27, 2024

OK..Sorry
Which part of the code should I modify?

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 27, 2024

For Ana bot you mean? You don't have to modify code (you can but not necessary) just write a new function that searches for a white clusters of pixels that correspond to the friendly player's health bar, you can base it off Screenshot::findPlayer() but can just exclude the part of the code that scans for the player's border and use offsets like in other bots.
Once you complete that function, call it and apply whatever logic you want to it.

White health bar pixels are slightly different from the red health bar pixels which are always 255,0,19 but if you apply a tolerance (similar to Screenshot::isRed()) you can get away with this, or just use HSV values (you can use Qt with the QColor class if you don't want to define HSV classes yourself).
Working with HSV is extremely helpful (built another project with HSV and achieved MUCH more).

For the bypass it depends on what route you're going to take which I explained in one of the links (mouse driver? d3d hook? setwindowsaffinity?).

from overwatch-aim-assist.

Fink233H avatar Fink233H commented on May 27, 2024

Is HSV this?(OpenCV?)
image

But the 255,0,19 is the red health bar, can you tell me the white health bar value?
I can't understand the Screenshot::findPlayer codes.
Where should I modify in the code?

And how to fix the triggerBot? (You can answer this question if you want)

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 27, 2024

"I can't understand the Screenshot::findPlayer codes."
Good to know I was wasting my time.
You need to learn C++ then because the code in findPlayer() is extremely basic C (variables, loops, branching statements). You cannot modify any code if you don't know how to program and I am wasting my time by answer your questions (even if I gave you the most in depth answer you wouldn't be able to implement any changes).

"Can you tell me the white health bar value"
You mean to tell me you don't know how to press print screen, paste it into paint and use the colour picker to get RGB values for your white colour?

"Is HSV this?(OpenCV?)"
OpenCV supports HSV too yes as do MANY libraries. HSV is simply a construct encompassing 3 numbers, Hue, Saturation, Brightness with hue being the most useful number in our case (coupled with sat too) as a single number (spanning from 0-360) will tell you what the colour is. For white pixels saturation+brightness is also important.

Start of with to find out what HSV is and to find how to get RGB values: https://www.youtube.com/watch?v=Tdcsqd1RnMw

from overwatch-aim-assist.

Fink233H avatar Fink233H commented on May 27, 2024

You mean to tell me you don't know how to press print screen, paste it into paint and use the colour picker to get RGB values for your white colour?

I tried it! But they are transparent, I can't get accurate values. (By ColorCop)

I have studied C++, but I am not studied it too deep.
I also want to improve my Programming skills.

I have studied C++, but I am not studied it too deep.
I also want to improve my Programming skills very much.

At last, thanks for your help!
Thank you for spending precious time on me.
I will study hard to learn programming to improve my Programming skills.
When I have achieved, I may contact you again.
Can I ask you questions when I encounter other problems on the road of knowledge?

Please close this issues.

from overwatch-aim-assist.

Related Issues (20)

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.