Skip to content

Aimbot Mode: PID

Back: Aimbot | Sec Aimbot

Main Aimbot

UI Name Config Key Type Range/Options Default Description Notes
Kp Min pid_kp_min float 0.0 to 20.0 3.7 Lower bound of proportional gain. Used when target is near crosshair center.
Kp Max pid_kp_max float 0.0 to 20.0 3.7 Upper bound of proportional gain. Used as distance to center increases.
Ki pid_ki float 0.0 to 100.0 24.0 Integral gain. Compensates persistent tracking error.
Kd pid_kd float 0.0 to 10.0 0.11 Derivative gain. Damps sudden error changes.
Max Output pid_max_output float 1.0 to 200.0 50.0 Output clamp per axis. Limits overshoot and unstable spikes.
X Speed pid_x_speed float 0.1 to 5.0 1.0 X-axis output multiplier. Lets horizontal speed differ from Y axis.
Y Speed pid_y_speed float 0.1 to 5.0 1.0 Y-axis output multiplier. Lets vertical speed differ from X axis.
FOV Size fovsize float 1 to 1000 100 Main FOV used with PID mode. Also used for dynamic Kp interpolation.

Sec Aimbot

UI Name Config Key Type Range/Options Default Description Notes
Kp Min pid_kp_min_sec float 0.0 to 20.0 3.7 Secondary lower bound of proportional gain. Independent from main value.
Kp Max pid_kp_max_sec float 0.0 to 20.0 3.7 Secondary upper bound of proportional gain. Independent from main value.
Ki pid_ki_sec float 0.0 to 100.0 24.0 Secondary integral gain. Independent from main value.
Kd pid_kd_sec float 0.0 to 10.0 0.11 Secondary derivative gain. Independent from main value.
Max Output pid_max_output_sec float 1.0 to 200.0 50.0 Secondary output clamp per axis. Independent from main value.
X Speed pid_x_speed_sec float 0.1 to 5.0 1.0 Secondary X-axis output multiplier. Independent from main value.
Y Speed pid_y_speed_sec float 0.1 to 5.0 1.0 Secondary Y-axis output multiplier. Independent from main value.
FOV Size fovsize_sec float 1 to 1000 150 Secondary FOV used with PID mode. Also used for dynamic Kp interpolation.

Notes

  1. In the UI, this mode is labeled as PID Controller ( RISK ).
  2. Kp is interpolated by distance-to-center: Kp = Kp Min + (Kp Max - Kp Min) * clamp(distance_to_center / FOV, 0, 1).
  3. If Kp Min equals Kp Max, behavior is equivalent to fixed-Kp PID.
  4. Per-axis output is effectively: output = clamp((Kp * err + Ki * integral + Kd * derivative) * axis_speed, -Max Output, Max Output).
  5. Kp Min/Kp Max are auto-corrected if entered in reverse order.

PID Preview (UI)

  1. When mode is PID, a collapsible section named PID Preview is shown in both Main Aimbot and Sec Aimbot tabs.
  2. The chart is a simulated step-response preview based on current PID parameters (Kp Min/Max, Ki, Kd, Max Output, X/Y Speed, FOV Size, and target_fps).
  3. Two curves are rendered in real time while tuning sliders:
  4. Error: simulated remaining tracking error.
  5. Output: simulated PID movement output.
  6. The info line below the chart shows start/end error, peak output, estimated settle frame count, and FPS.
  7. This preview is for tuning reference only; in-game behavior still depends on capture latency, activation state, and input backend timing.

Detailed PID tuning workflow

  1. Prepare a stable baseline before tuning gains.
  2. Set X Speed and Y Speed to 1.0 first, then tune gains.
  3. Use a moderate Max Output (for example 30 to 60) to avoid extreme spikes while tuning.
  4. Keep FOV fixed during tuning so gain behavior is comparable across attempts.
  5. Start with fixed-Kp behavior.
  6. Set Kp Min = Kp Max.
  7. Set Ki = 0 and use a small Kd (for example 0.05 to 0.15).
  8. Increase Kp until tracking becomes fast enough, then back off slightly if oscillation starts.
  9. Add damping with Kd.
  10. Increase Kd in small steps when you see overshoot or left-right shaking.
  11. If motion becomes sluggish or noisy, reduce Kd a bit.
  12. Add Ki last to remove persistent bias.
  13. Increase Ki slowly; large Ki can cause drifting or delayed oscillation.
  14. If crosshair keeps "pushing" after error is near zero, reduce Ki.
  15. Re-enable dynamic Kp range.
  16. Keep Kp Min lower for near-center stability.
  17. Raise Kp Max for faster large-error correction.
  18. Typical pattern: Kp Min around 50% to 80% of Kp Max, then refine by feel.
  19. Re-tune outer parameters.
  20. Raise Max Output if movement saturates too early.
  21. Lower Max Output if bursts are too harsh.
  22. Adjust X Speed/Y Speed only after gain tuning, to correct axis imbalance.

Symptom-to-adjustment guide

Symptom Most likely cause What to adjust first
Crosshair oscillates around target Kp Max too high or Kd too low Lower Kp Max, then increase Kd slightly
Fast snap then bounce-back Clamp too loose + insufficient damping Lower Max Output or raise Kd
Slow to catch far targets Kp Max too low or Max Output too low Increase Kp Max, then Max Output
Near-center micro jitter Kp Min too high / Kd too sensitive Lower Kp Min, reduce Kd slightly
Steady small offset not corrected Ki too low (or zero) Increase Ki a little
Drift or delayed wobble after tracking Ki too high Reduce Ki

Implementation details that affect tuning

  1. Ki and Kd changes reset PID internal state (integral/history) for that aim mode.
  2. Integral term is limited by Max Output / |Ki| when Ki != 0, so Ki and Max Output are coupled.
  3. FOV Size directly changes how quickly Kp moves from Kp Min to Kp Max by distance.
  4. Main and secondary PID settings are fully independent; tune *_sec separately.