better comments

This commit is contained in:
Mylloon 2023-03-31 04:35:07 +02:00
parent 10a53385b4
commit d401d32cda
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -307,7 +307,7 @@ class Cheat(Hack):
local_player + offset["m_aimPunchAngle"] + offset["float"])
).times(2.) # server multiple punch by 2
# AimBot FOV
# AimBot FOV, higher = more aggressive
best_fov = 5.
best_angle = Vec()
@ -358,7 +358,7 @@ class Cheat(Hack):
# We found an ennemy to aim at
if not best_angle.is_zero():
# Smoothing
# Smoothing, more = less efficient
best_angle = best_angle.div(3.)
final_angle = view_angles.plus(best_angle)
@ -366,11 +366,10 @@ class Cheat(Hack):
# Fix angle if needed
final_angle = angle_fixer(final_angle)
# Some sub to adujst the final position
mem.write_float(
client_state + offset["dwClientState_ViewAngles"], final_angle.x - .2)
client_state + offset["dwClientState_ViewAngles"], final_angle.x)
mem.write_float(
client_state + offset["dwClientState_ViewAngles"] + offset["float"], final_angle.y - .1)
client_state + offset["dwClientState_ViewAngles"] + offset["float"], final_angle.y)
self.hack_loop(cheat)