using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using OtherLoader;
using UnityEngine;
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.0.0")]
[module: UnverifiableCode]
namespace Alloy
{
public static class EnumExtension
{
public static bool HasFlag(this Enum keys, Enum flag)
{
int num = Convert.ToInt32(keys);
int num2 = Convert.ToInt32(flag);
return (num & num2) == num2;
}
}
}
namespace FistVR
{
[HelpURL("https://h3vr-modding.github.io/docs/api/FistVR.MuzzleNoiseMaker.html")]
public class MuzzleNoiseMakerNoIFF : MuzzleDevice
{
public AudioEvent AudEvent_SoundToPlay;
public bool PlaysTail = true;
[Tooltip("The type of sound to play when firing.")]
public FVRTailSoundClass TailSoundClass = (FVRTailSoundClass)11;
[Tooltip("The environment simulation for the sound.")]
public FVRSoundEnvironment SoundEnvironment = (FVRSoundEnvironment)12;
public override void OnShot(FVRFireArm f, FVRTailSoundClass tailClass)
{
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_0046: Unknown result type (might be due to invalid IL or missing references)
if (PlaysTail)
{
f.PlayShotTail(TailSoundClass, SoundEnvironment, 1f);
}
else
{
f.PlayAudioAsHandling(AudEvent_SoundToPlay, ((Component)this).transform.position);
}
((MuzzleDevice)this).OnShot(f, tailClass);
}
public override void OnShot(AttachableFirearm f, FVRTailSoundClass tailClass)
{
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_0046: Unknown result type (might be due to invalid IL or missing references)
if (PlaysTail)
{
f.PlayShotTail(TailSoundClass, SoundEnvironment, 1f);
}
else
{
f.PlayAudioAsHandling(AudEvent_SoundToPlay, ((Component)this).transform.position);
}
((MuzzleDevice)this).OnShot(f, tailClass);
}
}
}
namespace MeatKit
{
public class HideInNormalInspectorAttribute : PropertyAttribute
{
}
}
namespace F_Fillet.Loudener_Muzzles
{
[BepInPlugin("F_Fillet.Loudener_Muzzles", "Loudener_Muzzles", "1.0.0")]
[BepInProcess("h3vr.exe")]
[Description("Built with MeatKit")]
[BepInDependency("h3vr.otherloader", "1.3.0")]
public class Loudener_MuzzlesPlugin : BaseUnityPlugin
{
private static readonly string BasePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
internal static ManualLogSource Logger;
private void Awake()
{
Logger = ((BaseUnityPlugin)this).Logger;
LoadAssets();
}
private void LoadAssets()
{
OtherLoader.RegisterDirectLoad(BasePath, "F_Fillet.Loudener_Muzzles", "", "", "loudener muzzles", "");
}
}
}