Increase AUTOSTAB_DIST to widen the radius for autostab. AUTOSTAB_DIST_RUN is the radius when LeftShift is pressed (normally running).Code:AUTOSTAB_KEY = "V" AUTOSTAB_DIST = 75 # distance in 1/10th of ft AUTOSTAB_DIST_Z = 50 # max vertical distance (otherwise you try to stab people above/under you) AUTOSTAB_DIST_RUN = 140 # distance for autostab while running KEY_AUTOSTAB_RUN = "VK_LSHIFT" # key mapped to the running key
AUTOSTAB_DIST_Z is the maximum differenc is height - this avoids autostabbing somebody who is on a different level.
Units are in 1/10th of feet. 60 is 6 feet, which is the height of players (from ground to eye).
** edit **
Don't change the KNIFE_VEL value which is used to calculate Tomahawk bot trajectories.