Decompiled source of DisableSnapBackwards v1.0.0

Mods/DisableSnapBackwards.dll

Decompiled a day ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using DisableSnapBackwards;
using HarmonyLib;
using Il2CppRUMBLE.Players.Subsystems;
using MelonLoader;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Core), "DisableSnapBackwards", "1.0.0", "TacoSlayer36", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("DisableSnapBackwards")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("DisableSnapBackwards")]
[assembly: AssemblyTitle("DisableSnapBackwards")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace DisableSnapBackwards;

public static class BuildInfo
{
	public const string Name = "DisableSnapBackwards";

	public const string Author = "TacoSlayer36";

	public const string Version = "1.0.0";
}
public class Core : MelonMod
{
	[HarmonyPatch(typeof(PlayerMovement), "SnapTurn", new Type[] { typeof(float) })]
	private static class SnapTurnPatch2
	{
		private static bool Prefix(ref float angle)
		{
			return angle != 180f;
		}
	}
}