Decompiled source of FunModV2 v1.0.0

Mods/FunMod.dll

Decompiled a year ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Il2CppScheduleOne.Interaction;
using Il2CppTMPro;
using MelonLoader;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Class1), "Fun Mod", "1", "vrzone", null)]
[assembly: MelonGame("TVGS", "Schedule I")]
[assembly: AssemblyTitle("FunMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FunMod")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("6ba68ff9-2db4-47e3-88b7-fc8a11e0f5a3")]
[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")]
public class Class1 : MelonMod
{
	public string LampPath = "Map/Container/Lamp post (2)/lamppost/";

	public GameObject Lamp;

	public InteractableObject Lampinteractable;

	public string LawPath = "Managers/@Law";

	public GameObject Law;

	public bool On;

	public Vector3 CamPos;

	public float x = -6.3438f;

	public float y = 2.5572f;

	public float z = -1.2376f;

	public Vector3 RigPos;

	public float Rigx = -3.6182f;

	public float Rigy = 0.9491f;

	public float Rigz = -2.9545f;

	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		//IL_007b: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
		if (sceneName == "Menu")
		{
			string text = "MainMenu/Home/Bank/Title/Text";
			GameObject val = GameObject.Find(text);
			((TMP_Text)val.GetComponent<TextMeshProUGUI>()).text = "but with more fun";
			string text2 = "Camera";
			GameObject val2 = GameObject.Find(text2);
			CamPos.x = x;
			CamPos.y = y;
			CamPos.z = z;
			val2.transform.position = CamPos;
			string text3 = "DisclaimerCanvas/Disclaimer/Text (TMP)";
			GameObject val3 = GameObject.Find(text3);
			((TMP_Text)val3.GetComponent<TextMeshProUGUI>()).text = "TVGS does not condone the manufacturing, trade, or use of illegal drugs.\r\n\r\nThe production processes portrayed in this game are purely fictional and do not reflect reality. Do not attempt to follow these processes - you won't make drugs, but you could cause serious harm to yourself.\r\n\r\nPlease do drugs.\r\n\r\n";
			string text4 = "Rig";
			GameObject val4 = GameObject.Find(text4);
			RigPos.x = Rigx;
			RigPos.y = Rigy;
			RigPos.z = Rigz;
			val4.transform.position = RigPos;
		}
		if (sceneName == "Main")
		{
			Lamp = GameObject.Find(LampPath);
			Lampinteractable = Lamp.AddComponent<InteractableObject>();
			Lampinteractable.message = "What The Fuck";
			Lampinteractable.interactionState = (EInteractableState)0;
		}
	}

	public override void OnUpdate()
	{
		if (!On)
		{
		}
	}
}