fix stuff, jumpscare player left

This commit is contained in:
2023-01-09 19:24:25 +01:00
parent 51ce511183
commit c53c2aca0f
2 changed files with 33 additions and 1 deletions

View File

@@ -2,7 +2,8 @@
using Il2CppOpsive.UltimateCharacterController.Character;
using System.Collections.Generic;
using System.Collections;
using MelonLoader;
using MelonLoader;
using Il2CppPhoton.Bolt;
namespace DevourClient.Helpers
{
@@ -49,6 +50,7 @@ namespace DevourClient.Helpers
return;
}
/*
Il2Cpp.SurvivalAzazelBehaviour sab = Il2Cpp.SurvivalAzazelBehaviour.FindObjectOfType<Il2Cpp.SurvivalAzazelBehaviour>();
if (sab == null)
@@ -57,6 +59,12 @@ namespace DevourClient.Helpers
}
sab.OnPickedUpPlayer(sab.gameObject, p_GameObject, false);
*/
MelonLogger.Msg(Name);
p_GameObject.GetComponent<Il2Cpp.JumpScare>().Activate(p_GameObject.GetComponent<BoltEntity>());
//Il2Cpp.JumpScare _jumpscare = UnityEngine.Object.FindObjectOfType<Il2Cpp.JumpScare>();
//_jumpscare.Activate(p_GameObject.GetComponent<BoltEntity>());
}
public void LockInCage()
@@ -65,6 +73,9 @@ namespace DevourClient.Helpers
{
return;
}
BoltNetwork.Instantiate(BoltPrefabs.Cage, p_GameObject.transform.position, Quaternion.identity);
}
public void TP()
@@ -77,6 +88,22 @@ namespace DevourClient.Helpers
Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
nb.TeleportTo(p_GameObject.transform.position, Quaternion.identity);
}
public void TPAzazel()
{
if (p_GameObject == null)
{
return;
}
Il2Cpp.SurvivalAzazelBehaviour sab = Il2Cpp.SurvivalAzazelBehaviour.FindObjectOfType<Il2Cpp.SurvivalAzazelBehaviour>();
if (sab == null)
{
return;
}
sab.gameObject.transform.position = p_GameObject.transform.position + p_GameObject.transform.forward;
}
}
public class Player
{

View File

@@ -676,6 +676,11 @@ namespace DevourClient
bp.LockInCage();
}
if (GUI.Button(new Rect(Settings.Settings.x + 1080, Settings.Settings.y + 430 + i, 100, 20), "TP Azazel"))
{
bp.TPAzazel();
}
i += 30;
}
}