using System;
using System.Collections;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using FistVR;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyCompany("Goosepamine")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Simply changes the ondeath black screen fade to instant")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("InstantBlackkScreen.mod_name")]
[assembly: AssemblyTitle("Instant black on death screen")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace BepInEx
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
internal sealed class BepInAutoPluginAttribute : Attribute
{
public BepInAutoPluginAttribute(string id = null, string name = null, string version = null)
{
}
}
}
namespace BepInEx.Preloader.Core.Patching
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
internal sealed class PatcherAutoPluginAttribute : Attribute
{
public PatcherAutoPluginAttribute(string id = null, string name = null, string version = null)
{
}
}
}
namespace Goosepamine
{
[BepInPlugin("your.plugin.id", "InstantBlackScreen", "1.0.0")]
[BepInProcess("h3vr.exe")]
public class InstantBlackScreen : BaseUnityPlugin
{
[HarmonyPatch(typeof(FVRSceneSettings))]
[HarmonyPatch("Update")]
private class MyWhateverClassName
{
private static void Postfix(FVRSceneSettings __instance)
{
__instance.PlayerDeathFade = 0f;
}
}
[HarmonyPatch(typeof(FVRSceneSettings))]
[HarmonyPatch("OnPlayerDeath")]
private class myPatchClass
{
private static void Postfix(FVRSceneSettings __instance)
{
GM.CurrentPlayerBody.ModdingMasterVolumeMinBlend = 0f;
((MonoBehaviour)__instance).StartCoroutine(UnmuteAudioAfterDelay());
}
private static IEnumerator UnmuteAudioAfterDelay()
{
yield return (object)new WaitForSeconds(3.3f);
GM.CurrentPlayerBody.ModdingMasterVolumeMinBlend = 1f;
}
}
internal static ManualLogSource Logger { get; private set; }
private void Awake()
{
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
//IL_0018: Expected O, but got Unknown
Logger = ((BaseUnityPlugin)this).Logger;
Harmony val = new Harmony("NGA.RedHot");
Logger.LogMessage((object)"New harmony");
SetUpConfigFields();
Logger.LogMessage((object)"Setted the fields");
val.PatchAll();
Logger.LogMessage((object)"Hello, world! Sent from NGA.RedHot 0.0.1");
}
private void SetUpConfigFields()
{
}
}
}