Fix autobackstab searching for targets even after a valid one was found
This commit is contained in:
parent
a794b49c64
commit
8aebd9d073
@ -355,6 +355,9 @@ static bool doBacktrackStab(bool legit = false)
|
||||
// Get the Best tick
|
||||
for (int i = 1; i <= g_IEngine->GetMaxClients(); i++)
|
||||
{
|
||||
// Found a target, break out
|
||||
if (stab_ent)
|
||||
break;
|
||||
CachedEntity *ent = ENTITY(i);
|
||||
// Targeting checks
|
||||
if (CE_BAD(ent) || !ent->m_bAlivePlayer() || !ent->m_bEnemy() || !player_tools::shouldTarget(ent) || IsPlayerInvulnerable(ent))
|
||||
|
Reference in New Issue
Block a user