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
This commit is contained in:
Jadis0x
2024-06-25 23:23:37 +03:00
parent af76512cf4
commit a462aa0afc
5 changed files with 31 additions and 12 deletions

View File

@@ -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()
{

View File

@@ -13,4 +13,6 @@ bool IsSequencePlaying();
app::GameObject* GetAzazel(app::Survival* survival);
std::string SceneName();
std::string GetAzazelName();
float Time_DeltaTime();