added functions for player list

This commit is contained in:
2023-01-09 18:19:53 +01:00
parent 64c6b4129a
commit 734f7ced0a
3 changed files with 81 additions and 6 deletions

View File

@@ -142,7 +142,6 @@ namespace DevourClient.Hacks
_reviveInteractable.Interact(nb.gameObject); _reviveInteractable.Interact(nb.gameObject);
} }
public static void TPItems() public static void TPItems()
{ {
try try

View File

@@ -11,6 +11,56 @@ namespace DevourClient.Helpers
public GameObject p_GameObject { get; set; } = default!; public GameObject p_GameObject { get; set; } = default!;
public string Name { get; set; } = default!; public string Name { get; set; } = default!;
public string Id { get; set; } = default!; public string Id { get; set; } = default!;
public void Kill()
{
if (p_GameObject == null)
{
return;
}
Il2Cpp.NolanBehaviour nb = p_GameObject.GetComponent<Il2Cpp.NolanBehaviour>();
}
public void Revive()
{
if (p_GameObject == null)
{
return;
}
Il2Cpp.NolanBehaviour nb = p_GameObject.GetComponent<Il2Cpp.NolanBehaviour>();
Il2Cpp.SurvivalReviveInteractable _reviveInteractable = UnityEngine.Object.FindObjectOfType<Il2Cpp.SurvivalReviveInteractable>();
_reviveInteractable.Interact(nb.gameObject);
}
public void Jumpscare()
{
if (p_GameObject == null)
{
return;
}
}
public void LockInCage()
{
if (p_GameObject == null)
{
return;
}
}
public void TP()
{
if (p_GameObject == null)
{
return;
}
Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
nb.TeleportTo(p_GameObject.transform.position, Quaternion.identity);
}
} }
public class Player public class Player
{ {

View File

@@ -650,6 +650,32 @@ namespace DevourClient
} }
GUI.Label(new Rect(Settings.Settings.x + 580, Settings.Settings.y + 430 + i, 150, 30), bp.Name); GUI.Label(new Rect(Settings.Settings.x + 580, Settings.Settings.y + 430 + i, 150, 30), bp.Name);
if (GUI.Button(new Rect(Settings.Settings.x + 650, Settings.Settings.y + 430, 60, 20), "Kill"))
{
bp.Kill();
}
if (GUI.Button(new Rect(Settings.Settings.x + 710, Settings.Settings.y + 430, 80, 20), "Revive"))
{
bp.Revive();
}
if (GUI.Button(new Rect(Settings.Settings.x + 790, Settings.Settings.y + 430, 100, 20), "Jumpscare"))
{
bp.Jumpscare();
}
if (GUI.Button(new Rect(Settings.Settings.x + 890, Settings.Settings.y + 430, 80, 20), "TP to"))
{
bp.TP();
}
if (GUI.Button(new Rect(Settings.Settings.x + 970, Settings.Settings.y + 430, 110, 20), "Lock in cage"))
{
bp.LockInCage();
}
i += 30; i += 30;
} }
} }
@@ -674,7 +700,7 @@ namespace DevourClient
Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true); Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true);
} }
if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP Azazel")) if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP to Azazel"))
{ {
try try
{ {
@@ -706,7 +732,7 @@ namespace DevourClient
Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true); Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true);
} }
if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP Azazel")) if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP to Azazel"))
{ {
try try
{ {
@@ -743,7 +769,7 @@ namespace DevourClient
Hacks.Misc.CleanFountain(); Hacks.Misc.CleanFountain();
} }
if (GUI.Button(new Rect(Settings.Settings.x + 460, Settings.Settings.y + 430, 120, 20), "TP Azazel")) if (GUI.Button(new Rect(Settings.Settings.x + 460, Settings.Settings.y + 430, 120, 20), "TP to Azazel"))
{ {
try try
{ {
@@ -774,7 +800,7 @@ namespace DevourClient
Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true); Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true);
} }
if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP Azazel")) if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP to Azazel"))
{ {
try try
{ {