-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Код:
void __stdcall Hooks::suppress_list::hook(int a2, bool a3) {
static auto OnRenderStart_Return = Utils::PatternScan(GetModuleHandleA("client.dll"), "FF 50 40 8B 1D ? ? ? ?") + 0x3;
static auto FrameNetUpdateEnd_Return = Utils::PatternScan(GetModuleHandleA("client.dll"), "5F 5E 5D C2 04 00 83 3D ? ? ? ? ?");
if (g_LocalPlayer && g_LocalPlayer->IsAlive()) {
if (_ReturnAddress() == OnRenderStart_Return) {
static auto set_abs_angles = Utils::PatternScan(GetModuleHandleA("client.dll"), "55 8B EC 83 E4 F8 83 EC 64 53 56 57 8B F1 E8");
reinterpret_cast<void(__thiscall*)(void*, const QAngle&)>(set_abs_angles)(g_LocalPlayer, QAngle(0.0f, g_AnimState.m_flGoalFeetYaw, 0.0f));
}
else if (_ReturnAddress() == FrameNetUpdateEnd_Return) {
Skins::Get().OnFrameStageNotify(true);
if (ClientFrameStage_t::FRAME_NET_UPDATE_POSTDATAUPDATE_START) {
if (g_LocalPlayer->m_iTeamNum() == 3)
Misc::Get().AgentChanger(Cfg.misc_model_type_ct - 1, g_EngineClient->GetLocalPlayer());
if (g_LocalPlayer->m_iTeamNum() == 2)
Misc::Get().AgentChanger(Cfg.misc_model_type_tt - 1, g_EngineClient->GetLocalPlayer());
}
}
}
else if (ClientFrameStage_t::FRAME_NET_UPDATE_START)
Visuals::Get().NoSmoke();
}