diff --git a/extension.cpp b/extension.cpp index 16d6402..40c8a84 100644 --- a/extension.cpp +++ b/extension.cpp @@ -113,6 +113,13 @@ void TransmitManager::Hook_SetTransmit(CCheckTransmitInfo* pInfo, bool bAlways) } } + // if we need block it with owner stats = trasmit + if (!g_Hooked[entity]->CanSee(client)) + { + // blocked + RETURN_META(MRES_SUPERCEDE); + } + auto owner = g_Hooked[entity]->GetOwner(); if (owner == client) { @@ -120,12 +127,6 @@ void TransmitManager::Hook_SetTransmit(CCheckTransmitInfo* pInfo, bool bAlways) RETURN_META(MRES_IGNORED); } - if (!g_Hooked[entity]->CanSee(client)) - { - // blocked - RETURN_META(MRES_SUPERCEDE); - } - if (IsEntityIndexInRange(owner) && !g_Hooked[owner]->CanSee(client)) { // blocked