From d8442fccb4f2259eb4b11b808314f8bee668eb7f Mon Sep 17 00:00:00 2001 From: K4SPERSKY6955 Date: Tue, 25 Jun 2024 00:05:04 +0200 Subject: [PATCH 01/10] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11fa686..d09ed39 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,16 @@ Not detected. ## Features * Unlimited UV light -* Fullbright (allows your flashlight to light a lot more) +* Fullbright * Player ESP +* Player Skeleton ESP * Player Snaplines +* Azazel ESP +* Azazel Skeleton ESP +* Azazel Snapline +* Item ESP +* Demon ESP +* Goat/Rat ESP * Spawn any item * Force Start The Game * Instant Win @@ -31,7 +38,7 @@ Not detected. * Send Jumpscare To Players * Kill yourself/everyone -# How To Install +## How To Install [https://www.youtube.com/watch?v=uBwTqp5B4gU](https://www.youtube.com/watch?v=uBwTqp5B4gU) -- 2.52.0 From 4951344f1d9e12a5190f14ffb113e2f09914c83c Mon Sep 17 00:00:00 2001 From: K4SPERSKY6955 Date: Tue, 25 Jun 2024 00:15:38 +0200 Subject: [PATCH 02/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d09ed39..2592c09 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Not detected. ## How To Install -[https://www.youtube.com/watch?v=uBwTqp5B4gU](https://www.youtube.com/watch?v=uBwTqp5B4gU) +[https://www.youtube.com/watch?v=vIlQj3Xs-6g](https://www.youtube.com/watch?v=vIlQj3Xs-6g) ## Building from source -- 2.52.0 From ca5c44dd380b887043bf28612ffc1ba39b78982b Mon Sep 17 00:00:00 2001 From: K4SPERSKY6955 Date: Tue, 25 Jun 2024 21:50:13 +0200 Subject: [PATCH 03/10] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2592c09..749919b 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ Not detected. * Unlimited UV light * Fullbright * Player ESP -* Player Skeleton ESP +* Player Skeleton ESP (SOON) * Player Snaplines * Azazel ESP -* Azazel Skeleton ESP +* Azazel Skeleton ESP (SOON) * Azazel Snapline * Item ESP * Demon ESP @@ -40,7 +40,7 @@ Not detected. ## How To Install -[https://www.youtube.com/watch?v=vIlQj3Xs-6g](https://www.youtube.com/watch?v=vIlQj3Xs-6g) +[https://www.youtube.com/watch?v=uBwTqp5B4gU](https://www.youtube.com/watch?v=uBwTqp5B4gU) ## Building from source -- 2.52.0 From a462aa0afcdc62c5a980890546f7f531772fa380 Mon Sep 17 00:00:00 2001 From: Jadis0x <49281043+jadis0x@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:23:37 +0300 Subject: [PATCH 04/10] Fix minor issues and add new feature - Fixed crash issue that occurred after activating Azazel's speed and returning to the menu - Added GetAzazelName() function - Added Rank Spoofer --- lib/private/ClientHelper.cpp | 26 +++++++++++++++++++++----- lib/public/ClientHelper.h | 2 ++ user/features/menu.cpp | 4 ++-- user/features/misc/misc.cpp | 5 +---- user/hooks/hooks.cpp | 6 +++++- 5 files changed, 31 insertions(+), 12 deletions(-) diff --git a/lib/private/ClientHelper.cpp b/lib/private/ClientHelper.cpp index 6014198..6fd1b30 100644 --- a/lib/private/ClientHelper.cpp +++ b/lib/private/ClientHelper.cpp @@ -74,12 +74,16 @@ bool IsSequencePlaying() // Return false if the object was not found. if (survival == nullptr) return false; - bool isEndingPlaying = app::Survival_IsEndingPlaying(survival, nullptr); - bool isJumpScarePlaying = app::Survival_IsJumpScarePlaying(survival, nullptr); - bool isStartingToPlayFailEnding = app::Survival_StartingToPlayFailEnding(survival, nullptr); + if (app::Survival_IsEndingPlaying != nullptr || app::Survival_IsJumpScarePlaying != nullptr || app::Survival_StartingToPlayFailEnding != nullptr) { + bool isEndingPlaying = app::Survival_IsEndingPlaying(survival, nullptr); + bool isJumpScarePlaying = app::Survival_IsJumpScarePlaying(survival, nullptr); + bool isStartingToPlayFailEnding = app::Survival_StartingToPlayFailEnding(survival, nullptr); - // Return true if any sequence is playing. - return isEndingPlaying || isJumpScarePlaying || isStartingToPlayFailEnding; + // Return true if any sequence is playing. + return isEndingPlaying || isJumpScarePlaying || isStartingToPlayFailEnding; + } + + return false; } app::GameObject* GetAzazel(app::Survival* survival) @@ -110,6 +114,18 @@ std::string SceneName() return std::string(""); } +std::string GetAzazelName() +{ + if (IsInGame()) { + app::InGameHelpers* inGameHelpers = app::InGameHelpers_get_singleton(nullptr); + + if (inGameHelpers) + return il2cppi_to_string(app::InGameHelpers_GetAzazelName(inGameHelpers, nullptr)); + } + + return std::string("Azazel"); +} + float Time_DeltaTime() { diff --git a/lib/public/ClientHelper.h b/lib/public/ClientHelper.h index 5b368d3..e345e5a 100644 --- a/lib/public/ClientHelper.h +++ b/lib/public/ClientHelper.h @@ -13,4 +13,6 @@ bool IsSequencePlaying(); app::GameObject* GetAzazel(app::Survival* survival); std::string SceneName(); +std::string GetAzazelName(); + float Time_DeltaTime(); \ No newline at end of file diff --git a/user/features/menu.cpp b/user/features/menu.cpp index 5ac646e..0768339 100644 --- a/user/features/menu.cpp +++ b/user/features/menu.cpp @@ -319,15 +319,15 @@ void DrawMiscTab() { if (ImGui::Button("Make random noise")) { //Misc::PlayRandomSound(); } - ImGui::Checkbox("Walk in lobby", &settings::walk_in_lobby); ImGui::Checkbox("Auto respawn", &settings::auto_respawn); + */ ImGui::Checkbox("Spoof level", &settings::spoof_level); ImGui::InputInt("New level", &settings::new_level); - */ + ImGui::Checkbox("EXP Modifier", &settings::exp_modifier); ImGui::SliderInt("Amount", &settings::new_exp, 0, 5000); diff --git a/user/features/misc/misc.cpp b/user/features/misc/misc.cpp index 1f93bfa..55e8357 100644 --- a/user/features/misc/misc.cpp +++ b/user/features/misc/misc.cpp @@ -94,7 +94,7 @@ void Misc::InstantWin() std::string _scene = SceneName(); - if (_scene == std::string("Menu") && !IsHost() && !Player::GetLocalPlayer()) return; + if (_scene == std::string("Menu") || !IsHost() || !Player::GetLocalPlayer()) return; int32_t progress = 10; @@ -104,7 +104,6 @@ void Misc::InstantWin() if (_MapController) { // DO_APP_FUNC(0x00930CD0, void, MapController_SetProgressTo, (MapController * __this, int32_t progress, MethodInfo * method)); - if (app::MapController_SetProgressTo != nullptr) { app::MapController_SetProgressTo(_MapController, progress, nullptr); } @@ -116,7 +115,6 @@ void Misc::InstantWin() if (_SlaughterhouseAltarController) { // DO_APP_FUNC(0x0050DEB0, void, SlaughterhouseAltarController_SkipToGoat, (SlaughterhouseAltarController * __this, int32_t number, MethodInfo * method)); - if (app::SlaughterhouseAltarController_SkipToGoat != nullptr) { app::SlaughterhouseAltarController_SkipToGoat(_SlaughterhouseAltarController, progress, nullptr); } @@ -128,7 +126,6 @@ void Misc::InstantWin() if (_SurvivalObjectBurnController) { // DO_APP_FUNC(0x00562590, void, SurvivalObjectBurnController_SkipToGoat, (SurvivalObjectBurnController * __this, int32_t number, MethodInfo * method)); - if (app::SurvivalObjectBurnController_SkipToGoat != nullptr) { app::SurvivalObjectBurnController_SkipToGoat(_SurvivalObjectBurnController, progress, nullptr); } diff --git a/user/hooks/hooks.cpp b/user/hooks/hooks.cpp index def0949..75e6cb5 100644 --- a/user/hooks/hooks.cpp +++ b/user/hooks/hooks.cpp @@ -94,6 +94,10 @@ typedef void(__stdcall* TNolanBehaviour_Update)(app::NolanBehaviour*, MethodInfo TNolanBehaviour_Update oNolanBehaviour_Update = NULL; void __stdcall hNolanBehaviour_Update(app::NolanBehaviour* __this, MethodInfo* method) { + if (settings::spoof_level && IsLocalPlayer(__this)) { + Misc::RankSpoofer(settings::new_level); + } + if (settings::fly && IsLocalPlayer(__this)) { float speed = settings::fly_speed; @@ -159,7 +163,7 @@ typedef void(__stdcall* TNolanBehaviour_FixedUpdate)(app::NolanBehaviour*, Metho TNolanBehaviour_FixedUpdate oNolanBehaviour_FixedUpdate = NULL; void __stdcall hNolanBehaviour_FixedUpdate(app::NolanBehaviour* __this, MethodInfo* method) { - if (settings::freeze_azazel && IsHost()) { + if (settings::freeze_azazel && IsHost() && IsInGame()) { app::GameObject* goAzazel = __this->fields.m_Survival->fields.m_Azazel; if (goAzazel) { -- 2.52.0 From c99f820fa61bc6910b6ca0ff1f795ca166b99643 Mon Sep 17 00:00:00 2001 From: Jadis0x <49281043+jadis0x@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:12:21 +0300 Subject: [PATCH 05/10] crashing issues fixed Fixed random crashes occurring while ESP is active. Tested extensively on several maps without crash reports. I believe the issue is resolved --- lib/private/ClientHelper.cpp | 40 ++++++++++++++++++++++-------- lib/public/ClientHelper.h | 5 ++-- lib/public/UnityEngine/Transform.h | 6 ++++- user/features/esp/esp.cpp | 8 +++--- user/hooks/hooks.cpp | 18 ++++++++------ 5 files changed, 51 insertions(+), 26 deletions(-) diff --git a/lib/private/ClientHelper.cpp b/lib/private/ClientHelper.cpp index 6fd1b30..46beb25 100644 --- a/lib/private/ClientHelper.cpp +++ b/lib/private/ClientHelper.cpp @@ -21,6 +21,28 @@ bool IsHost() return app::BoltNetwork_get_IsServer(NULL); } +app::Survival* GetSurvivalObject() +{ + static app::Survival* cachedSurvival = nullptr; + + if (cachedSurvival == nullptr || Object::IsNull((app::Object_1*)cachedSurvival)) { + cachedSurvival = Object::FindObjectOfType("Survival"); + } + + return cachedSurvival; +} + +app::OptionsHelpers* GetOptionsHelpersObject() +{ + static app::OptionsHelpers* cachedOptionsHelpers = nullptr; + + if (cachedOptionsHelpers == nullptr || Object::IsNull((app::Object_1*)cachedOptionsHelpers)) { + cachedOptionsHelpers = Object::FindObjectOfType("OptionsHelpers"); + } + + return cachedOptionsHelpers; +} + bool IsLocalPlayer(app::NolanBehaviour* player) { auto boltEntity = app::EntityBehaviour_get_entity((app::EntityBehaviour*)player, NULL); @@ -59,7 +81,7 @@ bool IsPlayerCrawling(app::GameObject* go) bool IsInGame() { - app::OptionsHelpers* optionsHelpers = Object::FindObjectOfType("OptionsHelpers"); + app::OptionsHelpers* optionsHelpers = GetOptionsHelpersObject(); if (optionsHelpers) return optionsHelpers->fields._inGame_k__BackingField; @@ -69,20 +91,17 @@ bool IsInGame() bool IsSequencePlaying() { - app::Survival* survival = Object::FindObjectOfType("Survival"); + app::Survival* survival = GetSurvivalObject(); // Return false if the object was not found. if (survival == nullptr) return false; - if (app::Survival_IsEndingPlaying != nullptr || app::Survival_IsJumpScarePlaying != nullptr || app::Survival_StartingToPlayFailEnding != nullptr) { - bool isEndingPlaying = app::Survival_IsEndingPlaying(survival, nullptr); - bool isJumpScarePlaying = app::Survival_IsJumpScarePlaying(survival, nullptr); - bool isStartingToPlayFailEnding = app::Survival_StartingToPlayFailEnding(survival, nullptr); + // Check if any of the sequences are playing and return the result directly. + if (app::Survival_IsEndingPlaying && app::Survival_IsEndingPlaying(survival, nullptr)) return true; + if (app::Survival_IsJumpScarePlaying && app::Survival_IsJumpScarePlaying(survival, nullptr)) return true; + if (app::Survival_StartingToPlayFailEnding && app::Survival_StartingToPlayFailEnding(survival, nullptr)) return true; - // Return true if any sequence is playing. - return isEndingPlaying || isJumpScarePlaying || isStartingToPlayFailEnding; - } - + // If none of the sequences are playing, return false. return false; } @@ -98,6 +117,7 @@ app::GameObject* GetAzazel(app::Survival* survival) } + std::string SceneName() { if (app::SaveHelpers_get_singleton != nullptr) { diff --git a/lib/public/ClientHelper.h b/lib/public/ClientHelper.h index e345e5a..1d7ba81 100644 --- a/lib/public/ClientHelper.h +++ b/lib/public/ClientHelper.h @@ -4,15 +4,14 @@ bool IsSinglePlayer(); bool IsOnline(); bool IsHost(); +app::Survival* GetSurvivalObject(); +app::OptionsHelpers* GetOptionsHelpersObject(); bool IsLocalPlayer(app::NolanBehaviour* player); bool IsPlayerCrawling(); bool IsPlayerCrawling(app::GameObject* go); bool IsInGame(); bool IsSequencePlaying(); - app::GameObject* GetAzazel(app::Survival* survival); - std::string SceneName(); std::string GetAzazelName(); - float Time_DeltaTime(); \ No newline at end of file diff --git a/lib/public/UnityEngine/Transform.h b/lib/public/UnityEngine/Transform.h index 46fcc90..607357f 100644 --- a/lib/public/UnityEngine/Transform.h +++ b/lib/public/UnityEngine/Transform.h @@ -20,6 +20,10 @@ namespace Transform { { if (!component) return nullptr; - return app::Component_get_transform((app::Component*)component, nullptr); + if (app::Component_get_transform != nullptr) { + return app::Component_get_transform((app::Component*)component, nullptr); + } + + return nullptr; } } \ No newline at end of file diff --git a/user/features/esp/esp.cpp b/user/features/esp/esp.cpp index 146b230..325e4a3 100644 --- a/user/features/esp/esp.cpp +++ b/user/features/esp/esp.cpp @@ -78,7 +78,7 @@ void DrawNameESP(app::Vector3 pos, std::string name, ImColor color) void ComputePositionAndDrawESP(app::Object_1__Array* ents, ImColor color, bool use_prefab = false, std::string name = "") { for (int i = 0; i < ents->max_length; i++) { app::Object_1 *ent = ents->vector[i]; - if (ent == nullptr) + if (Object::IsNull(ent)) continue; app::Transform* _transform = Transform::GetTransform(ent); @@ -144,14 +144,14 @@ void ESP::RunItemsESP() { ImColor col = ImColor{ settings::item_esp_color[0], settings::item_esp_color[1], settings::item_esp_color[2], settings::item_esp_color[3] }; app::Object_1__Array *ents = Object::FindObjectsOfType("SurvivalInteractable", ""); - if (ents != nullptr && ents->vector[0] != nullptr) { + if (ents != nullptr || !Object::IsNull(ents->vector[0])) { ComputePositionAndDrawESP(ents, col, true); } if (SceneName() != "Menu") return; ents = Object::FindObjectsOfType("KeyBehaviour", ""); - if (ents != nullptr && ents->vector[0] != nullptr) { + if (ents != nullptr || !Object::IsNull(ents->vector[0])) { ComputePositionAndDrawESP(ents, col, false, "Key"); } } @@ -159,7 +159,7 @@ void ESP::RunItemsESP() { void ESP::RunGoatsESP() { app::Object_1__Array *goats = Object::FindObjectsOfType("GoatBehaviour", ""); - if (goats == nullptr || goats->vector[0] == nullptr) + if (goats == nullptr || Object::IsNull(goats->vector[0])) return; ComputePositionAndDrawESP(goats, ImColor{ settings::goat_esp_color[0], settings::goat_esp_color[1], settings::goat_esp_color[2], settings::goat_esp_color[3] }); diff --git a/user/hooks/hooks.cpp b/user/hooks/hooks.cpp index 75e6cb5..7b8ea61 100644 --- a/user/hooks/hooks.cpp +++ b/user/hooks/hooks.cpp @@ -766,17 +766,19 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval if (settings::player_esp) ESP::RunPlayersESP(); - if (settings::goat_esp && SceneName() != "Menu") - ESP::RunGoatsESP(); + if (IsInGame() && !IsSequencePlaying()) { + if (settings::goat_esp && SceneName() != "Menu") + ESP::RunGoatsESP(); - if (settings::item_esp && SceneName() != "Menu") - ESP::RunItemsESP(); + if (settings::item_esp && SceneName() != "Menu") + ESP::RunItemsESP(); - if (settings::demon_esp) - ESP::RunDemonESP(); + if (settings::demon_esp) + ESP::RunDemonESP(); - if (settings::azazel_esp && SceneName() != "Menu") - ESP::RunAzazelESP(); + if (settings::azazel_esp && SceneName() != "Menu") + ESP::RunAzazelESP(); + } ImGui::GetIO().MouseDrawCursor = open_menu; -- 2.52.0 From 61d331d38f951bfcb0fb33d7b2c4d25062e864dc Mon Sep 17 00:00:00 2001 From: KnucklesB Date: Tue, 16 Jul 2024 16:13:15 -0300 Subject: [PATCH 06/10] Temp fix for random crashes during the game while using ESP --- user/features/esp/esp.cpp | 60 +++++++++++++++++++++++++-------------- user/features/esp/esp.hpp | 12 ++++++++ user/hooks/hooks.cpp | 19 +++++++++++++ 3 files changed, 70 insertions(+), 21 deletions(-) diff --git a/user/features/esp/esp.cpp b/user/features/esp/esp.cpp index 325e4a3..9604745 100644 --- a/user/features/esp/esp.cpp +++ b/user/features/esp/esp.cpp @@ -16,7 +16,7 @@ static void DrawBox(float x, float y, float w, float h, ImColor color, float thi drawlist->AddLine(ImVec2{ x, y }, ImVec2{ x + w, y }, color, thickness); drawlist->AddLine(ImVec2{ x, y }, ImVec2{ x, y + h }, color, thickness); drawlist->AddLine(ImVec2{ x + w, y }, ImVec2{ x + w, y + h }, color, thickness); - drawlist->AddLine(ImVec2{ x, y + h }, ImVec2{ x + w, y + h}, color, thickness); + drawlist->AddLine(ImVec2{ x, y + h }, ImVec2{ x + w, y + h }, color, thickness); } static void DrawString(ImVec2 pos, ImColor color, std::string label) @@ -26,7 +26,7 @@ static void DrawString(ImVec2 pos, ImColor color, std::string label) drawlist->AddText(pos, color, label.c_str()); } -static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset, std::string name, ImColor color, ImColor snapcolor, bool snapline = false, bool esp = false, float nameOffset = -0.5f, float widthOffset = 2.0f) +static void DrawBoxESP(app::GameObject* it, float footOffset, float headOffset, std::string name, ImColor color, ImColor snapcolor, bool snapline = false, bool esp = false, float nameOffset = -0.5f, float widthOffset = 2.0f) { ImGuiIO& io = ImGui::GetIO(); app::Camera* cam = app::Camera_get_main(nullptr); @@ -36,12 +36,12 @@ static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset, app::Transform* _transform = Transform::GetTransform(it); if (_transform == nullptr) return; - + app::Vector3 pos = Transform::GetPosition(_transform); - app::Vector3 footpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + footOffset, pos.z}, NULL); - app::Vector3 headpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + headOffset, pos.z}, NULL); - app::Vector3 namepos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + nameOffset, pos.z}, NULL); + app::Vector3 footpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{ pos.x, pos.y + footOffset, pos.z }, NULL); + app::Vector3 headpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{ pos.x, pos.y + headOffset, pos.z }, NULL); + app::Vector3 namepos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{ pos.x, pos.y + nameOffset, pos.z }, NULL); if (esp && footpos.z > 0.0f) { float height = (headpos.y - footpos.y); @@ -77,7 +77,7 @@ void DrawNameESP(app::Vector3 pos, std::string name, ImColor color) void ComputePositionAndDrawESP(app::Object_1__Array* ents, ImColor color, bool use_prefab = false, std::string name = "") { for (int i = 0; i < ents->max_length; i++) { - app::Object_1 *ent = ents->vector[i]; + app::Object_1* ent = ents->vector[i]; if (Object::IsNull(ent)) continue; @@ -101,23 +101,34 @@ void ComputePositionAndDrawESP(app::Object_1__Array* ents, ImColor color, bool u } DrawNameESP(pos, name, color); - } + } +} + +// TEMP FIX #60 +app::Object_1__Array* ESP::RefreshEntList(app::Object_1__Array* ent, const char* className, const char* classNamespace) { + if (time_counter < time_refresh) return ent; + return Object::FindObjectsOfType(className, classNamespace); } void ESP::RunAzazelESP() { - app::GameObject__Array* ents = Object::FindGameObjectsWithTag("Azazel"); + + if (time_counter < (time_refresh - 1)) { + ents_azazel = Object::FindGameObjectsWithTag("Azazel"); + } + app::GameObject__Array* ents = ents_azazel; + if (ents == NULL) return; for (int i = 0; i < ents->max_length; i++) { - app::GameObject* ent = (app::GameObject *)ents->vector[i]; + app::GameObject* ent = (app::GameObject*)ents->vector[i]; if (ent == nullptr) continue; - - DrawBoxESP(ent, -0.25, 2.0f, "Azazel", ImColor{settings::azazel_esp_color[0], settings::azazel_esp_color[1], settings::azazel_esp_color[2], settings::azazel_esp_color[3]}, - ImColor{ settings::azazel_snaplines_color[0], settings::azazel_snaplines_color[1], settings::azazel_snaplines_color[2], settings::azazel_snaplines_color[3]}, settings::azazel_snaplines, settings::azazel_esp); + + DrawBoxESP(ent, -0.25, 2.0f, "Azazel", ImColor{ settings::azazel_esp_color[0], settings::azazel_esp_color[1], settings::azazel_esp_color[2], settings::azazel_esp_color[3] }, + ImColor{ settings::azazel_snaplines_color[0], settings::azazel_snaplines_color[1], settings::azazel_snaplines_color[2], settings::azazel_snaplines_color[3] }, settings::azazel_snaplines, settings::azazel_esp); } } @@ -129,7 +140,7 @@ void ESP::RunDemonESP() { for (std::string& class_ : demons_c) { if (SceneName() != "Menu") return; - app::Object_1__Array *ents = Object::FindObjectsOfType(class_.c_str(), ""); + app::Object_1__Array* ents = Object::FindObjectsOfType(class_.c_str(), ""); if (ents == nullptr) continue; @@ -140,10 +151,16 @@ void ESP::RunDemonESP() { } } + void ESP::RunItemsESP() { ImColor col = ImColor{ settings::item_esp_color[0], settings::item_esp_color[1], settings::item_esp_color[2], settings::item_esp_color[3] }; - app::Object_1__Array *ents = Object::FindObjectsOfType("SurvivalInteractable", ""); + ents_item = RefreshEntList(ents_item, "SurvivalInteractable"); + if (ents_item == nullptr) return; + + app::Object_1__Array* ents = ents_item; + + if (ents != nullptr || !Object::IsNull(ents->vector[0])) { ComputePositionAndDrawESP(ents, col, true); } @@ -157,11 +174,12 @@ void ESP::RunItemsESP() { } void ESP::RunGoatsESP() { - app::Object_1__Array *goats = Object::FindObjectsOfType("GoatBehaviour", ""); - + + app::Object_1__Array* goats = ESP::ents_goat; + if (goats == nullptr || Object::IsNull(goats->vector[0])) return; - + ComputePositionAndDrawESP(goats, ImColor{ settings::goat_esp_color[0], settings::goat_esp_color[1], settings::goat_esp_color[2], settings::goat_esp_color[3] }); } @@ -176,8 +194,8 @@ void ESP::RunPlayersESP() { if (ent == nullptr || ent == Player::GetLocalPlayer()) continue; - - DrawBoxESP(ent, -0.25, 1.75, "Player", ImColor{settings::player_esp_color[0], settings::player_esp_color[1], settings::player_esp_color[2], settings::player_esp_color[3]}, - ImColor{ settings::player_snaplines_color[0], settings::player_snaplines_color[1], settings::player_snaplines_color[2], settings::player_snaplines_color[3]}, settings::player_snaplines, settings::player_esp); + + DrawBoxESP(ent, -0.25, 1.75, "Player", ImColor{ settings::player_esp_color[0], settings::player_esp_color[1], settings::player_esp_color[2], settings::player_esp_color[3] }, + ImColor{ settings::player_snaplines_color[0], settings::player_snaplines_color[1], settings::player_snaplines_color[2], settings::player_snaplines_color[3] }, settings::player_snaplines, settings::player_esp); } } \ No newline at end of file diff --git a/user/features/esp/esp.hpp b/user/features/esp/esp.hpp index 2f0b4da..83d4b83 100644 --- a/user/features/esp/esp.hpp +++ b/user/features/esp/esp.hpp @@ -2,7 +2,19 @@ #include "settings/settings.hpp" + + namespace ESP { + // TEMP FIX #60 + inline app::GameObject__Array* ents_azazel = NULL; + inline app::Object_1__Array* ents_item; + inline app::Object_1__Array* ents_goat; + + inline int time_refresh = 100; + inline int time_counter = 0; + + app::Object_1__Array* RefreshEntList(app::Object_1__Array* ent,const char* className, const char* classNamespace = ""); + void RunPlayersESP(); void RunGoatsESP(); void RunItemsESP(); diff --git a/user/hooks/hooks.cpp b/user/hooks/hooks.cpp index 7b8ea61..61c7640 100644 --- a/user/hooks/hooks.cpp +++ b/user/hooks/hooks.cpp @@ -94,6 +94,11 @@ typedef void(__stdcall* TNolanBehaviour_Update)(app::NolanBehaviour*, MethodInfo TNolanBehaviour_Update oNolanBehaviour_Update = NULL; void __stdcall hNolanBehaviour_Update(app::NolanBehaviour* __this, MethodInfo* method) { + // TEMP FIX #60 + if (SceneName() != "Menu") { + ESP::ents_goat = Object::FindObjectsOfType("GoatBehaviour", ""); + } + if (settings::spoof_level && IsLocalPlayer(__this)) { Misc::RankSpoofer(settings::new_level); } @@ -778,7 +783,21 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval if (settings::azazel_esp && SceneName() != "Menu") ESP::RunAzazelESP(); + + ESP::time_counter += 1; + + if (ESP::time_counter > ESP::time_refresh) { + ESP::time_counter = 0; + } } + if (!IsInGame() && SceneName() == "Menu") { + if (settings::item_esp) { + ESP::ents_azazel = nullptr; + ESP::ents_item = nullptr; + ESP::ents_goat = nullptr; + } + } + ImGui::GetIO().MouseDrawCursor = open_menu; -- 2.52.0 From 739f15aeb2bd096d532a0df0422ba22af23e814a Mon Sep 17 00:00:00 2001 From: KnucklesB Date: Thu, 18 Jul 2024 17:18:17 -0300 Subject: [PATCH 07/10] Added toggle to the key ESP, fixed demon ESP, and resolved ESP crashes --- user/features/esp/esp.cpp | 53 ++++++++++++++++++++++++-------------- user/features/esp/esp.hpp | 5 ++++ user/features/menu.cpp | 12 +++++++++ user/hooks/hooks.cpp | 34 +++++++++++++++++------- user/main.cpp | 2 +- user/settings/settings.cpp | 2 ++ user/settings/settings.hpp | 2 ++ 7 files changed, 81 insertions(+), 29 deletions(-) diff --git a/user/features/esp/esp.cpp b/user/features/esp/esp.cpp index 9604745..6bd1da5 100644 --- a/user/features/esp/esp.cpp +++ b/user/features/esp/esp.cpp @@ -137,37 +137,52 @@ void ESP::RunDemonESP() { std::vector demons_c = { "SurvivalDemonBehaviour", "SpiderBehaviour", "GhostBehaviour", "BoarBehaviour", "CorpseBehaviour" }; - for (std::string& class_ : demons_c) { - if (SceneName() != "Menu") - return; - app::Object_1__Array* ents = Object::FindObjectsOfType(class_.c_str(), ""); - if (ents == nullptr) - continue; - - std::string name = class_; - string_replace(name, "Survival", ""); - string_replace(name, "Behaviour", ""); - ComputePositionAndDrawESP(ents, col, false, name); + // There's might be a better way to do it, but i'm lazy : ) + if (name_demon == "N/A") { + for (std::string& class_ : demons_c) { + ents_demon = RefreshEntList(ents_demon, class_.c_str(), ""); + if (ents_demon && ents_demon->max_length > 0) { + name_demon = class_; + } + } } -} + else { + ents_demon = RefreshEntList(ents_demon, name_demon.c_str(), ""); + } + + if (ents_demon == nullptr) return; + app::Object_1__Array* ents = ents_demon; + std::string name = name_demon; + string_replace(name, "Survival", ""); + string_replace(name, "Behaviour", ""); + ComputePositionAndDrawESP(ents, col, false, name); +} void ESP::RunItemsESP() { ImColor col = ImColor{ settings::item_esp_color[0], settings::item_esp_color[1], settings::item_esp_color[2], settings::item_esp_color[3] }; ents_item = RefreshEntList(ents_item, "SurvivalInteractable"); - if (ents_item == nullptr) return; + if (ents_item != nullptr) { - app::Object_1__Array* ents = ents_item; + app::Object_1__Array* ents = ents_item; - if (ents != nullptr || !Object::IsNull(ents->vector[0])) { - ComputePositionAndDrawESP(ents, col, true); + if (ents != nullptr || !Object::IsNull(ents->vector[0])) { + ComputePositionAndDrawESP(ents, col, true); + } } - if (SceneName() != "Menu") - return; - ents = Object::FindObjectsOfType("KeyBehaviour", ""); + +} + +void ESP::RunKeyESP() { + ImColor col = ImColor{ settings::key_esp_color[0], settings::key_esp_color[1], settings::key_esp_color[2], settings::key_esp_color[3] }; + + app::Object_1__Array* ents = ents_key; + + if (ents_key == nullptr) return; + if (ents != nullptr || !Object::IsNull(ents->vector[0])) { ComputePositionAndDrawESP(ents, col, false, "Key"); } diff --git a/user/features/esp/esp.hpp b/user/features/esp/esp.hpp index 83d4b83..14705a5 100644 --- a/user/features/esp/esp.hpp +++ b/user/features/esp/esp.hpp @@ -8,7 +8,11 @@ namespace ESP { // TEMP FIX #60 inline app::GameObject__Array* ents_azazel = NULL; inline app::Object_1__Array* ents_item; + inline app::Object_1__Array* ents_key; inline app::Object_1__Array* ents_goat; + inline app::Object_1__Array* ents_demon; + + inline std::string name_demon = "N/A"; inline int time_refresh = 100; inline int time_counter = 0; @@ -18,6 +22,7 @@ namespace ESP { void RunPlayersESP(); void RunGoatsESP(); void RunItemsESP(); + void RunKeyESP(); void RunDemonESP(); void RunAzazelESP(); } diff --git a/user/features/menu.cpp b/user/features/menu.cpp index 0768339..6d035b2 100644 --- a/user/features/menu.cpp +++ b/user/features/menu.cpp @@ -115,6 +115,18 @@ void DrawVisualsTab() { ImGui::EndPopup(); } + ImGui::Checkbox("Keys ESP", &settings::key_esp); + ImGui::SameLine(); + bool open_kcolor_popup = ImGui::ColorButton("kespcolor", ImVec4(settings::key_esp_color[0], settings::key_esp_color[1], settings::key_esp_color[2], settings::key_esp_color[3])); + if (open_kcolor_popup) + { + ImGui::OpenPopup("kesppop"); + } + if (ImGui::BeginPopup("kesppop")) { + ImGui::ColorPicker4("Key ESP color", (float*)&settings::key_esp_color); + ImGui::EndPopup(); + } + ImGui::Checkbox("Demon ESP", &settings::demon_esp); ImGui::SameLine(); bool open_dcolor_popup = ImGui::ColorButton("despcolor", ImVec4(settings::demon_esp_color[0], settings::demon_esp_color[1], settings::demon_esp_color[2], settings::demon_esp_color[3])); diff --git a/user/hooks/hooks.cpp b/user/hooks/hooks.cpp index 61c7640..4305b3e 100644 --- a/user/hooks/hooks.cpp +++ b/user/hooks/hooks.cpp @@ -97,6 +97,7 @@ void __stdcall hNolanBehaviour_Update(app::NolanBehaviour* __this, MethodInfo* m // TEMP FIX #60 if (SceneName() != "Menu") { ESP::ents_goat = Object::FindObjectsOfType("GoatBehaviour", ""); + ESP::ents_key = Object::FindObjectsOfType("KeyInteractable", ""); } if (settings::spoof_level && IsLocalPlayer(__this)) { @@ -771,17 +772,20 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval if (settings::player_esp) ESP::RunPlayersESP(); - if (IsInGame() && !IsSequencePlaying()) { - if (settings::goat_esp && SceneName() != "Menu") + if (IsInGame() && !IsSequencePlaying() && SceneName() != "Menu") { + if (settings::goat_esp) ESP::RunGoatsESP(); - if (settings::item_esp && SceneName() != "Menu") + if (settings::item_esp) ESP::RunItemsESP(); + if (settings::key_esp) + ESP::RunKeyESP(); + if (settings::demon_esp) ESP::RunDemonESP(); - if (settings::azazel_esp && SceneName() != "Menu") + if (settings::azazel_esp) ESP::RunAzazelESP(); ESP::time_counter += 1; @@ -791,11 +795,23 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval } } if (!IsInGame() && SceneName() == "Menu") { - if (settings::item_esp) { - ESP::ents_azazel = nullptr; - ESP::ents_item = nullptr; - ESP::ents_goat = nullptr; - } + if (settings::item_esp) + ESP::ents_item = nullptr; + + if (settings::goat_esp) + ESP::ents_goat = nullptr; + + if (settings::azazel_esp) + ESP::ents_azazel = nullptr; + + if (settings::key_esp) + ESP::ents_key = nullptr; + + if (settings::demon_esp) { + ESP::ents_demon = nullptr; + ESP::name_demon = "N/A"; + }; + } diff --git a/user/main.cpp b/user/main.cpp index 5a4a7ad..7e0dfe2 100644 --- a/user/main.cpp +++ b/user/main.cpp @@ -23,7 +23,7 @@ #include "players/players.h" -#define CLIENT_VERSION "4.1" +#define CLIENT_VERSION "4.2" // Set the name of your log file here extern const LPCWSTR LOG_FILE = L"DevourClient.txt"; diff --git a/user/settings/settings.cpp b/user/settings/settings.cpp index c54024b..5e1e0ee 100644 --- a/user/settings/settings.cpp +++ b/user/settings/settings.cpp @@ -25,6 +25,8 @@ namespace settings { float demon_esp_color[4] = { 255.f, 0, 0, 255.f }; bool goat_esp = false; float goat_esp_color[4] = { 247.f, 156.f, 37.f, 255.f }; + bool key_esp = false; + float key_esp_color[4] = { 251.f,225.f,104.f,255.f }; bool chat_spam = false; std::string message = "deez nuts"; diff --git a/user/settings/settings.hpp b/user/settings/settings.hpp index c17b0a3..caa5e03 100644 --- a/user/settings/settings.hpp +++ b/user/settings/settings.hpp @@ -29,6 +29,8 @@ namespace settings { extern float demon_esp_color[4]; extern bool goat_esp; extern float goat_esp_color[4]; + extern bool key_esp; + extern float key_esp_color[4]; extern bool chat_spam; extern std::string message; extern bool spoof_level; -- 2.52.0 From ddd8fa1fa957f4fb0d947b0fd2d7261253012659 Mon Sep 17 00:00:00 2001 From: K4SPERSKY695 Date: Mon, 5 Aug 2024 22:05:50 +0200 Subject: [PATCH 08/10] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11fa686..8c26322 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,14 @@ Not detected. * Unlimited UV light * Fullbright (allows your flashlight to light a lot more) * Player ESP +* Player Skeleton ESP * Player Snaplines +* Azazel ESP +* Azazel Skeleton ESP +* Azazel Snapline +* Item ESP +* Demon ESP +* Goat/Rat ESP * Spawn any item * Force Start The Game * Instant Win @@ -31,7 +38,7 @@ Not detected. * Send Jumpscare To Players * Kill yourself/everyone -# How To Install +## How To Install [https://www.youtube.com/watch?v=uBwTqp5B4gU](https://www.youtube.com/watch?v=uBwTqp5B4gU) -- 2.52.0 From 95f1b513202bce9bac9ee42edb98caee3698c9be Mon Sep 17 00:00:00 2001 From: K4SPERSKY695 Date: Tue, 6 Aug 2024 10:40:05 +0200 Subject: [PATCH 09/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8c26322..eebfb08 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Not detected. * Azazel Skeleton ESP * Azazel Snapline * Item ESP +* Keys ESP * Demon ESP * Goat/Rat ESP * Spawn any item -- 2.52.0 From 0845351aecad9d65f2a8a7a6a464edf676417e6b Mon Sep 17 00:00:00 2001 From: K4SPERSKY695 Date: Thu, 8 Aug 2024 13:59:34 +0200 Subject: [PATCH 10/10] Update README.md -- 2.52.0