diff --git a/src/hacks/Aimbot.cpp b/src/hacks/Aimbot.cpp index a858c28c..abf6970d 100644 --- a/src/hacks/Aimbot.cpp +++ b/src/hacks/Aimbot.cpp @@ -54,7 +54,7 @@ static settings::Float proj_start_vel{ "aimbot.projectile.initial-velocity", "0" static settings::Float sticky_autoshoot{ "aimbot.projectile.sticky-autoshoot", "0.5" }; static settings::Boolean aimbot_debug{ "aimbot.debug", "0" }; -static settings::Boolean engine_projpred{ "aimbot.debug.engine-pp", "1" }; +settings::Boolean engine_projpred{ "aimbot.debug.engine-pp", "1" }; static settings::Boolean auto_spin_up{ "aimbot.auto.spin-up", "0" }; static settings::Boolean minigun_tapfire{ "aimbot.auto.tapfire", "false" }; diff --git a/src/prediction.cpp b/src/prediction.cpp index 1404ad0c..c8806c2b 100644 --- a/src/prediction.cpp +++ b/src/prediction.cpp @@ -9,6 +9,11 @@ #include #include +namespace hacks::shared::aimbot +{ +extern settings::Boolean engine_projpred; +} + static settings::Boolean debug_pp_extrapolate{ "debug.pp-extrapolate", "false" }; static settings::Boolean debug_pp_draw{ "debug.pp-draw", "false" }; static settings::Boolean debug_pp_draw_engine{ "debug.pp-draw.engine", "false" }; @@ -720,6 +725,9 @@ static InitRoutine init( EC::CreateMove, []() { + // Don't run if we don't use it + if (!hacks::shared::aimbot::engine_projpred && !debug_pp_draw) + return; for (int i = 1; i < g_GlobalVars->maxClients; i++) { auto ent = ENTITY(i);