Decompiled source of EasyDeliveryMenu v6.9.3
BepInEx/plugins/EasyDeliveryMenu.dll
Decompiled a month ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Logging; using HarmonyLib; using Steamworks; using UnityEngine; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Controls; using UnityEngine.Rendering; using UnityEngine.Rendering.Universal; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("EasyDeliveryMenu")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("EasyDeliveryMenu")] [assembly: AssemblyCopyright("Copyright © 2026 Lightnite Productions")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("b5208385-0f57-4074-a545-ce76e39c0136")] [assembly: AssemblyFileVersion("6.9.2.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("6.9.2.0")] internal sealed class ConfigurationManagerAttributes { public delegate void CustomHotkeyDrawerFunc(ConfigEntryBase setting, ref bool isCurrentlyAcceptingInput); public bool? ShowRangeAsPercent; public Action<ConfigEntryBase> CustomDrawer; public CustomHotkeyDrawerFunc CustomHotkeyDrawer; public bool? Browsable; public string Category; public object DefaultValue; public bool? HideDefaultButton; public bool? HideSettingName; public string Description; public string DispName; public int? Order; public bool? ReadOnly; public bool? IsAdvanced; public Func<object, string> ObjToStr; public Func<string, object> StrToObj; } namespace EasyDeliveryMenu { [BepInPlugin("soup.tweaks.modmenu", "EasyDeliveryMenu", "6.9.2")] public class EasyDeliveryMenuPlugin : BaseUnityPlugin { [HarmonyPatch(typeof(sHUD), "FrameUpdate")] public static class sHUD_FrameUpdate_Patch { private static void Postfix(sHUD __instance) { //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) if (ShowFPS == null || !ShowFPS.Value) { return; } try { FieldInfo field = typeof(sHUD).GetField("R", BindingFlags.Instance | BindingFlags.NonPublic); if (field != null) { MiniRenderer val = (MiniRenderer)field.GetValue(__instance); if ((Object)(object)val != (Object)null) { val.fontOptions.alignment = (Alignment)0; string text = Mathf.Floor(_displayedFPS) + " FPS"; val.fput(text, 70f, (float)(val.height / 20), 0f, 13f, 0f, -1); } } } catch { } } } private class DelayedTeleport { public sCharacterController player; public Vector3 position; public float time; } [HarmonyPatch(typeof(sHUD), "DipToBlack", new Type[] { typeof(float) })] public static class sHUD_DipToBlack_Patch { private static void Prefix(float duration) { _teleportFreezeTime = true; _teleportFreezeUntil = Time.unscaledTime + duration + 0.5f; } } [HarmonyPatch(typeof(sDayNightCycle), "WeatherCycle")] public static class sDayNightCycle_WeatherCycle_Patch { } [HarmonyPatch(typeof(CarDamage), "OnCollisionEnter")] public static class CarDamage_OnCollisionEnter_Patch { private static bool Prefix(CarDamage __instance, Collision collision) { if (!VehicleInvincibility.Value) { return true; } if (!((Behaviour)__instance).enabled || collision.gameObject.layer == LayerMask.NameToLayer("Car")) { return false; } __instance.damage = Mathf.Clamp01(__instance.damage); return false; } } [HarmonyPatch(typeof(CarDamage), "CheckDeadVelocity")] public static class CarDamage_CheckDeadVelocity_Patch { private static bool Prefix(ref bool __result) { if (VehicleInvincibility.Value) { __result = false; return false; } return true; } } [HarmonyPatch(typeof(CarDamage), "Update")] public static class CarDamage_Update_Patch { private static bool Prefix(CarDamage __instance) { if (InstantReset.Value && sInputManager.players[0].resetPressed && !CarLessMode.carless) { sPathFinder val = Object.FindObjectOfType<sPathFinder>(); sCarController component = ((Component)__instance).GetComponent<sCarController>(); if ((Object)(object)val != (Object)null && (Object)(object)component != (Object)null && !component.GuyActive) { val.ResetCar(); return false; } } return true; } private static void Postfix(CarDamage __instance) { if (VehicleInvincibility.Value && __instance.damage > 0f) { __instance.damage = 0f; } } } [HarmonyPatch(typeof(sPathFinder), "ResetCar")] public static class sPathFinder_ResetCar_Patch { private static bool Prefix(sPathFinder __instance) { if (!InstantReset.Value) { return true; } if ((Object)(object)__instance.car == (Object)null) { return false; } __instance.car.ResetFreeze(); MethodInfo method = typeof(sPathFinder).GetMethod("DoResetCar", BindingFlags.Instance | BindingFlags.NonPublic); if (method != null) { method.Invoke(__instance, null); } return false; } } [HarmonyPatch(typeof(sPathFinder), "DoResetCar")] public static class sPathFinder_DoResetCar_Patch { private static void Postfix(sPathFinder __instance) { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance.car != (Object)null && (Object)(object)__instance.car.rb != (Object)null) { Vector3 position = ((Component)__instance.car).transform.position; position.y += 0.3f; ((Component)__instance.car).transform.position = position; __instance.car.rb.position = position; } } } [HarmonyPatch(typeof(sPathFinder), "ResetCar")] public static class sPathFinder_ResetCar_PostfixPatch { private static void Postfix(sPathFinder __instance) { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) if (!((Object)(object)__instance == (Object)null) && !((Object)(object)__instance.car == (Object)null) && !((Object)(object)__instance.car.rb == (Object)null) && InstantReset.Value) { __instance.car.rb.velocity = Vector3.zero; __instance.car.rb.angularVelocity = Vector3.zero; __instance.car.rb.WakeUp(); } } } [HarmonyPatch(typeof(sCarController), "Move")] public static class sCarController_Move_Patch { private static void Postfix(sCarController __instance) { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) if (!PerfectTraction.Value || (Object)(object)__instance == (Object)null || (Object)(object)__instance.rb == (Object)null) { return; } try { float num = 2500f; Vector3 val = -Vector3.up * num * __instance.clampedDeltaTime; __instance.rb.AddForce(val, (ForceMode)0); if (__instance.Airbourne()) { Vector3 velocity = __instance.rb.velocity; if (velocity.y > 0f) { velocity.y *= 0.5f; __instance.rb.velocity = velocity; } } } catch { } } } [HarmonyPatch(typeof(sCameraController), "Awake")] public static class sCameraController_Awake_Patch { private static void Postfix(sCameraController __instance) { mainCamera = __instance.cam; if ((Object)(object)cameraController == (Object)null) { cameraController = __instance; } } } [HarmonyPatch(typeof(sCameraController), "Update")] public static class sCameraController_Update_Patch { private static bool Prefix() { if (freeCamEnabled) { return false; } return true; } } [HarmonyPatch(typeof(sCameraController), "LateUpdate")] public static class sCameraController_LateUpdate_Patch { private static bool Prefix() { if (freeCamEnabled) { return false; } return true; } } [HarmonyPatch(typeof(ScreenSystem), "Awake")] public static class ScreenSystem_Awake_Patch { private static void Postfix(ScreenSystem __instance) { Transform val = ((Component)__instance).transform.Find("Camera Persp/ScreenPivot/Screen"); if ((Object)(object)val != (Object)null) { screenMR = ((Component)val).GetComponent<MeshRenderer>(); } } } [HarmonyPatch(typeof(sCarController), "Awake")] public static class sCarController_Awake_Patch { private static void Postfix(sCarController __instance) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) currentRes = default(Resolution); if (!Object.op_Implicit((Object)(object)rearViewMR)) { Transform val = ((Component)__instance).transform.Find("carInt/RearViewMirror"); if (Object.op_Implicit((Object)(object)val)) { rearViewMR = ((Component)val).GetComponent<MeshRenderer>(); } val = ((Component)__instance).transform.Find("RearViewCam"); if (Object.op_Implicit((Object)(object)val)) { rearViewCamera = ((Component)val).GetComponent<Camera>(); } } } } [HarmonyPatch(typeof(sHUD), "Update")] public static class sHUD_Update_Patch { private static void Postfix(sHUD __instance) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) if (!((object)(Resolution)(ref currentRes)).Equals((object?)Screen.currentResolution)) { FixPixelRendering(); } } } [HarmonyPatch(typeof(sHUD), "WorldToHUDPoint")] public static class sHUD_WorldToHUDPoint_Patch { private static void Postfix(sHUD __instance, ref Vector2 __result, Vector3 worldPoint) { //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) try { if (!NoPixelRendering.Value || resWidthRatio == 0f || __result.x == -100f || (Object)(object)__instance.navigation == (Object)null || (Object)(object)__instance.navigation.car == (Object)null || (Object)(object)__instance.navigation.car.carCamera == (Object)null) { return; } __result = Vector2.op_Implicit(__instance.navigation.car.carCamera.WorldToScreenPoint(worldPoint)); __result = new Vector2(__result.x / resWidthRatio, __result.y / resHeightRatio); FieldInfo field = typeof(sHUD).GetField("R", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); if (!(field != null)) { return; } object value = field.GetValue(__instance); if (value != null) { PropertyInfo property = value.GetType().GetProperty("height"); if (property != null) { float num = (float)property.GetValue(value); __result.y = num - __result.y; } } } catch { } } } [HarmonyPatch(typeof(sCarController), "Update")] public static class sCarController_Update_Patch { private static bool Prefix() { if (freeCamEnabled && freeCamMovement) { return false; } return true; } } [HarmonyPatch(typeof(sCarController), "SetInput", new Type[] { typeof(Vector2) })] public static class sCarController_SetInput_Patch { private static bool Prefix() { if (freeCamEnabled && freeCamMovement) { return false; } return true; } } [HarmonyPatch(typeof(sCharacterController), "Update")] public static class sCharacterController_Update_Patch { private static bool Prefix() { if (freeCamEnabled && freeCamMovement) { return false; } return true; } } [HarmonyPatch(typeof(sItemManager), "Update")] public static class sItemManager_Update_Patch { private static bool Prefix() { if (freeCamEnabled && freeCamMovement) { return false; } return true; } } [HarmonyPatch(typeof(sItemManager), "DoInput")] public static class sItemManager_DoInput_Patch { private static bool Prefix() { if (freeCamEnabled && freeCamMovement) { return false; } return true; } } [HarmonyPatch(typeof(sCharacterRagdoll), "Ragdoll", new Type[] { typeof(Vector3) })] public static class sCharacterRagdoll_Ragdoll_Vector3_Patch { private static bool Prefix() { if ((PlayerInvincibility != null && PlayerInvincibility.Value) || (NoRagdoll != null && NoRagdoll.Value)) { return false; } return true; } } [HarmonyPatch(typeof(sCharacterRagdoll), "Ragdoll", new Type[] { })] public static class sCharacterRagdoll_Ragdoll_Patch { private static bool Prefix() { if ((PlayerInvincibility != null && PlayerInvincibility.Value) || (NoRagdoll != null && NoRagdoll.Value)) { return false; } return true; } } [HarmonyPatch(typeof(sCarController), "Awake")] public static class sCarController_Awake_Patch_2 { private static void Postfix(sCarController __instance) { try { if (!shadersEnabled) { return; } ApplyShadowsToCarRecursive(((Component)__instance).gameObject); if (__instance.wheels == null) { return; } Wheel[] wheels = __instance.wheels; foreach (Wheel val in wheels) { if (val != null) { EnhanceParticleSystem(val.dustParticles, enhance: true, 2.5f, 1.5f); EnhanceParticleSystem(val.skidParticles, enhance: true, 2f, 1.3f); EnhanceParticleSystem(val.snowSkidParticles, enhance: true, 2.5f, 1.5f); EnhanceParticleSystem(val.snowTireParticles, enhance: true, 2f, 1.3f); } } } catch { } } } [HarmonyPatch(typeof(sCameraController), "Update")] public static class sCameraController_Update_Patch_2 { private static void Postfix(sCameraController __instance) { try { if ((Object)(object)__instance.cam != (Object)null) { if (shadersEnabled) { __instance.cam.farClipPlane = 10000f; } else if (MaxRenderDistance != null && MaxRenderDistance.Value) { __instance.cam.farClipPlane = 50000f; } } } catch { } } } [HarmonyPatch(typeof(sDayNightCycle), "Update")] public static class sDayNightCycle_Update_Patch { private static void Postfix(sDayNightCycle __instance) { //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_01b1: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_0275: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) try { if (shadersEnabled) { return; } float time = __instance.time; float num = 1f - Mathf.Abs(time * 2f - 1f); float num2 = Mathf.Pow(num, 0.5f); float num3 = 1f - num2; if (FogColor != null && FogColor.Value > 0) { Color white = Color.white; switch (FogColor.Value) { case 1: ((Color)(ref white))..ctor(1f, 0.8f, 0.8f); break; case 2: ((Color)(ref white))..ctor(0.8f, 0.9f, 1f); break; case 3: ((Color)(ref white))..ctor(0.9f, 1f, 0.8f); break; case 4: ((Color)(ref white))..ctor(1f, 0.9f, 0.7f); break; case 5: ((Color)(ref white))..ctor(1f, 0.7f, 0.9f); break; case 6: ((Color)(ref white))..ctor(0.7f, 0.9f, 0.9f); break; case 7: ((Color)(ref white))..ctor(0.95f, 0.95f, 0.7f); break; case 8: ((Color)(ref white))..ctor(0.85f, 0.75f, 1f); break; case 9: ((Color)(ref white))..ctor(1f, 1f, 1f); break; case 10: ((Color)(ref white))..ctor(0.3f, 0.3f, 0.3f); break; } RenderSettings.fogColor = white; RenderSettings.ambientLight = white; } if (DaylightAmount != null && DaylightAmount.Value != 1f) { Light componentInChildren = ((Component)__instance).GetComponentInChildren<Light>(); if ((Object)(object)componentInChildren != (Object)null) { float num4 = __instance.dayLight.Evaluate(num); float num5 = Mathf.Min(num4, 1f - sWeatherSystem.instance.intensity); float num6 = Mathf.Lerp(1f, DaylightAmount.Value, num2); componentInChildren.intensity = num5 * num6; } } if (DarknessAmount != null && DarknessAmount.Value != 1f) { Color ambientLight = RenderSettings.ambientLight; float num7 = Mathf.Lerp(DarknessAmount.Value, 1f, num2); RenderSettings.ambientLight = ambientLight * num7; } } catch { } } } [HarmonyPatch(typeof(FireIntensity), "Update")] public static class FireIntensity_Update_Patch { private static void Postfix(FireIntensity __instance) { try { if (FireIntensityMultiplier != null && FireIntensityMultiplier.Value != 1f) { __instance.intensity *= FireIntensityMultiplier.Value; } } catch { } } } [HarmonyPatch(typeof(DaylightSensor), "Start")] public static class DaylightSensor_Start_Patch { private static void Postfix(DaylightSensor __instance) { try { if (NoStreetlights == null || !NoStreetlights.Value) { return; } if (__instance.nightTime != null) { GameObject[] nightTime = __instance.nightTime; foreach (GameObject val in nightTime) { if ((Object)(object)val != (Object)null) { val.SetActive(false); } } } if (__instance.dayTime == null) { return; } GameObject[] dayTime = __instance.dayTime; foreach (GameObject val2 in dayTime) { if ((Object)(object)val2 != (Object)null) { val2.SetActive(false); } } } catch { } } } [HarmonyPatch(typeof(DaylightSensor), "Update")] public static class DaylightSensor_Update_Patch { private static void Postfix(DaylightSensor __instance) { try { if (NoStreetlights == null || !NoStreetlights.Value) { return; } if (__instance.nightTime != null) { GameObject[] nightTime = __instance.nightTime; foreach (GameObject val in nightTime) { if ((Object)(object)val != (Object)null) { val.SetActive(false); } } } if (__instance.dayTime == null) { return; } GameObject[] dayTime = __instance.dayTime; foreach (GameObject val2 in dayTime) { if ((Object)(object)val2 != (Object)null) { val2.SetActive(false); } } } catch { } } } [HarmonyPatch(typeof(LightToggle), "FixedUpdate")] public static class LightToggle_FixedUpdate_Patch { private static void Postfix(LightToggle __instance) { try { if (NoStreetlights != null && NoStreetlights.Value && (Object)(object)__instance.toToggle != (Object)null) { __instance.toToggle.SetActive(false); } } catch { } } } [HarmonyPatch(typeof(sCosmeticAppearance), "Start")] public static class sCosmeticAppearance_Start_Patch { private static void Postfix(sCosmeticAppearance __instance) { try { sCarController componentInParent = ((Component)__instance).GetComponentInParent<sCarController>(); if ((Object)(object)componentInParent != (Object)null) { __instance.usePlayerEquiped = true; sCosmeticInfo val = Object.FindObjectOfType<sCosmeticInfo>(); if ((Object)(object)val != (Object)null && !val.playerEquipedListeners.Contains(((Component)__instance).gameObject)) { val.playerEquipedListeners.Add(((Component)__instance).gameObject); } } } catch { } } } [HarmonyPatch(typeof(sCosmeticAppearance), "SetAppearance")] public static class sCosmeticAppearance_SetAppearance_Patch { private static void Postfix(sCosmeticAppearance __instance) { } } [HarmonyPatch(typeof(TunnelNode), "Start")] public static class TunnelNode_Start_Patch { private static void Postfix(TunnelNode __instance) { try { if (shadersEnabled && Shaders != null) { ((MonoBehaviour)__instance).StartCoroutine(ToggleShadersButton()); } } catch { } _timeUserUntil = Time.unscaledTime + 2f; } } [HarmonyPatch(typeof(sHUD), "AddWarning")] public static class sHUD_AddWarning_Patch { private static bool Prefix() { if (NoWarnings != null && NoWarnings.Value) { return false; } return true; } } [CompilerGenerated] private sealed class <ToggleShadersButton>d__472 : IEnumerator<object>, IDisposable, IEnumerator { private int <>1__state; private object <>2__current; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <ToggleShadersButton>d__472(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <>1__state = -2; } private bool MoveNext() { //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; Shaders.Value = false; <>2__current = (object)new WaitForSeconds(0.2f); <>1__state = 1; return true; case 1: <>1__state = -1; Shaders.Value = true; return false; } } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } private const string MyGUID = "soup.tweaks.modmenu"; private const string PluginName = "EasyDeliveryMenu"; private const string VersionString = "6.9.2"; public static string SpeedKey = "Speed"; public static string GravityKey = "Gravity"; public static string VehicleInvincibilityKey = "Vehicle invincibility"; public static string ShowHUDKey = "Show HUD"; public static string InfiniteFuelKey = "Infinite fuel"; public static string SmoothDrivingKey = "Smooth driving"; public static string InstantResetKey = "Instant vehicle reset"; public static string SnowTiresKey = "Snow Tires"; public static string IceChainsKey = "Ice Chains"; public static string BumperBarKey = "Bumper Bar"; public static string AlwaysDuctTapeKey = "Always duct tape"; public static string PerfectTractionKey = "Perfect traction"; public static string BlowUpVehicleKey = "Blow up vehicle"; public static string ZeroGravityKey = "Zero vehicle gravity"; public static string UnlockAllKey = "Unlock all achievements"; public static string SnowyPeaksKey = "Enter snowy peaks"; public static string FishingTownKey = "Enter fishing town"; public static string DuctTapeKey = "Secure a package with duct tape"; public static string TeaKey = "Brew a cup of tea to stay warm"; public static string FishKey = "Cook a fish"; public static string RadioTowersKey = "Active every radio tower"; public static string RebootKey = "Reboot Ending"; public static string ShutdownKey = "Shutdown Ending"; public static string RestoreKey = "Restore Ending"; public static string SnowcatsKey = "Find all the snowcats"; public static string BirdsKey = "Feed the birds"; public static ConfigEntry<float> SpeedMultiplier; public static ConfigEntry<float> GravityMultiplier; public static ConfigEntry<bool> VehicleInvincibility; public static ConfigEntry<bool> ShowHUD; public static ConfigEntry<bool> InfiniteFuel; public static ConfigEntry<bool> SmoothDriving; public static ConfigEntry<bool> InstantReset; public static ConfigEntry<bool> SnowTiresToggle; public static ConfigEntry<bool> IceChainsToggle; public static ConfigEntry<bool> BumperBarToggle; public static ConfigEntry<bool> AlwaysDuctTape; public static ConfigEntry<bool> PerfectTraction; public static ConfigEntry<bool> BlowUpVehicle; public static ConfigEntry<bool> ZeroGravity; public static ConfigEntry<bool> UnlockAll; public static ConfigEntry<bool> SnowyPeaks; public static ConfigEntry<bool> FishingTown; public static ConfigEntry<bool> DuctTape; public static ConfigEntry<bool> Tea; public static ConfigEntry<bool> Fish; public static ConfigEntry<bool> RadioTowers; public static ConfigEntry<bool> Reboot; public static ConfigEntry<bool> Shutdown; public static ConfigEntry<bool> Restore; public static ConfigEntry<bool> Snowcats; public static ConfigEntry<bool> Birds; public static ConfigEntry<int> FPSAmount; public static ConfigEntry<bool> Vsync; public static ConfigEntry<bool> ShowFPS; public static ConfigEntry<bool> FreeCam; public static ConfigEntry<bool> NoPixelRendering; public static ConfigEntry<float> PlayerSpeed; public static ConfigEntry<float> MoneyAmount; public static ConfigEntry<bool> PlayerInvincibility; public static ConfigEntry<bool> InfiniteEnergy; public static ConfigEntry<bool> NoFreezing; public static ConfigEntry<bool> NoRagdoll; public static ConfigEntry<bool> GiveItem1; public static ConfigEntry<bool> GiveItem2; public static ConfigEntry<bool> GiveItem3; public static ConfigEntry<bool> GiveItem4; public static ConfigEntry<bool> GiveItem5; public static ConfigEntry<bool> GiveItem6; public static ConfigEntry<bool> GiveItem7; public static ConfigEntry<bool> GiveItem8; public static ConfigEntry<bool> GiveItem9; public static ConfigEntry<bool> GiveItem10; public static ConfigEntry<bool> GiveItem11; public static ConfigEntry<bool> GiveItem12; public static ConfigEntry<bool> GiveItem13; public static ConfigEntry<bool> GiveItem14; public static ConfigEntry<bool> GiveItem15; public static ConfigEntry<bool> GiveItem16; public static ConfigEntry<bool> GiveItem17; public static ConfigEntry<bool> GiveItem18; public static ConfigEntry<bool> TeleportMT_EasyFlowers; public static ConfigEntry<bool> TeleportMT_Node57; public static ConfigEntry<bool> TeleportMT_Node48; public static ConfigEntry<bool> TeleportMT_Node56; public static ConfigEntry<bool> TeleportMT_Node55; public static ConfigEntry<bool> TeleportMT_EasyEats; public static ConfigEntry<bool> TeleportMT_Node47; public static ConfigEntry<bool> TeleportMT_Node54; public static ConfigEntry<bool> TeleportMT_Node5; public static ConfigEntry<bool> TeleportMT_EZBakery; public static ConfigEntry<bool> TeleportMT_Node59; public static ConfigEntry<bool> TeleportMT_Node60; public static ConfigEntry<bool> TeleportMT_Bar1; public static ConfigEntry<bool> TeleportMT_EasyDepot; public static ConfigEntry<bool> TeleportMT_Bar2; public static ConfigEntry<bool> TeleportMT_EZCafe; public static ConfigEntry<bool> TeleportMT_Node65; public static ConfigEntry<bool> TeleportMT_Node71; public static ConfigEntry<bool> TeleportMT_Node72; public static ConfigEntry<bool> TeleportMT_EasyPizza; public static ConfigEntry<bool> TeleportMT_Node74; public static ConfigEntry<bool> TeleportMT_PawnShop; public static ConfigEntry<bool> TeleportMT_EZAuto; public static ConfigEntry<bool> TeleportMT_EZMart; public static ConfigEntry<bool> TeleportMT_Node92; public static ConfigEntry<bool> TeleportMT_Node93; public static ConfigEntry<bool> TeleportFT_Node93; public static ConfigEntry<bool> TeleportFT_NodeDock; public static ConfigEntry<bool> TeleportFT_Node59; public static ConfigEntry<bool> TeleportFT_Node101; public static ConfigEntry<bool> TeleportFT_NodeDock2; public static ConfigEntry<bool> TeleportFT_Node11; public static ConfigEntry<bool> TeleportFT_NodeDock3_1; public static ConfigEntry<bool> TeleportFT_Node58; public static ConfigEntry<bool> TeleportFT_Node91; public static ConfigEntry<bool> TeleportFT_Node54; public static ConfigEntry<bool> TeleportFT_Node18; public static ConfigEntry<bool> TeleportFT_Node64; public static ConfigEntry<bool> TeleportFT_Node97; public static ConfigEntry<bool> TeleportFT_Node20; public static ConfigEntry<bool> TeleportFT_Node22; public static ConfigEntry<bool> TeleportFT_Node89; public static ConfigEntry<bool> TeleportFT_Node55; public static ConfigEntry<bool> TeleportFT_Node112; public static ConfigEntry<bool> TeleportFT_Node12; public static ConfigEntry<bool> TeleportFT_NodeDock3; public static ConfigEntry<bool> TeleportFT_NodeDock_1; public static ConfigEntry<bool> TeleportFT_Node14; public static ConfigEntry<bool> TeleportFT_NodeDock2_1; public static ConfigEntry<bool> TeleportFT_Node102; public static ConfigEntry<bool> TeleportFT_Node98; public static ConfigEntry<bool> TeleportFT_EasyFlowers; public static ConfigEntry<bool> TeleportFT_EasyEats; public static ConfigEntry<bool> TeleportFT_PawnShop; public static ConfigEntry<bool> TeleportFT_EZMart; public static ConfigEntry<bool> TeleportFT_Bar1; public static ConfigEntry<bool> TeleportFT_EasyDepot; public static ConfigEntry<bool> TeleportFT_Bar2; public static ConfigEntry<bool> TeleportFT_EZCafe; public static ConfigEntry<bool> TeleportFT_EasyPizza; public static ConfigEntry<bool> TeleportFT_EZAuto; public static ConfigEntry<bool> TeleportFT_EZBakery; public static ConfigEntry<bool> TeleportSP_Destnode5; public static ConfigEntry<bool> TeleportSP_Destnode1; public static ConfigEntry<bool> TeleportSP_Destnode3; public static ConfigEntry<bool> TeleportSP_Destnode2; public static ConfigEntry<bool> TeleportSP_Destnode4; public static ConfigEntry<bool> TeleportSP_Destnode6; public static ConfigEntry<bool> TeleportSP_Destnode; public static ConfigEntry<bool> TeleportSP_Destnode10; public static ConfigEntry<bool> TeleportSP_Destnode8; public static ConfigEntry<bool> TeleportSP_Destnode7; public static ConfigEntry<bool> TeleportSP_Destnode9; public static ConfigEntry<bool> TeleportSP_EasyEats; public static ConfigEntry<bool> TeleportSP_EZBakery; public static ConfigEntry<bool> TeleportSP_EasyPizza; public static ConfigEntry<bool> TeleportSP_EasyFlowers; public static ConfigEntry<bool> TeleportSP_Bar1; public static ConfigEntry<bool> TeleportSP_EasyDepot; public static ConfigEntry<bool> TeleportSP_EZAuto; public static ConfigEntry<bool> TeleportSP_EZCafe; public static ConfigEntry<bool> TeleportSP_Bar2; public static ConfigEntry<bool> TeleportSP_EZMart; public static ConfigEntry<bool> TeleportSP_PawnShop; public static ConfigEntry<bool> ShowLocation; public static ConfigEntry<bool> ShowAllExes; public static ConfigEntry<bool> DraggableIcons; public static ConfigEntry<bool> RandomWeather; public static ConfigEntry<int> WeatherIntensity; public static ConfigEntry<int> WeatherCycle; public static ConfigEntry<bool> FreezeWeather; public static ConfigEntry<int> SpeedUpWeather; public static ConfigEntry<bool> NoFog; public static ConfigEntry<bool> FreezeTime; public static ConfigEntry<bool> ReverseTime; public static ConfigEntry<float> ChangeTime; public static ConfigEntry<int> SpeedUpTime; public static ConfigEntry<bool> SyncTime; private static readonly Harmony Harmony = new Harmony("soup.tweaks.modmenu"); private static bool vehicleInvincible; private static bool _initialShaderCheckDone = false; private static bool zeroGravity; private static bool instantReset; private static bool snowInit; private static bool bumperInit; private static bool hudInit; private static bool weatherInit; private static RotationRounding truckRR; private static string currentSaveFile = ""; private static bool lastHadTires = false; private static bool lastHadChains = false; private static bool lastHadBumper = false; private static bool _manualWeatherControl = false; private static float _lastSetWeatherIntensity = -1f; private static float _lastSetWeatherCycle = -1f; private static float _manualWeatherIntensity = 0.5f; private static float _manualWeatherTarget = 0.5f; private static bool _lastRandomWeather = true; private static float baseMaxSpeed = -1f; private static float baseMass = -1f; private static Dictionary<object, float> baseMaxFrictionForce = new Dictionary<object, float>(); private static float baseDownForce = -1f; private static float cacheRefreshTimer = 0f; private const float CACHE_REFRESH_INTERVAL = 1f; private static sCarController cachedCar; private static sHUD cachedHUD; private static CarDamage cachedDamage; private static TruckUpgrades cachedUpgrades; private static BumperBar cachedBumper; private static SnowTires cachedSnow; private static sCharacterController cachedPlayer; private static sCharacterRagdoll cachedRagdoll; private static sItemManager cachedItemManager; private static DesktopDotExe cachedDesktop; private static jobBoard cachedJobBoard; private static sPathFinder cachedNavigation; private static sWeatherSystem cachedWeatherSystem; private static sDayNightCycle cachedDayNightCycle; private static RenderTexture newRT; private static RenderTexture defaultRT; private static RenderTexture newRearViewRT; private static RenderTexture defaultRearViewRT; private static MeshRenderer screenMR; private static MeshRenderer rearViewMR; private static Camera mainCamera; private static Camera rearViewCamera; private static float resWidthRatio; private static float resHeightRatio; private static Resolution currentRes; private static bool _envInitialized; private static bool _suppressEnvWrites; private static float _baseWeatherSpeed = -1f; private static float _baseDayDuration = -1f; private static float _weatherUserUntil; private static float _timeUserUntil; private static float _displayedFPS = 60f; private static float _fpsUpdateTimer = 0f; private const float FPS_UPDATE_INTERVAL = 0.5f; private static bool _teleportFreezeTime = false; private static float _teleportFreezeUntil = 0f; private static sDayNightCycle _lastDayNightCycle = null; private static bool _timeInitialized = false; private static int _lastSpeedUpTime = 0; private static bool _lastReverseTime = false; private static bool freeCamEnabled = false; private static bool freeCamMovement = false; private static Vector3 freeCamRotation = Vector3.zero; private static float freeCamSpeed = 10f; private static float freeCamMouseSensitivity = 2f; private static Vector3 originalCameraPosition; private static Quaternion originalCameraRotation; private static Transform originalCameraParent; private static bool wasFreeCamActive = false; private static sCameraController cameraController; private static float basePlayerAcceleration = -1f; private static float basePlayerDeceleration = -1f; private static float baseMoney = -1f; private static bool moneyInitialized = false; private static Dictionary<File, bool> originalFileVisibility = new Dictionary<File, bool>(); private static bool fileVisibilityInitialized = false; private static int _cachedFPSTarget = -999; private static int _cachedVsyncCount = -1; private static bool _fpsSettingsApplied = false; private static Queue<float> _deltaTimeQueue = new Queue<float>(); private static float _smoothDeltaTime = 0.016f; private const int DELTA_TIME_SAMPLES = 10; private static float _originalTimeScale = 1f; private static float _originalFixedDeltaTime = 0.02f; private static float _weatherIntensityUserUntil; private static bool _randomWeatherInitialized = false; private static DelayedTeleport _pendingTeleport = null; public static ConfigEntry<int> VehicleColor; public static ConfigEntry<int> BobbleheadIndex; public static ConfigEntry<int> HeadCosmetic; public static ConfigEntry<int> BodyCosmetic; public static ConfigEntry<float> FireSpreadSpeed; public static ConfigEntry<float> FireIntensityMultiplier; public static ConfigEntry<float> FireDamageMultiplier; public static ConfigEntry<float> DaylightAmount; public static ConfigEntry<float> DarknessAmount; public static ConfigEntry<bool> NoIceCrack; public static ConfigEntry<bool> NoRoadSigns; public static ConfigEntry<bool> NoWindSounds; public static ConfigEntry<bool> NoStreetlights; public static ConfigEntry<int> FogColor; public static ConfigEntry<bool> RainbowMode; public static ConfigEntry<bool> Shaders; public static ConfigEntry<bool> MaxRenderDistance; public static ConfigEntry<bool> NoWarnings; private static int currentVehicleColor = -1; private static int currentHeadCosmetic = -1; private static int currentBodyCosmetic = -1; private static int currentBobblehead = -1; private static float baseFireSpreadRate = -1f; private static float baseFireDamageRate = -1f; private static sCosmeticInfo cosmeticInfo; private static bool cosmeticsInitialized = false; private static bool rainbowModeActive = false; private static float rainbowTimer = 0f; private static int rainbowColorIndex = 0; private const float RAINBOW_INTERVAL = 0.2f; private static FireSpread[] cachedFireSpreads; private static FireIntensity[] cachedFireIntensities; private static FireDamage[] cachedFireDamages; private static IceCrack[] cachedIceCracks; private static RoadSign[] cachedRoadSigns; private static sAmbiance cachedAmbiance; private static float environmentCacheTimer = 0f; private const float ENVIRONMENT_CACHE_INTERVAL = 2f; private static int lastFogColor = -1; private static bool lastNoIceCrack = false; private static bool lastNoRoadSigns = false; private static bool lastNoWindSounds = false; private static float lastFireSpreadSpeed = -1f; private static float lastFireIntensity = -1f; private static float lastFireDamage = -1f; private static Dictionary<FireSpread, float> baseFireSpreadRates = new Dictionary<FireSpread, float>(); private static Dictionary<FireDamage, float> baseFireDamageRates = new Dictionary<FireDamage, float>(); private static bool shadersEnabled = false; private static Material skyboxMaterial; private static Material originalSkybox; private static Color originalFogColor; private static Color originalAmbientLight; private static float shaderTimer = 0f; private static float originalShadowDistance; private static ShadowProjection originalShadowProjection; private static float originalShadowNearPlaneOffset; private static float originalReflectionIntensity; private static float originalAmbientIntensity; private static ReflectionProbe[] reflectionProbes; private static Light[] sceneLights; private static Dictionary<Light, float> originalLightIntensities = new Dictionary<Light, float>(); private static Dictionary<Light, Color> originalLightColors = new Dictionary<Light, Color>(); private static Dictionary<Renderer, ShadowCastingMode> originalShadowCastingModes = new Dictionary<Renderer, ShadowCastingMode>(); private static Dictionary<Renderer, bool> originalReceiveShadows = new Dictionary<Renderer, bool>(); private static float originalFogDensity; private static bool originalFogEnabled; private static FogMode originalFogMode; private static AmbientMode originalAmbientMode; private static Color originalAmbientSkyColor; private static Color originalAmbientEquatorColor; private static Color originalAmbientGroundColor; private static GameObject[] nightStarParticles; private static int nightStarCount = 0; private static float sparkleTimer = 0f; private static Random sparkleRandom = new Random(); private static bool starsCreated = false; private static Renderer[] cachedAllRenderers; private static float rendererCacheTimer = 0f; private const float RENDERER_CACHE_INTERVAL = 5f; private static float shadowUpdateTimer = 0f; private const float SHADOW_UPDATE_INTERVAL = 1f; private static Dictionary<ParticleSystem, float> originalParticleRates = new Dictionary<ParticleSystem, float>(); private static Dictionary<ParticleSystem, float> originalParticleLifetimes = new Dictionary<ParticleSystem, float>(); private static MaterialPropertyBlock starPropertyBlock; private static int colorPropertyID = -1; private static int tintColorPropertyID = -1; private static float[] starBrightnesses; private static Color[] starBaseColors; private static float starUpdateTimer = 0f; private const float STAR_UPDATE_INTERVAL = 0.1f; private static GameObject[] starParticles; private static int starCount = 0; private void RefreshObjectCache() { cacheRefreshTimer += Time.deltaTime; if (!(cacheRefreshTimer < 1f)) { cacheRefreshTimer = 0f; if ((Object)(object)cachedCar == (Object)null) { cachedCar = Object.FindObjectOfType<sCarController>(); } if ((Object)(object)cachedHUD == (Object)null) { cachedHUD = Object.FindObjectOfType<sHUD>(); } if ((Object)(object)cachedDamage == (Object)null) { cachedDamage = Object.FindObjectOfType<CarDamage>(); } if ((Object)(object)cachedUpgrades == (Object)null) { cachedUpgrades = Object.FindObjectOfType<TruckUpgrades>(); } if ((Object)(object)cachedBumper == (Object)null) { cachedBumper = Object.FindObjectOfType<BumperBar>(); } if ((Object)(object)cachedSnow == (Object)null) { cachedSnow = Object.FindObjectOfType<SnowTires>(); } if ((Object)(object)cachedPlayer == (Object)null) { cachedPlayer = Object.FindObjectOfType<sCharacterController>(); } if ((Object)(object)cachedRagdoll == (Object)null) { cachedRagdoll = Object.FindObjectOfType<sCharacterRagdoll>(); } if ((Object)(object)cachedItemManager == (Object)null) { cachedItemManager = Object.FindObjectOfType<sItemManager>(); } if ((Object)(object)cachedDesktop == (Object)null) { cachedDesktop = Object.FindObjectOfType<DesktopDotExe>(); } if ((Object)(object)cachedJobBoard == (Object)null) { cachedJobBoard = Object.FindObjectOfType<jobBoard>(); } if ((Object)(object)cachedNavigation == (Object)null) { cachedNavigation = Object.FindObjectOfType<sPathFinder>(); } if ((Object)(object)cachedWeatherSystem == (Object)null) { cachedWeatherSystem = Object.FindObjectOfType<sWeatherSystem>(); } if ((Object)(object)cachedDayNightCycle == (Object)null) { cachedDayNightCycle = Object.FindObjectOfType<sDayNightCycle>(); } } } private void Awake() { //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Expected O, but got Unknown //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Expected O, but got Unknown //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Expected O, but got Unknown //IL_017e: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Expected O, but got Unknown //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Expected O, but got Unknown //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_0210: Expected O, but got Unknown //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Expected O, but got Unknown //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_0298: Expected O, but got Unknown //IL_02d2: Unknown result type (might be due to invalid IL or missing references) //IL_02dc: Expected O, but got Unknown //IL_0316: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Expected O, but got Unknown //IL_035a: Unknown result type (might be due to invalid IL or missing references) //IL_0364: Expected O, but got Unknown //IL_039e: Unknown result type (might be due to invalid IL or missing references) //IL_03a8: Expected O, but got Unknown //IL_03f4: Unknown result type (might be due to invalid IL or missing references) //IL_03fe: Expected O, but got Unknown //IL_044a: Unknown result type (might be due to invalid IL or missing references) //IL_0454: Expected O, but got Unknown //IL_048e: Unknown result type (might be due to invalid IL or missing references) //IL_0498: Expected O, but got Unknown //IL_04d2: Unknown result type (might be due to invalid IL or missing references) //IL_04dc: Expected O, but got Unknown //IL_0516: Unknown result type (might be due to invalid IL or missing references) //IL_0520: Expected O, but got Unknown //IL_055a: Unknown result type (might be due to invalid IL or missing references) //IL_0564: Expected O, but got Unknown //IL_059e: Unknown result type (might be due to invalid IL or missing references) //IL_05a8: Expected O, but got Unknown //IL_05e2: Unknown result type (might be due to invalid IL or missing references) //IL_05ec: Expected O, but got Unknown //IL_0626: Unknown result type (might be due to invalid IL or missing references) //IL_0630: Expected O, but got Unknown //IL_066a: Unknown result type (might be due to invalid IL or missing references) //IL_0674: Expected O, but got Unknown //IL_06ae: Unknown result type (might be due to invalid IL or missing references) //IL_06b8: Expected O, but got Unknown //IL_06f2: Unknown result type (might be due to invalid IL or missing references) //IL_06fc: Expected O, but got Unknown //IL_0736: Unknown result type (might be due to invalid IL or missing references) //IL_0740: Expected O, but got Unknown //IL_077a: Unknown result type (might be due to invalid IL or missing references) //IL_0784: Expected O, but got Unknown //IL_07be: Unknown result type (might be due to invalid IL or missing references) //IL_07c8: Expected O, but got Unknown //IL_0802: Unknown result type (might be due to invalid IL or missing references) //IL_080c: Expected O, but got Unknown //IL_0846: Unknown result type (might be due to invalid IL or missing references) //IL_0850: Expected O, but got Unknown //IL_088a: Unknown result type (might be due to invalid IL or missing references) //IL_0894: Expected O, but got Unknown //IL_08ce: Unknown result type (might be due to invalid IL or missing references) //IL_08d8: Expected O, but got Unknown //IL_0912: Unknown result type (might be due to invalid IL or missing references) //IL_091c: Expected O, but got Unknown //IL_0956: Unknown result type (might be due to invalid IL or missing references) //IL_0960: Expected O, but got Unknown //IL_099a: Unknown result type (might be due to invalid IL or missing references) //IL_09a4: Expected O, but got Unknown //IL_09de: Unknown result type (might be due to invalid IL or missing references) //IL_09e8: Expected O, but got Unknown //IL_0a22: Unknown result type (might be due to invalid IL or missing references) //IL_0a2c: Expected O, but got Unknown //IL_0a66: Unknown result type (might be due to invalid IL or missing references) //IL_0a70: Expected O, but got Unknown //IL_0aaa: Unknown result type (might be due to invalid IL or missing references) //IL_0ab4: Expected O, but got Unknown //IL_0aee: Unknown result type (might be due to invalid IL or missing references) //IL_0af8: Expected O, but got Unknown //IL_0b32: Unknown result type (might be due to invalid IL or missing references) //IL_0b3c: Expected O, but got Unknown //IL_0b76: Unknown result type (might be due to invalid IL or missing references) //IL_0b80: Expected O, but got Unknown //IL_0bba: Unknown result type (might be due to invalid IL or missing references) //IL_0bc4: Expected O, but got Unknown //IL_0bfe: Unknown result type (might be due to invalid IL or missing references) //IL_0c08: Expected O, but got Unknown //IL_0c42: Unknown result type (might be due to invalid IL or missing references) //IL_0c4c: Expected O, but got Unknown //IL_0c86: Unknown result type (might be due to invalid IL or missing references) //IL_0c90: Expected O, but got Unknown //IL_0cca: Unknown result type (might be due to invalid IL or missing references) //IL_0cd4: Expected O, but got Unknown //IL_0d0e: Unknown result type (might be due to invalid IL or missing references) //IL_0d18: Expected O, but got Unknown //IL_0d52: Unknown result type (might be due to invalid IL or missing references) //IL_0d5c: Expected O, but got Unknown //IL_0d96: Unknown result type (might be due to invalid IL or missing references) //IL_0da0: Expected O, but got Unknown //IL_0dda: Unknown result type (might be due to invalid IL or missing references) //IL_0de4: Expected O, but got Unknown //IL_0e1e: Unknown result type (might be due to invalid IL or missing references) //IL_0e28: Expected O, but got Unknown //IL_0e62: Unknown result type (might be due to invalid IL or missing references) //IL_0e6c: Expected O, but got Unknown //IL_0ea6: Unknown result type (might be due to invalid IL or missing references) //IL_0eb0: Expected O, but got Unknown //IL_0eea: Unknown result type (might be due to invalid IL or missing references) //IL_0ef4: Expected O, but got Unknown //IL_0f2e: Unknown result type (might be due to invalid IL or missing references) //IL_0f38: Expected O, but got Unknown //IL_0f72: Unknown result type (might be due to invalid IL or missing references) //IL_0f7c: Expected O, but got Unknown //IL_0fb6: Unknown result type (might be due to invalid IL or missing references) //IL_0fc0: Expected O, but got Unknown //IL_0ffa: Unknown result type (might be due to invalid IL or missing references) //IL_1004: Expected O, but got Unknown //IL_103e: Unknown result type (might be due to invalid IL or missing references) //IL_1048: Expected O, but got Unknown //IL_1082: Unknown result type (might be due to invalid IL or missing references) //IL_108c: Expected O, but got Unknown //IL_10c6: Unknown result type (might be due to invalid IL or missing references) //IL_10d0: Expected O, but got Unknown //IL_110a: Unknown result type (might be due to invalid IL or missing references) //IL_1114: Expected O, but got Unknown //IL_114e: Unknown result type (might be due to invalid IL or missing references) //IL_1158: Expected O, but got Unknown //IL_1192: Unknown result type (might be due to invalid IL or missing references) //IL_119c: Expected O, but got Unknown //IL_11d6: Unknown result type (might be due to invalid IL or missing references) //IL_11e0: Expected O, but got Unknown //IL_121a: Unknown result type (might be due to invalid IL or missing references) //IL_1224: Expected O, but got Unknown //IL_125e: Unknown result type (might be due to invalid IL or missing references) //IL_1268: Expected O, but got Unknown //IL_12a2: Unknown result type (might be due to invalid IL or missing references) //IL_12ac: Expected O, but got Unknown //IL_12e6: Unknown result type (might be due to invalid IL or missing references) //IL_12f0: Expected O, but got Unknown //IL_132a: Unknown result type (might be due to invalid IL or missing references) //IL_1334: Expected O, but got Unknown //IL_136e: Unknown result type (might be due to invalid IL or missing references) //IL_1378: Expected O, but got Unknown //IL_13b2: Unknown result type (might be due to invalid IL or missing references) //IL_13bc: Expected O, but got Unknown //IL_13f6: Unknown result type (might be due to invalid IL or missing references) //IL_1400: Expected O, but got Unknown //IL_143a: Unknown result type (might be due to invalid IL or missing references) //IL_1444: Expected O, but got Unknown //IL_147e: Unknown result type (might be due to invalid IL or missing references) //IL_1488: Expected O, but got Unknown //IL_14c2: Unknown result type (might be due to invalid IL or missing references) //IL_14cc: Expected O, but got Unknown //IL_1506: Unknown result type (might be due to invalid IL or missing references) //IL_1510: Expected O, but got Unknown //IL_154a: Unknown result type (might be due to invalid IL or missing references) //IL_1554: Expected O, but got Unknown //IL_158e: Unknown result type (might be due to invalid IL or missing references) //IL_1598: Expected O, but got Unknown //IL_15d9: Unknown result type (might be due to invalid IL or missing references) //IL_15e3: Expected O, but got Unknown //IL_1624: Unknown result type (might be due to invalid IL or missing references) //IL_162e: Expected O, but got Unknown //IL_1668: Unknown result type (might be due to invalid IL or missing references) //IL_1672: Expected O, but got Unknown //IL_16b4: Unknown result type (might be due to invalid IL or missing references) //IL_16be: Expected O, but got Unknown //IL_16f8: Unknown result type (might be due to invalid IL or missing references) //IL_1702: Expected O, but got Unknown //IL_173c: Unknown result type (might be due to invalid IL or missing references) //IL_1746: Expected O, but got Unknown //IL_1792: Unknown result type (might be due to invalid IL or missing references) //IL_179c: Expected O, but got Unknown //IL_17de: Unknown result type (might be due to invalid IL or missing references) //IL_17e8: Expected O, but got Unknown //IL_1822: Unknown result type (might be due to invalid IL or missing references) //IL_182c: Expected O, but got Unknown //IL_1866: Unknown result type (might be due to invalid IL or missing references) //IL_1870: Expected O, but got Unknown //IL_18b1: Unknown result type (might be due to invalid IL or missing references) //IL_18bb: Expected O, but got Unknown //IL_18f5: Unknown result type (might be due to invalid IL or missing references) //IL_18ff: Expected O, but got Unknown //IL_1939: Unknown result type (might be due to invalid IL or missing references) //IL_1943: Expected O, but got Unknown //IL_197d: Unknown result type (might be due to invalid IL or missing references) //IL_1987: Expected O, but got Unknown //IL_19c1: Unknown result type (might be due to invalid IL or missing references) //IL_19cb: Expected O, but got Unknown //IL_1a05: Unknown result type (might be due to invalid IL or missing references) //IL_1a0f: Expected O, but got Unknown //IL_1a46: Unknown result type (might be due to invalid IL or missing references) //IL_1a50: Expected O, but got Unknown //IL_1a87: Unknown result type (might be due to invalid IL or missing references) //IL_1a91: Expected O, but got Unknown //IL_1ac8: Unknown result type (might be due to invalid IL or missing references) //IL_1ad2: Expected O, but got Unknown //IL_1b09: Unknown result type (might be due to invalid IL or missing references) //IL_1b13: Expected O, but got Unknown //IL_1b4a: Unknown result type (might be due to invalid IL or missing references) //IL_1b54: Expected O, but got Unknown //IL_1b8b: Unknown result type (might be due to invalid IL or missing references) //IL_1b95: Expected O, but got Unknown //IL_1bcc: Unknown result type (might be due to invalid IL or missing references) //IL_1bd6: Expected O, but got Unknown //IL_1c0d: Unknown result type (might be due to invalid IL or missing references) //IL_1c17: Expected O, but got Unknown //IL_1c4e: Unknown result type (might be due to invalid IL or missing references) //IL_1c58: Expected O, but got Unknown //IL_1c8f: Unknown result type (might be due to invalid IL or missing references) //IL_1c99: Expected O, but got Unknown //IL_1cd0: Unknown result type (might be due to invalid IL or missing references) //IL_1cda: Expected O, but got Unknown //IL_1d11: Unknown result type (might be due to invalid IL or missing references) //IL_1d1b: Expected O, but got Unknown //IL_1d51: Unknown result type (might be due to invalid IL or missing references) //IL_1d5b: Expected O, but got Unknown //IL_1d91: Unknown result type (might be due to invalid IL or missing references) //IL_1d9b: Expected O, but got Unknown //IL_1dd1: Unknown result type (might be due to invalid IL or missing references) //IL_1ddb: Expected O, but got Unknown _originalTimeScale = Time.timeScale; _originalFixedDeltaTime = Time.fixedDeltaTime; SpeedMultiplier = ((BaseUnityPlugin)this).Config.Bind<float>("Vehicle", SpeedKey, 1f, new ConfigDescription("Vehicle speed multiplier", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 10f), new object[1] { new ConfigurationManagerAttributes { Order = 260 } })); GravityMultiplier = ((BaseUnityPlugin)this).Config.Bind<float>("Vehicle", GravityKey, 1f, new ConfigDescription("Vehicle gravity multiplier", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 10f), new object[1] { new ConfigurationManagerAttributes { Order = 250 } })); VehicleInvincibility = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", VehicleInvincibilityKey, false, new ConfigDescription("Toggle vehicle invincibility", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 230 } })); InfiniteFuel = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", InfiniteFuelKey, false, new ConfigDescription("Never run out of fuel", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 229 } })); SmoothDriving = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", SmoothDrivingKey, false, new ConfigDescription("Toggle off retro style driving", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 228 } })); InstantReset = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", InstantResetKey, false, new ConfigDescription("Toggle instant vehicle reset", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 240 } })); SnowTiresToggle = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", SnowTiresKey, false, new ConfigDescription("Toggle snow tires", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 210 } })); IceChainsToggle = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", IceChainsKey, false, new ConfigDescription("Toggle ice chains", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 205 } })); BumperBarToggle = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", BumperBarKey, false, new ConfigDescription("Toggle bumper bar", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 200 } })); AlwaysDuctTape = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", AlwaysDuctTapeKey, false, new ConfigDescription("Always use duct tape on delivery packages. WARNING! Be sure to toggle this option ON only after putting the packages in the back of the vehicle", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 195 } })); PerfectTraction = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", PerfectTractionKey, false, new ConfigDescription("Max wheel traction (kinda buggy)", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 194 } })); BlowUpVehicle = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", BlowUpVehicleKey, false, new ConfigDescription("Blow up the vehicle", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 190 } })); ZeroGravity = ((BaseUnityPlugin)this).Config.Bind<bool>("Vehicle", ZeroGravityKey, false, new ConfigDescription("Toggle zero vehicle gravity", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 180 } })); PlayerSpeed = ((BaseUnityPlugin)this).Config.Bind<float>("Player", "Speed", 1f, new ConfigDescription("Player speed multiplier", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.1f, 10f), new object[1] { new ConfigurationManagerAttributes { Order = 169 } })); MoneyAmount = ((BaseUnityPlugin)this).Config.Bind<float>("Player", "Money amount", 0f, new ConfigDescription("Amount of money (0 = Default)", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 100f), new object[1] { new ConfigurationManagerAttributes { Order = 168 } })); PlayerInvincibility = ((BaseUnityPlugin)this).Config.Bind<bool>("Player", "Player invincibility", false, new ConfigDescription("Toggle player invincibility", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 167 } })); InfiniteEnergy = ((BaseUnityPlugin)this).Config.Bind<bool>("Player", "Infinite energy", false, new ConfigDescription("Toggle infinite energy", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 166 } })); NoFreezing = ((BaseUnityPlugin)this).Config.Bind<bool>("Player", "No freezing", false, new ConfigDescription("Toggle no freezing", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 165 } })); NoRagdoll = ((BaseUnityPlugin)this).Config.Bind<bool>("Player", "No ragdoll", false, new ConfigDescription("Toggle ragdoll after falling from large heights", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 164 } })); GiveItem1 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Energy Drink", false, new ConfigDescription("Give 1 energy drink", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 160 } })); GiveItem2 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Empty Can", false, new ConfigDescription("Give 1 empty can", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 159 } })); GiveItem3 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Lantern", false, new ConfigDescription("Give 1 lantern", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 158 } })); GiveItem4 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Lighter", false, new ConfigDescription("Give 1 lighter", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 157 } })); GiveItem5 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Firewood", false, new ConfigDescription("Give 1 firewood", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 156 } })); GiveItem6 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Shovel", false, new ConfigDescription("Give 1 shovel", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 155 } })); GiveItem7 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Bird Seed", false, new ConfigDescription("Give 1 bird seed", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 154 } })); GiveItem8 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Cooking Pot", false, new ConfigDescription("Give 1 cooking pot", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 153 } })); GiveItem9 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Coffee", false, new ConfigDescription("Give 1 coffee", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 152 } })); GiveItem10 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Coffee Powder", false, new ConfigDescription("Give 1 coffee powder", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 151 } })); GiveItem11 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Tea", false, new ConfigDescription("Give 1 tea", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 150 } })); GiveItem12 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Tea Bags", false, new ConfigDescription("Give 1 tea bags", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 149 } })); GiveItem13 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Fish", false, new ConfigDescription("Give 1 fish", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 148 } })); GiveItem14 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Fishing Rod", false, new ConfigDescription("Give 1 fishing rod", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 147 } })); GiveItem15 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Fish Soup", false, new ConfigDescription("Give 1 fish soup", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 146 } })); GiveItem16 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Duct Tape", false, new ConfigDescription("Give 1 duct tape", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 145 } })); GiveItem17 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Recovery Disc", false, new ConfigDescription("Give 1 recovery disc", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 144 } })); GiveItem18 = ((BaseUnityPlugin)this).Config.Bind<bool>("Items", "Handheld Radio", false, new ConfigDescription("Give 1 handheld radio", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 143 } })); TeleportMT_EasyFlowers = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "Easy Flowers in Upton", false, new ConfigDescription("Teleport to Easy Flowers", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1260 } })); TeleportMT_EasyEats = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "Easy Eats in Upton", false, new ConfigDescription("Teleport to Easy Eats in Upton", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1259 } })); TeleportMT_EZBakery = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "EZ Bakery in Weston", false, new ConfigDescription("Teleport to EZ Bakery", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1258 } })); TeleportMT_EasyDepot = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "Easy Depot in Weston & Tunnel to Factory", false, new ConfigDescription("Teleport to Easy Depot/Factory", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1257 } })); TeleportMT_EZCafe = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "EZ Cafe in Weston", false, new ConfigDescription("Teleport to EZ Cafe", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1256 } })); TeleportMT_EasyPizza = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "Easy Pizza in Easton", false, new ConfigDescription("Teleport to Easy Pizza", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1255 } })); TeleportMT_PawnShop = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "Pawn Shop in Easton & Tunnel to Fishing Town", false, new ConfigDescription("Teleport to Pawn Shop", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1254 } })); TeleportMT_EZAuto = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "EZ Auto in Easton", false, new ConfigDescription("Teleport to EZ Auto", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1253 } })); TeleportMT_EZMart = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "EZ Mart in Easton", false, new ConfigDescription("Teleport to EZ Mart", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1252 } })); TeleportMT_Node93 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Mountain Town)", "Tunnel to Snowy Peaks", false, new ConfigDescription("Teleport to Tunnel to Snowy Peaks", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1251 } })); TeleportSP_Destnode5 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 1", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1360 } })); TeleportSP_Destnode1 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 2", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1359 } })); TeleportSP_Destnode3 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 3", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1358 } })); TeleportSP_Destnode4 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 4", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1357 } })); TeleportSP_Destnode6 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 5", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1356 } })); TeleportSP_Destnode8 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 6", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1355 } })); TeleportSP_Destnode7 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Lopton 7", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1354 } })); TeleportSP_EZBakery = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "EZ Bakery in Lopton", false, new ConfigDescription("Teleport to EZ Bakery", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1353 } })); TeleportSP_EasyPizza = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Easy Pizza in Lopton", false, new ConfigDescription("Teleport to Easy Pizza", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1352 } })); TeleportSP_EasyDepot = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Easy Depot in Lopton", false, new ConfigDescription("Teleport to Easy Depot", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1351 } })); TeleportSP_EZCafe = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "EZ Cafe in Lopton", false, new ConfigDescription("Teleport to EZ Cafe", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1350 } })); TeleportSP_Destnode10 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Cabin in Munton 1", false, new ConfigDescription("Teleport to Cabin", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1349 } })); TeleportSP_Destnode9 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "MKs Cabin & Tunnel to Mountain Town", false, new ConfigDescription("Teleport to MK/Mountain Town", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1348 } })); TeleportSP_EasyEats = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Easy Eats in Winton", false, new ConfigDescription("Teleport to Easy Eats", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1347 } })); TeleportSP_EasyFlowers = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Easy Flowers in Winton", false, new ConfigDescription("Teleport to Easy Flowers", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1346 } })); TeleportSP_EZAuto = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "EZ Auto in Munton", false, new ConfigDescription("Teleport to EZ Auto", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1345 } })); TeleportSP_EZMart = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "EZ Mart in Munton", false, new ConfigDescription("Teleport to EZ Mart", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1344 } })); TeleportSP_PawnShop = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Snowy Peaks)", "Pawn Shop in Munton", false, new ConfigDescription("Teleport to Pawn Shop", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1343 } })); TeleportFT_NodeDock = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Smalton Docks 1", false, new ConfigDescription("Teleport to Docks 1", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1459 } })); TeleportFT_NodeDock2 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Smalton Docks 2", false, new ConfigDescription("Teleport to Docks 2", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1458 } })); TeleportFT_NodeDock3_1 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Smalton Docks 3", false, new ConfigDescription("Teleport to Docks 3", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1457 } })); TeleportFT_EasyFlowers = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Easy Flowers in Smalton", false, new ConfigDescription("Teleport to Easy Flowers", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1456 } })); TeleportFT_EasyEats = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Easy Eats in Smalton", false, new ConfigDescription("Teleport to Easy Eats", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1455 } })); TeleportFT_EasyPizza = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Easy Pizza in Smalton", false, new ConfigDescription("Teleport to Easy Pizza", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1454 } })); TeleportFT_Node64 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "House edge of Damton", false, new ConfigDescription("Teleport to House", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1453 } })); TeleportFT_EasyDepot = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Easy Depot in Damton", false, new ConfigDescription("Teleport to Easy Depot", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1452 } })); TeleportFT_EZCafe = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "EZ Cafe in Damton", false, new ConfigDescription("Teleport to EZ Cafe", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1451 } })); TeleportFT_EZBakery = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "EZ Bakery in Damton", false, new ConfigDescription("Teleport to EZ Bakery", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1450 } })); TeleportFT_Node102 = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "House in Clifton", false, new ConfigDescription("Teleport to House", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1449 } })); TeleportFT_PawnShop = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "Pawn Shop in Clifton & Tunnel to Mountain Town", false, new ConfigDescription("Teleport to Pawn Shop", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1449 } })); TeleportFT_EZMart = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "EZ Mart in Clifton", false, new ConfigDescription("Teleport to EZ Mart", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1448 } })); TeleportFT_EZAuto = ((BaseUnityPlugin)this).Config.Bind<bool>("Teleportation (Fishing Town)", "EZ Auto in Clifton", false, new ConfigDescription("Teleport to EZ Auto", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 1447 } })); RandomWeather = ((BaseUnityPlugin)this).Config.Bind<bool>("Environment", "Random weather", true, new ConfigDescription("Turn off random weather in order to change the weather manually", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 160 } })); WeatherIntensity = ((BaseUnityPlugin)this).Config.Bind<int>("Environment", "Weather intensity", 0, new ConfigDescription("Change weather intensity", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 10), new object[1] { new ConfigurationManagerAttributes { Order = 159 } })); WeatherCycle = ((BaseUnityPlugin)this).Config.Bind<int>("Environment", "Weather cycle", 0, new ConfigDescription("Change weather cycle", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 10), new object[1] { new ConfigurationManagerAttributes { Order = 158 } })); FreezeWeather = ((BaseUnityPlugin)this).Config.Bind<bool>("Environment", "Freeze weather", false, new ConfigDescription("Freeze the weather cycle", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 157 } })); SpeedUpWeather = ((BaseUnityPlugin)this).Config.Bind<int>("Environment", "Speed up weather", 0, new ConfigDescription("Speed up the weather cycle", (AcceptableValueBase)(object)new AcceptableValueRange<int>(-10, 10), new object[1] { new ConfigurationManagerAttributes { Order = 156 } })); FreezeTime = ((BaseUnityPlugin)this).Config.Bind<bool>("Environment", "Freeze time", false, new ConfigDescription("Freeze time of day", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 153 } })); ReverseTime = ((BaseUnityPlugin)this).Config.Bind<bool>("Environment", "Reverse time", false, new ConfigDescription("Reverse time of day", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 152 } })); ChangeTime = ((BaseUnityPlugin)this).Config.Bind<float>("Environment", "Change time", 6f, new ConfigDescription("Change time of day", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 24f), new object[1] { new ConfigurationManagerAttributes { Order = 151 } })); SpeedUpTime = ((BaseUnityPlugin)this).Config.Bind<int>("Environment", "Speed up time", 0, new ConfigDescription("Speed up time of day", (AcceptableValueBase)(object)new AcceptableValueRange<int>(-10, 10), new object[1] { new ConfigurationManagerAttributes { Order = 150 } })); SyncTime = ((BaseUnityPlugin)this).Config.Bind<bool>("Environment", "Sync time", false, new ConfigDescription("Sync time to the clock of your operating system", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 149 } })); NoFog = ((BaseUnityPlugin)this).Config.Bind<bool>("Environment", "No fog", false, new ConfigDescription("Toggle off fog", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 140 } })); FPSAmount = ((BaseUnityPlugin)this).Config.Bind<int>("Camera & Visuals", "FPS amount", 0, new ConfigDescription("Adjust the amount of FPS. 0 = Default (60). 10 = Uncapped", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 10), new object[1] { new ConfigurationManagerAttributes { Order = 175 } })); Vsync = ((BaseUnityPlugin)this).Config.Bind<bool>("Camera & Visuals", "Vsync", false, new ConfigDescription("Sync FPS with monitor", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 174 } })); ShowFPS = ((BaseUnityPlugin)this).Config.Bind<bool>("Camera & Visuals", "Show FPS", false, new ConfigDescription("Display 'Frames Per Second'", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 173 } })); ShowHUD = ((BaseUnityPlugin)this).Config.Bind<bool>("Camera & Visuals", ShowHUDKey, true, new ConfigDescription("Toggle vehicle & player HUD (shortcut U)", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 172 } })); FreeCam = ((BaseUnityPlugin)this).Config.Bind<bool>("Camera & Visuals", "Freecam", false, new ConfigDescription("Freely move around the world (WASD to move when M is pressed, U to toggle HUD)", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 171 } })); NoPixelRendering = ((BaseUnityPlugin)this).Config.Bind<bool>("Camera & Visuals", "No pixelated rendering", false, new ConfigDescription("Remove the retro look of the game", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 170 } })); UnlockAll = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", UnlockAllKey, false, new ConfigDescription("Unlock all achievements", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 120 } })); SnowyPeaks = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", SnowyPeaksKey, false, new ConfigDescription("Unlock snowy peaks", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 110 } })); FishingTown = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", FishingTownKey, false, new ConfigDescription("Unlock fishing town", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 100 } })); DuctTape = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", DuctTapeKey, false, new ConfigDescription("Unlock duct tape", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 90 } })); Tea = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", TeaKey, false, new ConfigDescription("Unlock tea", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 80 } })); Fish = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", FishKey, false, new ConfigDescription("Unlock fish", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 70 } })); RadioTowers = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", RadioTowersKey, false, new ConfigDescription("Unlock radio towers", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 60 } })); Reboot = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", RebootKey, false, new ConfigDescription("Unlock reboot", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 50 } })); Shutdown = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", ShutdownKey, false, new ConfigDescription("Unlock shutdown", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 40 } })); Restore = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", RestoreKey, false, new ConfigDescription("Unlock restore", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 30 } })); Snowcats = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", SnowcatsKey, false, new ConfigDescription("Unlock snowcats", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 20 } })); Birds = ((BaseUnityPlugin)this).Config.Bind<bool>("Achievements", BirdsKey, false, new ConfigDescription("Unlock birds", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 10 } })); ShowLocation = ((BaseUnityPlugin)this).Config.Bind<bool>("Extras", "Show location", false, new ConfigDescription("Show vehicle location on map", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 6 } })); ShowAllExes = ((BaseUnityPlugin)this).Config.Bind<bool>("Extras", "Show all EXEs", false, new ConfigDescription("Show all app icons in EasyOS. WARNING! This feature may be buggy. Only way to get rid of extra icons is by restarting the game with this feature toggled OFF", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 5 } })); DraggableIcons = ((BaseUnityPlugin)this).Config.Bind<bool>("Extras", "Draggable icons", false, new ConfigDescription("Toggle dragging icons around", (AcceptableValueBase)null, new object[1] { new ConfigurationManagerAttributes { Order = 4 } })); VehicleInvincibility.SettingChanged += ConfigSettingChanged; ShowHUD.SettingChanged += ConfigSettingChanged; InfiniteFuel.SettingChanged += ConfigSettingChanged; SmoothDriving.SettingChanged += ConfigSettingChanged; InstantReset.SettingChanged += ConfigSettingChanged; SnowTiresToggle.SettingChanged += ConfigSettingChanged; IceChainsToggle.SettingChanged += ConfigSettingChanged; BumperBarToggle.SettingChanged += ConfigSettingChanged; AlwaysDuctTape.SettingChanged += ConfigSettingChanged; PerfectTraction.SettingChanged += ConfigSettingChanged; BlowUpVehicle.SettingChanged += ConfigSettingChanged; ZeroGravity.SettingChanged += ConfigSettingChanged; FPSAmount.SettingChanged += ConfigSettingChanged; Vsync.SettingChanged += ConfigSettingChanged; ShowFPS.SettingChanged += ConfigSettingChanged; ShowHUD.SettingChanged += ConfigSettingChanged; FreeCam.SettingChanged += ConfigSettingChanged; NoPixelRendering.SettingChanged += ConfigSettingChanged; PlayerSpeed.SettingChanged += ConfigSettingChanged; MoneyAmount.SettingChanged += ConfigSettingChanged; PlayerInvincibility.SettingChanged += ConfigSettingChanged; InfiniteEnergy.SettingChanged += ConfigSettingChanged; NoFreezing.SettingChanged += ConfigSettingChanged; NoRagdoll.SettingChanged += ConfigSettingChanged; GiveItem1.SettingChanged += ConfigSettingChanged; GiveItem2.SettingChanged += ConfigSettingChanged; GiveItem3.SettingChanged += ConfigSettingChanged; GiveItem4.SettingChanged += ConfigSettingChanged; GiveItem5.SettingChanged += ConfigSettingChanged; GiveItem6.SettingChanged += ConfigSettingChanged; GiveItem7.SettingChanged += ConfigSettingChanged; GiveItem8.SettingChanged += ConfigSettingChanged; GiveItem9.SettingChanged += ConfigSettingChanged; GiveItem10.SettingChanged += ConfigSettingChanged; GiveItem11.SettingChanged += ConfigSettingChanged; GiveItem12.SettingChanged += ConfigSettingChanged; GiveItem13.SettingChanged += ConfigSettingChanged; GiveItem14.SettingChanged += ConfigSettingChanged; GiveItem15.SettingChanged += ConfigSettingChanged; GiveItem16.SettingChanged += ConfigSettingChanged; GiveItem17.SettingChanged += ConfigSettingChanged; GiveItem18.SettingChanged += ConfigSettingChanged; TeleportMT_EasyFlowers.SettingChanged += ConfigSettingChanged; TeleportMT_EasyEats.SettingChanged += ConfigSettingChanged; TeleportMT_EZBakery.SettingChanged += ConfigSettingChanged; TeleportMT_EasyDepot.SettingChanged += ConfigSettingChanged; TeleportMT_EZCafe.SettingChanged += ConfigSettingChanged; TeleportMT_EasyPizza.SettingChanged += ConfigSettingChanged; TeleportMT_PawnShop.SettingChanged += ConfigSettingChanged; TeleportMT_EZAuto.SettingChanged += ConfigSettingChanged; TeleportMT_EZMart.SettingChanged += ConfigSettingChanged; TeleportMT_Node93.SettingChanged += ConfigSettingChanged; TeleportFT_NodeDock.SettingChanged += ConfigSettingChanged; TeleportFT_NodeDock2.SettingChanged += ConfigSettingChanged; TeleportFT_NodeDock3_1.SettingChanged += ConfigSettingChanged; TeleportFT_EasyFlowers.SettingChanged += ConfigSettingChanged; TeleportFT_EasyEats.SettingChanged += ConfigSettingChanged; TeleportFT_EasyPizza.SettingChanged += ConfigSettingChanged; TeleportFT_Node64.SettingChanged += ConfigSettingChanged; TeleportFT_EasyDepot.SettingChanged += ConfigSettingChanged; TeleportFT_EZCafe.SettingChanged += ConfigSettingChanged; TeleportFT_EZBakery.SettingChanged += ConfigSettingChanged; TeleportFT_Node102.SettingChanged += ConfigSettingChanged; TeleportFT_PawnShop.SettingChanged += ConfigSettingChanged; TeleportFT_EZMart.SettingChanged += ConfigSettingChanged; TeleportFT_EZAuto.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode5.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode1.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode3.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode4.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode6.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode10.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode8.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode7.SettingChanged += ConfigSettingChanged; TeleportSP_Destnode9.SettingChanged += ConfigSettingChanged; TeleportSP_EasyEats.SettingChanged += ConfigSettingChanged; TeleportSP_EZBakery.SettingChanged += ConfigSettingChanged; TeleportSP_EasyPizza.SettingChanged += ConfigSettingChanged; TeleportSP_EasyFlowers.SettingChanged += ConfigSettingChanged; TeleportSP_EasyDepot.SettingChanged += ConfigSettingChanged; TeleportSP_EZAuto.SettingChanged += ConfigSettingChanged; TeleportSP_EZCafe.SettingChanged += ConfigSettingChanged; TeleportSP_EZMart.SettingChanged += ConfigSettingChanged; TeleportSP_PawnShop.SettingChanged += ConfigSettingChanged; RandomWeather.SettingChanged += EnvironmentSettingChanged; WeatherIntensity.SettingChanged += EnvironmentSettingChanged; WeatherCycle.SettingChanged += EnvironmentSettingChanged; FreezeWeather.SettingChanged += EnvironmentSettingChanged; SpeedUpWeather.SettingChanged += EnvironmentSettingChanged; NoFog.SettingChanged += EnvironmentSettingChanged; FreezeTime.SettingChanged += EnvironmentSettingChanged; ReverseTime.SettingChanged += EnvironmentSettingChanged; ChangeTime.SettingChanged += EnvironmentSettingChanged; SpeedUpTime.SettingChanged += EnvironmentSettingChanged; SyncTime.SettingChanged += EnvironmentSettingChanged; UnlockAll.SettingChanged += ConfigSettingChanged; SnowyPeaks.SettingChanged += ConfigSettingChanged; FishingTown.SettingChanged += ConfigSettingChanged; DuctTape.SettingChanged += ConfigSettingChanged; Tea.SettingChanged += ConfigSettingChanged; Fish.SettingChanged += ConfigSettingChanged; RadioTowers.SettingChanged += ConfigSettingChanged; Reboot.SettingChanged += ConfigSettingChanged; Shutdown.SettingChanged += ConfigSettingChanged; Restore.SettingChanged += ConfigSettingChanged; Snowcats.SettingChanged += ConfigSettingChanged; Birds.SettingChanged += ConfigSettingChanged; ShowLocation.SettingChanged += ConfigSettingChanged; ShowAllExes.SettingChanged += ConfigSettingChanged; DraggableIcons.SettingChanged += ConfigSettingChanged; Harmony.PatchAll(); ApplyGraphicsSettings(); InitializeAdditionalSettings(); Shaders.SettingChanged += OnShadersChanged; } private void EnvironmentSettingChanged(object sender, EventArgs e) { //IL_00dd: Unknown result type (might be due to invalid IL or missing references) if (_suppressEnvWrites) { return; } if (sender == WeatherIntensity) { _weatherIntensityUserUntil = Time.unscaledTime + 0.1f; } if (sender == WeatherCycle) { _weatherUserUntil = Time.unscaledTime + 0.1f; } if (sender == ChangeTime) { _timeUserUntil = Time.unscaledTime + 0.75f; } ConfigEntry<bool> val = sender as ConfigEntry<bool>; if (sender is ConfigEntry<int> val2 && val2 == FPSAmount) { ApplyGraphicsSettings(); } else if (val != null && (val == Vsync || val == ShowFPS || val == NoPixelRendering)) { ApplyGraphicsSettings(); if (val == NoPixelRendering) { currentRes = default(Resolution); FixPixelRendering(); } } } private bool TryUnlock(string id, string label) { if (!SteamManager.Initialized) { return false; } bool flag = default(bool); SteamUserStats.GetAchievement(id, ref flag); if (flag) { return false; } SteamUserStats.SetAchievement(id); return true; } private void EasyDeliveryMenu() { if (SteamManager.Initialized) { bool flag = false; flag |= TryUnlock("ACH_SNOWYPEAKS", "snowy peaks"); flag |= TryUnlock("ACH_FISHINGTOWN", "fishing town"); flag |= TryUnlock("ACH_TAPE", "duct tape"); flag |= TryUnlock("ACH_TEA", "tea"); flag |= TryUnlock("ACH_FISH", "fish"); flag |= TryUnlock("ACH_RADIOTOWERS", "radio towers"); flag |= TryUnlock("ACH_REBOOT", "reboot"); flag |= TryUnlock("ACH_SHUTDOWN", "shutdown"); flag |= TryUnlock("ACH_RESTORE", "restore"); flag |= TryUnlock("ACH_SNOWCATS", "snowcats"); if (flag | TryUnlock("ACH_BIRDS", "birds")) { SteamUserStats.StoreStats(); } } } private void UnlockSingleAchievement(string id, string label) { if (TryUnlock(id, label)) { SteamUserStats.StoreStats(); } } private void CheckTeleportTimeFreeze() { if (_teleportFreezeTime && Time.unscaledTime > _teleportFreezeUntil) { _teleportFreezeTime = false; } } private void Update() { RefreshObjectCache(); if (!_initialShaderCheckDone) { _initialShaderCheckDone = true; if (Shaders != null && Shaders.Value) { Shaders.Value = false; shadersEnabled = false; } } RefreshObjectCache(); UpdateAdditionalToggles(); UpdateSmoothDeltaTime(); CheckTeleportTimeFreeze(); ApplyVehicleToggles(); ApplyPlayerToggles(); ApplyItemButtons(); ApplyTeleportation(); ApplyEnvironment(); ApplyExtras(); UpdateFreeCam(); if (!_fpsSettingsApplied) { EnforceFPSSettings(); } } private void LateUpdate() { UpdateFPSDisplay(); } private void UpdateFPSDisplay() { if (ShowFPS != null && ShowFPS.Value) { _fpsUpdateTimer += Time.unscaledDeltaTime; if (_fpsUpdateTimer >= 0.5f) { _displayedFPS = 1f / _smoothDeltaTime; _fpsUpdateTimer = 0f; } } } private void UpdateSmoothDeltaTime() { float unscaledDeltaTime = Time.unscaledDeltaTime; unscaledDeltaTime = Mathf.Clamp(unscaledDeltaTime, 0.001f, 0.1f); _deltaTimeQueue.Enqueue(unscaledDeltaTime); if (_deltaTimeQueue.Count > 10) { _deltaTimeQueue.Dequeue(); } float num = 0f; foreach (float item in _deltaTimeQueue) { num += item; } _smoothDeltaTime = num / (float)_deltaTimeQueue.Count; } private void UpdateFreeCam() { //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_0224: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_0235: Unknown result type (might be due to invalid IL or missing references) //IL_023a: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invali