Decompiled source of LSDLimbo v1.1.0

LSDLimbo.dll

Decompiled 10 hours ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using UnityEngine;
using UnityEngine.SceneManagement;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("anothermod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("anothermod")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("6e9cb1f6-25ce-4160-9fb2-cf6183a2ba4d")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace anothermod;

[BepInPlugin("capybaramods.Ultrakill.drugs", "drugs", "1.0.0")]
public class theMod : BaseUnityPlugin
{
	public bool warningdisplayed = false;

	public void Start()
	{
		Debug.Log((object)"drug trip started");
		Debug.Log((object)"WARNING!!!!!!!! PHOTOSENSITIVE EPILEPSY WARNING!!!!!!! THIS MOD HAS FLASHING LIGHTS AND COLORS!!!!!!!!!!!");
	}

	public void Awake()
	{
		Debug.Log((object)"awoken!");
		SceneManager.sceneLoaded += OnSceneLoaded;
	}

	public void OnSceneLoaded(Scene scene, LoadSceneMode lsm)
	{
		if (SceneHelper.CurrentScene == "Level 1-1" || SceneHelper.CurrentScene == "Level 1-2" || SceneHelper.CurrentScene == "Level 1-3" || SceneHelper.CurrentScene == "Level 1-4" || SceneHelper.CurrentScene == "Level 1-S" || SceneHelper.CurrentScene == "Level 1-E")
		{
			Debug.Log((object)"limbo");
			if (!warningdisplayed)
			{
				MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage("<size=40><color=red>Epilepsy/Photosensitivity Warning:</color></size> This mod contains flashing lights and colors. <b>You have been warned.</b>", "", "", 1, false, false, true);
				warningdisplayed = true;
				Debug.Log((object)"Warning has been displayed as false, setting to true. PHOTOSENSITIVITY!!!!!!!!!");
			}
			GameObject val = GameObject.Find("LimboSkybox/LimbySkyCam");
			GameObject val2 = GameObject.Find("Player/Main Camera");
			CopyPositionAndRotation val3 = val.AddComponent<CopyPositionAndRotation>();
			val3.target = val2.transform;
		}
	}
}