Blog / Home
About
Media Gallery

Welcome
to
Thronic.com

ժʝ_

Counter Strike: Source | Aimbot (reference)


Made for fun during Christmas 2018 to play around with angle calculations, view matrix and all that stuff. Aim Lock with Reduced Recoil (skull/head bone, mbutton5 snap-to-head within a 9° angle / funnel, priority determined by distance and visibility. Simple 3D radar/ESP Overlay (transparent double buffered GDI, no writing or interference of internal performance or graphics).

Media resources, including a video demo from testing.


Extended information and illustration

I have created a JavaScript illustration that uses the same math and partly the same formulas as I do in the program (open in a new window/tab and view its source for more information). Without this sight, the siege would only jump between the enemies. This gives a certain combination of having to aim in a general direction first and the software becomes more of a strong snap-to-target assistant and a little more subtle than just auto aiming everywhere.



Trigonometry math obviously plays a huge part when dealing with aimbots. Normalizing all direction vectors to units makes it practical to take the dot product from those units to calculate the angle difference between the forward player direction vector and enemy location vector. Then it becomes easy to check the 9° funnel. Aiming itself was done using pythagoras theorem (hypotenuse to enemies) with asin and atan functions to find the pitch/yaw angles (I found atan2f in math.h does the heavy lifting of figuring out positive/negative quadrants, atanf doesn't).

Using various public forums, I got enough information to track down the latest memory pointers for critical things needed to create this, there are multiple things I would likely not have been able to reverse on my own. Games based on valve engines are slightly easier than other games, as they provide much debug info via the console and are well documented.

My own trigonometry notes in norwegian during development:
Trig notater | Trig notater 2 (synsvinkler)

I may revisit this project again later. For now this post serves as a future reference.


Original Post: Jan 22nd, '22 21:11 CET.
Updated: Jan 27th, '22 15:56 CET.

JS PC Game Mods
π