FreezeAzazel function added

This commit is contained in:
jadis0x
2023-01-16 22:10:35 +03:00
committed by GitHub
parent f6cfbc21cb
commit 2d337d4e9e

View File

@@ -309,6 +309,7 @@ namespace DevourClient.Hacks
Il2CppHorror.Menu menu = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>(); Il2CppHorror.Menu menu = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>();
menu.ShowMessageModal(message); menu.ShowMessageModal(message);
} }
public static void PlaySound() public static void PlaySound()
{ {
/* /*
@@ -363,6 +364,39 @@ namespace DevourClient.Hacks
return; return;
} }
} }
public static void FreezeAzazel()
{
if (!BoltNetwork.IsServer || Helpers.Map.GetActiveScene() == "Menu")
{
return;
}
try
{
if (Helpers.Map.GetAzazel() == null) {
return;
}
UltimateCharacterLocomotion _azazelLocomotion = Helpers.Map.GetAzazel().GetComponent<UltimateCharacterLocomotion>();
if (_azazelLocomotion == null)
{
return;
}
if (_azazelLocomotion.TimeScale == 1.0f)
{
_azazelLocomotion.TimeScale = 0f;
}
else
{
_azazelLocomotion.TimeScale = 1.0f;
}
}
catch { }
}
public static void InstantWin() public static void InstantWin()
{ {
Il2Cpp.Survival survival_class = UnityEngine.Object.FindObjectOfType<Il2Cpp.Survival>(); Il2Cpp.Survival survival_class = UnityEngine.Object.FindObjectOfType<Il2Cpp.Survival>();