Decompiled source of NoScreenShake2 v1.0.0

Mods/NoScreenShake2.dll

Decompiled 5 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Il2CppRUMBLE.Managers;
using Il2CppRUMBLE.Players.Subsystems;
using Il2CppRUMBLE.Utilities;
using MelonLoader;
using NoScreenShake2;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Class1), "NoScreenShake2", "1.0.0", "NichRumble", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: AssemblyTitle("NoScreenShake2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoScreenShake2")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e5fc1190-ad1f-4cc9-8902-d1a3f5b4abe0")]
[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 NoScreenShake2;

public class Class1 : MelonMod
{
	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		if (sceneName == "Loader")
		{
			((Component)((Component)Singleton<PlayerManager>.Instance.PlayerControllerPrefab).transform.Find("VR")).GetComponent<PlayerHaptics>().comfortSettings.cameraShakeStrengthRange = Vector2.zero;
		}
	}
}