add: bypass server player limit, items/goats/demons/azael ESP
This commit is contained in:
@@ -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)
|
||||
{
|
||||
@@ -55,6 +57,111 @@ static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset,
|
||||
}
|
||||
}
|
||||
|
||||
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 (ent == nullptr)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
void ESP::RunAzazelESP() {
|
||||
app::GameObject__Array* ents = Object::FindGameObjectsWithTag("Azazel");
|
||||
//app::Object_1__Array *ents = Object::FindObjectsOfType("SurvivalAzazelBehaviour", "");
|
||||
|
||||
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" };
|
||||
|
||||
for (std::string& class_ : demons_c) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
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) {
|
||||
ComputePositionAndDrawESP(ents, col, true);
|
||||
}
|
||||
|
||||
ents = Object::FindObjectsOfType("KeyBehaviour", "");
|
||||
if (ents != nullptr && ents->vector[0] != nullptr) {
|
||||
ComputePositionAndDrawESP(ents, col, false, "Key");
|
||||
}
|
||||
}
|
||||
|
||||
void ESP::RunGoatsESP() {
|
||||
app::Object_1__Array *goats = Object::FindObjectsOfType("GoatBehaviour", "");
|
||||
|
||||
if (goats == nullptr || goats->vector[0] == nullptr)
|
||||
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();
|
||||
|
||||
|
||||
@@ -4,4 +4,8 @@
|
||||
|
||||
namespace ESP {
|
||||
void RunPlayersESP();
|
||||
void RunGoatsESP();
|
||||
void RunItemsESP();
|
||||
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]));
|
||||
@@ -138,7 +137,7 @@ void DrawVisualsTab() {
|
||||
if (ImGui::BeginPopup("gesppop")) {
|
||||
ImGui::ColorPicker4("Goat ESP color", (float*)&settings::goat_esp_color);
|
||||
ImGui::EndPopup();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
void DrawEntitiesTab() {
|
||||
@@ -182,6 +181,8 @@ void DrawEntitiesTab() {
|
||||
}
|
||||
|
||||
void DrawMapSpecificTab() {
|
||||
ImGui::SliderInt("Server player limit", &settings::player_count, 4, 20);
|
||||
|
||||
if (ImGui::Button("Force Start The Game")) {
|
||||
Misc::ForceStart();
|
||||
}
|
||||
@@ -336,7 +337,6 @@ void DrawMiscTab() {
|
||||
|
||||
ImGui::Checkbox("Azazel Speed", &settings::freeze_azazel);
|
||||
ImGui::SliderFloat("Multiplier", &settings::new_azazel_speed, 0, 15);
|
||||
|
||||
|
||||
#if _DEBUG
|
||||
ImGui::Spacing();
|
||||
|
||||
@@ -436,6 +436,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 +642,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));
|
||||
@@ -751,6 +763,17 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval
|
||||
if (settings::player_esp)
|
||||
ESP::RunPlayersESP();
|
||||
|
||||
if (settings::goat_esp)
|
||||
ESP::RunGoatsESP();
|
||||
|
||||
if (settings::item_esp)
|
||||
ESP::RunItemsESP();
|
||||
|
||||
if (settings::demon_esp)
|
||||
ESP::RunDemonESP();
|
||||
|
||||
if (settings::azazel_esp)
|
||||
ESP::RunAzazelESP();
|
||||
|
||||
ImGui::GetIO().MouseDrawCursor = open_menu;
|
||||
|
||||
|
||||
@@ -24,12 +24,13 @@ 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 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;
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace settings {
|
||||
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