Skip to content

Commit d6fb8f3

Browse files
2 parents 2f2d3da + 8d63f86 commit d6fb8f3

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Menu/Buttons.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ public class Buttons
515515
new ButtonInfo { buttonText = "Vertical Long Arms", method =() => Movement.VerticalLongArms(), toolTip = "Gives you a version of long arms to help you vertically."},
516516
new ButtonInfo { buttonText = "Horizontal Long Arms", method =() => Movement.HorizontalLongArms(), toolTip = "Gives you a version of long arms to help you horizontally."},
517517

518+
new ButtonInfo { buttonText = "Extenders <color=grey>[</color><color=green>J</color><color=grey>]</color>", method =() => Movement.Extenders(), enableMethod =() => Movement.extendingTime = 0f, disableMethod =() => Movement.DisableSteamLongArms(), toolTip = "Steam long arms, but it slowly disables when holding the right trigger."},
519+
518520
new ButtonInfo { buttonText = "Flick Jump <color=grey>[</color><color=green>A</color><color=grey>]</color>", method =() => Movement.FlickJump(), toolTip = "Makes your hand go down really fast when holding <color=green>A</color>."},
519521

520522
new ButtonInfo { buttonText = "Bunny Hop", method =() => Movement.BunnyHop(), toolTip = "Makes you automatically jump when on the ground."},

Mods/Movement.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,6 +3070,17 @@ public static void EnableSteamLongArms() =>
30703070
public static void DisableSteamLongArms() =>
30713071
GTPlayer.Instance.transform.localScale = Vector3.one;
30723072

3073+
public static float extendingTime;
3074+
public static void Extenders()
3075+
{
3076+
extendingTime += rightJoystickClick ? 0 - Time.unscaledDeltaTime : Time.unscaledDeltaTime;
3077+
if (extendingTime > 1) extendingTime = 1;
3078+
if (extendingTime < 0) extendingTime = 0;
3079+
3080+
float delayedLength = ((armlength - 1f) * extendingTime) + 1f;
3081+
GTPlayer.Instance.transform.localScale = new Vector3(delayedLength, delayedLength, delayedLength);
3082+
}
3083+
30733084
public static void MultipliedLongArms()
30743085
{
30753086
GTPlayer.Instance.leftControllerTransform.transform.position = GorillaTagger.Instance.headCollider.transform.position - (GorillaTagger.Instance.headCollider.transform.position - GorillaTagger.Instance.leftHandTransform.position) * armlength;

0 commit comments

Comments
 (0)