Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d49b42244c | ||
|
|
0845351aec | ||
|
|
95f1b51320 | ||
|
|
9a4ff6025b | ||
|
|
ddd8fa1fa9 | ||
|
|
9f2857394b | ||
|
|
d3240f614b | ||
|
|
739f15aeb2 | ||
|
|
cc88f0837c | ||
|
|
61d331d38f | ||
|
|
c99f820fa6 | ||
|
|
a462aa0afc | ||
|
|
af76512cf4 | ||
|
3601c508cb
|
|||
|
ecb8841410
|
|||
|
7aebbc26db
|
@@ -90,6 +90,7 @@
|
||||
<ClInclude Include="include\imgui\imstb_textedit.h" />
|
||||
<ClInclude Include="include\imgui\imstb_truetype.h" />
|
||||
<ClInclude Include="include\json.hpp" />
|
||||
<ClInclude Include="include\magic_enum.hpp" />
|
||||
<ClInclude Include="include\Minhook\include\MinHook.h" />
|
||||
<ClInclude Include="include\Minhook\src\buffer.h" />
|
||||
<ClInclude Include="include\Minhook\src\HDE\hde32.h" />
|
||||
@@ -123,6 +124,7 @@
|
||||
<ProjectGuid>{AFA414F5-355A-472E-822F-244F167E5B0D}</ProjectGuid>
|
||||
<RootNamespace>Il2CppDLL</RootNamespace>
|
||||
<ProjectName>DevourClient</ProjectName>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<!--<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>-->
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
@@ -232,12 +234,13 @@
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>_DEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user;$(ProjectDir)lib\public;</AdditionalIncludeDirectories>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -251,12 +254,13 @@
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NDEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user;$(ProjectDir)lib\public</AdditionalIncludeDirectories>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
|
||||
@@ -243,6 +243,9 @@
|
||||
<ClInclude Include="lib\public\UnityEngine\Transform.h">
|
||||
<Filter>lib\public\UnityEngine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="include\magic_enum.hpp">
|
||||
<Filter>include</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Filter Include="appdata">
|
||||
|
||||
10
README.md
10
README.md
@@ -14,7 +14,15 @@ 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
|
||||
* Keys ESP
|
||||
* Demon ESP
|
||||
* Goat/Rat ESP
|
||||
* Spawn any item
|
||||
* Force Start The Game
|
||||
* Instant Win
|
||||
@@ -31,7 +39,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)
|
||||
|
||||
|
||||
@@ -41,6 +41,14 @@ void il2cpp_close_console() {
|
||||
FreeConsole();
|
||||
}
|
||||
|
||||
bool string_replace(std::string& str, const std::string& from, const std::string& to) {
|
||||
size_t start_pos = str.find(from);
|
||||
if (start_pos == std::string::npos)
|
||||
return false;
|
||||
str.replace(start_pos, from.length(), to);
|
||||
return true;
|
||||
}
|
||||
|
||||
#if _MSC_VER >= 1920
|
||||
// Helper function to convert Il2CppString to std::string
|
||||
std::string il2cppi_to_string(Il2CppString* str) {
|
||||
@@ -52,6 +60,7 @@ std::string il2cppi_to_string(Il2CppString* str) {
|
||||
std::string il2cppi_to_string(app::String* str) {
|
||||
return il2cppi_to_string(reinterpret_cast<Il2CppString*>(str));
|
||||
}
|
||||
|
||||
app::String* ConvertToSystemString(const char* str)
|
||||
{
|
||||
Il2CppString* il2cpp_str = il2cpp_string_new(str);
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#include "il2cpp-metadata-version.h"
|
||||
|
||||
#define il2cpp_object_get_field_value(object, type, field) *(type*)((uintptr_t)object + field->offset)
|
||||
|
||||
// Helper function to get the module base address
|
||||
uintptr_t il2cppi_get_base_address();
|
||||
|
||||
@@ -20,6 +22,8 @@ void il2cppi_new_console();
|
||||
|
||||
void il2cpp_close_console();
|
||||
|
||||
bool string_replace(std::string& str, const std::string& from, const std::string& to);
|
||||
|
||||
#if _MSC_VER >= 1920
|
||||
// Helper function to convert Il2CppString to std::string
|
||||
std::string il2cppi_to_string(Il2CppString* str);
|
||||
|
||||
1520
include/magic_enum.hpp
Normal file
1520
include/magic_enum.hpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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<app::Survival>("Survival");
|
||||
}
|
||||
|
||||
return cachedSurvival;
|
||||
}
|
||||
|
||||
app::OptionsHelpers* GetOptionsHelpersObject()
|
||||
{
|
||||
static app::OptionsHelpers* cachedOptionsHelpers = nullptr;
|
||||
|
||||
if (cachedOptionsHelpers == nullptr || Object::IsNull((app::Object_1*)cachedOptionsHelpers)) {
|
||||
cachedOptionsHelpers = Object::FindObjectOfType<app::OptionsHelpers>("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<app::OptionsHelpers>("OptionsHelpers");
|
||||
app::OptionsHelpers* optionsHelpers = GetOptionsHelpersObject();
|
||||
|
||||
if (optionsHelpers)
|
||||
return optionsHelpers->fields._inGame_k__BackingField;
|
||||
@@ -67,6 +89,22 @@ bool IsInGame()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsSequencePlaying()
|
||||
{
|
||||
app::Survival* survival = GetSurvivalObject();
|
||||
|
||||
// Return false if the object was not found.
|
||||
if (survival == nullptr) return false;
|
||||
|
||||
// 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;
|
||||
|
||||
// If none of the sequences are playing, return false.
|
||||
return false;
|
||||
}
|
||||
|
||||
app::GameObject* GetAzazel(app::Survival* survival)
|
||||
{
|
||||
app::GameObject* ai = app::Survival_GetAzazel(survival, nullptr);
|
||||
@@ -79,6 +117,7 @@ app::GameObject* GetAzazel(app::Survival* survival)
|
||||
}
|
||||
|
||||
|
||||
|
||||
std::string SceneName()
|
||||
{
|
||||
if (app::SaveHelpers_get_singleton != nullptr) {
|
||||
@@ -95,6 +134,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()
|
||||
{
|
||||
|
||||
@@ -4,12 +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();
|
||||
@@ -9,6 +9,21 @@ struct Object {
|
||||
|
||||
static bool IsNull(app::Object_1* obj);
|
||||
|
||||
static inline app::Object_1__Array *FindObjectsOfType(const char* className, const char* classNamespace = "", const char* assemblyName = "Assembly-CSharp.dll") {
|
||||
|
||||
Wrapper obj(assemblyName);
|
||||
|
||||
Il2CppObject* object = obj.find_class(classNamespace, className).get_class();
|
||||
|
||||
if (!object || !app::Object_1_FindObjectsOfType) return nullptr;
|
||||
|
||||
app::Object_1__Array* obj_1 = app::Object_1_FindObjectsOfType(reinterpret_cast<app::Type*>(object), nullptr);
|
||||
|
||||
if (!obj_1) return nullptr;
|
||||
|
||||
return obj_1;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static inline T* FindObjectOfType(const char* className, const char* classNamespace = "", const char* assemblyName = "Assembly-CSharp.dll") {
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,8 @@
|
||||
#include "players/players.h"
|
||||
#include "helpers.h"
|
||||
#include "esp.hpp"
|
||||
#include <magic_enum.hpp>
|
||||
#include <vector>
|
||||
|
||||
static void DrawBox(float x, float y, float w, float h, ImColor color, float thickness)
|
||||
{
|
||||
@@ -14,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)
|
||||
@@ -24,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, 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);
|
||||
@@ -34,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);
|
||||
@@ -51,10 +53,151 @@ static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset,
|
||||
|
||||
if (snapline && footpos.z > 0.f) {
|
||||
auto drawlist = ImGui::GetBackgroundDrawList();
|
||||
drawlist->AddLine(ImVec2(io.DisplaySize.x / 2, io.DisplaySize.y / 2), ImVec2(footpos.x, io.DisplaySize.y - footpos.y), color, 2.f);
|
||||
drawlist->AddLine(ImVec2(io.DisplaySize.x / 2, io.DisplaySize.y / 2), ImVec2(footpos.x, io.DisplaySize.y - footpos.y), snapcolor, 2.f);
|
||||
}
|
||||
}
|
||||
|
||||
void DrawNameESP(app::Vector3 pos, std::string name, ImColor color)
|
||||
{
|
||||
app::Camera* cam = app::Camera_get_main(nullptr);
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
if (cam == nullptr)
|
||||
return;
|
||||
|
||||
app::Vector3 vector = app::Camera_WorldToScreenPoint_1(cam, pos, NULL);
|
||||
if (vector.z > 0)
|
||||
{
|
||||
vector.y = io.DisplaySize.y - (vector.y + 1.f);
|
||||
auto drawlist = ImGui::GetBackgroundDrawList();
|
||||
|
||||
drawlist->AddRectFilled(ImVec2(vector.x, vector.y), ImVec2(vector.x + 6.f, vector.y + 6.f), color);
|
||||
DrawString(ImVec2(vector.x + 8.f, vector.y), color, name);
|
||||
}
|
||||
}
|
||||
|
||||
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 (Object::IsNull(ent))
|
||||
continue;
|
||||
|
||||
app::Transform* _transform = Transform::GetTransform(ent);
|
||||
if (_transform == nullptr)
|
||||
continue;
|
||||
|
||||
app::Vector3 pos = Transform::GetPosition(_transform);
|
||||
|
||||
auto field = il2cpp_class_get_field_from_name(ent->klass->_0.castClass, "m_AI");
|
||||
if (field != nullptr) {
|
||||
app::Survival_AI__Enum type = il2cpp_object_get_field_value(ent, app::Survival_AI__Enum, field);
|
||||
name = magic_enum::enum_name(type);
|
||||
}
|
||||
|
||||
if (use_prefab) {
|
||||
if ((((app::SurvivalInteractable*)ent)->fields.prefabName) == nullptr)
|
||||
continue;
|
||||
name = il2cppi_to_string(((app::SurvivalInteractable*)ent)->fields.prefabName);
|
||||
string_replace(name, "Survival", "");
|
||||
}
|
||||
|
||||
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() {
|
||||
|
||||
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];
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
void ESP::RunDemonESP() {
|
||||
ImColor col = ImColor{ settings::demon_esp_color[0], settings::demon_esp_color[1], settings::demon_esp_color[2], settings::demon_esp_color[3] };
|
||||
|
||||
std::vector<std::string> demons_c = { "SurvivalDemonBehaviour", "SpiderBehaviour", "GhostBehaviour", "BoarBehaviour", "CorpseBehaviour" };
|
||||
|
||||
// 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) {
|
||||
|
||||
app::Object_1__Array* ents = ents_item;
|
||||
|
||||
|
||||
if (ents != nullptr || !Object::IsNull(ents->vector[0])) {
|
||||
ComputePositionAndDrawESP(ents, col, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
void ESP::RunGoatsESP() {
|
||||
|
||||
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] });
|
||||
}
|
||||
|
||||
void ESP::RunPlayersESP() {
|
||||
app::GameObject__Array* players = Players::GetAllPlayers();
|
||||
|
||||
@@ -66,7 +209,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]}, 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);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,27 @@
|
||||
|
||||
#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_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;
|
||||
|
||||
app::Object_1__Array* RefreshEntList(app::Object_1__Array* ent,const char* className, const char* classNamespace = "");
|
||||
|
||||
void RunPlayersESP();
|
||||
void RunGoatsESP();
|
||||
void RunItemsESP();
|
||||
void RunKeyESP();
|
||||
void RunDemonESP();
|
||||
void RunAzazelESP();
|
||||
}
|
||||
|
||||
@@ -79,7 +79,6 @@ void DrawVisualsTab() {
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
/*
|
||||
ImGui::Checkbox("Azazel ESP", &settings::azazel_esp);
|
||||
ImGui::SameLine();
|
||||
bool open_azacolor_popup = ImGui::ColorButton("azaespcolor", ImVec4(settings::azazel_esp_color[0], settings::azazel_esp_color[1], settings::azazel_esp_color[2], settings::azazel_esp_color[3]));
|
||||
@@ -116,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]));
|
||||
@@ -138,7 +149,7 @@ void DrawVisualsTab() {
|
||||
if (ImGui::BeginPopup("gesppop")) {
|
||||
ImGui::ColorPicker4("Goat ESP color", (float*)&settings::goat_esp_color);
|
||||
ImGui::EndPopup();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
void DrawEntitiesTab() {
|
||||
@@ -182,6 +193,8 @@ void DrawEntitiesTab() {
|
||||
}
|
||||
|
||||
void DrawMapSpecificTab() {
|
||||
ImGui::SliderInt("Server player limit", &settings::player_count, 4, 20);
|
||||
|
||||
if (ImGui::Button("Force Start The Game")) {
|
||||
Misc::ForceStart();
|
||||
}
|
||||
@@ -318,15 +331,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);
|
||||
@@ -336,7 +349,6 @@ void DrawMiscTab() {
|
||||
|
||||
ImGui::Checkbox("Azazel Speed", &settings::freeze_azazel);
|
||||
ImGui::SliderFloat("Multiplier", &settings::new_azazel_speed, 0, 15);
|
||||
|
||||
|
||||
#if _DEBUG
|
||||
ImGui::Spacing();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -94,6 +94,16 @@ 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", "");
|
||||
ESP::ents_key = Object::FindObjectsOfType("KeyInteractable", "");
|
||||
}
|
||||
|
||||
if (settings::spoof_level && IsLocalPlayer(__this)) {
|
||||
Misc::RankSpoofer(settings::new_level);
|
||||
}
|
||||
|
||||
if (settings::fly && IsLocalPlayer(__this)) {
|
||||
|
||||
float speed = settings::fly_speed;
|
||||
@@ -159,7 +169,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) {
|
||||
@@ -436,6 +446,12 @@ bool __stdcall hSteamInventoryManager_HasRetrievedUserInventoryItems(app::SteamI
|
||||
return oSteamInventoryManager_HasRetrievedUserInventoryItems(__this, method);
|
||||
}
|
||||
|
||||
// DO_APP_FUNC(0x00A83990, int32_t, BoltNetwork_get_MaxConnections, (MethodInfo * method));
|
||||
typedef int32_t(__stdcall* TBoltNetwork_get_MaxConnections)(MethodInfo*);
|
||||
TBoltNetwork_get_MaxConnections oBoltNetwork_get_MaxConnections = NULL;
|
||||
int32_t __stdcall hBoltNetwork_get_MaxConnections(MethodInfo* method) {
|
||||
return settings::player_count; //oBoltNetwork_get_MaxConnections(method);
|
||||
}
|
||||
|
||||
void CreateHooks() {
|
||||
/*
|
||||
@@ -636,6 +652,12 @@ void CreateHooks() {
|
||||
return;
|
||||
}
|
||||
|
||||
// BoltNetwork_get_MaxConnections
|
||||
MH_STATUS status_BoltNetwork_get_MaxConnections = MH_CreateHook((LPVOID*)app::BoltNetwork_get_MaxConnections, &hBoltNetwork_get_MaxConnections, reinterpret_cast<LPVOID*>(&oBoltNetwork_get_MaxConnections));
|
||||
if (status_BoltNetwork_get_MaxConnections != MH_OK) {
|
||||
std::cout << "Failed to create BoltNetwork_get_MaxConnections hook: " << MH_StatusToString(status_BoltNetwork_get_MaxConnections) << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
// SteamInventoryValidator_PlayerHasItem
|
||||
//MH_STATUS status_playerHasItem = MH_CreateHook((LPVOID*)app::SteamInventoryValidator_PlayerHasItem, &hSteamInventoryValidator_PlayerHasItem, reinterpret_cast<LPVOID*>(&oSteamInventoryValidator_PlayerHasItem));
|
||||
@@ -747,10 +769,51 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval
|
||||
DrawMenu(open_menu);
|
||||
}
|
||||
|
||||
// to-do: move it to "fixed update" hook
|
||||
if (settings::player_esp)
|
||||
ESP::RunPlayersESP();
|
||||
|
||||
if (IsInGame() && !IsSequencePlaying() && SceneName() != "Menu") {
|
||||
if (settings::goat_esp)
|
||||
ESP::RunGoatsESP();
|
||||
|
||||
if (settings::item_esp)
|
||||
ESP::RunItemsESP();
|
||||
|
||||
if (settings::key_esp)
|
||||
ESP::RunKeyESP();
|
||||
|
||||
if (settings::demon_esp)
|
||||
ESP::RunDemonESP();
|
||||
|
||||
if (settings::azazel_esp)
|
||||
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_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";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
ImGui::GetIO().MouseDrawCursor = open_menu;
|
||||
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
#include "utils/utils.hpp"
|
||||
#include "network/VersionControl.h"
|
||||
|
||||
#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";
|
||||
@@ -146,8 +147,17 @@ void Run()
|
||||
if (GetAsyncKeyState(VK_END) & 0x8000 || should_unhook)
|
||||
break;
|
||||
|
||||
// enable "NolanBehaviour" in the lobby so the client can use fly mode
|
||||
if (SceneName() == std::string("Menu")) {
|
||||
if (Player::GetLocalPlayer() != nullptr) {
|
||||
app::NolanBehaviour* nolan = Player::GetNolan();
|
||||
if (nolan != nullptr) {
|
||||
if (!Object::Enabled(nolan)) Object::Enabled(nolan, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(3000));
|
||||
}
|
||||
CreateThread(0, 0, EjectThread, 0, 0, 0);
|
||||
}
|
||||
@@ -24,12 +24,15 @@ namespace settings {
|
||||
bool demon_esp = false;
|
||||
float demon_esp_color[4] = { 255.f, 0, 0, 255.f };
|
||||
bool goat_esp = false;
|
||||
float goat_esp_color[4] = { 0, 255.f, 0, 255.f };
|
||||
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";
|
||||
bool spoof_level = false;
|
||||
int new_level = 0;
|
||||
int player_count = 4;
|
||||
bool steam_name_spoof = false;
|
||||
std::string new_name = "patate";
|
||||
bool server_name_spoof = false;
|
||||
|
||||
@@ -29,10 +29,13 @@ 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;
|
||||
extern int new_level;
|
||||
extern int player_count;
|
||||
extern bool steam_name_spoof;
|
||||
extern std::string new_name;
|
||||
extern bool server_name_spoof;
|
||||
|
||||
Reference in New Issue
Block a user