Some mods target the Mono version of the game, which is available by opting into the Steam beta branch "alternate"
Decompiled source of GunControlMono v1.1.0
Mods/GunControl.Mono.dll
Decompiled a month agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using Fxcpds; using GunControl; using MelonLoader; using Microsoft.CodeAnalysis; using ScheduleOne; using ScheduleOne.Core.Items.Framework; using ScheduleOne.DevUtilities; using ScheduleOne.ItemFramework; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: MelonID("GunControl")] [assembly: MelonInfo(typeof(Mod), "Gun Control", "1.1.0", "Foxcapades", null)] [assembly: MelonGame("TVGS", "Schedule I")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("GunControl")] [assembly: AssemblyConfiguration("Mono")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+7ca6b9625071ad2bffb363da03983c0bc4e88ab0")] [assembly: AssemblyProduct("GunControl")] [assembly: AssemblyTitle("GunControl")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace Fxcpds { public abstract class FxMod : MelonMod { private static FxMod? instance; protected const string SCENE_NAME_MAIN = "Main"; public static FxMod Instance => instance; public static Instance Logger => ((MelonBase)instance).LoggerInstance; protected string Scene { get; private set; } = ""; public bool InMainScene { get; private set; } public override void OnEarlyInitializeMelon() { instance = this; } public override void OnSceneWasLoaded(int _, string sceneName) { Scene = sceneName; if (sceneName == "Main") { InMainScene = true; onMainLoaded(); } } public override void OnSceneWasInitialized(int _, string sceneName) { if (sceneName == "Main") { onMainInitialized(); } } public override void OnSceneWasUnloaded(int _, string sceneName) { if (Scene == sceneName) { Scene = ""; } if (sceneName == "Main") { InMainScene = false; onMainUnloaded(); } } protected virtual void onMainLoaded() { } protected virtual void onMainInitialized() { } protected virtual void onMainUnloaded() { } } } namespace GunControl { public class Mod : FxMod { public const string MOD_NAME = "Gun Control"; protected override void onMainLoaded() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Invalid comparison between Unknown and I4 //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) List<ItemDefinition> allItems = Singleton<Registry>.Instance.GetAllItems(); foreach (ItemDefinition item in allItems) { if ((int)((BaseItemDefinition)item).Category == 3) { switch (((BaseItemDefinition)item).ID) { case "m1911": case "revolver": case "pumpshotgun": ((BaseItemDefinition)item).legalStatus = (ELegalStatus)4; break; case "m1911mag": case "revolvercylinder": case "shotgunshell": ((BaseItemDefinition)item).legalStatus = (ELegalStatus)3; break; } } } } } }