diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 9568868a6..0c805d1af 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -1286,6 +1286,9 @@ int CGameClient::IntersectCharacter(vec2 HookPos, vec2 NewPos, vec2& NewPos2, in float Distance = 0.0f; int ClosestID = -1; + if (!m_Tuning.m_PlayerHooking) + return ClosestID; + for (int i=0; iIntraGameTick()); - if (!cData.m_Active || cData.m_Team == TEAM_SPECTATORS || i == ownID || !m_Teams.CanCollide(i, ownID) || !m_PredictedChar.m_Collision) + if (!cData.m_Active || cData.m_Team == TEAM_SPECTATORS || i == ownID || !m_Teams.SameTeam(i, ownID)) continue; vec2 ClosestPoint = closest_point_on_line(HookPos, NewPos, Position);