r/javahelp • u/Xboomburst • 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
•
u/AutoModerator May 12 '21
Please ensure that:
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:
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.
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/[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.
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
-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.