fix stuff, jumpscare player left
This commit is contained in:
@@ -3,6 +3,7 @@ using Il2CppOpsive.UltimateCharacterController.Character;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using MelonLoader;
|
using MelonLoader;
|
||||||
|
using Il2CppPhoton.Bolt;
|
||||||
|
|
||||||
namespace DevourClient.Helpers
|
namespace DevourClient.Helpers
|
||||||
{
|
{
|
||||||
@@ -49,6 +50,7 @@ namespace DevourClient.Helpers
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
Il2Cpp.SurvivalAzazelBehaviour sab = Il2Cpp.SurvivalAzazelBehaviour.FindObjectOfType<Il2Cpp.SurvivalAzazelBehaviour>();
|
Il2Cpp.SurvivalAzazelBehaviour sab = Il2Cpp.SurvivalAzazelBehaviour.FindObjectOfType<Il2Cpp.SurvivalAzazelBehaviour>();
|
||||||
|
|
||||||
if (sab == null)
|
if (sab == null)
|
||||||
@@ -57,6 +59,12 @@ namespace DevourClient.Helpers
|
|||||||
}
|
}
|
||||||
|
|
||||||
sab.OnPickedUpPlayer(sab.gameObject, p_GameObject, false);
|
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()
|
public void LockInCage()
|
||||||
@@ -65,6 +73,9 @@ namespace DevourClient.Helpers
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BoltNetwork.Instantiate(BoltPrefabs.Cage, p_GameObject.transform.position, Quaternion.identity);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TP()
|
public void TP()
|
||||||
@@ -77,6 +88,22 @@ namespace DevourClient.Helpers
|
|||||||
Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
|
Il2Cpp.NolanBehaviour nb = Player.GetPlayer();
|
||||||
nb.TeleportTo(p_GameObject.transform.position, Quaternion.identity);
|
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
|
public class Player
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -676,6 +676,11 @@ namespace DevourClient
|
|||||||
bp.LockInCage();
|
bp.LockInCage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GUI.Button(new Rect(Settings.Settings.x + 1080, Settings.Settings.y + 430 + i, 100, 20), "TP Azazel"))
|
||||||
|
{
|
||||||
|
bp.TPAzazel();
|
||||||
|
}
|
||||||
|
|
||||||
i += 30;
|
i += 30;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user