Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Ro Ta Te v1.0.1
Ro_ta_te.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using Microsoft.CodeAnalysis; using Ro_ta_te.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("RadiationIsCool")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RadiationIsCool")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("8ee335db-0cbe-470c-8fbc-69263f01b35a")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace Ro_ta_te { [BepInPlugin("Piggy.Ro_ta_te", "Ro_ta_te", "1.0.0")] public class Ro_ta_teModBase : BaseUnityPlugin { private const string modGUID = "Piggy.Ro_ta_te"; private const string modName = "Ro_ta_te"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Piggy.Ro_ta_te"); private static Ro_ta_teModBase Instance; internal ManualLogSource mls; public static float rotationSpeed; public static bool rotateCollider; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Piggy.Ro_ta_te"); rotationSpeed = ((BaseUnityPlugin)this).Config.Bind<float>("ye", "Roation Speed", 1f, "yep").Value; rotateCollider = ((BaseUnityPlugin)this).Config.Bind<bool>("ye", "Roation Collider", false, "game destroyed").Value; mls.LogInfo((object)"Ro ta te is loaded"); harmony.PatchAll(typeof(Ro_ta_teModBase)); harmony.PatchAll(typeof(StartOfRoundPatch)); } } } namespace Ro_ta_te.Patches { [HarmonyPatch(typeof(StartOfRound))] internal class StartOfRoundPatch { public static Vector3 yeetVector = new Vector3(0f, 0f, Ro_ta_teModBase.rotationSpeed); [HarmonyPostfix] [HarmonyPatch("Update")] private static void Update_Postfix() { //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Unknown result type (might be due to invalid IL or missing references) GameObject[] array = Object.FindObjectsOfType<GameObject>(); GameObject[] array2 = array; foreach (GameObject val in array2) { if (val.activeSelf && !((Object)(object)val.GetComponent<Camera>() != (Object)null) && val.layer != LayerMask.NameToLayer("UI")) { if (((Object)val).name == "Systems") { val.transform.rotation = Quaternion.identity; } else if (((Object)val).name == "Rendering") { val.transform.rotation = Quaternion.identity; } else if (((Object)val).name == "ScavengerHelmet") { val.SetActive(false); } else if (!(((Object)val).name == "Plane") && (Ro_ta_teModBase.rotateCollider || (!Object.op_Implicit((Object)(object)val.GetComponent<MeshCollider>()) && !Object.op_Implicit((Object)(object)val.GetComponent<BoxCollider>()) && !Object.op_Implicit((Object)(object)val.GetComponent<CapsuleCollider>()) && !Object.op_Implicit((Object)(object)val.GetComponent<SphereCollider>()))) && !((Object)(object)val.GetComponent<PlayerControllerB>() != (Object)null) && !((Object)(object)val.GetComponentInChildren<PlayerControllerB>() != (Object)null)) { val.transform.Rotate(yeetVector * Time.deltaTime); } } } } } }