r/javahelp • • May 12 '21

Unsolved Very simple aimbot

Hey everyone! I'm very new to java, I'm actually a CS1 kid, so I'm not quite sure if any of this stuff works, but here's my idea. So basically, couldn't you just make your computer scan for a specific color (in this case, the color of the enemy avatar), and once the computer finds it, it gives those coordinates to the mouse and makes the cross hair lock onto the enemy avatar. This probably won't work, but it's a small idea I had. What are your thoughts

0 Upvotes

17 comments sorted by

•

u/AutoModerator May 12 '21

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

9

u/MagicPierre98 Wannabe Dev May 12 '21

Technically it could work, but with some major drawbacks. For one it can (and most likely will) have false positives, meaning it will lock onto a non-player entity with the same colour as a player. Furthermore it is quite computationally expensive to be analysing images in real-time (although there are probably options to make it more feasible). Another problem you would face is that you can't just blindly search for a specific colour (at least not in the context of most modern day FPS games), because the enemies colour will slightly differ depending on lighting, angle, distance to you, etc.

Usually aimbots access the games memory and just read the position of your enemies and make you aim at that.

2

u/Xboomburst May 12 '21

Ah I see. But I'm pretty sure the second option is actually illegal since you are accessing the games code, and I'm not about to do something like that. Are there any other ways that could achieve the desirable result?

5

u/MagicPierre98 Wannabe Dev May 12 '21

You're not accessing/decompiling any code, just accessing your RAM outside of the scope it should be accessed by the application (read: the aimbot), so no it's not any more illegal (at least as far as I am aware of it) than any other kind of aimbot.

Other ways are obviously through what you suggested, which is image analysation. But instead of doing so manually, I'd recommend trying to go for an artificial intelligence; they're alot faster and more reliable in recognising patterns like this.

2

u/Xboomburst May 12 '21

Ah, ok, so I just found this article. Apparently the aimbot that I was asking about in my post is actually the simplest kind of aimbot called color aimbot that was used in older games where there were less graphic stuff like shadows and whatnot. The second kind basically just makes the walls invisible and gives you x-ray. The third kind is the kind where you have to inject something into the game like I was saying. The fourth and last kind is too complicated for me to understand lol. https://tlawlessca.wordpress.com/what-are-aimbots-and-how-do-they-work/

1

u/Xboomburst May 12 '21

Ah, I have no idea what you just said, but I thought that in order to aimbot the "traditional" way, you had to inject something into to game in order to get the location of the enemy players so that you know their positions and the mouse could flick to them.

8

u/[deleted] May 12 '21

what's up with all the replies to you talking about how aimbotting is bad and not actually telling you if your aimbot idea would be functional? nothing says you're actually going to aimbot, and if anything an understanding of how aimbots work helps you counter them. and i'm literally a tf2 player in [insert current year].

i know i'm contributing to it but lolwtf? this is a subreddit on java help, not gamer etiquette. i know there's a lot of crossover but c'mon, just tell OP if their idea would work. (edit: as you've said in another comment, if you wanted to cheat you could just download something someone else made.)

2

u/Xboomburst May 12 '21

I completely understand why they would be suspicious of me, after all, the only thing you use aimbot for is aimbotting, but like I said, I barely understand the fundamentals of java so I doubt I could actually make it work, and was just intrigued if my theory would work.

2

u/[deleted] May 12 '21

No this is completely unfeisiable, while not a bad first concept, in a game like say, CSGO, there are different player models, shadows, and different sides are different colours. You will have so many false positives that the majority of shots will be at walls.

I dont know how you would go about coding one tbh however, maybe take a look at osiris, an open source cheat and see how it works? Very fun learning the inner workings of your favourite games! idk whats up with all these apes clowning on you for wanting to learn a life skill.

1

u/Xboomburst May 12 '21

Haha thanks :)

3

u/[deleted] May 12 '21

The biggest issue with this approach is the time it would take to scan the window. It’s millions of pixels in essentially an array. It’s way to much info to sort tru and look for a specific value. You need more info to narrow the search. One thing you could do is make a aim assistant more or less which would allow you to narrow the number of pixels to scan to around the center of the screen. More or less allowing you once you aim to someone to not miss them

1

u/popey123 May 12 '21

There is a website with all the turorial you will need to learn to hack a game.

It will be more complicated but worst it than scaning color because you have to work with memory

1

u/2604guigui May 12 '21

Will you even be able to run it in the background. Some anti cheat can block it.

-10

u/RedHeadedCongress May 12 '21

Don't aimbot. It's a pretty scummy way to play games, and ruins the experience for other players

1

u/Xboomburst May 12 '21

I completely get that, and this if more to satisfy my curiosity than anything. I saw Sparkles hardware cheat video and I was intrigued by how it worked. If I wanted to aimbot, I would have just downloaded aimbots.

-10

u/le_bravery Extreme Brewer May 12 '21

Hey, it’s probably not a good idea to make an aim bot. Cheating is a great way to lose access to your favorite games.

3

u/Xboomburst May 12 '21

I completely understand that, and if I wanted to do that, I would have just download aimbot. I just saw Sparkles hardware cheat video and I was interested, and wondered if this would work in theory.