Skip to content

Commit

Permalink
fixed sandbox arm being B I G
Browse files Browse the repository at this point in the history
  • Loading branch information
whateverusername0 committed Apr 29, 2023
1 parent dc0dbe2 commit 0c76b5a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions VRTRAKILL/VRTRAKILL/VRPlayer/Guns/Patches/RemoveArms.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using HarmonyLib;
using Sandbox.Arm;
using System;
using UnityEngine;

Expand All @@ -24,16 +25,16 @@ static void RemoveRevolverArm(Revolver __instance)
}
catch (NullReferenceException) { Plugin.PLogger.LogWarning($"Revolver is null???"); }
}
[HarmonyPrefix] [HarmonyPostfix]
[HarmonyPatch(typeof(Sandbox.Arm.SandboxArm), nameof(Sandbox.Arm.SandboxArm.Update))]
[HarmonyPatch(typeof(Sandbox.Arm.SandboxArm), nameof(Sandbox.Arm.SandboxArm.FixedUpdate))]
static void RemoveSandboxArm(Sandbox.Arm.SandboxArm __instance)
[HarmonyPostfix]
[HarmonyPatch(typeof(SandboxArm), nameof(SandboxArm.Update))]
[HarmonyPatch(typeof(SandboxArm), nameof(SandboxArm.FixedUpdate))]
static void RemoveSandboxArm(SandboxArm __instance)
{
try
{
ArmT = __instance.transform;
Arms.Feedbacker.Armature Arm = new Arms.Feedbacker.Armature(ArmT);
Arm.RArmature.localScale = new Vector3(1, 1, 1);
Arm.RArmature.localScale = new Vector3(0.01f, 0.01f, 0.01f);
Arm.Hand.localScale = new Vector3(100, 100, 100);
}
catch (NullReferenceException) { Plugin.PLogger.LogWarning($"Sandbox arm is null???"); }
Expand Down

0 comments on commit 0c76b5a

Please sign in to comment.