Fix Charge aimbot issues
This commit is contained in:
parent
a62f8ae9d8
commit
96288c5cbe
@ -6,6 +6,7 @@
|
||||
#include <settings/Bool.hpp>
|
||||
#include <settings/Int.hpp>
|
||||
#include <settings/Key.hpp>
|
||||
#include <PlayerTools.hpp>
|
||||
static settings::Bool enable{ "sandwichaim.enable", "false" };
|
||||
static settings::Button aimkey{ "sandwichaim.aimkey", "<null>" };
|
||||
static settings::Int aimkey_mode{ "sandwichaim.aimkey-mode", "0" };
|
||||
@ -32,6 +33,8 @@ std::pair<CachedEntity *, Vector> FindBestEnt(bool teammate, bool Predict,
|
||||
continue;
|
||||
if (!ent->hitboxes.GetHitbox(1))
|
||||
continue;
|
||||
if (!teammate && player_tools::shouldTarget(ent) != player_tools::IgnoreReason::DO_NOT_IGNORE)
|
||||
continue;
|
||||
Vector target{};
|
||||
if (Predict)
|
||||
target = ProjectilePrediction(ent, 1, sandwich_speed, grav,
|
||||
|
Reference in New Issue
Block a user