using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("WallGrappleMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("WallGrappleMod")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("9a076fe2-d547-420c-ba43-177d8d1dbeca")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace WallGrappleMod; [BepInPlugin("com.ultrakill.wallgrapple", "Everything is Whippable Clone", "1.0.0")] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown Harmony val = new Harmony("com.ultrakill.wallgrapple"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Everything is Whippable Clone загружен!"); } } [HarmonyPatch(typeof(HookArm))] public class HookArmPatches { [HarmonyPatch("FixedUpdate")] [HarmonyPrefix] private static void FixedUpdatePrefix(HookArm __instance, ref HookState ___state, ref Vector3 ___hookPoint, Vector3 ___throwDirection, LayerMask ___enviroMask, LayerMask ___enemyMask, ref Transform ___caughtTransform, ref Vector3 ___caughtPoint, ref Collider ___caughtCollider, ref bool ___lightTarget, Animator ___anim, AudioSource ___aud, GameObject ___hitSound, GameObject ___pullSound, GameObject ___wooshSound, ref GameObject ___currentWoosh, AudioClip ___pullLoop) { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_0118: Unknown result type (might be due to invalid IL or missing references) if ((int)___state != 1 || (Object)(object)___caughtTransform != (Object)null) { return; } float num = 250f * Time.fixedDeltaTime; RaycastHit val = default(RaycastHit); RaycastHit val2 = default(RaycastHit); if (!Physics.SphereCast(___hookPoint, 0.35f, ___throwDirection, ref val, num, LayerMask.op_Implicit(___enemyMask), (QueryTriggerInteraction)1) && Physics.Raycast(___hookPoint, ___throwDirection, ref val2, num, LayerMask.op_Implicit(___enviroMask), (QueryTriggerInteraction)1)) { ___caughtTransform = ((RaycastHit)(ref val2)).transform; ___caughtCollider = ((RaycastHit)(ref val2)).collider; Vector3 val3 = ((RaycastHit)(ref val2)).point + ((RaycastHit)(ref val2)).normal * 0.05f; ___caughtPoint = val3 - ((RaycastHit)(ref val2)).transform.position; ___hookPoint = val3; ___lightTarget = false; ___state = (HookState)3; if ((Object)(object)___anim != (Object)null) { ___anim.Play("Pull", -1, 0f); } if ((Object)(object)__instance.hand != (Object)null) { ((Component)__instance.hand).transform.localPosition = new Vector3(-0.015f, 0.071f, 0.04f); } if ((Object)(object)___hitSound != (Object)null) { Object.Instantiate(___hitSound); } if ((Object)(object)___wooshSound != (Object)null) { ___currentWoosh = Object.Instantiate(___wooshSound); } if ((Object)(object)___pullSound != (Object)null) { Object.Instantiate(___pullSound); } if ((Object)(object)___aud != (Object)null && (Object)(object)___pullLoop != (Object)null) { ___aud.clip = ___pullLoop; AudioSourceExtensions.SetPitch(___aud, Random.Range(0.9f, 1.1f)); ___aud.panStereo = -0.5f; AudioSourceExtensions.Play(___aud, true); } } } }