Fix Autobackstab issues

This commit is contained in:
BenCat07 2020-07-05 18:18:37 +02:00
parent 946ccc4649
commit 1c86a3eff9

View File

@ -102,7 +102,7 @@ static bool angleCheck(CachedEntity *target, std::optional<Vector> target_pos, V
{
Vector target_worldspace;
VectorLerp(RAW_ENT(target)->GetCollideable()->OBBMins(), RAW_ENT(target)->GetCollideable()->OBBMaxs(), 0.5f, target_worldspace);
target_worldspace += LOCAL_E->m_vecOrigin();
target_worldspace += target->m_vecOrigin();
vecToTarget = target_worldspace - local_worldspace;
}