-
Автор темы
- #1
So since valve fucked models imma just do a quick release for yall...
In your GetEyeAngles hook:
Credits:
In your GetEyeAngles hook:
C++:
QAngle* __fastcall Hooks::hkGetEyeAngles(void* ecx, void* edx) {
static int* WantedReturnAddress1 = (int*)Utils::PatternScan(GetModuleHandle("client.dll"), "8B CE F3 0F 10 00 8B 06 F3 0F 11 45 ? FF 90 ? ? ? ? F3 0F 10 55 ?"); //Update Animations X/Y
static int* WantedReturnAddress2 = (int*)Utils::PatternScan(GetModuleHandle("client.dll"), "F3 0F 10 55 ? 51 8B 8E ? ? ? ?"); //Update Animations X/Y
static int* WantedReturnAddress3 = (int*)Utils::PatternScan(GetModuleHandle("client.dll"), "8B 55 0C 8B C8 E8 ? ? ? ? 83 C4 08 5E 8B E5"); //Retarded valve fix
static auto oGetEyeAngles = playertable_hook.GetOriginal<Hooks::GetEyeAngles>(170);
if (_ReturnAddress() != WantedReturnAddress1 && _ReturnAddress() != WantedReturnAddress2 && _ReturnAddress() != WantedReturnAddress3)
return oGetEyeAngles(ecx);
if (!ecx || ((C_BasePlayer*)ecx)->EntIndex() != g_EngineClient->GetLocalPlayer())
return oGetEyeAngles(ecx);
return &g_CheatVars.LastSentEyeAngles;
}
Пожалуйста, авторизуйтесь для просмотра ссылки.