Decompiled source of M7A3 CS Gas v1.0.0

M7A3_CS_Gas.dll

Decompiled 12 hours 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 HarmonyLib;
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 JerryM7A3
{
	public class DynamicSmoke : MonoBehaviour
	{
		public ParticleSystem part;

		public float ss;

		public MainModule main;

		private void Start()
		{
			ss = 5f;
		}

		private void Update()
		{
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			ss = Mathf.Lerp(ss, 0.25f, Time.deltaTime * 25f);
			MainModule val = part.main;
			((MainModule)(ref val)).simulationSpeed = ss;
		}
	}
}
namespace JerryAr.M7A3_CS_Gas
{
	[BepInPlugin("JerryAr.M7A3_CS_Gas", "M7A3_CS_Gas", "1.0.0")]
	[BepInProcess("h3vr.exe")]
	[Description("Built with MeatKit")]
	[BepInDependency("h3vr.otherloader", "1.3.0")]
	public class M7A3_CS_GasPlugin : 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(), "JerryAr.M7A3_CS_Gas");
			OtherLoader.RegisterDirectLoad(BasePath, "JerryAr.M7A3_CS_Gas", "", "", "m7a3cs", "");
		}
	}
}