Decompiled source of NoScreenShake v1.0.1

Mods/NoScreenShake.dll

Decompiled 4 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using CustomRumblePlayerModel;
using MelonLoader;
using RUMBLE.Managers;
using RUMBLE.Players.Subsystems;
using RUMBLE.Utilities;
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(Default), "No Screen Shake", "1.0.0", "hlsl (Neon)", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: AssemblyTitle("CustomRumblePlayerModel")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CustomRumblePlayerModel")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3e80e578-a2a7-4efa-9c41-db59b4b38186")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace CustomRumblePlayerModel;

public class Default : 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;
		}
	}
}