Upload files to "Patches"
This commit is contained in:
1 parent
07baed88f8
commit
f1a53b1283
4 files changed
+149
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace FortniteEmoteWheel.Patches;
|
||||
|
||||
[HarmonyPatch(typeof(GorillaQuitBox), nameof(GorillaQuitBox.OnBoxTriggered))]
|
||||
public static class QuitBoxPatch
|
||||
{
|
||||
private static bool Prefix()
|
||||
{
|
||||
if (GorillaLocomotion.GTPlayer.Instance == null)
|
||||
return true;
|
||||
|
||||
ZoneManagement.SetActiveZone(GTZone.forest);
|
||||
GorillaLocomotion.GTPlayer.Instance.transform.position = new UnityEngine.Vector3(-76f, 7f, -80f);
|
||||
|
||||
if (GorillaLocomotion.GTPlayer.Instance != null)
|
||||
GorillaLocomotion.GTPlayer.Instance.playerRigidBody.linearVelocity = UnityEngine.Vector3.zero;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user