Some mods may be broken due to the recent Alloyed Collective update.
Decompiled source of MinigunMando v1.0.0
plugins/MinigunMando/MinigunMando.dll
Decompiled 11 months agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using EntityStates.Commando.CommandoWeapon; using On.RoR2; using RoR2; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")] [assembly: AssemblyCompany("MinigunMando")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("MinigunMando")] [assembly: AssemblyTitle("MinigunMando")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace CommandoMod; internal static class Log { private static ManualLogSource _logSource; internal static void Init(ManualLogSource logSource) { _logSource = logSource; } internal static void Debug(object data) { _logSource.LogDebug(data); } internal static void Error(object data) { _logSource.LogError(data); } internal static void Fatal(object data) { _logSource.LogFatal(data); } internal static void Info(object data) { _logSource.LogInfo(data); } internal static void Message(object data) { _logSource.LogMessage(data); } internal static void Warning(object data) { _logSource.LogWarning(data); } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.dioxyq.MinigunMando", "MinigunMando", "1.0.0")] public class MinigunMando : BaseUnityPlugin { public const string PluginGUID = "Dioxyq.MinigunMando"; public const string PluginAuthor = "Dioxyq"; public const string PluginName = "MinigunMando"; public const string PluginVersion = "1.0.0"; public const float fireSpeedCoefficient = 10f; private const float damage = 0.1f; private const float duration = 0.015000001f; private void OnEnable() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown BulletAttack.Fire += new hook_Fire(OnBulletAttack); RoR2Application.Awake += new hook_Awake(OnAwake); } private void OnDisable() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown BulletAttack.Fire -= new hook_Fire(OnBulletAttack); RoR2Application.Awake -= new hook_Awake(OnAwake); } private static void OnBulletAttack(orig_Fire orig, BulletAttack self) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) if (((Object)self.owner).name == "CommandoBody(Clone)") { self.maxDistance = 1000f; self.falloffModel = (FalloffModel)0; } orig.Invoke(self); } public static void OnAwake(orig_Awake orig, RoR2Application self) { FirePistol2.damageCoefficient = 0.1f; FirePistol2.force = 0f; FirePistol2.baseDuration = 0.015000001f; FirePistol2.recoilAmplitude = 0f; FirePistol2.spreadBloomValue = 0f; orig.Invoke(self); } }