Skip to content

Commit

Permalink
5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iiDk committed Feb 24, 2025
1 parent 271b253 commit 25526de
Show file tree
Hide file tree
Showing 12 changed files with 403 additions and 291 deletions.
356 changes: 177 additions & 179 deletions Menu/Main.cs

Large diffs are not rendered by default.

57 changes: 7 additions & 50 deletions Menu/UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,14 @@ public class Main : MonoBehaviour
private string inputText = "goldentrophy";

private string r = "255";

private string g = "128";

This comment has been minimized.

Copy link
@markysan05

markysan05 Mar 4, 2025

.


private string b = "0";

public static bool isOpen = true;

public static bool lastCondition = false;

public static float lasttimeiconupdated = -1f;

public static Texture2D icon;

private Texture2D LoadTextureFromResource(string resourcePath)
{
Texture2D texture = new Texture2D(2, 2);

Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourcePath);
if (stream != null)
{
byte[] fileData = new byte[stream.Length];
stream.Read(fileData, 0, (int)stream.Length);
texture.LoadImage(fileData);
}
else
{
Debug.LogError("Failed to load texture from resource: " + resourcePath);
}
return texture;
}

private void Start()
{
if (File.Exists("iisStupidMenu/iiMenu_HideGUI.txt"))
Expand Down Expand Up @@ -144,44 +121,26 @@ private void OnGUI()
b = GUI.TextField(new Rect(Screen.width - 240, 80, 30, 20), b);

if (GUI.Button(new Rect(Screen.width - 200, 50, 85, 30), "Name"))
{
try
{
GorillaComputer.instance.currentName = inputText;
PhotonNetwork.LocalPlayer.NickName = inputText;
GorillaComputer.instance.offlineVRRigNametagText.text = inputText;
GorillaComputer.instance.savedName = inputText;
PlayerPrefs.SetString("playerName", inputText);
PlayerPrefs.Save();
}
catch
{
UnityEngine.Debug.Log("lemming is yet to fix me");
}
}
ChangeName(inputText.Replace("\\n", "\n"));

if (GUI.Button(new Rect(Screen.width - 105, 50, 85, 30), "Color"))
{
UnityEngine.Color color = new Color32(byte.Parse(r), byte.Parse(g), byte.Parse(b), 255);

ChangeColor(color);
}

bool Create = false;
try
{
Create = UnityInput.Current.GetKey(KeyCode.LeftControl);
} catch { }

if (GUI.Button(new Rect(Screen.width - 200, 90, 85, 30), Create ? "Create" : "Join"))
{
if (Create)
{
string toJoin = inputText.Replace("\\n", "\n");
iiMenu.Mods.Important.CreateRoom(toJoin, true);
} else
{
string toJoin = inputText.Replace("\\n", "\n");
PhotonNetworkController.Instance.AttemptToJoinSpecificRoom(toJoin, JoinType.Solo);
}

iiMenu.Mods.Important.CreateRoom(inputText.Replace("\\n", "\n"), true);
else
PhotonNetworkController.Instance.AttemptToJoinSpecificRoom(inputText.Replace("\\n", "\n"), JoinType.Solo);
}
if (GUI.Button(new Rect(Screen.width - 105, 90, 85, 30), "Queue"))
{
Expand Down Expand Up @@ -232,9 +191,7 @@ private void OnGUI()
.ToArray();

foreach (string v in sortedButtons)
{
GUILayout.Label(v, Array.Empty<GUILayoutOption>());
}

GUILayout.EndVertical();
GUILayout.EndHorizontal();
Expand Down
9 changes: 4 additions & 5 deletions Mods/Advantages.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
using ExitGames.Client.Photon;
using GorillaTagScripts;
using iiMenu.Classes;
using iiMenu.Notifications;
using Photon.Pun;
using System;
using UnityEngine;
using Valve.VR;
using UnityEngine.InputSystem;
using static iiMenu.Menu.Main;
using UnityEngine.Animations.Rigging;
using GorillaTagScripts;

namespace iiMenu.Mods
{
Expand Down Expand Up @@ -254,6 +250,9 @@ public static void NahTagLag()
}
}

public static float tagAuraDistance = 1.666f;
public static int tagAuraIndex = 1;

public static void ChangeTagAuraRange()
{
tagAuraIndex++;
Expand Down
17 changes: 10 additions & 7 deletions Mods/Buttons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,8 @@ public class Buttons
new ButtonInfo { buttonText = "Fast Snowballs", method =() => Fun.FastSnowballs(), disableMethod =() => Fun.FixSnowballs(), toolTip = "Makes snowballs go really fast when thrown."},
new ButtonInfo { buttonText = "Slow Snowballs", method =() => Fun.SlowSnowballs(), disableMethod =() => Fun.FixSnowballs(), toolTip = "Makes snowballs go really slow when thrown."},

new ButtonInfo { buttonText = "Global Hoverboard", method =() => Fun.GlobalHoverboard(), disableMethod =() => Fun.DisableGlobalHoverboard(), toolTip = "Gives you the hoverboard no matter where you are."},

new ButtonInfo { buttonText = "Break Bug", enableMethod =() => Fun.BreakBug(), disableMethod =() => Fun.FixBug(), toolTip = "Makes the bug ungrabbable."},
new ButtonInfo { buttonText = "Break Bat", enableMethod =() => Fun.BreakBat(), disableMethod =() => Fun.FixBat(), toolTip = "Makes the bat ungrabbable."},

Expand Down Expand Up @@ -954,7 +956,11 @@ public class Buttons

new ButtonInfo { buttonText = "Attic Crash All <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.AtticCrashAll(), toolTip = "Crashes everybody inside of the attic."},

new ButtonInfo { buttonText = "Serversided Size Changer", method =() => Overpowered.SizeChanger(), enableMethod =() => Overpowered.SizeChanger(), disableMethod =() => Movement.DisableSizeChanger(), toolTip = "Increase your size by holding <color=green>trigger</color>, and decrease your size by holding <color=green>grip</color>. Everyone can see you grow or shrink."},
new ButtonInfo { buttonText = "Lag Gun", method =() => Overpowered.LagGun(), toolTip = "Lags whoever your hand desires."},
new ButtonInfo { buttonText = "Lag All <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.LagAll(), toolTip = "Lags everybody in the lobby when holding <color=green>trigger</color>."},

new ButtonInfo { buttonText = "Lag Spike Gun", method =() => Overpowered.LagSpikeGun(), toolTip = "Lags whoever your hand desires hard, but with a delay."},
new ButtonInfo { buttonText = "Lag Spike All <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.LagSpikeAll(), toolTip = "Lags everybody in the lobby when holding <color=green>trigger</color> hard, but with a delay."},

new ButtonInfo { buttonText = "Snowball Airstrike Gun", method =() => Overpowered.SnowballAirstrikeGun(), toolTip = "Spawns a snowball airstrike wherever your hand desires."},
new ButtonInfo { buttonText = "Snowball Gun", method =() => Overpowered.SnowballGun(), toolTip = "Spawns a snowball wherever your hand desires."},
Expand Down Expand Up @@ -1128,6 +1134,7 @@ public class Buttons
new ButtonInfo { buttonText = "Exit Experimental Mods", method =() => Settings.ReturnToMain(), isTogglable = false, toolTip = "Returns you back to the main page."},

new ButtonInfo { buttonText = "Experimental RPC Protection", toolTip = "Uses an experimental method of protecting your RPCs."},
new ButtonInfo { buttonText = "Overlap RPCs", enableMethod =() => Experimental.EnableOverlapRPCs(), disableMethod =() => Experimental.DisableOverlapRPCs(), toolTip = "Disables the check that only allows you to flush once a frame."},
new ButtonInfo { buttonText = "Anti RPC Ban", method =() => Experimental.AntiRPCBan(), isTogglable = false, toolTip = "An experimental anti RPC ban, not letting you get banned for sending RPCs."},

new ButtonInfo { buttonText = "Hyperflush", method =() => Experimental.Hyperflush(), isTogglable = false, toolTip = "An experimental way of flushing, that should be a little bit more powerful."},
Expand Down Expand Up @@ -1237,6 +1244,8 @@ public class Buttons
The mod cemetary
Every mod listed below has been removed from the menu, for one reason or another
new ButtonInfo { buttonText = "Serversided Size Changer", method =() => Overpowered.SizeChanger(), enableMethod =() => Overpowered.SizeChanger(), disableMethod =() => Movement.DisableSizeChanger(), toolTip = "Increase your size by holding <color=green>trigger</color>, and decrease your size by holding <color=green>grip</color>. Everyone can see you grow or shrink."},
new ButtonInfo { buttonText = "Set Master Client", method =() => Overpowered.SetMasterClient(), toolTip = "Sets you as the master client by kicking everyone above you on the leaderboard."},
new ButtonInfo { buttonText = "Crash All <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.CrashAll(), toolTip = "Crashes everybody in the room when holding <color=green>trigger</color>."},
Expand Down Expand Up @@ -1271,12 +1280,6 @@ The mod cemetary
new ButtonInfo { buttonText = "Attic Serversided Blocks", method =() => Overpowered.AtticServersidedBlocks(), toolTip = "Lets you spawn and do anything with blocks in any map."},
new ButtonInfo { buttonText = "Lag Gun", method =() => Overpowered.LagGun(), toolTip = "Lags whoever your hand desires."},
new ButtonInfo { buttonText = "Lag All <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.LagAll(), toolTip = "Lags everybody in the lobby when holding <color=green>trigger</color>."},
new ButtonInfo { buttonText = "Lag Spike Gun", method =() => Overpowered.LagSpikeGun(), toolTip = "Lags whoever your hand desires hard, but with a delay."},
new ButtonInfo { buttonText = "Lag Spike All <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.LagSpikeAll(), toolTip = "Lags everybody in the lobby when holding <color=green>trigger</color> hard, but with a delay."},
new ButtonInfo { buttonText = "Change Text Location", overlapText = "Change Text Location <color=grey>[</color><color=green>Forest</color><color=grey>]</color>", method =() => Overpowered.ChangeFriendStationPosition(), isTogglable = false, toolTip = "Changes the friend position of where the text spawns."},
new ButtonInfo { buttonText = "Big Emoji <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.BigEmoji(), toolTip = "Spawns a really big emoji at stump when holding <color=green>trigger</color>."},
new ButtonInfo { buttonText = "Black Box <color=grey>[</color><color=green>T</color><color=grey>]</color>", method =() => Overpowered.BlackScreenAll(), toolTip = "Spawns a really big black emoji when holding <color=green>trigger</color>."},
Expand Down
11 changes: 11 additions & 0 deletions Mods/Experimental.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,17 @@ public static void FixDuplicateButtons()
NotifiLib.SendNotification("<color=grey>[</color><color=green>SUCCESS</color><color=grey>]</color> Successfully fixed " + duplicateButtons.ToString() + " broken buttons.");
}

public static void EnableOverlapRPCs()
{
NoOverlapRPCs = false;
}

public static void DisableOverlapRPCs()
{
NoOverlapRPCs = true;
}

// Damn sure this does jack shit, idk who sent this to me
public static void AntiRPCBan()
{
GorillaGameManager.instance.OnPlayerLeftRoom(PhotonNetwork.LocalPlayer);
Expand Down
14 changes: 12 additions & 2 deletions Mods/Fun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public static void WaterSplashWalk()
{
if (Time.time > splashDel)
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching)
if (GorillaLocomotion.Player.Instance.IsHandTouching(true))
{
FieldInfo fieldInfo = typeof(GorillaLocomotion.Player).GetField("lastHitInfoHand", BindingFlags.NonPublic | BindingFlags.Instance);
RaycastHit ray = (RaycastHit)fieldInfo.GetValue(GorillaLocomotion.Player.Instance);
Expand All @@ -424,7 +424,7 @@ public static void WaterSplashWalk()
RPCProtection();
splashDel = Time.time + 0.1f;
}
if (GorillaLocomotion.Player.Instance.wasRightHandTouching)
if (GorillaLocomotion.Player.Instance.IsHandTouching(false))
{
FieldInfo fieldInfo = typeof(GorillaLocomotion.Player).GetField("lastHitInfoHand", BindingFlags.NonPublic | BindingFlags.Instance);
RaycastHit ray = (RaycastHit)fieldInfo.GetValue(GorillaLocomotion.Player.Instance);
Expand Down Expand Up @@ -1567,6 +1567,16 @@ public static void FixSnowballs()
}
}

public static void GlobalHoverboard()
{
GorillaLocomotion.Player.Instance.SetEnableHoverboard(true);
}

public static void DisableGlobalHoverboard()
{
GorillaLocomotion.Player.Instance.SetEnableHoverboard(false);
}

public static void FastGliders()
{
foreach (GliderHoldable glider in GetGliders())
Expand Down
48 changes: 21 additions & 27 deletions Mods/Movement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,12 @@ public static void UnflipCharacter()
GorillaLocomotion.Player.Instance.rightControllerTransform.parent.rotation = Quaternion.identity;
}

private static Vector3 walkPos;
private static Vector3 walkNormal;

public static void WallWalk()
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching || GorillaLocomotion.Player.Instance.wasRightHandTouching)
if (GorillaLocomotion.Player.Instance.IsHandTouching(true) || GorillaLocomotion.Player.Instance.IsHandTouching(false))
{
FieldInfo fieldInfo = typeof(GorillaLocomotion.Player).GetField("lastHitInfoHand", BindingFlags.NonPublic | BindingFlags.Instance);
RaycastHit ray = (RaycastHit)fieldInfo.GetValue(GorillaLocomotion.Player.Instance);
Expand All @@ -1328,7 +1331,7 @@ public static void WallWalk()

public static void WeakWallWalk()
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching || GorillaLocomotion.Player.Instance.wasRightHandTouching)
if (GorillaLocomotion.Player.Instance.IsHandTouching(true) || GorillaLocomotion.Player.Instance.IsHandTouching(false))
{
FieldInfo fieldInfo = typeof(GorillaLocomotion.Player).GetField("lastHitInfoHand", BindingFlags.NonPublic | BindingFlags.Instance);
RaycastHit ray = (RaycastHit)fieldInfo.GetValue(GorillaLocomotion.Player.Instance);
Expand All @@ -1346,7 +1349,7 @@ public static void WeakWallWalk()

public static void StrongWallWalk()
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching || GorillaLocomotion.Player.Instance.wasRightHandTouching)
if (GorillaLocomotion.Player.Instance.IsHandTouching(true) || GorillaLocomotion.Player.Instance.IsHandTouching(false))
{
FieldInfo fieldInfo = typeof(GorillaLocomotion.Player).GetField("lastHitInfoHand", BindingFlags.NonPublic | BindingFlags.Instance);
RaycastHit ray = (RaycastHit)fieldInfo.GetValue(GorillaLocomotion.Player.Instance);
Expand All @@ -1364,7 +1367,7 @@ public static void StrongWallWalk()

public static void SpiderWalk()
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching || GorillaLocomotion.Player.Instance.wasRightHandTouching)
if (GorillaLocomotion.Player.Instance.IsHandTouching(true) || GorillaLocomotion.Player.Instance.IsHandTouching(false))
{
FieldInfo fieldInfo = typeof(GorillaLocomotion.Player).GetField("lastHitInfoHand", BindingFlags.NonPublic | BindingFlags.Instance);
RaycastHit ray = (RaycastHit)fieldInfo.GetValue(GorillaLocomotion.Player.Instance);
Expand Down Expand Up @@ -2661,24 +2664,14 @@ public static void StickyHands()
stickpart.transform.localScale = new Vector3(0.15f, 0.15f, 0.15f);
stickpart.GetComponent<Renderer>().enabled = false;
}
if (Time.time > partDelay)
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching)
{
stickpart.transform.position = TrueLeftHand().position;
//partDelay = Time.time + 0.1f;
}
if (GorillaLocomotion.Player.Instance.wasRightHandTouching)
{
stickpart.transform.position = TrueRightHand().position;
//partDelay = Time.time + 0.1f;
}
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching && GorillaLocomotion.Player.Instance.wasRightHandTouching)
{
stickpart.transform.position = Vector3.zero;
//partDelay = Time.time;
}
}
if (GorillaLocomotion.Player.Instance.IsHandTouching(true))
stickpart.transform.position = TrueLeftHand().position;

if (GorillaLocomotion.Player.Instance.IsHandTouching(false))
stickpart.transform.position = TrueRightHand().position;

if (GorillaLocomotion.Player.Instance.IsHandTouching(true) && GorillaLocomotion.Player.Instance.IsHandTouching(false))
stickpart.transform.position = Vector3.zero;
}

public static void DisableStickyHands()
Expand All @@ -2702,7 +2695,7 @@ public static void ClimbyHands()
}
if (leftGrab)
{
if (GorillaLocomotion.Player.Instance.wasLeftHandTouching && !leftisclimbing)
if (GorillaLocomotion.Player.Instance.IsHandTouching(true) && !leftisclimbing)
{
climb.transform.position = GorillaTagger.Instance.leftHandTransform.position;
leftisclimbing = true;
Expand All @@ -2714,7 +2707,7 @@ public static void ClimbyHands()
}
if (rightGrab)
{
if (GorillaLocomotion.Player.Instance.wasRightHandTouching && !rightisclimbing)
if (GorillaLocomotion.Player.Instance.IsHandTouching(false) && !rightisclimbing)
{
climb.transform.position = GorillaTagger.Instance.rightHandTransform.position;
rightisclimbing = true;
Expand Down Expand Up @@ -2910,13 +2903,13 @@ public static void ChangePullModPower()
private static bool lasttouchright = false;
public static void PullMod()
{
if (((!GorillaLocomotion.Player.Instance.wasLeftHandTouching && lasttouchleft) || (!GorillaLocomotion.Player.Instance.wasRightHandTouching && lasttouchright)) && rightGrab)
if (((!GorillaLocomotion.Player.Instance.IsHandTouching(true) && lasttouchleft) || (!GorillaLocomotion.Player.Instance.IsHandTouching(false) && lasttouchright)) && rightGrab)
{
Vector3 vel = GorillaLocomotion.Player.Instance.GetComponent<Rigidbody>().velocity;
GorillaLocomotion.Player.Instance.transform.position += new Vector3(vel.x * pullPower, 0f, vel.z * pullPower);
}
lasttouchleft = GorillaLocomotion.Player.Instance.wasLeftHandTouching;
lasttouchright = GorillaLocomotion.Player.Instance.wasRightHandTouching;
lasttouchleft = GorillaLocomotion.Player.Instance.IsHandTouching(true);
lasttouchright = GorillaLocomotion.Player.Instance.IsHandTouching(false);
}

public static GameObject leftThrow = null;
Expand Down Expand Up @@ -3988,6 +3981,7 @@ public static void RandomSpazHeadPosition()
}
}

public static bool idiotfixthingy = false;
public static void LaggyRig()
{
ghostException = true;
Expand Down
Loading

0 comments on commit 25526de

Please sign in to comment.