better comments
This commit is contained in:
parent
10a53385b4
commit
d401d32cda
1 changed files with 4 additions and 5 deletions
9
cheat.py
9
cheat.py
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue