Decompiled source of BorkenCellGeoFix v0.7.0
BorkenCellGeoFix.dll
Decompiled 8 hours ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using AIGraph; using Agents; using AssetShards; using BepInEx; using BepInEx.Configuration; using BepInEx.Core.Logging.Interpolation; using BepInEx.Logging; using BepInEx.Unity.IL2CPP; using ChainedPuzzles; using Decals; using Enemies; using FluffyUnderware.DevTools.Extensions; using GTFO.API; using HarmonyLib; using Il2CppInterop.Runtime.InteropTypes; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppSystem; using Il2CppSystem.Collections.Generic; using Il2CppSystem.Reflection; using LevelGeneration; using LevelGeneration.Core; using Microsoft.CodeAnalysis; using StateMachines; using Unity.Collections; using UnityEngine; using UnityEngine.AI; using UnityEngine.Experimental.AI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("BorkenCellGeoFix")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+git7dedbfa-dirty-master.7dedbfa81d44a12b53989576578046150058e73b")] [assembly: AssemblyProduct("BorkenCellGeoFix")] [assembly: AssemblyTitle("BorkenCellGeoFix")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace BorkenCellGeoFix { [BepInPlugin("com.hirnukuono.BorkenCellGeoFix", "BorkenCellGeoFix", "0.7.0")] public class Plugin : BasePlugin { [HarmonyPatch] public class BorkenCellGeoFixPatches { private static bool plugsdone; private static bool geosdone; [HarmonyPatch(typeof(LG_Ladder), "OnBuild")] [HarmonyPostfix] private static void PostLadder(LG_Ladder __instance) { if (!((Object)__instance).name.Contains("bcgf_destroy_me")) { return; } foreach (MeshRenderer componentsInChild in ((Component)__instance).gameObject.GetComponentsInChildren<MeshRenderer>()) { ((Renderer)componentsInChild).castShadows = false; } } [HarmonyPatch(typeof(LG_BuildNodeCluster), "ConvertData")] [HarmonyPrefix] private static void PreVox(LG_BuildNodeCluster __instance, ref LG_BuildNodeVolumeJobData jobdata) { //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02b3: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Unknown result type (might be due to invalid IL or missing references) //IL_02ca: Unknown result type (might be due to invalid IL or missing references) //IL_02cf: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_02dd: Unknown result type (might be due to invalid IL or missing references) //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Expected O, but got Unknown //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_0176: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_018f: Unknown result type (might be due to invalid IL or missing references) //IL_01a9: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_0344: Unknown result type (might be due to invalid IL or missing references) //IL_0349: Unknown result type (might be due to invalid IL or missing references) //IL_034d: Unknown result type (might be due to invalid IL or missing references) //IL_036a: Unknown result type (might be due to invalid IL or missing references) //IL_038d: Unknown result type (might be due to invalid IL or missing references) //IL_03a1: Unknown result type (might be due to invalid IL or missing references) //IL_03be: Unknown result type (might be due to invalid IL or missing references) //IL_03c3: Unknown result type (might be due to invalid IL or missing references) //IL_03c7: Unknown result type (might be due to invalid IL or missing references) //IL_03d3: Unknown result type (might be due to invalid IL or missing references) //IL_0459: Unknown result type (might be due to invalid IL or missing references) //IL_045e: Unknown result type (might be due to invalid IL or missing references) //IL_0481: Unknown result type (might be due to invalid IL or missing references) //IL_0486: Unknown result type (might be due to invalid IL or missing references) //IL_048c: Unknown result type (might be due to invalid IL or missing references) //IL_0490: Unknown result type (might be due to invalid IL or missing references) //IL_049c: Unknown result type (might be due to invalid IL or missing references) //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04b1: Unknown result type (might be due to invalid IL or missing references) //IL_04bf: Unknown result type (might be due to invalid IL or missing references) //IL_04cf: Unknown result type (might be due to invalid IL or missing references) //IL_04dd: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Invalid comparison between Unknown and I4 //IL_04f1: Unknown result type (might be due to invalid IL or missing references) if (jobdata.vnv.m_maxY < 33f || (Object)(object)((Component)jobdata.vnv).GetComponent<AIG_GeomorphNodeVolume>().m_sizeOverrideTransform == (Object)null) { return; } ManualLogSource l = L; bool flag = default(bool); if (l != null) { BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(54, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("hacking the nodecluster vertical 64 meter limit on "); ((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>(((Object)((Component)jobdata.vnv).GetComponent<LG_Geomorph>()).name); ((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" .."); } l.LogInfo(val); } Vector3 val2 = default(Vector3); ((Vector3)(ref val2))..ctor(jobdata.vnv.m_cornerOffset.x + 0.5f, jobdata.vnv.m_maxY, jobdata.vnv.m_cornerOffset.z + 0.5f); Vector3 val3 = val2; Vector3 val4 = default(Vector3); ((Vector3)(ref val4))..ctor(0.25f, 1.5f, 0.25f); NavMeshQuery val5; for (int i = 0; i < jobdata.vnv.m_countX * jobdata.vnv.m_countZ; i++) { int num = i / jobdata.vnv.m_countZ; int num2 = i % jobdata.vnv.m_countZ; ((Vector3)(ref val3)).Set(val2.x + (float)num, jobdata.vnv.m_maxY, val2.z + (float)num2); float num3 = jobdata.vnv.m_maxY + 1f; int num4 = 0; int num5 = i * 12; for (int j = 0; j < 256; j++) { val5 = jobdata.nmQuerys[0]; NavMeshLocation val6 = ((NavMeshQuery)(ref val5)).MapLocation(val3, val4, 0, -1); val5 = jobdata.nmQuerys[0]; if (((NavMeshQuery)(ref val5)).IsValid(((NavMeshLocation)(ref val6)).polygon) && ((NavMeshLocation)(ref val6)).position.y < num3) { jobdata.nodeDatas[num5 + num4] = val6; num3 = ((NavMeshLocation)(ref val6)).position.y - 0.5f; val3.y = ((NavMeshLocation)(ref val6)).position.y; num4++; if (num4 == 12) { break; } } val3.y -= 1f; if (val3.y < jobdata.vnv.m_minY) { break; } } jobdata.nodeCounts[i] = (byte)num4; } l = L; if (l != null) { BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(26, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("rerunning nodelinks on "); ((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>(((Object)((Component)jobdata.vnv).GetComponent<LG_Geomorph>()).name); ((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" .."); } l.LogInfo(val); } Int2[] array = (Int2[])(object)new Int2[4] { new Int2(-1, 1), new Int2(0, 1), new Int2(1, 1), new Int2(1, 0) }; NavMeshHit val12 = default(NavMeshHit); for (int k = 0; k < jobdata.vnv.m_countX * jobdata.vnv.m_countZ; k++) { int num6 = jobdata.nodeCounts[k]; if (num6 < 1) { continue; } int num7 = k * 12; int num8 = k / jobdata.vnv.m_countZ; int num9 = k % jobdata.vnv.m_countZ; for (int m = 0; m < num6; m++) { int num10 = num7 + m; NavMeshLocation val7 = jobdata.nodeDatas[num10]; if (((NavMeshLocation)(ref val7)).position.y > jobdata.vnv.m_maxY || ((NavMeshLocation)(ref val7)).position.y < jobdata.vnv.m_minY) { continue; } int num11 = num10 * 4; float num12 = ((NavMeshLocation)(ref val7)).position.y - 1.5f; float num13 = ((NavMeshLocation)(ref val7)).position.y + 1.5f; for (int n = 0; n < 4; n++) { Int2 val8 = array[n]; int num14 = num8 + val8.x; int num15 = num9 + val8.y; float num16 = float.MinValue; if (num14 > -1 && num15 > -1 && num14 < jobdata.vnv.m_countX && num15 < jobdata.vnv.m_countZ) { int num17 = num14 * jobdata.vnv.m_countZ + num15; int num18 = num17 * 12; int num19 = jobdata.nodeCounts[num17]; for (int num20 = 0; num20 < num19; num20++) { NavMeshLocation val9 = jobdata.nodeDatas[num18 + num20]; NativeArray<float> val10 = new NativeArray<float> { m_AllocatorLabel = (Allocator)2, m_Length = 1024576 }; val5 = jobdata.nmQuerys[0]; PathQueryStatus val11 = ((NavMeshQuery)(ref val5)).Raycast(ref val12, val7, ((NavMeshLocation)(ref val9)).position, LayerManager.MASK_NODE_LINKING, val10); val10.Deallocate(); if (((NavMeshLocation)(ref val7)).position != Vector3.zero && ((NavMeshLocation)(ref val9)).position.y < num13 && ((NavMeshLocation)(ref val9)).position.y > num12 && (int)val11 == 1073741824 && !((NavMeshHit)(ref val12)).hit) { num16 = ((NavMeshLocation)(ref val9)).position.y; break; } } } jobdata.nodeLinks[num11 + n] = num16; } } } } [HarmonyPatch(typeof(EB_InCombat_MoveToTarget), "UpdateBehaviour")] [HarmonyPrefix] private static bool PitFuck2(EB_InCombat_MoveToTarget __instance) { //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_0271: Unknown result type (might be due to invalid IL or missing references) //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_02ee: Unknown result type (might be due to invalid IL or missing references) //IL_02f8: Unknown result type (might be due to invalid IL or missing references) if (NavMesh.pathfindingIterationsPerFrame < 2000) { NavMesh.pathfindingIterationsPerFrame = 2000; } if (((EB_StateBase)__instance).m_ai.m_enemyAgent.EnemyBehaviorData.IsFlyer) { return true; } ((EB_StateBase)__instance).m_ai.m_detection.UpdateTargets(); if (!((AgentAI)((EB_StateBase)__instance).m_ai).IsTargetValid) { ((EB_StateBase)__instance).m_ai.m_behaviour.ChangeState((EB_States)5); return false; } if (Mathf.Abs(((EB_StateBase)__instance).m_ai.m_enemyAgent.Position.y - ((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_navigationPosition.y) > 12f || ((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_distance > 16f) { if (((EB_StateBase)__instance).m_ai.m_behaviourData.m_mov_Timer < Clock.Time) { if (((EB_StateBase)__instance).m_ai.m_courseNavigation.m_lastTargetNodeDistance == 0 && ((Object)((Component)((Component)((Agent)((EB_StateBase)__instance).m_ai.m_enemyAgent).CourseNode.m_area).GetComponentInParent<LG_Geomorph>()).transform).name.ToLower().Contains("geo_64x64_service_floodways_hub_sf_01") && Mathf.Abs(((EB_StateBase)__instance).m_ai.m_enemyAgent.Position.y - ((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_navigationPosition.y) > 12f) { float num = Vector3.Distance(((EB_StateBase)__instance).m_ai.m_enemyAgent.Position, ((LG_ZoneExpander)((Agent)((EB_StateBase)__instance).m_ai.m_enemyAgent).CourseNode.m_zone.m_sourceGate).m_position); float num2 = Vector3.Distance(((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_position, ((LG_ZoneExpander)((Agent)((EB_StateBase)__instance).m_ai.m_enemyAgent).CourseNode.m_zone.m_sourceGate).m_position); if (((EB_StateBase)__instance).m_ai.m_enemyAgent.Position.y < ((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_agent.Position.y && num2 < num) { ManualLogSource? l = L; if (l != null) { l.LogInfo((object)"incombat_movetotarget debug: enemy has been pseudopos'ed UP"); } ((EB_StateBase)__instance).m_ai.NavmeshAgentGoal = ((LG_ZoneExpander)((Agent)((EB_StateBase)__instance).m_ai.m_enemyAgent).CourseNode.m_zone.m_sourceGate).m_position; ((EB_StateBase)__instance).m_ai.m_behaviourData.m_mov_Timer = Clock.Time + 20f; return false; } if (((EB_StateBase)__instance).m_ai.m_enemyAgent.Position.y > ((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_agent.Position.y && num2 > num) { ManualLogSource? l2 = L; if (l2 != null) { l2.LogInfo((object)"incombat_movetotarget debug: enemy has been pseudopos'ed DOWN"); } LG_Geomorph componentInParent = ((Component)((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_agent.CourseNode.m_area).GetComponentInParent<LG_Geomorph>(); ((EB_StateBase)__instance).m_ai.NavmeshAgentGoal = new Vector3(((Component)componentInParent).transform.position.x, ((Component)componentInParent).transform.position.y - 27.5f, ((Component)componentInParent).transform.position.z); ((EB_StateBase)__instance).m_ai.m_behaviourData.m_mov_Timer = Clock.Time + 20f; return false; } } ((EB_StateBase)__instance).m_ai.NavmeshAgentGoal = ((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_position; if (((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_distance > 16f) { ((EB_StateBase)__instance).m_ai.m_behaviourData.m_mov_Timer = Clock.Time + 2f; } if (((AgentAI)((EB_StateBase)__instance).m_ai).Target.m_distance > 48f) { ((EB_StateBase)__instance).m_ai.m_behaviourData.m_mov_Timer = Clock.Time + 5f; } } return false; } return true; } [HarmonyPatch(typeof(EB_InCombat_Pouncer_HeldBased), "UpdateBehaviour")] [HarmonyPostfix] private static void Snatch1(EB_StateBase __instance) { //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Expected O, but got Unknown if (__instance.m_ai.m_behaviourData.WantsToFlee || __instance.m_ai.m_courseNavigation.m_lastTargetNodeDistance < 1) { return; } ManualLogSource l = L; if (l != null) { bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(27, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("eb_based debug last state "); ((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name); ((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" "); } l.LogInfo(val); } if (!(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_InCombat_Pouncer_HeldBased") && !(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_InCombat_MoveToNextNode") && !(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_AfterPlayerHeld_Pouncer") && !(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_Stagger_Pouncer") && !(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_Dash_Pouncer")) { ManualLogSource? l2 = L; if (l2 != null) { l2.LogInfo((object)"pouncer eb_incombat_pouncer_heldbased cancelled"); } EB_StateBase state = ((MachineState<EB_StateBase>)(object)__instance).m_machine.GetState(10); ((MachineState<EB_StateBase>)(object)__instance).m_machine.ChangeState(state); } } [HarmonyPatch(typeof(EB_Dash_Pouncer), "Enter")] [HarmonyPrefix] private static void Snatch2(EB_StateBase __instance) { //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Expected O, but got Unknown if (__instance.m_ai.m_behaviourData.WantsToFlee || __instance.m_ai.m_courseNavigation.m_lastTargetNodeDistance < 1) { return; } ManualLogSource l = L; if (l != null) { bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(26, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("eb_dash debug last state "); ((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name); ((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" "); } l.LogInfo(val); } if (!(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_AfterPlayerHeld_Pouncer") && !(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_InCombat_Pouncer_HeldBased") && !(((MemberInfo)((Object)((MachineState<EB_StateBase>)(object)__instance).m_machine.m_lastState).GetIl2CppType()).Name == "EB_Stagger_Pouncer")) { ManualLogSource? l2 = L; if (l2 != null) { l2.LogInfo((object)"pouncer eb_dash_pouncer cancelled"); } EB_StateBase state = ((MachineState<EB_StateBase>)(object)__instance).m_machine.GetState(10); ((MachineState<EB_StateBase>)(object)__instance).m_machine.ChangeState(state); } } [HarmonyPatch(typeof(LG_SetupFloor), "Build")] [HarmonyPrefix] private static void SetupFloorPrefix(LG_SetupFloor __instance) { //IL_032a: Unknown result type (might be due to invalid IL or missing references) //IL_033e: Unknown result type (might be due to invalid IL or missing references) //IL_0343: Unknown result type (might be due to invalid IL or missing references) //IL_0693: Unknown result type (might be due to invalid IL or missing references) //IL_03ae: Unknown result type (might be due to invalid IL or missing references) //IL_03c2: Unknown result type (might be due to invalid IL or missing references) //IL_03c7: Unknown result type (might be due to invalid IL or missing references) //IL_071d: Unknown result type (might be due to invalid IL or missing references) //IL_042f: Unknown result type (might be due to invalid IL or missing references) //IL_0443: Unknown result type (might be due to invalid IL or missing references) //IL_0448: Unknown result type (might be due to invalid IL or missing references) //IL_0f89: Unknown result type (might be due to invalid IL or missing references) //IL_0f9d: Unknown result type (might be due to invalid IL or missing references) //IL_07a0: Unknown result type (might be due to invalid IL or missing references) //IL_07b4: Unknown result type (might be due to invalid IL or missing references) //IL_07b9: Unknown result type (might be due to invalid IL or missing references) //IL_04b4: Unknown result type (might be due to invalid IL or missing references) //IL_04c8: Unknown result type (might be due to invalid IL or missing references) //IL_04cd: Unknown result type (might be due to invalid IL or missing references) //IL_04df: Unknown result type (might be due to invalid IL or missing references) //IL_04f3: Unknown result type (might be due to invalid IL or missing references) //IL_04f8: Unknown result type (might be due to invalid IL or missing references) //IL_0fb1: Unknown result type (might be due to invalid IL or missing references) //IL_0fc5: Unknown result type (might be due to invalid IL or missing references) //IL_0fca: Unknown result type (might be due to invalid IL or missing references) //IL_0fe7: Unknown result type (might be due to invalid IL or missing references) //IL_0ff8: Unknown result type (might be due to invalid IL or missing references) //IL_1002: Unknown result type (might be due to invalid IL or missing references) //IL_0821: Unknown result type (might be due to invalid IL or missing references) //IL_0835: Unknown result type (might be due to invalid IL or missing references) //IL_083a: Unknown result type (might be due to invalid IL or missing references) //IL_055b: Unknown result type (might be due to invalid IL or missing references) //IL_056f: Unknown result type (might be due to invalid IL or missing references) //IL_0574: Unknown result type (might be due to invalid IL or missing references) //IL_116d: Unknown result type (might be due to invalid IL or missing references) //IL_1181: Unknown result type (might be due to invalid IL or missing references) //IL_08b6: Unknown result type (might be due to invalid IL or missing references) //IL_08d6: Unknown result type (might be due to invalid IL or missing references) //IL_05df: Unknown result type (might be due to invalid IL or missing references) //IL_05f3: Unknown result type (might be due to invalid IL or missing references) //IL_05f8: Unknown result type (might be due to invalid IL or missing references) //IL_1239: Unknown result type (might be due to invalid IL or missing references) //IL_124d: Unknown result type (might be due to invalid IL or missing references) //IL_11a3: Unknown result type (might be due to invalid IL or missing references) //IL_11c3: Unknown result type (might be due to invalid IL or missing references) //IL_0ee7: Unknown result type (might be due to invalid IL or missing references) //IL_1288: Unknown result type (might be due to invalid IL or missing references) //IL_129c: Unknown result type (might be due to invalid IL or missing references) //IL_12a1: Unknown result type (might be due to invalid IL or missing references) //IL_12b3: Unknown result type (might be due to invalid IL or missing references) //IL_12c7: Unknown result type (might be due to invalid IL or missing references) //IL_12cc: Unknown result type (might be due to invalid IL or missing references) //IL_1260: Unknown result type (might be due to invalid IL or missing references) //IL_1274: Unknown result type (might be due to invalid IL or missing references) //IL_10b6: Unknown result type (might be due to invalid IL or missing references) //IL_10ca: Unknown result type (might be due to invalid IL or missing references) //IL_10cf: Unknown result type (might be due to invalid IL or missing references) //IL_10e1: Unknown result type (might be due to invalid IL or missing references) //IL_10f5: Unknown result type (might be due to invalid IL or missing references) //IL_10fa: Unknown result type (might be due to invalid IL or missing references) //IL_0ac6: Unknown result type (might be due to invalid IL or missing references) //IL_0ada: Unknown result type (might be due to invalid IL or missing references) //IL_0adf: Unknown result type (might be due to invalid IL or missing references) //IL_0af1: Unknown result type (might be due to invalid IL or missing references) //IL_0b05: Unknown result type (might be due to invalid IL or missing references) //IL_0b0a: Unknown result type (might be due to invalid IL or missing references) //IL_14c5: Unknown result type (might be due to invalid IL or missing references) //IL_14f3: Unknown result type (might be due to invalid IL or missing references) //IL_1513: Unknown result type (might be due to invalid IL or missing references) //IL_139b: Unknown result type (might be due to invalid IL or missing references) //IL_13cd: Unknown result type (might be due to invalid IL or missing references) //IL_1403: Unknown result type (might be due to invalid IL or missing references) //IL_1417: Unknown result type (might be due to invalid IL or missing references) //IL_141c: Unknown result type (might be due to invalid IL or missing references) //IL_142e: Unknown result type (might be due to invalid IL or missing references) //IL_1442: Unknown result type (might be due to invalid IL or missing references) //IL_1447: Unknown result type (might be due to invalid IL or missing references) //IL_0933: Unknown result type (might be due to invalid IL or missing references) //IL_0947: Unknown result type (might be due to invalid IL or missing references) //IL_15d0: Unknown result type (might be due to invalid IL or missing references) //IL_15e4: Unknown result type (might be due to invalid IL or missing references) //IL_15e9: Unknown result type (might be due to invalid IL or missing references) //IL_15fb: Unknown result type (might be due to invalid IL or missing references) //IL_160f: Unknown result type (might be due to invalid IL or missing references) //IL_1614: Unknown result type (might be due to invalid IL or missing references) //IL_09f9: Unknown result type (might be due to invalid IL or missing references) //IL_0a0d: Unknown result type (might be due to invalid IL or missing references) //IL_099a: Unknown result type (might be due to invalid IL or missing references) //IL_09ae: Unknown result type (might be due to invalid IL or missing references) //IL_0969: Unknown result type (might be due to invalid IL or missing references) //IL_0989: Unknown result type (might be due to invalid IL or missing references) //IL_1727: Unknown result type (might be due to invalid IL or missing references) //IL_173b: Unknown result type (might be due to invalid IL or missing references) //IL_1740: Unknown result type (might be due to invalid IL or missing references) //IL_169d: Unknown result type (might be due to invalid IL or missing references) //IL_16b1: Unknown result type (might be due to invalid IL or missing references) //IL_16b6: Unknown result type (might be due to invalid IL or missing references) //IL_0c8c: Unknown result type (might be due to invalid IL or missing references) //IL_0b99: Unknown result type (might be due to invalid IL or missing references) //IL_0bad: Unknown result type (might be due to invalid IL or missing references) //IL_0bb2: Unknown result type (might be due to invalid IL or missing references) //IL_0a21: Unknown result type (might be due to invalid IL or missing references) //IL_0a35: Unknown result type (might be due to invalid IL or missing references) //IL_0a3a: Unknown result type (might be due to invalid IL or missing references) //IL_09d0: Unknown result type (might be due to invalid IL or missing references) //IL_1927: Unknown result type (might be due to invalid IL or missing references) //IL_193b: Unknown result type (might be due to invalid IL or missing references) //IL_1940: Unknown result type (might be due to invalid IL or missing references) //IL_176a: Unknown result type (might be due to invalid IL or missing references) //IL_177e: Unknown result type (might be due to invalid IL or missing references) //IL_1783: Unknown result type (might be due to invalid IL or missing references) //IL_17ad: Unknown result type (might be due to invalid IL or missing references) //IL_17c1: Unknown result type (might be due to invalid IL or missing references) //IL_17c6: Unknown result type (might be due to invalid IL or missing references) //IL_17f0: Unknown result type (might be due to invalid IL or missing references) //IL_1804: Unknown result type (might be due to invalid IL or missing references) //IL_1809: Unknown result type (might be due to invalid IL or missing references) //IL_1833: Unknown result type (might be due to invalid IL or missing references) //IL_1847: Unknown result type (might be due to invalid IL or missing references) //IL_184c: Unknown result type (might be due to invalid IL or missing references) //IL_187d: Unknown result type (might be due to invalid IL or missing references) //IL_1891: Unknown result type (might be due to invalid IL or missing references) //IL_18a5: Unknown result type (might be due to invalid IL or missing references) //IL_18b9: Unknown result type (might be due to invalid IL or missing references) //IL_18be: Unknown result type (might be due to invalid IL or missing references) if (!_navmeshFix.Value) { return; } GameObject loadedAsset = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Dimensions/Desert/Dimension_Desert_R7B3.prefab"); if ((Object)(object)loadedAsset != (Object)null) { foreach (LG_PrefabSpawner componentsInChild in loadedAsset.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild).transform.parent.parent).name == "Area_A" && (((Object)((Component)componentsInChild).transform).name == "LG_PrefabSpawner_prop_generic_beam_c_column_4m_tile_001 (35)" || ((Object)((Component)componentsInChild).transform).name == "LG_PrefabSpawner_prop_generic_beam_c_column_4m_tile_001 (36)")) { componentsInChild.m_disableCollision = true; } } } Enumerator<string, Object> enumerator2 = AssetShardManager.s_loadedAssetsLookup.GetEnumerator(); while (enumerator2.MoveNext()) { KeyValuePair<string, Object> current2 = enumerator2.Current; if (!(current2.Key.Contains("GEO_") | current2.Key.Contains("CORPSE"))) { continue; } GameObject loadedAsset2 = AssetAPI.GetLoadedAsset<GameObject>(current2.Key); if (!((Object)(object)loadedAsset2 != (Object)null)) { continue; } foreach (Decal componentsInChild2 in loadedAsset2.GetComponentsInChildren<Decal>()) { if ((Object)(object)((Component)((Component)componentsInChild2).transform).GetComponent<MeshRenderer>() != (Object)null) { ((Renderer)((Component)((Component)componentsInChild2).transform).GetComponent<MeshRenderer>()).castShadows = false; } } foreach (MeshRenderer componentsInChild3 in loadedAsset2.GetComponentsInChildren<MeshRenderer>()) { if (((Object)((Component)componentsInChild3).transform).name.ToLower().Contains("dead_body")) { ((Renderer)componentsInChild3).castShadows = false; } if (((Object)((Component)componentsInChild3).transform).name.ToLower().Contains("blood")) { ((Renderer)componentsInChild3).castShadows = false; } } foreach (LG_PrefabSpawner componentsInChild4 in loadedAsset2.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild4).transform).name.ToLower().Contains("dead_body")) { foreach (MeshRenderer componentsInChild5 in componentsInChild4.m_prefab.GetComponentsInChildren<MeshRenderer>()) { if (((Object)componentsInChild5).name == "s_Cylinder") { ((Renderer)componentsInChild5).enabled = false; } } componentsInChild4.m_forceShadowsOff = true; } if (((Object)((Component)componentsInChild4).transform).name.ToLower().Contains("decal")) { componentsInChild4.m_forceShadowsOff = true; } } } Enumerator<string, AssetShardManifest> enumerator5 = AssetShardManager.s_loadedManifests.GetEnumerator(); while (enumerator5.MoveNext()) { KeyValuePair<string, AssetShardManifest> current7 = enumerator5.Current; if (current7.Key.Contains("Complex_Mining") && !MiningFixed) { GameObject loadedAsset3 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Mining/Geomorphs/Refinery/geo_64x64_mining_refinery_JG_02.prefab"); if ((Object)(object)loadedAsset3 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild6 in loadedAsset3.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild6).transform).name == "LG_PrefabSpawner_env_refinery_marker_ground_large_shallow_01 (63)") { Transform transform = ((Component)componentsInChild6).transform; transform.localScale += new Vector3(0f, 0f, 0.1f); } } } GameObject loadedAsset4 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Mining/Props/refinery/refinery_room_large_X_2200x2000x2000/refinery_room_large_X_2200x2000x2000_HA_04.prefab"); if ((Object)(object)loadedAsset4 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild7 in loadedAsset4.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)componentsInChild7).name.ToLower().Contains("ground_medium_flat_01")) { Transform transform2 = ((Component)componentsInChild7).transform; transform2.localScale += new Vector3(0.1f, 0f, 0f); } } } GameObject loadedAsset5 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Mining/Props/refinery/refinery_room_large_elev_2200x2200x2000/mining_refinery_room_large_elev_2200x2200x2000_V01.prefab"); if ((Object)(object)loadedAsset5 != (Object)null) { foreach (Transform componentsInChild8 in loadedAsset5.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild8).name == "Marker (15)") { Transform transform3 = ((Component)componentsInChild8).transform; transform3.localPosition += new Vector3(1f, 0f, 0f); } } } GameObject loadedAsset6 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Mining/Geomorphs/Storage/geo_64x64_mining_storage_hub_HA_04.prefab"); if ((Object)(object)loadedAsset6 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild9 in loadedAsset6.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)componentsInChild9).name == "LG_PrefabSpawner_prop_generic_catwalk_platform_d_2m_middle_001 (5)") { Transform transform4 = ((Component)componentsInChild9).transform; transform4.localPosition += new Vector3(0f, 0f, 0.1f); Transform transform5 = ((Component)componentsInChild9).transform; transform5.localScale += new Vector3(0.1f, 0f, 0f); } } } GameObject loadedAsset7 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Mining/Plugs/env_plug_8mheight_cap_mining_07.prefab"); if ((Object)(object)loadedAsset7 != (Object)null) { foreach (Transform componentsInChild10 in loadedAsset7.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild10).name == "submarker (1)") { componentsInChild10.position += new Vector3(0.4f, 0f, 0f); } } } GameObject loadedAsset8 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Mining/Geomorphs/Digsite/geo_64x64_mining_dig_site_HA_04.prefab"); if ((Object)(object)loadedAsset8 != (Object)null) { foreach (Transform componentsInChild11 in loadedAsset8.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild11).name == "Subgate BA 1") { Transform transform6 = ((Component)componentsInChild11).transform; transform6.localPosition += new Vector3(0f, 0.08f, 0f); } } } MiningFixed = true; } if (current7.Key.Contains("Complex_Service") && !ServiceFixed) { GameObject loadedAsset9 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Geomorphs/Maintenance/geo_64x64_service_floodways_hub_SF_01_R8D1.prefab"); if ((Object)(object)loadedAsset9 != (Object)null) { foreach (Transform componentsInChild12 in loadedAsset9.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild12).name.Equals("AIGraphSource", StringComparison.OrdinalIgnoreCase)) { componentsInChild12.position = new Vector3(5f, 2f, -16f); } } ManualLogSource? l = L; if (l != null) { l.LogInfo((object)"navmesh fix on 'geo_64x64_service_floodways_hub_SF_01_R8D1' done"); } } GameObject loadedAsset10 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Geomorphs/Maintenance/geo_64x64_service_floodways_hub_SF_01.prefab"); if ((Object)(object)loadedAsset10 != (Object)null) { foreach (Transform componentsInChild13 in loadedAsset10.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild13).name.Equals("AIGraphSource", StringComparison.OrdinalIgnoreCase)) { componentsInChild13.position = new Vector3(5f, 2f, -16f); } } ManualLogSource? l2 = L; if (l2 != null) { l2.LogInfo((object)"navmesh fix on 'geo_64x64_service_floodways_hub_SF_01' done"); } } GameObject loadedAsset11 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Geomorphs/Gardens/geo_64x64_service_gardens_I_01.prefab"); if ((Object)(object)loadedAsset11 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild14 in loadedAsset11.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild14).transform).name == "LG_PrefabSpawner_BP_Gardens_Catwalks_Platform_a_4x4m_001 (15)") { Transform transform7 = ((Component)componentsInChild14).transform; transform7.localScale += new Vector3(0.3f, 0f, 0f); } } } GameObject loadedAsset12 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Geomorphs/Gardens/geo_64x64_service_gardens_HA_02.prefab"); if ((Object)(object)loadedAsset12 != (Object)null) { foreach (LG_Plug componentsInChild15 in loadedAsset12.GetComponentsInChildren<LG_Plug>()) { if (((Object)componentsInChild15).name == "Gate 4") { Transform transform8 = ((Component)componentsInChild15).transform; transform8.localPosition += new Vector3(0f, 0f, 0.1f); } } } GameObject loadedAsset13 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Geomorphs/Gardens/geo_64x64_service_gardens_AW_01_R8D1.prefab"); if ((Object)(object)loadedAsset13 != (Object)null) { foreach (LG_Plug componentsInChild16 in loadedAsset13.GetComponentsInChildren<LG_Plug>()) { if (((Object)componentsInChild16).name == "Gate 4") { ((Component)componentsInChild16).transform.localEulerAngles = new Vector3(0f, 90f, 0f); ((Component)componentsInChild16).transform.localPosition = new Vector3(11.11f, 0f, 1.67f); } } foreach (LG_PrefabSpawner componentsInChild17 in loadedAsset13.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild17).transform).name.Contains("Pillar_a_1x1x5")) { if (((Component)componentsInChild17).transform.localPosition == new Vector3(7.89f, -0.15f, -6.49f)) { ((Component)componentsInChild17).transform.localPosition = new Vector3(7.89f, -0.95f, -6.69f); ((Component)componentsInChild17).transform.localScale = new Vector3(0.4413f, 1.311f, 1.5284f); } if (((Component)componentsInChild17).transform.localPosition == new Vector3(7.89f, 4.298f, -6.49f)) { ((Component)componentsInChild17).transform.localPosition = new Vector3(7.89f, 4.298f, -6.79f); } } if (((Object)((Component)componentsInChild17).transform).name.Contains("Wall_b_6x5") && ((Component)componentsInChild17).transform.localPosition == new Vector3(3.94f, -5.071f, -7.51f)) { Transform transform9 = ((Component)componentsInChild17).transform; transform9.localScale += new Vector3(0f, 0f, 0.2f); } } } GameObject loadedAsset14 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Plugs/env_plug_8mheight_elev25dm_with_gate_floodways_01.prefab"); if ((Object)(object)loadedAsset14 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild18 in loadedAsset14.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild18).transform.parent).name == "Behind" && ((Object)componentsInChild18).name == "LG_PrefabSpawner_ServiceCorridor_Ground_05x6_center (1)") { Transform transform10 = ((Component)componentsInChild18).transform; transform10.localPosition += new Vector3(0f, 0f, -0.1f); Transform transform11 = ((Component)componentsInChild18).transform; transform11.localScale += new Vector3(0f, 0f, 0.05f); } } } GameObject loadedAsset15 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Service/Geomorphs/Gardens/geo_64x64_service_gardens_HA_03.prefab"); if ((Object)(object)loadedAsset15 != (Object)null) { foreach (Transform componentsInChild19 in loadedAsset15.GetComponentsInChildren<Transform>()) { if (!(((Object)componentsInChild19).name == "Area C")) { continue; } foreach (LG_PrefabSpawner componentsInChild20 in ((Component)componentsInChild19).GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)componentsInChild20).name.Contains("Lab_Floor_a_400x400_01 (4)")) { componentsInChild19.localPosition += new Vector3(0f, 0f, -0.1f); } } } } enumerator2 = AssetShardManager.s_loadedAssetsLookup.GetEnumerator(); while (enumerator2.MoveNext()) { KeyValuePair<string, Object> current22 = enumerator2.Current; if (!current22.Key.ToLower().Contains("gardens")) { continue; } foreach (LG_PrefabSpawner componentsInChild21 in ((Il2CppObjectBase)current22.Value).TryCast<GameObject>().GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)componentsInChild21).name.ToLower().Contains("gardens_lab_floor_a") && Object.op_Implicit((Object)(object)componentsInChild21.m_prefab.GetComponentInChildren<Collider>())) { ((Component)componentsInChild21.m_prefab.GetComponentInChildren<Collider>()).transform.localScale = new Vector3(1.07f, 1f, 1.07f); } if (((Object)componentsInChild21).name.ToLower().Contains("gardens_lab_block_a") && Object.op_Implicit((Object)(object)componentsInChild21.m_prefab.GetComponentInChildren<Collider>())) { Object.Destroy((Object)(object)componentsInChild21.m_prefab.GetComponentInChildren<Collider>()); } if (((Object)componentsInChild21).name.Contains("BP_Gardens_Lab_Column_a") || ((Object)componentsInChild21).name.Contains("BP_Gardens_Lab_TechShell_a")) { foreach (MeshCollider componentsInChild22 in componentsInChild21.m_prefab.GetComponentsInChildren<MeshCollider>()) { if (!((Object)(object)componentsInChild22.sharedMesh == (Object)null)) { continue; } Mesh val = null; foreach (MeshFilter componentsInChild23 in ((Component)((Component)componentsInChild22).transform.parent).GetComponentsInChildren<MeshFilter>()) { if ((Object)(object)componentsInChild23.sharedMesh != (Object)null) { val = componentsInChild23.sharedMesh; } } if ((Object)(object)val != (Object)null) { componentsInChild22.sharedMesh = val; } } } if (!((Object)componentsInChild21).name.Contains("BP_Gardens_Lab_Device_a_ControlPanel_100x160") || componentsInChild21.m_prefab.GetComponentsInChildren<LODGroup>().Count <= 0) { continue; } foreach (LODGroup componentsInChild24 in componentsInChild21.m_prefab.GetComponentsInChildren<LODGroup>()) { Object.Destroy((Object)(object)componentsInChild24); } } } ServiceFixed = true; } if (!current7.Key.Contains("Complex_Tech") || TechFixed) { continue; } GameObject loadedAsset16 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Geomorphs/geo_64x64_tech_lab_HA_05.prefab"); if ((Object)(object)loadedAsset16 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild25 in loadedAsset16.GetComponentsInChildren<LG_PrefabSpawner>()) { if (!((Object)((Component)componentsInChild25).transform).name.Contains("prop_generic_duct_d_2m_tile_001")) { continue; } foreach (Transform componentsInChild26 in componentsInChild25.m_prefab.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild26).name.Equals("Capsulecollider", StringComparison.OrdinalIgnoreCase)) { ((Component)componentsInChild26).transform.localScale = new Vector3(0.5f, 1f, 0.5f); } } } ManualLogSource? l3 = L; if (l3 != null) { l3.LogInfo((object)"collider fix on 'geo_64x64_tech_lab_HA_05' done"); } } GameObject loadedAsset17 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Markers/MarkerCompositions/DataCenter_large_2600x4400x800/DataCenter_large_2600x4400x800_HA_06.prefab"); if ((Object)(object)loadedAsset17 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild27 in loadedAsset17.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild27).transform).name.Contains("6x6_Floor") && ((Component)componentsInChild27).transform.localPosition == new Vector3(20.004f, -0.886f, -6.998f)) { Transform transform12 = ((Component)componentsInChild27).transform; transform12.localEulerAngles += new Vector3(-4f, 0f, 0f); ((Component)componentsInChild27).transform.localScale = new Vector3(0.7951f, ((Component)componentsInChild27).transform.localScale.y, ((Component)componentsInChild27).transform.localScale.z); } } } GameObject loadedAsset18 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Markers/MarkerCompositions/DataCenter_medium_long_1600x3800x800/DataCenter_medium_long_1600x3800x800_HA_01.prefab"); if ((Object)(object)loadedAsset18 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild28 in loadedAsset18.GetComponentsInChildren<LG_PrefabSpawner>()) { bool flag = false; if (((Object)((Component)componentsInChild28).transform).name == "LG_PrefabSpawner_BuildingPart_DataCenter_Floor_4x4_Room_a (3)") { flag = true; } if (((Object)((Component)componentsInChild28).transform).name == "LG_PrefabSpawner_BuildingPart_DataCenter_Floor_4x4_Room_a (4)") { flag = true; } if (((Object)((Component)componentsInChild28).transform).name == "LG_PrefabSpawner_BuildingPart_DataCenter_Floor_4x4_Room_a (5)") { flag = true; } if (flag) { Transform transform13 = ((Component)componentsInChild28).transform; transform13.localScale += new Vector3(0.5f, 0f, 0f); Transform transform14 = ((Component)componentsInChild28).transform; transform14.position += new Vector3(-0.1f, -0.05f, 0f); } } } GameObject loadedAsset19 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Markers/MarkerCompositions/DataCenter_medium_I_1600x1600x800/DataCenter_medium_I_1600x1600x800_HA_03.prefab"); if ((Object)(object)loadedAsset19 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild29 in loadedAsset19.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild29).transform).name.Contains("Floor") && ((Component)componentsInChild29).transform.localPosition == new Vector3(6f, 0f, 7.92f)) { ((Component)componentsInChild29).transform.localPosition = new Vector3(6f, 0f, 9.02f); ((Component)componentsInChild29).transform.localScale = new Vector3(2f, 1f, 2f); } } } GameObject loadedAsset20 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Markers/MarkerCompositions/DataCenter_medium_I_1600x1600x800/DataCenter_medium_I_1600x1600x800_HA_11.prefab"); if ((Object)(object)loadedAsset20 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild30 in loadedAsset20.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild30).transform).name.Contains("Floor") && (((Component)componentsInChild30).transform.localPosition == new Vector3(6f, 0f, 8f) || ((Component)componentsInChild30).transform.localPosition == new Vector3(8f, 0f, 8f))) { Transform transform15 = ((Component)componentsInChild30).transform; transform15.localPosition += new Vector3(0f, 0f, 0.9f); Transform transform16 = ((Component)componentsInChild30).transform; transform16.localScale += new Vector3(0f, 0f, 0.6f); } } } GameObject loadedAsset21 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Plugs/env_plug_8mheight_elev3m_tech_02.prefab"); if ((Object)(object)loadedAsset21 != (Object)null) { foreach (Transform componentsInChild31 in loadedAsset21.GetComponentsInChildren<Transform>()) { string.Join("/", ((IEnumerable<Transform>)((Component)((Component)componentsInChild31).transform).GetComponentsInParent<Transform>()).Select((Transform c) => ((Object)c).name.ToLower()).Reverse().ToArray()); if (((Object)componentsInChild31).name == "infront") { GameObject obj = ComponentExt.AddChildGameObject((Component)(object)componentsInChild31, "bcgf_destroy_me"); obj.transform.localPosition = new Vector3(-7f, -3f, 1f); GameObject val2 = ComponentExt.AddChildGameObject((Component)(object)obj.transform, "TopFloor"); val2.transform.localPosition = new Vector3(0f, 4f, 0f); obj.AddComponent<LG_Ladder>().m_topFloor = val2.transform; } if (((Object)componentsInChild31).name == "LG_PrefabSpawner_BuildingPart_DataCenter_6x6_Roof_c (3)") { Transform transform17 = ((Component)componentsInChild31).transform; transform17.localPosition += new Vector3(0f, 0f, 0.3f); Transform transform18 = ((Component)componentsInChild31).transform; transform18.localScale += new Vector3(0f, 0.2f, 0f); } } } GameObject loadedAsset22 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Geomorphs/geo_64x64_tech_lab_HA_09.prefab"); if ((Object)(object)loadedAsset22 != (Object)null) { foreach (Transform componentsInChild32 in loadedAsset22.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild32).name == "Area A") { GameObject val3 = GameObject.CreatePrimitive((PrimitiveType)3); val3.transform.localPosition = Vector3.zero; val3.transform.parent = componentsInChild32; val3.transform.localPosition = new Vector3(-2.685f, -0.052f, 4.664f); val3.transform.localScale = new Vector3(0.7f, 0.1f, 0.7f); val3.gameObject.layer = LayerManager.LAYER_NOCOLLISION_BLOCKGRAPH; ((Object)val3).name = "fd_was_here_lol"; deletelist.Add(val3); } } } GameObject loadedAsset23 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Plugs/env_plug_8mheight_flat_tech_with_gate_01.prefab"); if ((Object)(object)loadedAsset23 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild33 in loadedAsset23.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild33).transform.parent).name == "behind" && ((Object)((Component)componentsInChild33).transform).name == "LG_PrefabSpawner_BuildingPart_DataCenter_6x6_FloorPlate_a (3)") { Transform transform19 = ((Component)componentsInChild33).transform; transform19.localScale += new Vector3(0.1f, 0f, 0f); Transform transform20 = ((Component)componentsInChild33).transform; transform20.localPosition += new Vector3(0f, 0.01f, 0f); } } } GameObject loadedAsset24 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Geomorphs/geo_64x64_tech_data_center_hub_JG_02_v2.prefab"); if ((Object)(object)loadedAsset24 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild34 in loadedAsset24.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)componentsInChild34).name == "LG_PrefabSpawner_BuildingPart_DataCenter_2x4_Block_a (72)" && ((Object)((Component)componentsInChild34).transform.parent).name == "StairCase (2)") { Transform transform21 = ((Component)componentsInChild34).transform; transform21.localScale += new Vector3(0.7f, 0f, 0f); } } } GameObject loadedAsset25 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Plugs/env_plug_8mheight_cap_lab_02.prefab"); if ((Object)(object)loadedAsset25 != (Object)null) { foreach (LG_PrefabSpawner componentsInChild35 in loadedAsset25.GetComponentsInChildren<LG_PrefabSpawner>()) { if (((Object)((Component)componentsInChild35).transform).name == "LG_PrefabSpawner_BuildingPart_Lab_Floor_edge_1x4 (4)") { Transform transform22 = ((Component)componentsInChild35).transform; transform22.localPosition += new Vector3(0f, 0f, -0.2f); } if (((Object)((Component)componentsInChild35).transform).name == "LG_PrefabSpawner_BuildingPart_Lab_Floor_edge_1x4 (5)") { Transform transform23 = ((Component)componentsInChild35).transform; transform23.localPosition += new Vector3(0f, 0f, -0.2f); } if (((Object)((Component)componentsInChild35).transform).name == "LG_PrefabSpawner_BuildingPart_Lab_Wall_4x4_solid_a (3)") { Transform transform24 = ((Component)componentsInChild35).transform; transform24.localPosition += new Vector3(0f, 0f, -0.1f); } if (((Object)((Component)componentsInChild35).transform).name == "LG_PrefabSpawner_BuildingPart_Lab_Wall_4x4_solid_a (4)") { Transform transform25 = ((Component)componentsInChild35).transform; transform25.localPosition += new Vector3(0f, 0f, -0.1f); } if (((Object)((Component)componentsInChild35).transform).name == "LG_PrefabSpawner_BuildingPart_Lab_Wall_4x4_solid_a (5)") { Transform transform26 = ((Component)componentsInChild35).transform; transform26.localPosition += new Vector3(0f, 0f, -0.1f); componentsInChild35.m_disableCollision = true; } if (((Object)((Component)componentsInChild35).transform).name == "LG_PrefabSpawner_BuildingPart_Lab_Floor_2x4_a" && ((Component)componentsInChild35).transform.localPosition == new Vector3(-4.393f, -0.569f, -3.543f)) { Transform transform27 = ((Component)componentsInChild35).transform; transform27.localPosition += new Vector3(0f, 0.05f, 0f); } } } GameObject loadedAsset26 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Geomorphs/geo_64x64_tech_lab_hub_HA_02_R8B1.prefab"); if ((Object)(object)loadedAsset26 != (Object)null) { foreach (Transform componentsInChild36 in loadedAsset26.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild36).name.Contains("Blood Pool")) { componentsInChild36.localPosition += new Vector3(0f, 0.005f, 0f); if ((Object)(object)((Component)componentsInChild36).GetComponent<MeshRenderer>() != (Object)null) { ((Renderer)((Component)componentsInChild36).GetComponent<MeshRenderer>()).castShadows = false; } } } } GameObject loadedAsset27 = AssetAPI.GetLoadedAsset<GameObject>("Assets/AssetPrefabs/Complex/Tech/Geomorphs/geo_64x64_tech_lab_hub_LF_03_R8C2.prefab"); if ((Object)(object)loadedAsset27 != (Object)null) { foreach (Transform componentsInChild37 in loadedAsset27.GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild37).name.Contains("Blood") && (Object)(object)((Component)componentsInChild37).GetComponent<MeshRenderer>() != (Object)null) { ((Renderer)((Component)componentsInChild37).GetComponent<MeshRenderer>()).castShadows = false; } } } TechFixed = true; } } [HarmonyPatch(typeof(NavMeshBuilder), "UpdateNavMeshDataAsync")] [HarmonyPrefix] private static void PreUpdateNavMeshDataAsync(NavMeshData data, ref NavMeshBuildSettings buildSettings, List<NavMeshBuildSource> sources, Bounds localBounds) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown if (!_navmeshFix.Value) { return; } ManualLogSource l = L; if (l != null) { bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(38, 0, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("tweaking navmesh generation settings.."); } l.LogInfo(val); } ((NavMeshBuildSettings)(ref buildSettings)).agentRadius = 0.25f; ((NavMeshBuildSettings)(ref buildSettings)).agentClimb = 0.5f; ((NavMeshBuildSettings)(ref buildSettings)).agentSlope = 65f; ((NavMeshBuildSettings)(ref buildSettings)).overrideTileSize = true; ((NavMeshBuildSettings)(ref buildSettings)).overrideVoxelSize = true; ((NavMeshBuildSettings)(ref buildSettings)).voxelSize = 0.06f; ((NavMeshBuildSettings)(ref buildSettings)).tileSize = 56; } [HarmonyPatch(typeof(LG_LoadComplexDataSetResourcesJob), "Build")] [HarmonyPrefix] private static void SetPlugsDoneFalse(LG_LoadComplexDataSetResourcesJob __instance) { plugsdone = false; geosdone = false; } [HarmonyPatch(typeof(LG_Pillar), "OnBuild")] [HarmonyPostfix] [HarmonyWrapSafe] private static void PillarPostfix(LG_Pillar __instance) { foreach (Collider componentsInChild in ((Component)((Component)__instance).transform).gameObject.GetComponentsInChildren<Collider>()) { ((Component)((Component)componentsInChild).transform).gameObject.layer = LayerManager.LAYER_DEFAULT_BLOCKGRAPH; } } [HarmonyPatch(typeof(LG_LateGeomorphScanJob), "Build")] [HarmonyPrefix] [HarmonyWrapSafe] private static void Prefix(LG_LateGeomorphScanJob __instance) { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: 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) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_0182: Unknown result type (might be due to invalid IL or missing references) //IL_4a79: Unknown result type (might be due to invalid IL or missing references) //IL_4a80: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_0256: Unknown result type (might be due to invalid IL or missing references) //IL_025b: Unknown result type (might be due to invalid IL or missing references) //IL_0297: Unknown result type (might be due to invalid IL or missing references) //IL_0301: Unknown result type (might be due to invalid IL or missing references) //IL_02d3: Unknown result type (might be due to invalid IL or missing references) //IL_033d: Unknown result type (might be due to invalid IL or missing references) //IL_036b: Unknown result type (might be due to invalid IL or missing references) //IL_037f: Unknown result type (might be due to invalid IL or missing references) //IL_0384: Unknown result type (might be due to invalid IL or missing references) //IL_04e9: Unknown result type (might be due to invalid IL or missing references) //IL_0504: Unknown result type (might be due to invalid IL or missing references) //IL_053a: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Unknown result type (might be due to invalid IL or missing references) //IL_057a: Unknown result type (might be due to invalid IL or missing references) //IL_05bc: Unknown result type (might be due to invalid IL or missing references) //IL_05f2: Unknown result type (might be due to invalid IL or missing references) //IL_0612: Unknown result type (might be due to invalid IL or missing references) //IL_0632: Unknown result type (might be due to invalid IL or missing references) //IL_0674: Unknown result type (might be due to invalid IL or missing references) //IL_06aa: Unknown result type (might be due to invalid IL or missing references) //IL_06ca: Unknown result type (might be due to invalid IL or missing references) //IL_06ea: Unknown result type (might be due to invalid IL or missing references) //IL_072c: Unknown result type (might be due to invalid IL or missing references) //IL_0762: Unknown result type (might be due to invalid IL or missing references) //IL_0782: Unknown result type (might be due to invalid IL or missing references) //IL_07a2: Unknown result type (might be due to invalid IL or missing references) //IL_07e4: Unknown result type (might be due to invalid IL or missing references) //IL_081a: Unknown result type (might be due to invalid IL or missing references) //IL_083a: Unknown result type (might be due to invalid IL or missing references) //IL_085a: Unknown result type (might be due to invalid IL or missing references) //IL_09c5: Unknown result type (might be due to invalid IL or missing references) //IL_09e0: Unknown result type (might be due to invalid IL or missing references) //IL_0a16: Unknown result type (might be due to invalid IL or missing references) //IL_0a36: Unknown result type (might be due to invalid IL or missing references) //IL_0a56: Unknown result type (might be due to invalid IL or missing references) //IL_0a95: Unknown result type (might be due to invalid IL or missing references) //IL_0ac6: Unknown result type (might be due to invalid IL or missing references) //IL_0ae5: Unknown result type (might be due to invalid IL or missing references) //IL_0b04: Unknown result type (might be due to invalid IL or missing references) //IL_0c14: Unknown result type (might be due to invalid IL or missing references) //IL_0c28: Unknown result type (might be due to invalid IL or missing references) //IL_0c2d: Unknown result type (might be due to invalid IL or missing references) //IL_0450: Unknown result type (might be due to invalid IL or missing references) //IL_0c5b: Unknown result type (might be due to invalid IL or missing references) //IL_0c6f: Unknown result type (might be due to invalid IL or missing references) //IL_0c74: Unknown result type (might be due to invalid IL or missing references) //IL_08d7: Unknown result type (might be due to invalid IL or missing references) //IL_08eb: Unknown result type (might be due to invalid IL or missing references) //IL_08f0: Unknown result type (might be due to invalid IL or missing references) //IL_0910: Unknown result type (might be due to invalid IL or missing references) //IL_0924: Unknown result type (might be due to invalid IL or missing references) //IL_0929: Unknown result type (might be due to invalid IL or missing references) //IL_45d4: Unknown result type (might be due to invalid IL or missing references) //IL_45d9: Unknown result type (might be due to invalid IL or missing references) //IL_45f6: Unknown result type (might be due to invalid IL or missing references) //IL_4619: Unknown result type (might be due to invalid IL or missing references) //IL_4630: Unknown result type (might be due to invalid IL or missing references) //IL_4641: Unknown result type (might be due to invalid IL or missing references) //IL_464b: Unknown result type (might be due to invalid IL or missing references) //IL_465f: Unknown result type (might be due to invalid IL or missing references) //IL_46a8: Unknown result type (might be due to invalid IL or missing references) //IL_46bf: Unknown result type (might be due to invalid IL or missing references) //IL_46d0: Unknown result type (might be due to invalid IL or missing references) //IL_46da: Unknown result type (might be due to invalid IL or missing references) //IL_46ee: Unknown result type (might be due to invalid IL or missing references) //IL_4737: Unknown result type (might be due to invalid IL or missing references) //IL_4748: Unknown result type (might be due to invalid IL or missing references) //IL_4759: Unknown result type (might be due to invalid IL or missing references) //IL_4769: Unknown result type (might be due to invalid IL or missing references) //IL_477d: Unknown result type (might be due to invalid IL or missing references) //IL_47c6: Unknown result type (might be due to invalid IL or missing references) //IL_47d7: Unknown result type (might be due to invalid IL or missing references) //IL_47e8: Unknown result type (might be due to invalid IL or missing references) //IL_47f8: Unknown result type (might be due to invalid IL or missing references) //IL_480c: Unknown result type (might be due to invalid IL or missing references) //IL_486d: Unknown result type (might be due to invalid IL or missing references) //IL_499f: Unknown result type (might be due to invalid IL or missing references) //IL_1295: Unknown result type (might be due to invalid IL or missing references) //IL_12cd: Unknown result type (might be due to invalid IL or missing references) //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_1212: Unknown result type (might be due to invalid IL or missing references) //IL_1226: Unknown result type (might be due to invalid IL or missing references) //IL_122b: Unknown result type (might be due to invalid IL or missing references) //IL_1255: Unknown result type (might be due to invalid IL or missing references) //IL_125a: Unknown result type (might be due to invalid IL or missing references) //IL_1355: Unknown result type (might be due to invalid IL or missing references) //IL_137a: Unknown result type (might be due to invalid IL or missing references) //IL_138e: Unknown result type (might be due to invalid IL or missing references) //IL_1393: Unknown result type (might be due to invalid IL or missing references) //IL_1431: Unknown result type (might be due to invalid IL or missing references) //IL_146e: Unknown result type (might be due to invalid IL or missing references) //IL_1482: Unknown result type (might be due to invalid IL or missing references) //IL_14bf: Unknown result type (might be due to invalid IL or missing references) //IL_14df: Unknown result type (might be due to invalid IL or missing references) //IL_15bf: Unknown result type (might be due to invalid IL or missing references) //IL_15e1: Unknown result type (might be due to invalid IL or missing references) //IL_155c: Unknown result type (might be due to invalid IL or missing references) //IL_1574: Unknown result type (might be due to invalid IL or missing references) //IL_164f: Unknown result type (might be due to invalid IL or missing references) //IL_167f: Unknown result type (might be due to invalid IL or missing references) //IL_1667: Unknown result type (might be due to invalid IL or missing references) //IL_182b: Unknown result type (might be due to invalid IL or missing references) //IL_183f: Unknown result type (might be due to invalid IL or missing references) //IL_1882: Unknown result type (might be due to invalid IL or missing references) //IL_189f: Unknown result type (might be due to invalid IL or missing references) //IL_1a05: Unknown result type (might be due to invalid IL or missing references) //IL_1adf: Unknown result type (might be due to invalid IL or missing references) //IL_1a22: Unknown result type (might be due to invalid IL or missing references) //IL_1d02: Unknown result type (might be due to invalid IL or missing references) //IL_1b25: Unknown result type (might be due to invalid IL or missing references) //IL_1b40: Unknown result type (might be due to invalid IL or missing references) //IL_1d97: Unknown result type (might be due to invalid IL or missing references) //IL_1dab: Unknown result type (might be due to invalid IL or missing references) //IL_1d51: Unknown result type (might be due to invalid IL or missing references) //IL_1d65: Unknown result type (might be due to invalid IL or missing references) //IL_1b77: Unknown result type (might be due to invalid IL or missing references) //IL_1b8e: Unknown result type (might be due to invalid IL or missing references) //IL_1ba1: Unknown result type (might be due to invalid IL or missing references) //IL_1bab: Unknown result type (might be due to invalid IL or missing references) //IL_1bca: Unknown result type (might be due to invalid IL or missing references) //IL_1de8: Unknown result type (might be due to invalid IL or missing references) //IL_1dfc: Unknown result type (might be due to invalid IL or missing references) //IL_1c6f: Unknown result type (might be due to invalid IL or missing references) //IL_1e8b: Unknown result type (might be due to invalid IL or missing references) //IL_1e15: Unknown result type (might be due to invalid IL or missing references) //IL_1e29: Unknown result type (might be due to invalid IL or missing references) //IL_1e2e: Unknown result type (might be due to invalid IL or missing references) //IL_1e45: Unknown result type (might be due to invalid IL or missing references) //IL_1e59: Unknown result type (might be due to invalid IL or missing references) //IL_1e5e: Unknown result type (might be due to invalid IL or missing references) //IL_1c8c: Unknown result type (might be due to invalid IL or missing references) //IL_1ca9: Unknown result type (might be due to invalid IL or missing references) //IL_1cc6: Unknown result type (might be due to invalid IL or missing references) //IL_1f0b: Unknown result type (might be due to invalid IL or missing references) //IL_21f6: Unknown result type (might be due to invalid IL or missing references) //IL_220a: Unknown result type (might be due to invalid IL or missing references) //IL_1f53: Unknown result type (might be due to invalid IL or missing references) //IL_1f95: Unknown result type (might be due to invalid IL or missing references) //IL_1fa9: Unknown result type (might be due to invalid IL or missing references) //IL_20d5: Unknown result type (might be due to invalid IL or missing references) //IL_20f2: Unknown result type (might be due to invalid IL or missing references) //IL_1fce: Unknown result type (might be due to invalid IL or missing references) //IL_201a: Unknown result type (might be due to invalid IL or missing references) //IL_202c: Unknown result type (might be due to invalid IL or missing references) //IL_2040: Unknown result type (might be due to invalid IL or missing references) //IL_2045: Unknown result type (might be due to invalid IL or missing references) //IL_2065: Unknown result type (might be due to invalid IL or missing references) //IL_2085: Unknown result type (might be due to invalid IL or missing references) //IL_211a: Unknown result type (might be due to invalid IL or missing references) //IL_213f: Unknown result type (might be due to invalid IL or missing references) //IL_22aa: Unknown result type (might be due to invalid IL or missing references) //IL_2164: Unknown result type (might be due to invalid IL or missing references) //IL_2189: Unknown result type (might be due to invalid IL or missing references) //IL_2306: Unknown result type (might be due to invalid IL or missing references) //IL_231a: Unknown result type (might be due to invalid IL or missing references) //IL_2330: Unknown result type (might be due to invalid IL or missing references) //IL_2344: Unknown result type (might be due to invalid IL or missing references) //IL_2732: Unknown result type (might be due to invalid IL or missing references) //IL_2746: Unknown result type (might be due to invalid IL or missing references) //IL_2764: Unknown result type (might be due to invalid IL or missing references) //IL_2778: Unknown result type (might be due to invalid IL or missing references) //IL_277d: Unknown result type (might be due to invalid IL or missing references) //IL_285a: Unknown result type (might be due to invalid IL or missing references) //IL_286e: Unknown result type (might be due to invalid IL or missing references) //IL_2873: Unknown result type (might be due to invalid IL or missing references) //IL_28bb: Unknown result type (might be due to invalid IL or missing references) //IL_292c: Unknown result type (might be due to invalid IL or missing references) //IL_2940: Unknown result type (might be due to invalid IL or missing references) //IL_28d8: Unknown result type (might be due to invalid IL or missing references) //IL_2cb6: Unknown result type (might be due to invalid IL or missing references) //IL_2cca: Unknown result type (might be due to invalid IL or missing references) //IL_299d: Unknown result type (might be due to invalid IL or missing references) //IL_29da: Unknown result type (might be due to invalid IL or missing references) //IL_29fa: Unknown result type (might be due to invalid IL or missing references) //IL_2a1a: Unknown result type (might be due to invalid IL or missing references) //IL_2a5c: Unknown result type (might be due to invalid IL or missing references) //IL_2a99: Unknown result type (might be due to invalid IL or missing references) //IL_2ab9: Unknown result type (might be due to invalid IL or missing references) //IL_2ad9: Unknown result type (might be due to invalid IL or missing references) //IL_2b1b: Unknown result type (might be due to invalid IL or missing references) //IL_2b4e: Unknown result type (might be due to invalid IL or missing references) //IL_2b6e: Unknown result type (might be due to invalid IL or missing references) //IL_2b8e: Unknown result type (might be due to invalid IL or missing references) //IL_2bf4: Unknown result type (might be due to invalid IL or missing references) //IL_2c14: Unknown result type (might be due to invalid IL or missing references) //IL_2c23: Unknown result type (might be due to invalid IL or missing references) //IL_2c2a: Expected O, but got Unknown //IL_2c53: Unknown result type (might be due to invalid IL or missing references) //IL_2c73: Unknown result type (might be due to invalid IL or missing references) //IL_2962: Unknown result type (might be due to invalid IL or missing references) //IL_2d9f: Unknown result type (might be due to invalid IL or missing references) //IL_2db3: Unknown result type (might be due to invalid IL or missing references) //IL_2db8: Unknown result type (might be due to invalid IL or missing references) //IL_2dea: Unknown result type (might be due to invalid IL or missing references) //IL_2dfe: Unknown result type (might be due to invalid IL or missing references) //IL_2e25: Unknown result type (might be due to invalid IL or missing references) //IL_2f32: Unknown result type (might be due to invalid IL or missing references) //IL_2f46: Unknown result type (might be due to invalid IL or missing references) //IL_2fb2: Unknown result type (might be due to invalid IL or missing references) //IL_2fc6: Unknown result type (might be due to invalid IL or missing references) //IL_3087: Unknown result type (might be due to invalid IL or missing references) //IL_309b: Unknown result type (might be due to invalid IL or missing references) //IL_3018: Unknown result type (might be due to invalid IL or missing references) //IL_302c: Unknown result type (might be due to invalid IL or missing references) //IL_30fb: Unknown result type (might be due to invalid IL or missing references) //IL_310f: Unknown result type (might be due to invalid IL or missing references) //IL_30b9: Unknown result type (might be due to invalid IL or missing references) //IL_30cd: Unknown result type (might be due to invalid IL or missing references) //IL_30d2: Unknown result type (might be due to invalid IL or missing references) //IL_3045: Unknown result type (might be due to invalid IL or missing references) //IL_3059: Unknown result type (might be due to invalid IL or missing references) //IL_305e: Unknown result type (might be due to invalid IL or missing references) //IL_316f: Unknown result type (might be due to invalid IL or missing references) //IL_3183: Unknown result type (might be due to invalid IL or missing references) //IL_312d: Unknown result type (might be due to invalid IL or missing references) //IL_3141: Unknown result type (might be due to invalid IL or missing references) //IL_3146: Unknown result type (might be due to invalid IL or missing references) //IL_32d6: Unknown result type (might be due to invalid IL or missing references) //IL_32ea: Unknown result type (might be due to invalid IL or missing references) //IL_3294: Unknown result type (might be due to invalid IL or missing references) //IL_32a8: Unknown result type (might be due to invalid IL or missing references) //IL_3197: Unknown result type (might be due to invalid IL or missing references) //IL_31ab: Unknown result type (might be due to invalid IL or missing references) //IL_31b0: Unknown result type (might be due to invalid IL or missing references) //IL_3393: Unknown result type (might be due to invalid IL or missing references) //IL_33a7: Unknown result type (might be due to invalid IL or missing references) //IL_33c5: Unknown result type (might be due to invalid IL or missing references) //IL_33fd: Unknown result type (might be due to invalid IL or missing references) //IL_341d: Unknown result type (might be due to invalid IL or missing references) //IL_34be: Unknown result type (might be due to invalid IL or missing references) //IL_34d2: Unknown result type (might be due to invalid IL or missing references) //IL_34f0: Unknown result type (might be due to invalid IL or missing references) //IL_3504: Unknown result type (might be due to invalid IL or missing references) //IL_3509: Unknown result type (might be due to invalid IL or missing references) //IL_3582: Unknown result type (might be due to invalid IL or missing references) //IL_35b9: Unknown result type (might be due to invalid IL or missing references) //IL_35e9: Unknown result type (might be due to invalid IL or missing references) //IL_360d: Unknown result type (might be due to invalid IL or missing references) //IL_3625: Unknown result type (might be due to invalid IL or missing references) //IL_362a: Unknown result type (might be due to invalid IL or missing references) //IL_362e: Unknown result type (might be due to invalid IL or missing references) //IL_3640: Unknown result type (might be due to invalid IL or missing references) //IL_3656: Unknown result type (might be due to invalid IL or missing references) //IL_365b: Unknown result type (might be due to invalid IL or missing references) //IL_365f: Unknown result type (might be due to invalid IL or missing references) //IL_366f: Unknown result type (might be due to invalid IL or missing references) //IL_3674: Unknown result type (might be due to invalid IL or missing references) //IL_3685: Unknown result type (might be due to invalid IL or missing references) //IL_36a2: Unknown result type (might be due to invalid IL or missing references) //IL_36a7: Unknown result type (might be due to invalid IL or missing references) //IL_36ab: Unknown result type (might be due to invalid IL or missing references) //IL_36ba: Unknown result type (might be due to invalid IL or missing references) //IL_35cb: Unknown result type (might be due to invalid IL or missing references) //IL_35d0: Unknown result type (might be due to invalid IL or missing references) //IL_35d4: Unknown result type (might be due to invalid IL or missing references) //IL_37f8: Unknown result type (might be due to invalid IL or missing references) //IL_380c: Unknown result type (might be due to invalid IL or missing references) //IL_38a2: Unknown result type (might be due to invalid IL or missing references) //IL_38b6: Unknown result type (might be due to invalid IL or missing references) //IL_38bb: Unknown result type (might be due to invalid IL or missing references) //IL_3820: Unknown result type (might be due to invalid IL or missing references) //IL_3834: Unknown result type (might be due to invalid IL or missing references) //IL_3839: Unknown result type (might be due to invalid IL or missing references) //IL_39ba: Unknown result type (might be due to invalid IL or missing references) //IL_3933: Unknown result type (might be due to invalid IL or missing references) //IL_3947: Unknown result type (might be due to invalid IL or missing references) //IL_3965: Unknown result type (might be due to invalid IL or missing references) //IL_3979: Unknown result type (might be due to invalid IL or missing references) //IL_397e: Unknown result type (might be due to invalid IL or missing references) //IL_39f8: Unknown result type (might be due to invalid IL or missing references) //IL_3a55: Unknown result type (might be due to invalid IL or missing references) //IL_3b07: Unknown result type (might be due to invalid IL or missing references) //IL_3b1b: Unknown result type (might be due to invalid IL or missing references) //IL_3a77: Unknown result type (might be due to invalid IL or missing references) //IL_3abc: Unknown result type (might be due to invalid IL or missing references) //IL_3ad0: Unknown result type (might be due to invalid IL or missing references) //IL_3ad5: Unknown result type (might be due to invalid IL or missing references) //IL_3bc1: Unknown result type (might be due to invalid IL or missing references) //IL_3bd5: Unknown result type (might be due to invalid IL or missing references) //IL_3d55: Unknown result type (might be due to invalid IL or missing references) //IL_3d69: Unknown result type (might be due to invalid IL or missing references) //IL_3d6e: Unknown result type (might be due to invalid IL or missing references) //IL_3d85: Unknown result type (might be due to invalid IL or missing references) //IL_3d99: Unknown result type (might be due to invalid IL or missing references) //IL_3d9e: Unknown result type (might be due to invalid IL or missing references) //IL_3cc7: Unknown result type (might be due to invalid IL or missing references) //IL_3cdb: Unknown result type (might be due to invalid IL or missing references) //IL_3d09: Unknown result type (might be due to invalid IL or missing references) //IL_3d1d: Unknown result type (might be due to invalid IL or missing references) //IL_3e00: Unknown result type (might be due to invalid IL or missing references) //IL_3e14: Unknown result type (might be due to invalid IL or missing references) //IL_3e78: Unknown result type (might be due to invalid IL or missing references) //IL_3e8c: Unknown result type (might be due to invalid IL or missing references) //IL_3e28: Unknown result type (might be due to invalid IL or missing references) //IL_3e3c: Unknown result type (might be due to invalid IL or missing references) //IL_3e41: Unknown result type (might be due to invalid IL or missing references) //IL_3ef8: Unknown result type (might be due to invalid IL or missing references) //IL_3ffe: Unknown result type (might be due to invalid IL or missing references) //IL_3f2c: Unknown result type (might be due to invalid IL or missing references) //IL_3f69: Unknown result type (might be due to invalid IL or missing references) //IL_3f89: Unknown result type (might be due to invalid IL or missing references) //IL_40cb: Unknown result type (might be due to invalid IL or missing references) //IL_407b: Unknown result type (might be due to invalid IL or missing references) //IL_408f: Unknown result type (might be due to invalid IL or missing references) //IL_4094: Unknown result type (might be due to invalid IL or missing references) //IL_4107: Unknown result type (might be due to invalid IL or missing references) //IL_411b: Unknown result type (might be due to invalid IL or missing references) //IL_4134: Unknown result type (might be due to invalid IL or missing references) //IL_4148: Unknown result type (might be due to invalid IL or missing references) //IL_414d: Unknown result type (might be due to invalid IL or missing references) //IL_4219: Unknown result type (might be due to invalid IL or missing references) //IL_422d: Unknown result type (might be due to invalid IL or missing references) //IL_4232: Unknown result type (might be due to invalid IL or missing references) //IL_4264: Unknown result type (might be due to invalid IL or missing references) //IL_4278: Unknown result type (might be due to invalid IL or missing references) //IL_4291: Unknown result type (might be due to invalid IL or missing references) //IL_42a5: Unknown result type (might be due to invalid IL or missing references) //IL_42aa: Unknown result type (might be due to invalid IL or missing references) if (!__instance.m_specialNodesDone) { foreach (AIG_SpecialTraversalNode componentsInChild in ((Component)Builder.CurrentFloor).GetComponentsInChildren<AIG_SpecialTraversalNode>()) { eDimensionIndex dimensionIndex = ((Component)componentsInChild).GetComponentInParent<LG_Geomorph>().m_zone.m_dimensionIndex; if (dimensionIndex == __instance.m_dimensionIndex) { LG_Factory.InjectJob((LG_FactoryJob)new LG_SpecialNodeFindSourceJob(componentsInChild, __instance.m_nodeVolume, dimensionIndex), (BatchName)31); LG_Factory.InjectJob((LG_FactoryJob)new LG_SpecialNodeLinkIntoVolumeJob(componentsInChild, __instance.m_nodeVolume), (BatchName)32); } __instance.m_specialNodesDone = true; } } if (geosdone) { return; } geosdone = true; foreach (Decal componentsInChild2 in ((Component)Builder.CurrentFloor).GetComponentsInChildren<Decal>()) { Vector3 localEulerAngles = Vector3.zero; Vector3 localEulerAngles2 = ((Component)componentsInChild2).transform.localEulerAngles; if (((Object)((Component)componentsInChild2).transform.parent).name.Contains("corpse_edge")) { ((Vector3)(ref localEulerAngles))..ctor(315f, 0f, 0f); } if (((Object)((Component)componentsInChild2).transform.parent).name.Contains("corpse_floor_85x195x35")) { ((Vector3)(ref localEulerAngles))..ctor(270f, 0f, 0f); } if (((Object)((Component)componentsInChild2).transform).name.Contains("infested_blood_decal") && localEulerAngles2.z == 0f) { ((Vector3)(ref localEulerAngles))..ctor(270f, 0f, 0f); } if (((Object)((Component)componentsInChild2).transform).name.Contains("infested_blood_decal") && localEulerAngles2.z != 0f) { localEulerAngles = localEulerAngles2; } ((Component)componentsInChild2).transform.localEulerAngles = localEulerAngles; } if (_navmeshFix.Value) { foreach (LG_AreaAIGraphSource componentsInChild3 in ((Component)Builder.CurrentFloor).GetComponentsInChildren<LG_AreaAIGraphSource>()) { string text = string.Join("/", ((IEnumerable<Transform>)((Component)((Component)componentsInChild3).transform).GetComponentsInParent<Transform>()).Select((Transform t) => ((Object)t).name.ToLower()).Reverse().ToArray()); if (text.Contains("geo_64x64_tech_datacenter_i_rlc_01") && text.Contains("area a")) { Transform transform = ((Component)componentsInChild3).transform; transform.localPosition += new Vector3(0f, 0f, -22f); } if (text.Contains("vs_03_controlroom") && text.Contains("area a")) { ((Component)componentsInChild3).transform.localPosition = new Vector3(-14.5f, 2f, 0f); } if (text.Contains("mining_dig_site_as_04") && text.Contains("area_i")) { ((Component)componentsInChild3).transform.localPosition = new Vector3(-4.52f, 1.93f, -3.18f); } if (text.Contains("geo_64x64_service_floodways_hub_sf_01_r8d1")) { ((Component)componentsInChild3).transform.localPosition = new Vector3(5f, 2f, -16f); } if (text.Contains("geo_64x64_service_gardens_jg_01") && text.Contains("area b")) { ((Component)componentsInChild3).transform.localPosition = new Vector3(8.5f, 2f, -2f); } if (text.Contains("geo_64x64_mining_refinery_ha_02") && text.Contains("area b")) { Transform transform2 = ((Component)componentsInChild3).transform; transform2.localPosition += new Vector3(0f, 0f, 1.5f); } } foreach (LG_Geomorph componentsInChild4 in ((Component)Builder.CurrentFloor).GetComponentsInChildren<LG_Geomorph>()) { if (((Object)((Component)componentsInChild4).transform).name.Contains("geo_64x64_service_gardens_SF_01")) { foreach (LG_Area componentsInChild5 in ((Component)componentsInChild4).GetComponentsInChildren<LG_Area>()) { if (!((Object)((Component)componentsInChild5).transform).name.Contains("Area C")) { continue; } foreach (Transform componentsInChild6 in ((Component)componentsInChild5).GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild6).name == "marker (15)") { componentsInChild6.localPosition = new Vector3(-8.7412f, -0.045f, 11.342f); } } } } if (((Object)((Component)componentsInChild4).transform).name.Contains("Dimension_Desert_Mining_Shaft")) { foreach (LG_Area componentsInChild7 in ((Component)componentsInChild4).GetComponentsInChildren<LG_Area>()) { if (((Object)((Component)componentsInChild7).transform).name.Contains("Area A")) { float y = ((Component)componentsInChild7).transform.parent.localPosition.y; GameObject val = GameObject.CreatePrimitive((PrimitiveType)3); val.transform.localPosition = Vector3.zero; val.transform.parent = ((Component)componentsInChild7).transform; val.transform.position = new Vector3(0f, y - 10.5f, 27.5f); val.transform.localScale = new Vector3(54f, 4f, 1f); val.transform.localEulerAngles = new Vector3(0f, 90f, 0f); val.gameObject.layer = LayerManager.LAYER_NOCOLLISION_BLOCKGRAPH; ((Object)val).name = "fd_was_here_lol"; deletelist.Add(val); GameObject val2 = GameObject.CreatePrimitive((PrimitiveType)3); val2.transform.localPosition = Vector3.zero; val2.transform.parent = ((Component)componentsInChild7).transform; val2.transform.position = new Vector3(-21f, y + 14f, -32f); val2.transform.localScale = new Vector3(20f, 3f, 1f); val2.transform.localEulerAngles = new Vector3(0f, 0f, 0f); val2.gameObject.layer = LayerManager.LAYER_NOCOLLISION_BLOCKGRAPH; ((Object)val2).name = "fd_was_here_lol"; deletelist.Add(val2); GameObject val3 = GameObject.CreatePrimitive((PrimitiveType)3); val3.transform.localPosition = Vector3.zero; val3.transform.parent = ((Component)componentsInChild7).transform; val3.transform.position = new Vector3(-18f, y + 14f, -41.4f); val3.transform.localScale = new Vector3(12f, 3f, 1f); val3.transform.localEulerAngles = new Vector3(0f, 310f, 0f); val3.gameObject.layer = LayerManager.LAYER_NOCOLLISION_BLOCKGRAPH; ((Object)val3).name = "fd_was_here_lol"; deletelist.Add(val3); GameObject val4 = GameObject.CreatePrimitive((PrimitiveType)3); val4.transform.localPosition = Vector3.zero; val4.transform.parent = ((Component)componentsInChild7).transform; val4.transform.position = new Vector3(-15f, y - 10.5f, 24f); val4.transform.localScale = new Vector3(10f, 4f, 1f); val4.transform.localEulerAngles = new Vector3(0f, 45f, 0f); val4.gameObject.layer = LayerManager.LAYER_NOCOLLISION_BLOCKGRAPH; ((Object)val4).name = "fd_was_here_lol"; deletelist.Add(val4); GameObject val5 = GameObject.CreatePrimitive((PrimitiveType)2); val5.transform.localPosition = Vector3.zero; val5.transform.parent = ((Component)componentsInChild7).transform; val5.transform.position = new Vector3(-6.4f, y + 14f, -27.9f); val5.transform.localScale = new Vector3(1f, 1f, 1f); val5.transform.localEulerAngles = new Vector3(0f, 0f, 0f); val5.gameObject.layer = LayerManager.LAYER_NOCOLLISION_BLOCKGRAPH; ((Object)val5).name = "fd_was_here_lol"; deletelist.Add(val5); } if (!((Object)((Component)componentsInChild7).transform).name.Contains("Area B")) { continue; } foreach (Transform componentsInChild8 in ((Component)componentsInChild7).GetComponentsInChildren<Transform>()) { if (((Object)componentsInChild8).name.Contains("Ladder (6)")) { componentsInChild8.localPosition += new Vector3(0f, 0f, -0.6f); } if (((Object)componentsInChild8).name.Contains("Desert_Cliff_Round_Flat_01(Clone)")) { componentsInChild8.localPosition += new Vector3(0f, 0f, -0.4f); } } } } if (!((Object)((Component)componentsInChild4).transform).name.Contains("Dimension_Desert_Dune_camp_03")) { continue; } foreach (LG_Area componentsInChild9 in ((Component)componentsInChild4).GetComponentsInChildren<LG_Area>()) { if (((Object)((Component)componentsInChild9).transform).name.Contains("AreaA")) { float y2 = ((Component)componentsInChild9).transform.parent.position.y; GameObject val6 = GameObject.CreatePrimitive((PrimitiveType)2); val6.transform.localPosition = Vector3.zero; val6.transform.parent = ((Component)componentsInChild9).transform; val6.transform.position = new Vector3(52.9f, y2 + 5f, 216f); val6.transform.localScale = new Vector3(4f, 1f, 4f); val6.transform.localEulerAngles = new Vector3(0f, 0f, 0f); val6.gameObje