add: now using coroutines for azazel
This commit is contained in:
@@ -51,6 +51,7 @@ namespace DevourClient.Helpers
|
||||
public static SurvivalDemonBehaviour[] Demons;
|
||||
public static SpiderBehaviour[] Spiders;
|
||||
public static GhostBehaviour[] Ghosts;
|
||||
public static SurvivalAzazelBehaviour[] Azazels;
|
||||
|
||||
public static IEnumerator GetLocalPlayer()
|
||||
{
|
||||
@@ -151,5 +152,19 @@ namespace DevourClient.Helpers
|
||||
yield return new WaitForSeconds(5f);
|
||||
}
|
||||
}
|
||||
|
||||
public static IEnumerator GeAzazels()
|
||||
{
|
||||
/*
|
||||
* ikr AzazelS, because in case we spawn multiple we want the esp to render all of them
|
||||
*/
|
||||
for (;;)
|
||||
{
|
||||
Azazels = SurvivalAzazelBehaviour.FindObjectsOfType<SurvivalAzazelBehaviour>();
|
||||
|
||||
// Wait 5 seconds before caching objects again.
|
||||
yield return new WaitForSeconds(5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace DevourClient
|
||||
MelonCoroutines.Start(Helpers.Entities.GetDemons());
|
||||
MelonCoroutines.Start(Helpers.Entities.GetSpiders());
|
||||
MelonCoroutines.Start(Helpers.Entities.GetGhosts());
|
||||
MelonCoroutines.Start(Helpers.Entities.GeAzazels());
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -369,7 +370,8 @@ namespace DevourClient
|
||||
|
||||
if (this.azazel_esp || this.azazel_snapline)
|
||||
{
|
||||
SurvivalAzazelBehaviour survivalAzazel = UnityEngine.Object.FindObjectOfType<SurvivalAzazelBehaviour>();
|
||||
foreach (SurvivalAzazelBehaviour survivalAzazel in Helpers.Entities.Azazels)
|
||||
{
|
||||
if (survivalAzazel != null)
|
||||
{
|
||||
|
||||
@@ -391,6 +393,7 @@ namespace DevourClient
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (Settings.Settings.menu_enable) //Si on appuie sur INSERT
|
||||
|
||||
Reference in New Issue
Block a user