Начинающий
-
Автор темы
- #1
в шапке
C++:
if (config::radarhack) {
const auto client = reinterpret_cast<std::uintptr_t>(GetModuleHandle("client.dll"));
const auto localPlayer = *reinterpret_cast<std::uintptr_t*>(client + offsets::client_dll::dwLocalPlayerPawn);
const auto entityList = *reinterpret_cast<std::uintptr_t*>(client + offsets::client_dll::dwEntityList);
if (localPlayer != NULL) {
if (entityList != NULL) {
const auto listEntry = *reinterpret_cast<std::int32_t*>(entityList + 0x10);
const auto localTeam = *reinterpret_cast<std::int32_t*>(localPlayer + client_dll::C_BaseEntity::m_iTeamNum);
if (listEntry != NULL) {
if (localTeam != NULL) {
for (int i = 0; i < 64; i++)
{
const auto entityController = *reinterpret_cast<std::uintptr_t*>(listEntry + i * 0x78);
if (entityController != NULL) {
//const auto entity = *reinterpret_cast<std::int32_t*>(entityController + client_dll::CBasePlayerController::m_hPawn);
config::gui = false;
//const auto entity = *reinterpret_cast<std::uintptr_t*>(entityController + client_dll::CBasePlayerController::m_hPawn);
//if (entity != NULL) {
//*reinterpret_cast<std::uint32_t*>(entity + client_dll::C_CSPlayerPawn::m_entitySpottedState + client_dll::EntitySpottedState_t::m_bSpottedByMask) = true;
//}
/*const auto entityTeam = *reinterpret_cast<std::int32_t*>(entity + client_dll::C_BaseEntity::m_iTeamNum);
const auto entityHealth = *reinterpret_cast<std::int32_t*>(entity + client_dll::C_BaseEntity::m_iHealth);
if (entityHealth != NULL && entityTeam != NULL && entityTeam != localTeam && entityHealth > 0) {
}*/
}
}
}
}
}
}
}