Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c99f820fa6 | ||
|
|
a462aa0afc |
@@ -21,6 +21,28 @@ bool IsHost()
|
|||||||
return app::BoltNetwork_get_IsServer(NULL);
|
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)
|
bool IsLocalPlayer(app::NolanBehaviour* player)
|
||||||
{
|
{
|
||||||
auto boltEntity = app::EntityBehaviour_get_entity((app::EntityBehaviour*)player, NULL);
|
auto boltEntity = app::EntityBehaviour_get_entity((app::EntityBehaviour*)player, NULL);
|
||||||
@@ -59,7 +81,7 @@ bool IsPlayerCrawling(app::GameObject* go)
|
|||||||
|
|
||||||
bool IsInGame()
|
bool IsInGame()
|
||||||
{
|
{
|
||||||
app::OptionsHelpers* optionsHelpers = Object::FindObjectOfType<app::OptionsHelpers>("OptionsHelpers");
|
app::OptionsHelpers* optionsHelpers = GetOptionsHelpersObject();
|
||||||
|
|
||||||
if (optionsHelpers)
|
if (optionsHelpers)
|
||||||
return optionsHelpers->fields._inGame_k__BackingField;
|
return optionsHelpers->fields._inGame_k__BackingField;
|
||||||
@@ -69,17 +91,18 @@ bool IsInGame()
|
|||||||
|
|
||||||
bool IsSequencePlaying()
|
bool IsSequencePlaying()
|
||||||
{
|
{
|
||||||
app::Survival* survival = Object::FindObjectOfType<app::Survival>("Survival");
|
app::Survival* survival = GetSurvivalObject();
|
||||||
|
|
||||||
// Return false if the object was not found.
|
// Return false if the object was not found.
|
||||||
if (survival == nullptr) return false;
|
if (survival == nullptr) return false;
|
||||||
|
|
||||||
bool isEndingPlaying = app::Survival_IsEndingPlaying(survival, nullptr);
|
// Check if any of the sequences are playing and return the result directly.
|
||||||
bool isJumpScarePlaying = app::Survival_IsJumpScarePlaying(survival, nullptr);
|
if (app::Survival_IsEndingPlaying && app::Survival_IsEndingPlaying(survival, nullptr)) return true;
|
||||||
bool isStartingToPlayFailEnding = app::Survival_StartingToPlayFailEnding(survival, nullptr);
|
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.
|
// If none of the sequences are playing, return false.
|
||||||
return isEndingPlaying || isJumpScarePlaying || isStartingToPlayFailEnding;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
app::GameObject* GetAzazel(app::Survival* survival)
|
app::GameObject* GetAzazel(app::Survival* survival)
|
||||||
@@ -94,6 +117,7 @@ app::GameObject* GetAzazel(app::Survival* survival)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
std::string SceneName()
|
std::string SceneName()
|
||||||
{
|
{
|
||||||
if (app::SaveHelpers_get_singleton != nullptr) {
|
if (app::SaveHelpers_get_singleton != nullptr) {
|
||||||
@@ -110,6 +134,18 @@ std::string SceneName()
|
|||||||
return std::string("");
|
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()
|
float Time_DeltaTime()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,13 +4,14 @@
|
|||||||
bool IsSinglePlayer();
|
bool IsSinglePlayer();
|
||||||
bool IsOnline();
|
bool IsOnline();
|
||||||
bool IsHost();
|
bool IsHost();
|
||||||
|
app::Survival* GetSurvivalObject();
|
||||||
|
app::OptionsHelpers* GetOptionsHelpersObject();
|
||||||
bool IsLocalPlayer(app::NolanBehaviour* player);
|
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();
|
bool IsSequencePlaying();
|
||||||
|
|
||||||
app::GameObject* GetAzazel(app::Survival* survival);
|
app::GameObject* GetAzazel(app::Survival* survival);
|
||||||
|
|
||||||
std::string SceneName();
|
std::string SceneName();
|
||||||
|
std::string GetAzazelName();
|
||||||
float Time_DeltaTime();
|
float Time_DeltaTime();
|
||||||
@@ -20,6 +20,10 @@ namespace Transform {
|
|||||||
{
|
{
|
||||||
if (!component) return nullptr;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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 = "") {
|
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++) {
|
for (int i = 0; i < ents->max_length; i++) {
|
||||||
app::Object_1 *ent = ents->vector[i];
|
app::Object_1 *ent = ents->vector[i];
|
||||||
if (ent == nullptr)
|
if (Object::IsNull(ent))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
app::Transform* _transform = Transform::GetTransform(ent);
|
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] };
|
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", "");
|
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);
|
ComputePositionAndDrawESP(ents, col, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SceneName() != "Menu")
|
if (SceneName() != "Menu")
|
||||||
return;
|
return;
|
||||||
ents = Object::FindObjectsOfType("KeyBehaviour", "");
|
ents = Object::FindObjectsOfType("KeyBehaviour", "");
|
||||||
if (ents != nullptr && ents->vector[0] != nullptr) {
|
if (ents != nullptr || !Object::IsNull(ents->vector[0])) {
|
||||||
ComputePositionAndDrawESP(ents, col, false, "Key");
|
ComputePositionAndDrawESP(ents, col, false, "Key");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -159,7 +159,7 @@ void ESP::RunItemsESP() {
|
|||||||
void ESP::RunGoatsESP() {
|
void ESP::RunGoatsESP() {
|
||||||
app::Object_1__Array *goats = Object::FindObjectsOfType("GoatBehaviour", "");
|
app::Object_1__Array *goats = Object::FindObjectsOfType("GoatBehaviour", "");
|
||||||
|
|
||||||
if (goats == nullptr || goats->vector[0] == nullptr)
|
if (goats == nullptr || Object::IsNull(goats->vector[0]))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ComputePositionAndDrawESP(goats, ImColor{ settings::goat_esp_color[0], settings::goat_esp_color[1], settings::goat_esp_color[2], settings::goat_esp_color[3] });
|
ComputePositionAndDrawESP(goats, ImColor{ settings::goat_esp_color[0], settings::goat_esp_color[1], settings::goat_esp_color[2], settings::goat_esp_color[3] });
|
||||||
|
|||||||
@@ -320,14 +320,14 @@ void DrawMiscTab() {
|
|||||||
//Misc::PlayRandomSound();
|
//Misc::PlayRandomSound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ImGui::Checkbox("Walk in lobby", &settings::walk_in_lobby);
|
ImGui::Checkbox("Walk in lobby", &settings::walk_in_lobby);
|
||||||
|
|
||||||
ImGui::Checkbox("Auto respawn", &settings::auto_respawn);
|
ImGui::Checkbox("Auto respawn", &settings::auto_respawn);
|
||||||
|
*/
|
||||||
|
|
||||||
ImGui::Checkbox("Spoof level", &settings::spoof_level);
|
ImGui::Checkbox("Spoof level", &settings::spoof_level);
|
||||||
ImGui::InputInt("New level", &settings::new_level);
|
ImGui::InputInt("New level", &settings::new_level);
|
||||||
*/
|
|
||||||
|
|
||||||
ImGui::Checkbox("EXP Modifier", &settings::exp_modifier);
|
ImGui::Checkbox("EXP Modifier", &settings::exp_modifier);
|
||||||
ImGui::SliderInt("Amount", &settings::new_exp, 0, 5000);
|
ImGui::SliderInt("Amount", &settings::new_exp, 0, 5000);
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ void Misc::InstantWin()
|
|||||||
|
|
||||||
std::string _scene = SceneName();
|
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;
|
int32_t progress = 10;
|
||||||
|
|
||||||
@@ -104,7 +104,6 @@ void Misc::InstantWin()
|
|||||||
if (_MapController) {
|
if (_MapController) {
|
||||||
|
|
||||||
// DO_APP_FUNC(0x00930CD0, void, MapController_SetProgressTo, (MapController * __this, int32_t progress, MethodInfo * method));
|
// DO_APP_FUNC(0x00930CD0, void, MapController_SetProgressTo, (MapController * __this, int32_t progress, MethodInfo * method));
|
||||||
|
|
||||||
if (app::MapController_SetProgressTo != nullptr) {
|
if (app::MapController_SetProgressTo != nullptr) {
|
||||||
app::MapController_SetProgressTo(_MapController, progress, nullptr);
|
app::MapController_SetProgressTo(_MapController, progress, nullptr);
|
||||||
}
|
}
|
||||||
@@ -116,7 +115,6 @@ void Misc::InstantWin()
|
|||||||
if (_SlaughterhouseAltarController) {
|
if (_SlaughterhouseAltarController) {
|
||||||
|
|
||||||
// DO_APP_FUNC(0x0050DEB0, void, SlaughterhouseAltarController_SkipToGoat, (SlaughterhouseAltarController * __this, int32_t number, MethodInfo * method));
|
// DO_APP_FUNC(0x0050DEB0, void, SlaughterhouseAltarController_SkipToGoat, (SlaughterhouseAltarController * __this, int32_t number, MethodInfo * method));
|
||||||
|
|
||||||
if (app::SlaughterhouseAltarController_SkipToGoat != nullptr) {
|
if (app::SlaughterhouseAltarController_SkipToGoat != nullptr) {
|
||||||
app::SlaughterhouseAltarController_SkipToGoat(_SlaughterhouseAltarController, progress, nullptr);
|
app::SlaughterhouseAltarController_SkipToGoat(_SlaughterhouseAltarController, progress, nullptr);
|
||||||
}
|
}
|
||||||
@@ -128,7 +126,6 @@ void Misc::InstantWin()
|
|||||||
|
|
||||||
if (_SurvivalObjectBurnController) {
|
if (_SurvivalObjectBurnController) {
|
||||||
// DO_APP_FUNC(0x00562590, void, SurvivalObjectBurnController_SkipToGoat, (SurvivalObjectBurnController * __this, int32_t number, MethodInfo * method));
|
// DO_APP_FUNC(0x00562590, void, SurvivalObjectBurnController_SkipToGoat, (SurvivalObjectBurnController * __this, int32_t number, MethodInfo * method));
|
||||||
|
|
||||||
if (app::SurvivalObjectBurnController_SkipToGoat != nullptr) {
|
if (app::SurvivalObjectBurnController_SkipToGoat != nullptr) {
|
||||||
app::SurvivalObjectBurnController_SkipToGoat(_SurvivalObjectBurnController, progress, nullptr);
|
app::SurvivalObjectBurnController_SkipToGoat(_SurvivalObjectBurnController, progress, nullptr);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,6 +94,10 @@ typedef void(__stdcall* TNolanBehaviour_Update)(app::NolanBehaviour*, MethodInfo
|
|||||||
TNolanBehaviour_Update oNolanBehaviour_Update = NULL;
|
TNolanBehaviour_Update oNolanBehaviour_Update = NULL;
|
||||||
void __stdcall hNolanBehaviour_Update(app::NolanBehaviour* __this, MethodInfo* method) {
|
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)) {
|
if (settings::fly && IsLocalPlayer(__this)) {
|
||||||
|
|
||||||
float speed = settings::fly_speed;
|
float speed = settings::fly_speed;
|
||||||
@@ -159,7 +163,7 @@ typedef void(__stdcall* TNolanBehaviour_FixedUpdate)(app::NolanBehaviour*, Metho
|
|||||||
TNolanBehaviour_FixedUpdate oNolanBehaviour_FixedUpdate = NULL;
|
TNolanBehaviour_FixedUpdate oNolanBehaviour_FixedUpdate = NULL;
|
||||||
void __stdcall hNolanBehaviour_FixedUpdate(app::NolanBehaviour* __this, MethodInfo* method) {
|
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;
|
app::GameObject* goAzazel = __this->fields.m_Survival->fields.m_Azazel;
|
||||||
|
|
||||||
if (goAzazel) {
|
if (goAzazel) {
|
||||||
@@ -762,17 +766,19 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval
|
|||||||
if (settings::player_esp)
|
if (settings::player_esp)
|
||||||
ESP::RunPlayersESP();
|
ESP::RunPlayersESP();
|
||||||
|
|
||||||
if (settings::goat_esp && SceneName() != "Menu")
|
if (IsInGame() && !IsSequencePlaying()) {
|
||||||
ESP::RunGoatsESP();
|
if (settings::goat_esp && SceneName() != "Menu")
|
||||||
|
ESP::RunGoatsESP();
|
||||||
|
|
||||||
if (settings::item_esp && SceneName() != "Menu")
|
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 && SceneName() != "Menu")
|
if (settings::azazel_esp && SceneName() != "Menu")
|
||||||
ESP::RunAzazelESP();
|
ESP::RunAzazelESP();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::GetIO().MouseDrawCursor = open_menu;
|
ImGui::GetIO().MouseDrawCursor = open_menu;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user