added functions for player list
This commit is contained in:
@@ -142,8 +142,7 @@ namespace DevourClient.Hacks
|
||||
|
||||
_reviveInteractable.Interact(nb.gameObject);
|
||||
}
|
||||
|
||||
public static void TPItems()
|
||||
public static void TPItems()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -11,6 +11,56 @@ namespace DevourClient.Helpers
|
||||
public GameObject p_GameObject { get; set; } = default!;
|
||||
public string Name { 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
|
||||
{
|
||||
|
||||
@@ -650,6 +650,32 @@ namespace DevourClient
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -674,7 +700,7 @@ namespace DevourClient
|
||||
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
|
||||
{
|
||||
@@ -706,7 +732,7 @@ namespace DevourClient
|
||||
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
|
||||
{
|
||||
@@ -743,7 +769,7 @@ namespace DevourClient
|
||||
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
|
||||
{
|
||||
@@ -774,7 +800,7 @@ namespace DevourClient
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user