From 0970a7778b33255f1ce12d6f31f0180ac79c6a1c Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Thu, 1 Mar 2018 14:51:06 +0100 Subject: [PATCH] fix gay --- src/hacks/ESP.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index 59675366..81766a5b 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -132,8 +132,8 @@ CatVar entity_id(CV_SWITCH, "esp_entity_id", "1", "Entity ID", std::mutex threadsafe_mutex; // Storage array for keeping strings and other data std::array data; -std::array modelcache; -std::array stdiocache; +std::array modelcache; +std::array stdiocache; // Storage vars for entities that need to be re-drawn std::vector entities_need_repaint{}; std::mutex entities_need_repaint_mutex{}; @@ -332,14 +332,15 @@ void CreateMove() if (i <= g_IEngine->GetMaxClients()) { - for (int j = 0; j < 18; ++j) + for (int j = 0; j < 18; ++j) hitboxcache[i][j] = ent->hitboxes.GetHitbox(j); if (draw_bones && ent->m_Type == ENTITY_PLAYER) { - modelcache[i] = RAW_ENT(ent)->GetModel(); + modelcache[i] = RAW_ENT(ent)->GetModel(); if (modelcache[i]) { - stdiocache[i] = g_IModelInfo->GetStudiomodel(modelcache[i]); + stdiocache[i] = + g_IModelInfo->GetStudiomodel(modelcache[i]); } } } @@ -493,7 +494,7 @@ void _FASTCALL ProcessEntityPT(CachedEntity *ent) Vector &eye_angles = NET_VECTOR(RAW_ENT(ent), netvar.m_angEyeAngles); Vector eye_position; - eye_position = hitboxcache[ent->m_IDX][0]; + eye_position = hitboxcache[ent->m_IDX][0]->center; // Main ray tracing area float sy = sinf(DEG2RAD(eye_angles.y)); // yaw