Decompiled source of NZ Infernal Scorpions v0.1.1

InfernalScorpionsPrototype.dll

Decompiled an hour ago
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 FistVR;
using HarmonyLib;
using OtherLoader;

[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 InfernalScorpions
{
	public class ScorpionMagazine : FVRFireArmMagazine
	{
		public override void Awake()
		{
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Expected I4, but got Unknown
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Expected O, but got Unknown
			FireArmRoundClass[] array = (FireArmRoundClass[])(object)new FireArmRoundClass[base.m_capacity];
			FireArmRoundClass defaultRoundClass = AM.GetDefaultRoundClass(base.RoundType);
			for (int i = 0; i < array.Length; i++)
			{
				array[i] = (FireArmRoundClass)(int)defaultRoundClass;
			}
			FVRMagazineLoadingPattern val = new FVRMagazineLoadingPattern();
			val.Classes = array;
			base.DefaultLoadingPattern = val;
			((FVRFireArmMagazine)this).Awake();
		}
	}
}
namespace LocalTest.InfernalScorpionsPrototype
{
	[BepInPlugin("LocalTest.InfernalScorpionsPrototype", "InfernalScorpionsPrototype", "0.1.0")]
	[BepInProcess("h3vr.exe")]
	[Description("Built with MeatKit")]
	[BepInDependency("h3vr.otherloader", "1.3.0")]
	public class InfernalScorpionsPrototypePlugin : 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()
		{
			Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "LocalTest.InfernalScorpionsPrototype");
			OtherLoader.RegisterDirectLoad(BasePath, "LocalTest.InfernalScorpionsPrototype", "", "", "nz_infernal_scorpions", "");
		}
	}
}