Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af76512cf4 | ||
|
3601c508cb
|
@@ -67,6 +67,21 @@ bool IsInGame()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsSequencePlaying()
|
||||||
|
{
|
||||||
|
app::Survival* survival = Object::FindObjectOfType<app::Survival>("Survival");
|
||||||
|
|
||||||
|
// 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);
|
||||||
|
|
||||||
|
// Return true if any sequence is playing.
|
||||||
|
return isEndingPlaying || isJumpScarePlaying || isStartingToPlayFailEnding;
|
||||||
|
}
|
||||||
|
|
||||||
app::GameObject* GetAzazel(app::Survival* survival)
|
app::GameObject* GetAzazel(app::Survival* survival)
|
||||||
{
|
{
|
||||||
app::GameObject* ai = app::Survival_GetAzazel(survival, nullptr);
|
app::GameObject* ai = app::Survival_GetAzazel(survival, nullptr);
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ bool IsLocalPlayer(app::NolanBehaviour* player);
|
|||||||
bool IsPlayerCrawling();
|
bool IsPlayerCrawling();
|
||||||
bool IsPlayerCrawling(app::GameObject* go);
|
bool IsPlayerCrawling(app::GameObject* go);
|
||||||
bool IsInGame();
|
bool IsInGame();
|
||||||
|
bool IsSequencePlaying();
|
||||||
|
|
||||||
app::GameObject* GetAzazel(app::Survival* survival);
|
app::GameObject* GetAzazel(app::Survival* survival);
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,6 @@ void ComputePositionAndDrawESP(app::Object_1__Array* ents, ImColor color, bool u
|
|||||||
|
|
||||||
void ESP::RunAzazelESP() {
|
void ESP::RunAzazelESP() {
|
||||||
app::GameObject__Array* ents = Object::FindGameObjectsWithTag("Azazel");
|
app::GameObject__Array* ents = Object::FindGameObjectsWithTag("Azazel");
|
||||||
//app::Object_1__Array *ents = Object::FindObjectsOfType("SurvivalAzazelBehaviour", "");
|
|
||||||
|
|
||||||
if (ents == NULL)
|
if (ents == NULL)
|
||||||
return;
|
return;
|
||||||
@@ -128,6 +127,8 @@ void ESP::RunDemonESP() {
|
|||||||
std::vector<std::string> demons_c = { "SurvivalDemonBehaviour", "SpiderBehaviour", "GhostBehaviour", "BoarBehaviour", "CorpseBehaviour" };
|
std::vector<std::string> demons_c = { "SurvivalDemonBehaviour", "SpiderBehaviour", "GhostBehaviour", "BoarBehaviour", "CorpseBehaviour" };
|
||||||
|
|
||||||
for (std::string& class_ : demons_c) {
|
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)
|
if (ents == nullptr)
|
||||||
continue;
|
continue;
|
||||||
@@ -147,6 +148,8 @@ void ESP::RunItemsESP() {
|
|||||||
ComputePositionAndDrawESP(ents, col, true);
|
ComputePositionAndDrawESP(ents, col, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SceneName() != "Menu")
|
||||||
|
return;
|
||||||
ents = Object::FindObjectsOfType("KeyBehaviour", "");
|
ents = Object::FindObjectsOfType("KeyBehaviour", "");
|
||||||
if (ents != nullptr && ents->vector[0] != nullptr) {
|
if (ents != nullptr && ents->vector[0] != nullptr) {
|
||||||
ComputePositionAndDrawESP(ents, col, false, "Key");
|
ComputePositionAndDrawESP(ents, col, false, "Key");
|
||||||
|
|||||||
@@ -759,20 +759,19 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval
|
|||||||
DrawMenu(open_menu);
|
DrawMenu(open_menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
// to-do: move it to "fixed update" hook
|
|
||||||
if (settings::player_esp)
|
if (settings::player_esp)
|
||||||
ESP::RunPlayersESP();
|
ESP::RunPlayersESP();
|
||||||
|
|
||||||
if (settings::goat_esp)
|
if (settings::goat_esp && SceneName() != "Menu")
|
||||||
ESP::RunGoatsESP();
|
ESP::RunGoatsESP();
|
||||||
|
|
||||||
if (settings::item_esp)
|
if (settings::item_esp && SceneName() != "Menu")
|
||||||
ESP::RunItemsESP();
|
ESP::RunItemsESP();
|
||||||
|
|
||||||
if (settings::demon_esp)
|
if (settings::demon_esp)
|
||||||
ESP::RunDemonESP();
|
ESP::RunDemonESP();
|
||||||
|
|
||||||
if (settings::azazel_esp)
|
if (settings::azazel_esp && SceneName() != "Menu")
|
||||||
ESP::RunAzazelESP();
|
ESP::RunAzazelESP();
|
||||||
|
|
||||||
ImGui::GetIO().MouseDrawCursor = open_menu;
|
ImGui::GetIO().MouseDrawCursor = open_menu;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "utils/utils.hpp"
|
#include "utils/utils.hpp"
|
||||||
#include "network/VersionControl.h"
|
#include "network/VersionControl.h"
|
||||||
|
|
||||||
|
#include "players/players.h"
|
||||||
|
|
||||||
#define CLIENT_VERSION "4.1"
|
#define CLIENT_VERSION "4.1"
|
||||||
|
|
||||||
@@ -146,8 +147,17 @@ void Run()
|
|||||||
if (GetAsyncKeyState(VK_END) & 0x8000 || should_unhook)
|
if (GetAsyncKeyState(VK_END) & 0x8000 || should_unhook)
|
||||||
break;
|
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);
|
CreateThread(0, 0, EjectThread, 0, 0, 0);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user