diff --git a/data/menu.json b/data/menu.json index ed4dc1d9..4eb02ef3 100644 --- a/data/menu.json +++ b/data/menu.json @@ -182,6 +182,18 @@ "esp_entity", "esp_model_name", "esp_entity_id", + { + "type": "list", + "name": "Colors", + "list": [ + "esp_color_red_red", + "esp_color_red_green", + "esp_color_red_blue", + "esp_color_blue_red", + "esp_color_blue_green", + "esp_color_blue_blue" + ] + }, { "type": "list", "name": "Emoji ESP", @@ -510,3 +522,5 @@ ] } ] + + diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index 665a1cda..dcf4f906 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -344,7 +344,7 @@ void _FASTCALL ProcessEntityPT(CachedEntity* ent) { for (int i = 1; i > 30; i++) { // Subtract 40 multiplyed by the tick from the end distance and use that as our length to check Vector end_vector = forward_t * (end_distance - (40 * i)) + eye_position; - if (end_vector.DistTo(eye_position) < 40) break; + if (end_vector.DistTo(eye_position) <= 5) break; if (draw::WorldToScreen(end_vector, scn2)) { found_scn2 = true; break; @@ -368,7 +368,7 @@ void _FASTCALL ProcessEntityPT(CachedEntity* ent) { // Multiply starting distance by 40, multiplyed by the loop tick Vector start_vector = forward_t * (40 * i) + eye_position; // We dont want it to go too far - if (start_vector.DistTo(trace.endpos) < 40) break; + if (start_vector.DistTo(trace.endpos) <= 5) break; // Check if we have a vector on screen, if we do then we set our status if (draw::WorldToScreen(start_vector, scn1)) { found_scn1 = true;