Fix aimbot aiming at moving stickybombs

This commit is contained in:
vicinity-gush8 2021-12-30 21:26:31 +01:00 committed by LightCat
parent c75ef7a136
commit b514297d15

View File

@ -1080,7 +1080,9 @@ bool IsTargetStateGood(CachedEntity *entity)
return false; return false;
// Moving Sticky? // Moving Sticky?
if (!CE_VECTOR(entity, netvar.vVelocity).IsZero(1.0f)) Vector velocity;
velocity::EstimateAbsVelocity(RAW_ENT(entity), velocity);
if (!velocity.IsZero())
return false; return false;
// Grab the prediction var // Grab the prediction var