using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Xml; using System.Xml.Serialization; using Atlas; using BepInEx; using BepInEx.Logging; using FistVR; using Gamemodes; using HTC.UnityPlugin.StereoRendering; using HarmonyLib; using JerryComponent; using JerryLegsIK; using LuxWater; using ModularWorkshop; using NoiseTools; using OtherLoader; using Plawius; using Popcron; using ProBuilder2.Common; using ProBuilder2.MeshOperations; using RootMotion; using RootMotion.FinalIK; using RootMotion1.FinalIK; using SimplestarGame.Mesh; using SimplestarGame.Splash; using SimplestarGame.Wave; using Sodalite; using Sodalite.Api; using Sodalite.Utilities; using Technie.PhysicsCreator.QHull; using Tenkoku.Core; using Tenkoku.Effects; using UnityEditor; using UnityEngine; using UnityEngine.AI; using UnityEngine.Audio; using UnityEngine.Events; using UnityEngine.Profiling; using UnityEngine.Rendering; using UnityEngine.Rendering.PostProcessing; using UnityEngine.SceneManagement; using UnityEngine.Serialization; using UnityEngine.UI; using UnityEngine.VR; using Valve.Newtonsoft.Json; using Valve.VR; [assembly: Debuggable(DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] [module: UnverifiableCode] public class AQUAS_BubbleBehaviour : MonoBehaviour { public float averageUpdrift; public float waterLevel; public GameObject mainCamera; public GameObject smallBubble; private int smallBubbleCount; private int maxSmallBubbleCount; private AQUAS_SmallBubbleBehaviour smallBubbleBehaviour; private void Start() { maxSmallBubbleCount = Random.Range(20, 30); smallBubbleCount = 0; smallBubbleBehaviour = smallBubble.GetComponent(); } private void Update() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) ((Component)this).transform.Translate(Vector3.up * Time.deltaTime * averageUpdrift, (Space)0); SmallBubbleSpawner(); if (mainCamera.transform.position.y > waterLevel || ((Component)this).transform.position.y > waterLevel) { Object.Destroy((Object)(object)((Component)this).gameObject); } } private void SmallBubbleSpawner() { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) if (smallBubbleCount <= maxSmallBubbleCount) { smallBubble.transform.localScale = ((Component)this).transform.localScale * Random.Range(0.05f, 0.2f); smallBubbleBehaviour.averageUpdrift = averageUpdrift * 0.5f; smallBubbleBehaviour.waterLevel = waterLevel; smallBubbleBehaviour.mainCamera = mainCamera; Object.Instantiate(smallBubble, new Vector3(((Component)this).transform.position.x + Random.Range(-0.1f, 0.1f), ((Component)this).transform.position.y - Random.Range(0.01f, 1f), ((Component)this).transform.position.z + Random.Range(-0.1f, 0.1f)), Quaternion.identity); smallBubbleCount++; } } } public class AQUAS_BubbleMorph : MonoBehaviour { private float t = 0f; private float t2 = 0f; [Space(5f)] [Header("Duration of a full morphing cycle")] public float tTarget; private SkinnedMeshRenderer skinnedMeshRenderer; private void Start() { skinnedMeshRenderer = ((Component)this).GetComponent(); } private void Update() { t += Time.deltaTime; t2 += Time.deltaTime; if (t < tTarget / 2f) { skinnedMeshRenderer.SetBlendShapeWeight(0, Mathf.Lerp(0f, 50f, t / (tTarget / 2f))); skinnedMeshRenderer.SetBlendShapeWeight(1, Mathf.Lerp(50f, 0f, t / (tTarget / 2f))); } else if (t >= tTarget / 2f && t < tTarget) { skinnedMeshRenderer.SetBlendShapeWeight(0, Mathf.Lerp(50f, 100f, t / tTarget)); skinnedMeshRenderer.SetBlendShapeWeight(1, Mathf.Lerp(0f, 50f, t / tTarget)); } else if (t >= tTarget && t < tTarget * 1.5f) { skinnedMeshRenderer.SetBlendShapeWeight(0, Mathf.Lerp(100f, 50f, t / (tTarget * 1.5f))); skinnedMeshRenderer.SetBlendShapeWeight(1, Mathf.Lerp(50f, 100f, t / (tTarget * 1.5f))); } else if (t >= tTarget * 1.5f && t < tTarget * 2f) { skinnedMeshRenderer.SetBlendShapeWeight(0, Mathf.Lerp(50f, 0f, t / (tTarget * 2f))); skinnedMeshRenderer.SetBlendShapeWeight(1, Mathf.Lerp(100f, 50f, t / (tTarget * 2f))); } else { t = 0f; } } } [AddComponentMenu("AQUAS/Buoyancy")] [RequireComponent(typeof(Rigidbody))] public class AQUAS_Buoyancy : MonoBehaviour { public enum debugModes { none, showAffectedFaces, showForceRepresentation, showReferenceVolume } public float waterLevel; public float waterDensity; [Space(5f)] public bool useBalanceFactor; public Vector3 balanceFactor; [Space(20f)] [Range(0f, 1f)] public float dynamicSurface = 0.3f; [Range(1f, 10f)] public float bounceFrequency = 3f; [Space(5f)] [Header("Debugging can be ver performance heavy!")] public debugModes debug; private Vector3[] vertices; private int[] triangles; private Mesh mesh; private Rigidbody rb; private float effWaterDensity; private float regWaterDensity; private float maxWaterDensity; private void Start() { mesh = ((Component)this).GetComponent().mesh; vertices = mesh.vertices; triangles = mesh.triangles; rb = ((Component)this).GetComponent(); regWaterDensity = waterDensity; maxWaterDensity = regWaterDensity + regWaterDensity * 0.5f * dynamicSurface; } private void FixedUpdate() { if (balanceFactor.x < 0.001f) { balanceFactor.x = 0.001f; } if (balanceFactor.y < 0.001f) { balanceFactor.y = 0.001f; } if (balanceFactor.z < 0.001f) { balanceFactor.z = 0.001f; } AddForce(); } private void Update() { regWaterDensity = waterDensity; maxWaterDensity = regWaterDensity + regWaterDensity * 0.5f * dynamicSurface; effWaterDensity = (maxWaterDensity - regWaterDensity) / 2f + regWaterDensity + Mathf.Sin(Time.time * bounceFrequency) * (maxWaterDensity - regWaterDensity) / 2f; } private void AddForce() { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: 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_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_0226: Unknown result type (might be due to invalid IL or missing references) //IL_0227: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_022e: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Unknown result type (might be due to invalid IL or missing references) //IL_0244: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_0246: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_0250: 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_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0276: Unknown result type (might be due to invalid IL or missing references) //IL_027b: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_016b: 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_016d: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_01af: 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_01b1: 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_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Unknown result type (might be due to invalid IL or missing references) //IL_0295: Unknown result type (might be due to invalid IL or missing references) //IL_0296: 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_029d: Unknown result type (might be due to invalid IL or missing references) //IL_029e: Unknown result type (might be due to invalid IL or missing references) //IL_029f: Unknown result type (might be due to invalid IL or missing references) //IL_02a0: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Unknown result type (might be due to invalid IL or missing references) //IL_02a7: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: 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_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02ce: 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_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_02e5: Unknown result type (might be due to invalid IL or missing references) //IL_0303: Unknown result type (might be due to invalid IL or missing references) //IL_0304: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Unknown result type (might be due to invalid IL or missing references) //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Unknown result type (might be due to invalid IL or missing references) //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_0316: Unknown result type (might be due to invalid IL or missing references) //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_032a: Unknown result type (might be due to invalid IL or missing references) //IL_032b: 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_0339: 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_0345: Unknown result type (might be due to invalid IL or missing references) //IL_034a: Unknown result type (might be due to invalid IL or missing references) //IL_0354: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_035c: 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_036c: Unknown result type (might be due to invalid IL or missing references) //IL_0371: Unknown result type (might be due to invalid IL or missing references) //IL_037a: 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_038f: Unknown result type (might be due to invalid IL or missing references) //IL_0390: Unknown result type (might be due to invalid IL or missing references) //IL_0395: Unknown result type (might be due to invalid IL or missing references) //IL_039f: Unknown result type (might be due to invalid IL or missing references) //IL_03a0: 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_03a2: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Unknown result type (might be due to invalid IL or missing references) //IL_03b6: Unknown result type (might be due to invalid IL or missing references) //IL_03b7: Unknown result type (might be due to invalid IL or missing references) //IL_03bc: Unknown result type (might be due to invalid IL or missing references) //IL_03c5: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_03d1: Unknown result type (might be due to invalid IL or missing references) //IL_03d6: Unknown result type (might be due to invalid IL or missing references) //IL_03e0: Unknown result type (might be due to invalid IL or missing references) //IL_03e1: Unknown result type (might be due to invalid IL or missing references) //IL_03e2: Unknown result type (might be due to invalid IL or missing references) //IL_03e3: Unknown result type (might be due to invalid IL or missing references) //IL_03e8: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_03f8: Unknown result type (might be due to invalid IL or missing references) //IL_03fd: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_040b: Unknown result type (might be due to invalid IL or missing references) //IL_041b: Unknown result type (might be due to invalid IL or missing references) //IL_041c: Unknown result type (might be due to invalid IL or missing references) //IL_0421: Unknown result type (might be due to invalid IL or missing references) //IL_042b: Unknown result type (might be due to invalid IL or missing references) //IL_042c: Unknown result type (might be due to invalid IL or missing references) //IL_042d: Unknown result type (might be due to invalid IL or missing references) //IL_042e: Unknown result type (might be due to invalid IL or missing references) //IL_0433: Unknown result type (might be due to invalid IL or missing references) //IL_0442: 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_0451: Unknown result type (might be due to invalid IL or missing references) //IL_045c: Unknown result type (might be due to invalid IL or missing references) //IL_045d: Unknown result type (might be due to invalid IL or missing references) //IL_0462: Unknown result type (might be due to invalid IL or missing references) //IL_046c: Unknown result type (might be due to invalid IL or missing references) //IL_046d: Unknown result type (might be due to invalid IL or missing references) //IL_046e: Unknown result type (might be due to invalid IL or missing references) //IL_046f: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Unknown result type (might be due to invalid IL or missing references) //IL_0483: Unknown result type (might be due to invalid IL or missing references) //IL_0484: Unknown result type (might be due to invalid IL or missing references) //IL_0489: Unknown result type (might be due to invalid IL or missing references) //IL_0492: Unknown result type (might be due to invalid IL or missing references) //IL_0497: Unknown result type (might be due to invalid IL or missing references) //IL_04a7: Unknown result type (might be due to invalid IL or missing references) //IL_04a8: Unknown result type (might be due to invalid IL or missing references) //IL_04ad: Unknown result type (might be due to invalid IL or missing references) //IL_04c2: Unknown result type (might be due to invalid IL or missing references) //IL_04c3: 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_04d1: Unknown result type (might be due to invalid IL or missing references) //IL_04dc: 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_04e2: Unknown result type (might be due to invalid IL or missing references) //IL_04f7: 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_04fd: Unknown result type (might be due to invalid IL or missing references) //IL_0506: Unknown result type (might be due to invalid IL or missing references) //IL_050b: Unknown result type (might be due to invalid IL or missing references) //IL_051b: Unknown result type (might be due to invalid IL or missing references) //IL_051c: Unknown result type (might be due to invalid IL or missing references) //IL_0521: Unknown result type (might be due to invalid IL or missing references) //IL_0536: Unknown result type (might be due to invalid IL or missing references) //IL_0537: Unknown result type (might be due to invalid IL or missing references) //IL_053c: Unknown result type (might be due to invalid IL or missing references) //IL_0545: Unknown result type (might be due to invalid IL or missing references) //IL_0550: Unknown result type (might be due to invalid IL or missing references) //IL_0551: Unknown result type (might be due to invalid IL or missing references) //IL_0556: Unknown result type (might be due to invalid IL or missing references) //IL_056b: Unknown result type (might be due to invalid IL or missing references) //IL_056c: Unknown result type (might be due to invalid IL or missing references) //IL_0571: 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_057f: Unknown result type (might be due to invalid IL or missing references) //IL_058f: Unknown result type (might be due to invalid IL or missing references) //IL_0590: Unknown result type (might be due to invalid IL or missing references) //IL_0595: Unknown result type (might be due to invalid IL or missing references) //IL_05aa: Unknown result type (might be due to invalid IL or missing references) //IL_05ab: Unknown result type (might be due to invalid IL or missing references) //IL_05b0: Unknown result type (might be due to invalid IL or missing references) //IL_05b9: Unknown result type (might be due to invalid IL or missing references) //IL_05c4: Unknown result type (might be due to invalid IL or missing references) //IL_05c5: Unknown result type (might be due to invalid IL or missing references) //IL_05ca: 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_05e0: Unknown result type (might be due to invalid IL or missing references) //IL_05e5: Unknown result type (might be due to invalid IL or missing references) //IL_05ee: 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_0603: Unknown result type (might be due to invalid IL or missing references) //IL_0604: Unknown result type (might be due to invalid IL or missing references) //IL_0609: Unknown result type (might be due to invalid IL or missing references) //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_061f: Unknown result type (might be due to invalid IL or missing references) //IL_0624: Unknown result type (might be due to invalid IL or missing references) //IL_062d: Unknown result type (might be due to invalid IL or missing references) //IL_0638: Unknown result type (might be due to invalid IL or missing references) //IL_0639: Unknown result type (might be due to invalid IL or missing references) //IL_063e: Unknown result type (might be due to invalid IL or missing references) //IL_0648: Unknown result type (might be due to invalid IL or missing references) //IL_0649: Unknown result type (might be due to invalid IL or missing references) //IL_064a: Unknown result type (might be due to invalid IL or missing references) //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_0650: Unknown result type (might be due to invalid IL or missing references) //IL_065f: Unknown result type (might be due to invalid IL or missing references) //IL_0660: Unknown result type (might be due to invalid IL or missing references) //IL_0665: Unknown result type (might be due to invalid IL or missing references) //IL_066e: Unknown result type (might be due to invalid IL or missing references) //IL_0673: Unknown result type (might be due to invalid IL or missing references) //IL_0683: Unknown result type (might be due to invalid IL or missing references) //IL_0684: Unknown result type (might be due to invalid IL or missing references) //IL_0689: Unknown result type (might be due to invalid IL or missing references) //IL_069e: Unknown result type (might be due to invalid IL or missing references) //IL_069f: Unknown result type (might be due to invalid IL or missing references) //IL_06a4: Unknown result type (might be due to invalid IL or missing references) //IL_06ad: Unknown result type (might be due to invalid IL or missing references) //IL_06b8: Unknown result type (might be due to invalid IL or missing references) //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_06be: Unknown result type (might be due to invalid IL or missing references) //IL_06c8: Unknown result type (might be due to invalid IL or missing references) //IL_06c9: 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_06cb: Unknown result type (might be due to invalid IL or missing references) //IL_06d0: Unknown result type (might be due to invalid IL or missing references) //IL_06df: Unknown result type (might be due to invalid IL or missing references) //IL_06e0: Unknown result type (might be due to invalid IL or missing references) //IL_06e5: Unknown result type (might be due to invalid IL or missing references) //IL_06ee: Unknown result type (might be due to invalid IL or missing references) //IL_06f3: Unknown result type (might be due to invalid IL or missing references) //IL_0703: Unknown result type (might be due to invalid IL or missing references) //IL_0704: Unknown result type (might be due to invalid IL or missing references) //IL_0709: Unknown result type (might be due to invalid IL or missing references) //IL_071e: Unknown result type (might be due to invalid IL or missing references) //IL_071f: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_072d: Unknown result type (might be due to invalid IL or missing references) //IL_0738: Unknown result type (might be due to invalid IL or missing references) //IL_0739: Unknown result type (might be due to invalid IL or missing references) //IL_073e: Unknown result type (might be due to invalid IL or missing references) //IL_0748: Unknown result type (might be due to invalid IL or missing references) //IL_0749: Unknown result type (might be due to invalid IL or missing references) //IL_074a: Unknown result type (might be due to invalid IL or missing references) //IL_074b: Unknown result type (might be due to invalid IL or missing references) //IL_0750: Unknown result type (might be due to invalid IL or missing references) //IL_075f: Unknown result type (might be due to invalid IL or missing references) //IL_0760: Unknown result type (might be due to invalid IL or missing references) //IL_0765: Unknown result type (might be due to invalid IL or missing references) //IL_076e: Unknown result type (might be due to invalid IL or missing references) //IL_0773: Unknown result type (might be due to invalid IL or missing references) for (int i = 0; i < triangles.Length; i += 3) { Vector3 val = vertices[triangles[i]]; Vector3 val2 = vertices[triangles[i + 1]]; Vector3 val3 = vertices[triangles[i + 2]]; float num = waterLevel - Center(val, val2, val3).y; if (num > 0f && Center(val, val2, val3).y > (Center(val, val2, val3) + Normal(val, val2, val3)).y) { float num2 = effWaterDensity * Physics.gravity.y * num * Area(val, val2, val3); Vector3 val4 = Normal(val, val2, val3); float num3 = num2 * ((Vector3)(ref val4)).normalized.y; if (useBalanceFactor) { rb.AddForceAtPosition(new Vector3(0f, num3, 0f), ((Component)this).transform.TransformPoint(new Vector3(((Component)this).transform.InverseTransformPoint(Center(val, val2, val3)).x / (balanceFactor.x * ((Component)this).transform.localScale.x * 1000f), ((Component)this).transform.InverseTransformPoint(Center(val, val2, val3)).y / (balanceFactor.y * ((Component)this).transform.localScale.x * 1000f), ((Component)this).transform.InverseTransformPoint(Center(val, val2, val3)).z / (balanceFactor.z * ((Component)this).transform.localScale.x * 1000f)))); } else { rb.AddForceAtPosition(new Vector3(0f, num3, 0f), ((Component)this).transform.TransformPoint(new Vector3(((Component)this).transform.InverseTransformPoint(Center(val, val2, val3)).x, ((Component)this).transform.InverseTransformPoint(Center(val, val2, val3)).y, ((Component)this).transform.InverseTransformPoint(Center(val, val2, val3)).z))); } if (debug == debugModes.showAffectedFaces) { Debug.DrawLine(Center(val, val2, val3), Center(val, val2, val3) + Normal(val, val2, val3), Color.white); } if (debug == debugModes.showForceRepresentation) { Debug.DrawRay(Center(val, val2, val3), new Vector3(0f, num3, 0f), Color.red); } if (debug == debugModes.showReferenceVolume) { Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val).z), new Vector3(((Component)this).transform.TransformPoint(val2).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val2).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val2).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val2).z), new Vector3(((Component)this).transform.TransformPoint(val3).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val3).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val3).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val3).z), new Vector3(((Component)this).transform.TransformPoint(val).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val).x, waterLevel, ((Component)this).transform.TransformPoint(val).z), new Vector3(((Component)this).transform.TransformPoint(val2).x, waterLevel, ((Component)this).transform.TransformPoint(val2).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val2).x, waterLevel, ((Component)this).transform.TransformPoint(val2).z), new Vector3(((Component)this).transform.TransformPoint(val3).x, waterLevel, ((Component)this).transform.TransformPoint(val3).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val3).x, waterLevel, ((Component)this).transform.TransformPoint(val3).z), new Vector3(((Component)this).transform.TransformPoint(val).x, waterLevel, ((Component)this).transform.TransformPoint(val).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val).x, waterLevel, ((Component)this).transform.TransformPoint(val).z), new Vector3(((Component)this).transform.TransformPoint(val).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val2).x, waterLevel, ((Component)this).transform.TransformPoint(val2).z), new Vector3(((Component)this).transform.TransformPoint(val2).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val2).z), Color.green); Debug.DrawLine(new Vector3(((Component)this).transform.TransformPoint(val3).x, waterLevel, ((Component)this).transform.TransformPoint(val3).z), new Vector3(((Component)this).transform.TransformPoint(val3).x, Center(val, val2, val3).y, ((Component)this).transform.TransformPoint(val3).z), Color.green); } } } } private Vector3 Center(Vector3 p1, Vector3 p2, Vector3 p3) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) Vector3 val = (p1 + p2 + p3) / 3f; return ((Component)this).transform.TransformPoint(val); } private Vector3 Normal(Vector3 p1, Vector3 p2, Vector3 p3) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_0030: 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_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: 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_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) Vector3 val = Vector3.Cross(((Component)this).transform.TransformPoint(p2) - ((Component)this).transform.TransformPoint(p1), ((Component)this).transform.TransformPoint(p3) - ((Component)this).transform.TransformPoint(p1)); return ((Vector3)(ref val)).normalized; } private float Area(Vector3 p1, Vector3 p2, Vector3 p3) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_002d: 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_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_016b: 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_016d: 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_0181: 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_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_0195: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: 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_01b1: 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_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: 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_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: 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_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0208: Unknown result type (might be due to invalid IL or missing references) //IL_0209: Unknown result type (might be due to invalid IL or missing references) //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0217: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Unknown result type (might be due to invalid IL or missing references) float num = Vector3.Distance(new Vector3(((Component)this).transform.TransformPoint(p1).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p1).z), new Vector3(((Component)this).transform.TransformPoint(p2).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p2).z)); float num2 = Vector3.Distance(new Vector3(((Component)this).transform.TransformPoint(p3).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p3).z), new Vector3(((Component)this).transform.TransformPoint(p1).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p1).z)); return num * num2 * Mathf.Sin(Vector3.Angle(new Vector3(((Component)this).transform.TransformPoint(p2).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p2).z) - new Vector3(((Component)this).transform.TransformPoint(p1).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p1).z), new Vector3(((Component)this).transform.TransformPoint(p3).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p3).z) - new Vector3(((Component)this).transform.TransformPoint(p1).x, Center(p1, p2, p3).y, ((Component)this).transform.TransformPoint(p1).z)) * ((float)Math.PI / 180f)) / 2f; } } [AddComponentMenu("AQUAS/AQUAS Camera")] [RequireComponent(typeof(Camera))] public class AQUAS_Camera : MonoBehaviour { private void OnDrawGizmos() { Set(); } private void Start() { Set(); } private void Set() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) if ((int)((Component)this).GetComponent().depthTextureMode == 0) { ((Component)this).GetComponent().depthTextureMode = (DepthTextureMode)1; } } } public class AQUAS_Caustics : MonoBehaviour { public float fps; public Texture2D[] frames; public float maxCausticDepth; private int frameIndex; private Projector projector; private void Start() { projector = ((Component)this).GetComponent(); NextFrame(); ((MonoBehaviour)this).InvokeRepeating("NextFrame", 1f / fps, 1f / fps); projector.material.SetFloat("_WaterLevel", 0.5f); projector.material.SetFloat("_DepthFade", -19f); } private void Update() { projector.material.SetFloat("_DepthFade", -19f); } private void NextFrame() { projector.material.SetTexture("_Texture", (Texture)(object)frames[frameIndex]); frameIndex = (frameIndex + 1) % frames.Length; } } namespace AQUAS { public class AQUAS_Look : MonoBehaviour { [Header("Info")] private List _rotArrayX = new List(); private List _rotArrayY = new List(); private float rotAverageX; private float rotAverageY; private float mouseDeltaX; private float mouseDeltaY; [Header("Settings")] public bool _isLocked; public float _sensitivityX = 1.5f; public float _sensitivityY = 1.5f; [Tooltip("The more steps, the smoother it will be.")] public int _averageFromThisManySteps = 3; [Header("References")] [Tooltip("Object to be rotated when mouse moves left/right.")] public Transform _playerRootT; [Tooltip("Object to be rotated when mouse moves up/down.")] public Transform _cameraT; private void Update() { MouseLookAveraged(); } private void MouseLookAveraged() { rotAverageX = 0f; rotAverageY = 0f; mouseDeltaX = 0f; mouseDeltaY = 0f; mouseDeltaX += Input.GetAxis("Mouse X") * _sensitivityX; mouseDeltaY += Input.GetAxis("Mouse Y") * _sensitivityY; _rotArrayX.Add(mouseDeltaX); _rotArrayY.Add(mouseDeltaY); if (_rotArrayX.Count >= _averageFromThisManySteps) { _rotArrayX.RemoveAt(0); } if (_rotArrayY.Count >= _averageFromThisManySteps) { _rotArrayY.RemoveAt(0); } for (int i = 0; i < _rotArrayX.Count; i++) { rotAverageX += _rotArrayX[i]; } for (int j = 0; j < _rotArrayY.Count; j++) { rotAverageY += _rotArrayY[j]; } rotAverageX /= _rotArrayX.Count; rotAverageY /= _rotArrayY.Count; _playerRootT.Rotate(0f, rotAverageX, 0f, (Space)0); _cameraT.Rotate(0f - rotAverageY, 0f, 0f, (Space)1); } } } [Serializable] public class AQUAS_Parameters { [Serializable] public class UnderWaterParameters { [Header("The following parameters apply for underwater only!")] [Space(5f)] public float fogDensity = 0.1f; public Color fogColor; [Space(5f)] [Header("Post Processing Profiles (Must NOT be empty!)")] [Space(5f)] public PostProcessProfile underwaterProfile; public PostProcessProfile defaultProfile; } [Serializable] public class GameObjects { [Header("Set the game objects required for underwater mode.")] [Space(5f)] public GameObject mainCamera; public GameObject waterLens; public GameObject airLens; public GameObject bubble; [Space(5f)] [Header("Set waterplanes array size = number of waterplanes")] public List waterPlanes = new List(); public bool useSquaredPlanes; } [Serializable] public class WetLens { [Header("Set how long the lens stays wet after diving up.")] public float wetTime = 1f; [Space(5f)] [Header("Set how long the lens needs to dry.")] public float dryingTime = 1.5f; [Space(5f)] public Texture2D[] sprayFrames; public Texture2D[] sprayFramesCutout; public float rundownSpeed = 72f; } [Serializable] public class CausticSettings { [Header("The following values are 'Afloat'/'Underwater'")] public Vector2 causticIntensity = new Vector2(0.6f, 0.2f); public Vector2 causticTiling = new Vector2(300f, 100f); public float maxCausticDepth; } [Serializable] public class Audio { public AudioClip[] sounds; [Range(0f, 1f)] public float underwaterVolume; [Range(0f, 1f)] public float surfacingVolume; [Range(0f, 1f)] public float diveVolume; } [Serializable] public class BubbleSpawnCriteria { [Header("Spawn Criteria for big bubbles")] public int minBubbleCount = 20; public int maxBubbleCount = 40; [Space(5f)] public float maxSpawnDistance = 1f; public float averageUpdrift = 3f; [Space(5f)] public float baseScale = 0.06f; public float avgScaleSummand = 0.15f; [Space(5f)] [Header("Spawn Timer for initial dive")] public float minSpawnTimer = 0.005f; public float maxSpawnTimer = 0.03f; [Space(5f)] [Header("Spawn Timer for long dive")] public float minSpawnTimerL = 0.1f; public float maxSpawnTimerL = 0.5f; } } [AddComponentMenu("AQUAS/Reflection")] [ExecuteInEditMode] public class AQUAS_Reflection : MonoBehaviour { public bool m_DisablePixelLights = true; public int m_TextureSize = 256; public float m_ClipPlaneOffset = 0.07f; public LayerMask m_ReflectLayers = LayerMask.op_Implicit(-1); public Hashtable m_ReflectionCameras = new Hashtable(); public RenderTexture m_ReflectionTexture = null; public int m_OldReflectionTextureSize = 0; public static bool s_InsideRendering = false; public bool ignoreOcclusionCulling; public void OnWillRenderObject() { //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: 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_01dc: Unknown result type (might be due to invalid IL or missing references) //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_0254: Unknown result type (might be due to invalid IL or missing references) //IL_0268: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0272: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Unknown result type (might be due to invalid IL or missing references) //IL_0287: 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_02b8: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02c4: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_02d2: Unknown result type (might be due to invalid IL or missing references) //IL_02d7: Unknown result type (might be due to invalid IL or missing references) //IL_02dc: Unknown result type (might be due to invalid IL or missing references) //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_02e3: 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) if (!((Behaviour)this).enabled || !Object.op_Implicit((Object)(object)((Component)this).GetComponent()) || !Object.op_Implicit((Object)(object)((Component)this).GetComponent().sharedMaterial) || !((Component)this).GetComponent().enabled) { return; } Camera current = Camera.current; if (!Object.op_Implicit((Object)(object)current) || s_InsideRendering) { return; } s_InsideRendering = true; CreateMirrorObjects(current, out var reflectionCamera); Vector3 position = ((Component)this).transform.position; Vector3 up = ((Component)this).transform.up; int pixelLightCount = QualitySettings.pixelLightCount; if (m_DisablePixelLights) { QualitySettings.pixelLightCount = 0; } UpdateCameraModes(current, reflectionCamera); float num = 0f - Vector3.Dot(up, position) - m_ClipPlaneOffset; Vector4 plane = default(Vector4); ((Vector4)(ref plane))..ctor(up.x, up.y, up.z, num); if (ignoreOcclusionCulling) { reflectionCamera.useOcclusionCulling = false; } else { reflectionCamera.useOcclusionCulling = true; } Matrix4x4 reflectionMat = Matrix4x4.zero; CalculateReflectionMatrix(ref reflectionMat, plane); Vector3 position2 = ((Component)current).transform.position; Vector3 position3 = ((Matrix4x4)(ref reflectionMat)).MultiplyPoint(position2); reflectionCamera.worldToCameraMatrix = current.worldToCameraMatrix * reflectionMat; Vector4 clipPlane = CameraSpacePlane(reflectionCamera, position, up, 1f); Matrix4x4 projection = current.projectionMatrix; CalculateObliqueMatrix(ref projection, clipPlane); reflectionCamera.projectionMatrix = projection; reflectionCamera.cullingMask = -17 & ((LayerMask)(ref m_ReflectLayers)).value; reflectionCamera.targetTexture = m_ReflectionTexture; GL.invertCulling = true; ((Component)reflectionCamera).transform.position = position3; Vector3 eulerAngles = ((Component)current).transform.eulerAngles; ((Component)reflectionCamera).transform.eulerAngles = new Vector3(eulerAngles.x * -1f, eulerAngles.y, 0f); reflectionCamera.Render(); ((Component)reflectionCamera).transform.position = position2; GL.invertCulling = false; Material[] sharedMaterials = ((Component)this).GetComponent().sharedMaterials; Material[] array = sharedMaterials; foreach (Material val in array) { if (val.HasProperty("_ReflectionTex")) { val.SetTexture("_ReflectionTex", (Texture)(object)m_ReflectionTexture); } } Matrix4x4 val2 = Matrix4x4.TRS(new Vector3(0.5f, 0.5f, 0.5f), Quaternion.identity, new Vector3(0.5f, 0.5f, 0.5f)); Vector3 lossyScale = ((Component)this).transform.lossyScale; Matrix4x4 val3 = ((Component)this).transform.localToWorldMatrix * Matrix4x4.Scale(new Vector3(1f / lossyScale.x, 1f / lossyScale.y, 1f / lossyScale.z)); val3 = val2 * current.projectionMatrix * current.worldToCameraMatrix * val3; Material[] array2 = sharedMaterials; foreach (Material val4 in array2) { val4.SetMatrix("_ProjMatrix", val3); } if (m_DisablePixelLights) { QualitySettings.pixelLightCount = pixelLightCount; } s_InsideRendering = false; } private void OnDisable() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) if (Object.op_Implicit((Object)(object)m_ReflectionTexture)) { Object.DestroyImmediate((Object)(object)m_ReflectionTexture); m_ReflectionTexture = null; } foreach (DictionaryEntry reflectionCamera in m_ReflectionCameras) { Object.DestroyImmediate((Object)(object)((Component)(Camera)reflectionCamera.Value).gameObject); } m_ReflectionCameras.Clear(); } public void UpdateCameraModes(Camera src, Camera dest) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Invalid comparison between Unknown and I4 if ((Object)(object)dest == (Object)null) { return; } dest.clearFlags = src.clearFlags; dest.backgroundColor = src.backgroundColor; if ((int)src.clearFlags == 1) { Component component = ((Component)src).GetComponent(typeof(Skybox)); Skybox val = (Skybox)(object)((component is Skybox) ? component : null); Component component2 = ((Component)dest).GetComponent(typeof(Skybox)); Skybox val2 = (Skybox)(object)((component2 is Skybox) ? component2 : null); if (!Object.op_Implicit((Object)(object)val) || !Object.op_Implicit((Object)(object)val.material)) { ((Behaviour)val2).enabled = false; } else { ((Behaviour)val2).enabled = true; val2.material = val.material; } } dest.farClipPlane = src.farClipPlane; dest.nearClipPlane = src.nearClipPlane; dest.orthographic = src.orthographic; dest.fieldOfView = src.fieldOfView; dest.aspect = src.aspect; dest.orthographicSize = src.orthographicSize; } public void CreateMirrorObjects(Camera currentCamera, out Camera reflectionCamera) { //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Unknown result type (might be due to invalid IL or missing references) reflectionCamera = null; if (!Object.op_Implicit((Object)(object)m_ReflectionTexture) || m_OldReflectionTextureSize != m_TextureSize) { if (Object.op_Implicit((Object)(object)m_ReflectionTexture)) { Object.DestroyImmediate((Object)(object)m_ReflectionTexture); } m_ReflectionTexture = new RenderTexture(m_TextureSize, m_TextureSize, 16); ((Object)m_ReflectionTexture).name = "__MirrorReflection" + ((Object)this).GetInstanceID(); m_ReflectionTexture.isPowerOfTwo = true; ((Object)m_ReflectionTexture).hideFlags = (HideFlags)52; m_OldReflectionTextureSize = m_TextureSize; } object? obj = m_ReflectionCameras[currentCamera]; reflectionCamera = (Camera)((obj is Camera) ? obj : null); if (!Object.op_Implicit((Object)(object)reflectionCamera)) { GameObject val = new GameObject("Mirror Refl Camera id" + ((Object)this).GetInstanceID() + " for " + ((Object)currentCamera).GetInstanceID(), new Type[2] { typeof(Camera), typeof(Skybox) }); reflectionCamera = val.GetComponent(); ((Behaviour)reflectionCamera).enabled = false; ((Component)reflectionCamera).transform.position = ((Component)this).transform.position; ((Component)reflectionCamera).transform.rotation = ((Component)this).transform.rotation; ((Component)reflectionCamera).gameObject.AddComponent(); ((Object)val).hideFlags = (HideFlags)61; m_ReflectionCameras[currentCamera] = reflectionCamera; } } public static float sgn(float a) { if (a > 0f) { return 1f; } if (a < 0f) { return -1f; } return 0f; } public Vector4 CameraSpacePlane(Camera cam, Vector3 pos, Vector3 normal, float sideSign) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) Vector3 val = pos + normal * m_ClipPlaneOffset; Matrix4x4 worldToCameraMatrix = cam.worldToCameraMatrix; Vector3 val2 = ((Matrix4x4)(ref worldToCameraMatrix)).MultiplyPoint(val); Vector3 val3 = ((Matrix4x4)(ref worldToCameraMatrix)).MultiplyVector(normal); Vector3 val4 = ((Vector3)(ref val3)).normalized * sideSign; return new Vector4(val4.x, val4.y, val4.z, 0f - Vector3.Dot(val2, val4)); } public static void CalculateObliqueMatrix(ref Matrix4x4 projection, Vector4 clipPlane) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0033: 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_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003b: 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_0047: Unknown result type (might be due to invalid IL or missing references) Vector4 val = ((Matrix4x4)(ref projection)).inverse * new Vector4(sgn(clipPlane.x), sgn(clipPlane.y), 1f, 1f); Vector4 val2 = clipPlane * (2f / Vector4.Dot(clipPlane, val)); ((Matrix4x4)(ref projection))[2] = val2.x - ((Matrix4x4)(ref projection))[3]; ((Matrix4x4)(ref projection))[6] = val2.y - ((Matrix4x4)(ref projection))[7]; ((Matrix4x4)(ref projection))[10] = val2.z - ((Matrix4x4)(ref projection))[11]; ((Matrix4x4)(ref projection))[14] = val2.w - ((Matrix4x4)(ref projection))[15]; } public static void CalculateReflectionMatrix(ref Matrix4x4 reflectionMat, Vector4 plane) { reflectionMat.m00 = 1f - 2f * ((Vector4)(ref plane))[0] * ((Vector4)(ref plane))[0]; reflectionMat.m01 = -2f * ((Vector4)(ref plane))[0] * ((Vector4)(ref plane))[1]; reflectionMat.m02 = -2f * ((Vector4)(ref plane))[0] * ((Vector4)(ref plane))[2]; reflectionMat.m03 = -2f * ((Vector4)(ref plane))[3] * ((Vector4)(ref plane))[0]; reflectionMat.m10 = -2f * ((Vector4)(ref plane))[1] * ((Vector4)(ref plane))[0]; reflectionMat.m11 = 1f - 2f * ((Vector4)(ref plane))[1] * ((Vector4)(ref plane))[1]; reflectionMat.m12 = -2f * ((Vector4)(ref plane))[1] * ((Vector4)(ref plane))[2]; reflectionMat.m13 = -2f * ((Vector4)(ref plane))[3] * ((Vector4)(ref plane))[1]; reflectionMat.m20 = -2f * ((Vector4)(ref plane))[2] * ((Vector4)(ref plane))[0]; reflectionMat.m21 = -2f * ((Vector4)(ref plane))[2] * ((Vector4)(ref plane))[1]; reflectionMat.m22 = 1f - 2f * ((Vector4)(ref plane))[2] * ((Vector4)(ref plane))[2]; reflectionMat.m23 = -2f * ((Vector4)(ref plane))[3] * ((Vector4)(ref plane))[2]; reflectionMat.m30 = 0f; reflectionMat.m31 = 0f; reflectionMat.m32 = 0f; reflectionMat.m33 = 1f; } } [ExecuteInEditMode] [AddComponentMenu("AQUAS/Render Queue Controller")] public class AQUAS_RenderQueueEditor : MonoBehaviour { public int renderQueueIndex = -1; private void Update() { ((Component)this).gameObject.GetComponent().sharedMaterial.renderQueue = renderQueueIndex; } } namespace AQUAS { public class AQUAS_Screenshotter : MonoBehaviour { [Header("This script is only for use in the Editor!")] [Header("Use F12 to Capture Screenshot")] public GameObject camera; public int sizeX = 1920; public int sizeY = 1080; public string folder = "Screenshots"; public string name = "Screenshot"; private void Start() { } private void Update() { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Expected O, but got Unknown //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Expected O, but got Unknown //IL_0079: Unknown result type (might be due to invalid IL or missing references) if (Input.GetKeyDown((KeyCode)293)) { RenderTexture val = new RenderTexture(sizeX, sizeY, 24); camera.GetComponent().targetTexture = val; Texture2D val2 = new Texture2D(sizeX, sizeY, (TextureFormat)3, false); camera.GetComponent().Render(); RenderTexture.active = val; val2.ReadPixels(new Rect(0f, 0f, (float)sizeX, (float)sizeY), 0, 0); camera.GetComponent().targetTexture = null; RenderTexture.active = null; Object.DestroyImmediate((Object)(object)val); byte[] bytes = val2.EncodeToJPG(); string path = string.Format("{0}/{1}/{2}_{3}.jpg", Application.dataPath, folder, name, DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")); if (!Directory.Exists($"{Application.dataPath}/{folder}")) { Directory.CreateDirectory($"{Application.dataPath}/{folder}"); } File.WriteAllBytes(path, bytes); AssetDatabase.Refresh(); Debug.Log((object)"Screenshot taken!"); } } } } public class AQUAS_SmallBubbleBehaviour : MonoBehaviour { public float averageUpdrift; public float waterLevel; public GameObject mainCamera; private float updriftFactor; private void Start() { updriftFactor = Random.Range((0f - averageUpdrift) * 0.75f, averageUpdrift * 0.75f); } private void Update() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0039: 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_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) ((Component)this).transform.Translate(Vector3.up * Time.deltaTime * (averageUpdrift + updriftFactor), (Space)0); if (mainCamera.transform.position.y > waterLevel || ((Component)this).transform.position.y > waterLevel) { Object.Destroy((Object)(object)((Component)this).gameObject); } } } namespace AQUAS { public class AQUAS_Walk : MonoBehaviour { public float m_moveSpeed = 10f; public CharacterController m_controller; private void Start() { if ((Object)(object)m_controller == (Object)null) { m_controller = ((Component)this).GetComponent(); } } private void Update() { //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007a: 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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: 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) if ((Object)(object)m_controller != (Object)null && ((Collider)m_controller).enabled) { Vector3 val = Input.GetAxis("Vertical") * ((Component)this).transform.TransformDirection(Vector3.forward) * m_moveSpeed; m_controller.Move(val * Time.deltaTime); Vector3 val2 = Input.GetAxis("Horizontal") * ((Component)this).transform.TransformDirection(Vector3.right) * m_moveSpeed; m_controller.Move(val2 * Time.deltaTime); m_controller.SimpleMove(Physics.gravity); } } } } namespace JerryComponent { public class SosigCarrierV5 : MonoBehaviour { public SphereCollider col; public int length = 0; public Rigidbody rigid; public GameObject hingeDoor; public GameObject hingeToggle; public List torso; public GameObject[] fakeSosig; public Transform enterPoint; public Transform[] poses; public SosigWeapon[] sosigW1; public SosigWeapon[] sosigW2; public SosigWeapon[] sosigW3; public SosigWeapon[] sosigW4; [Header("Spawn Options")] [Header("Sosig Options")] public SosigEnemyID SosigType; public int IFF; public bool SpawnActive; public SosigOrder SpawnState; private void OnTriggerEnter(Collider other) { if (((Object)((Component)other).gameObject).name == "Sosig_Torso" && ((Component)other).gameObject.GetComponent().S.E.IFFCode == GM.CurrentPlayerBody.m_playerIFF) { if (torso.Count < 8) { torso.Add(((Component)other).gameObject.GetComponent()); } if (torso.Count < 8) { } } } private void OnTriggerExit(Collider other) { if (((Object)((Component)other).gameObject).name == "Sosig_Torso" && ((Component)other).gameObject.GetComponent().S.E.IFFCode == GM.CurrentPlayerBody.m_playerIFF) { if (torso.Count >= 0) { torso.Remove(((Component)other).gameObject.GetComponent()); } if (torso.Count >= 0) { } } } private void Update() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_06a0: Unknown result type (might be due to invalid IL or missing references) //IL_06a5: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_018e: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_0616: Unknown result type (might be due to invalid IL or missing references) //IL_061c: Invalid comparison between Unknown and I4 if (length > 8) { length = 8; } if (length < 0) { length = 0; } if (hingeDoor.transform.localEulerAngles.x < 45f) { col.radius = 0.001f; } if (!(hingeDoor.transform.localEulerAngles.x > 45f)) { return; } if (hingeToggle.transform.localEulerAngles.x < 45f) { col.radius = 5f; length = torso.Count; for (int i = 0; i < torso.Count; i++) { torso[i].S.BodyState = (SosigBodyState)0; torso[i].S.SetCurrentOrder((SosigOrder)7); torso[i].S.SetMovementSpeed((SosigMoveSpeed)4); torso[i].S.MoveSpeed = (SosigMoveSpeed)4; torso[i].S.SetAssaultSpeed((SosigMoveSpeed)4); torso[i].S.SetGuardInvestigateDistanceThreshold(0f); torso[i].S.CoverSearchRange = 0f; torso[i].S.m_assaultPoint = enterPoint.position; ((Behaviour)torso[i].S.Agent).enabled = true; if (Vector3.Distance(((Component)torso[i].S).transform.position, enterPoint.position) < 2f) { sosigW1[i] = torso[i].S.Hand_Primary.HeldObject; sosigW2[i] = torso[i].S.Hand_Secondary.HeldObject; sosigW3[i] = torso[i].S.Inventory.Slots[0].HeldObject; sosigW4[i] = torso[i].S.Inventory.Slots[1].HeldObject; if ((Object)(object)sosigW1[i] == (Object)null) { } if ((Object)(object)sosigW2[i] == (Object)null) { } if ((Object)(object)sosigW3[i] == (Object)null) { } if ((Object)(object)sosigW4[i] == (Object)null) { } if ((Object)(object)sosigW1[i] != (Object)null) { ((Component)sosigW1[i]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)sosigW1[i]).gameObject.SetActive(false); } if ((Object)(object)sosigW2[i] != (Object)null) { ((Component)sosigW2[i]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)sosigW2[i]).gameObject.SetActive(false); } if ((Object)(object)sosigW3[i] != (Object)null) { ((Component)sosigW3[i]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)sosigW3[i]).gameObject.SetActive(false); } if ((Object)(object)sosigW4[i] != (Object)null) { ((Component)sosigW4[i]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)sosigW4[i]).gameObject.SetActive(false); } ((Component)torso[i].S).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)torso[i].S.Links[0]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)torso[i].S.Links[1]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)torso[i].S.Links[2]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)torso[i].S.Links[3]).gameObject.transform.parent = ((Component)enterPoint).transform; ((Component)torso[i].S).gameObject.SetActive(false); ((Component)torso[i].S.Links[0]).gameObject.SetActive(false); ((Component)torso[i].S.Links[1]).gameObject.SetActive(false); ((Component)torso[i].S.Links[2]).gameObject.SetActive(false); ((Component)torso[i].S.Links[3]).gameObject.SetActive(false); ((Behaviour)torso[i].S.Agent).enabled = false; fakeSosig[i].SetActive(true); } if ((Object)(object)torso[i] == (Object)null || (int)torso[i].S.BodyState == 3) { if (torso.Count >= 0) { torso.Remove(torso[i]); fakeSosig[i].SetActive(false); } if (torso.Count >= 0) { } } } ((MonoBehaviour)this).CancelInvoke("Spawn"); } if (hingeToggle.transform.localEulerAngles.x > 45f) { col.radius = 0.001f; if (length > 0) { ((MonoBehaviour)this).InvokeRepeating("Spawn", 1f, 5f); } if (length <= 0) { ((MonoBehaviour)this).CancelInvoke("Spawn"); } } } public void Spawn() { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Expected O, but got Unknown //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) if (length < 0) { return; } SpawnOptions val = new SpawnOptions(); val.SpawnActivated = SpawnActive; val.SpawnState = SpawnState; val.IFF = IFF; val.SpawnWithFullAmmo = true; val.EquipmentMode = (EquipmentSlots)7; val.SosigTargetPosition = ((Component)this).transform.position; val.SosigTargetRotation = ((Component)this).transform.eulerAngles; SpawnOptions val2 = val; SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[length]).transform.position, ((Component)poses[length]).transform.rotation); length--; if ((Object)(object)torso[length] != (Object)null) { if ((Object)(object)sosigW1[length] != (Object)null) { Object.Destroy((Object)(object)((Component)sosigW1[length]).gameObject); } if ((Object)(object)sosigW2[length] != (Object)null) { Object.Destroy((Object)(object)((Component)sosigW2[length]).gameObject); } if ((Object)(object)sosigW3[length] != (Object)null) { Object.Destroy((Object)(object)((Component)sosigW3[length]).gameObject); } if ((Object)(object)sosigW4[length] != (Object)null) { Object.Destroy((Object)(object)((Component)sosigW4[length]).gameObject); } if ((Object)(object)sosigW1[length] == (Object)null) { } if ((Object)(object)sosigW2[length] == (Object)null) { } if ((Object)(object)sosigW3[length] == (Object)null) { } if ((Object)(object)sosigW4[length] == (Object)null) { } Object.Destroy((Object)(object)((Component)torso[length].S.Links[0]).gameObject); Object.Destroy((Object)(object)((Component)torso[length].S.Links[1]).gameObject); Object.Destroy((Object)(object)((Component)torso[length].S.Links[2]).gameObject); Object.Destroy((Object)(object)((Component)torso[length].S.Links[3]).gameObject); Object.Destroy((Object)(object)torso[length]); } torso.Remove(torso[length]); fakeSosig[length].SetActive(false); } private void OnDrawGizmos() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) Gizmos.color = new Color(0.8f, 0.2f, 0.2f, 0.5f); Gizmos.DrawSphere(((Component)enterPoint).transform.position, 0.1f); Gizmos.DrawLine(((Component)enterPoint).transform.position, ((Component)enterPoint).transform.position + ((Component)enterPoint).transform.forward * 0.25f); } } public class SosigSpawnActive : MonoBehaviour { public Transform[] poses; [Header("Spawn Options")] [Header("Sosig Options")] public SosigEnemyID SosigType; public int IFF; public bool SpawnActive; public SosigOrder SpawnState; private void Start() { } private void OnTriggerEnter(Collider other) { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_009b: 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_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_011b: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_0203: Unknown result type (might be due to invalid IL or missing references) //IL_021b: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Unknown result type (might be due to invalid IL or missing references) //IL_0243: 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_026d: Unknown result type (might be due to invalid IL or missing references) if (((Object)((Component)other).gameObject).name == "CarrierStuff") { SpawnOptions val = new SpawnOptions(); val.SpawnActivated = SpawnActive; val.SpawnState = SpawnState; val.IFF = IFF; val.SpawnWithFullAmmo = true; val.EquipmentMode = (EquipmentSlots)7; val.SosigTargetPosition = ((Component)this).transform.position; val.SosigTargetRotation = ((Component)this).transform.eulerAngles; SpawnOptions val2 = val; SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[0]).transform.position, ((Component)poses[0]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[1]).transform.position, ((Component)poses[1]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[2]).transform.position, ((Component)poses[2]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[3]).transform.position, ((Component)poses[3]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[4]).transform.position, ((Component)poses[4]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[5]).transform.position, ((Component)poses[5]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[6]).transform.position, ((Component)poses[6]).transform.rotation); SosigAPI.Spawn(ManagerSingleton.Instance.odicSosigObjsByID[SosigType], val2, ((Component)poses[7]).transform.position, ((Component)poses[7]).transform.rotation); } } private void Update() { } } public class SpawnVehicles : MonoBehaviour { public GameObject helitoggle; public GameObject humveetoggle; public FVRObject heli; public FVRObject humv; public GameObject heliPrefab; public GameObject humveePrefab; public Transform helispawn; public Transform humvspawn; public bool isheli = false; public bool ishumvee = false; private void Update() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_011b: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_013a: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)humveePrefab == (Object)null || (Object)(object)heliPrefab == (Object)null) { } if (helitoggle.transform.localEulerAngles.x > 45f && !isheli) { heliPrefab = Object.Instantiate(((AnvilAsset)heli).GetGameObject(), helispawn.position + Vector3.up * 0.2f, helispawn.rotation); isheli = true; } if (helitoggle.transform.localEulerAngles.x < 45f && isheli) { Object.Destroy((Object)(object)heliPrefab); isheli = false; } if (humveetoggle.transform.localEulerAngles.x > 45f && !ishumvee) { Object.Instantiate(((AnvilAsset)humv).GetGameObject(), humvspawn.position + Vector3.up * 0.2f, humvspawn.rotation); ishumvee = true; } if (humveetoggle.transform.localEulerAngles.x < 45f && ishumvee) { Object.Destroy((Object)(object)humveePrefab); ishumvee = false; } } } public class Merchant : FVRPhysicalObject, IFVRDamageable { public float MinDamageRequired = 5000f; public float MaxDamageRequired = 10000f; public float _damageRequired; public float _damageReceived; public GameObject explosion; public GameObject Light; public GameObject LightGeo; public bool dead = false; private void Start() { _damageRequired = Random.Range(MinDamageRequired, MaxDamageRequired); } public void Damage(Damage dam) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) Vector3 val = dam.point + dam.hitNormal * Random.Range(0.002f, 0.008f); _damageReceived += Random.Range(100, 250); if (_damageReceived >= _damageRequired) { dead = true; explosion.SetActive(true); } } public void Update() { //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)GM.CurrentPlayerBody == (Object)null || dead) { LightGeo.SetActive(false); Light.transform.localEulerAngles = new Vector3(0f, 0f, 0f); } if ((Object)(object)GM.CurrentPlayerBody != (Object)null && !dead) { if (Vector3.Distance(((Component)this).gameObject.transform.position, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position) < 200f) { LightGeo.SetActive(true); AxisLookAt(Light.transform, new Vector3(((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position.x, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position.y - 1.6f, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position.z), Vector3.forward); } else if (Vector3.Distance(((Component)this).gameObject.transform.position, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position) >= 200f) { LightGeo.SetActive(false); Light.transform.localEulerAngles = new Vector3(0f, 0f, 0f); } } } private void AxisLookAt(Transform tr_self, Vector3 lookPos, Vector3 directionAxis) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002d: 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_0033: 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_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) Quaternion rotation = tr_self.rotation; Vector3 val = lookPos - tr_self.position; Vector3 val2 = tr_self.rotation * directionAxis; Vector3 val3 = Vector3.Cross(val2, val); Vector3 normalized = ((Vector3)(ref val3)).normalized; float num = Vector3.Angle(val2, val); tr_self.rotation = Quaternion.AngleAxis(num, normalized) * rotation; tr_self.localEulerAngles = new Vector3(tr_self.localEulerAngles.x, tr_self.localEulerAngles.y, 0f); } } public class MoveBackWard : MonoBehaviour { public float speed; public AudioSource aud; public float cd = 200f; private void FixedUpdate() { //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0113: 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) if ((Object)(object)GM.CurrentPlayerBody != (Object)null) { if (GM.CurrentPlayerBody.Health < GM.CurrentPlayerBody.m_startingHealth) { GM.CurrentPlayerBody.Health = GM.CurrentPlayerBody.Health + 1f; } if (GM.CurrentPlayerBody.Health > GM.CurrentPlayerBody.m_startingHealth) { GM.CurrentPlayerBody.Health = GM.CurrentPlayerBody.m_startingHealth; } } if (cd >= 0f) { cd -= 1f; } if (!aud.isPlaying && cd < 0f) { GM.CurrentPlayerBody.KillPlayer(true); } ((Component)this).gameObject.transform.position = new Vector3(((Component)this).gameObject.transform.position.x, ((Component)this).gameObject.transform.position.y, ((Component)this).gameObject.transform.position.z - speed); } } public class PBYFireArms : MonoBehaviour { public FVRInteractiveObject GrabL30; public FVRInteractiveObject GrabR30; public FVRInteractiveObject GrabL50L; public FVRInteractiveObject GrabR50L; public FVRInteractiveObject GrabL50R; public FVRInteractiveObject GrabR50R; public Transform muzzleL30; public Transform muzzleR30; public Transform muzzleL50; public Transform muzzleR50; public GameObject turretY; public float TYref; public GameObject turretrefY; public GameObject turretX; public GameObject turretrefX; public float TXref; public GameObject Y50L; public GameObject Y50LRef; public float YLRef; public GameObject Y50R; public GameObject Y50RRef; public float YRRef; public GameObject X50L; public GameObject X50LRef; public float XLRef; public GameObject X50R; public GameObject X50RRef; public float XRRef; public GameObject blisterL; public GameObject blisterR; public OpenBoltReceiver L30cal; public OpenBoltReceiver R30cal; public OpenBoltReceiver L50cal; public OpenBoltReceiver R50cal; private void Update() { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: 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_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_014b: 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_0164: Unknown result type (might be due to invalid IL or missing references) //IL_017c: 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_0196: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_0279: Unknown result type (might be due to invalid IL or missing references) //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) //IL_0297: Unknown result type (might be due to invalid IL or missing references) //IL_02af: Unknown result type (might be due to invalid IL or missing references) //IL_02c4: Unknown result type (might be due to invalid IL or missing references) //IL_02c9: Unknown result type (might be due to invalid IL or missing references) //IL_0220: 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_01e7: 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_0335: Unknown result type (might be due to invalid IL or missing references) //IL_02e7: Unknown result type (might be due to invalid IL or missing references) //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_03a7: Unknown result type (might be due to invalid IL or missing references) //IL_03ac: Unknown result type (might be due to invalid IL or missing references) //IL_03c0: Unknown result type (might be due to invalid IL or missing references) //IL_03c5: Unknown result type (might be due to invalid IL or missing references) //IL_03e2: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_03fc: Unknown result type (might be due to invalid IL or missing references) //IL_0353: Unknown result type (might be due to invalid IL or missing references) //IL_0358: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_0463: Unknown result type (might be due to invalid IL or missing references) //IL_0468: Unknown result type (might be due to invalid IL or missing references) //IL_041a: Unknown result type (might be due to invalid IL or missing references) //IL_041f: Unknown result type (might be due to invalid IL or missing references) //IL_0386: 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_04e4: 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_04fd: Unknown result type (might be due to invalid IL or missing references) //IL_0515: Unknown result type (might be due to invalid IL or missing references) //IL_052a: Unknown result type (might be due to invalid IL or missing references) //IL_052f: 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_048b: Unknown result type (might be due to invalid IL or missing references) //IL_044d: Unknown result type (might be due to invalid IL or missing references) //IL_0596: Unknown result type (might be due to invalid IL or missing references) //IL_059b: Unknown result type (might be due to invalid IL or missing references) //IL_054d: Unknown result type (might be due to invalid IL or missing references) //IL_0552: Unknown result type (might be due to invalid IL or missing references) //IL_04b9: Unknown result type (might be due to invalid IL or missing references) //IL_060d: 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_0626: Unknown result type (might be due to invalid IL or missing references) //IL_062b: Unknown result type (might be due to invalid IL or missing references) //IL_0648: Unknown result type (might be due to invalid IL or missing references) //IL_065d: Unknown result type (might be due to invalid IL or missing references) //IL_0662: Unknown result type (might be due to invalid IL or missing references) //IL_05b9: Unknown result type (might be due to invalid IL or missing references) //IL_05be: Unknown result type (might be due to invalid IL or missing references) //IL_0580: Unknown result type (might be due to invalid IL or missing references) //IL_06c9: Unknown result type (might be due to invalid IL or missing references) //IL_06ce: Unknown result type (might be due to invalid IL or missing references) //IL_0680: Unknown result type (might be due to invalid IL or missing references) //IL_0685: Unknown result type (might be due to invalid IL or missing references) //IL_05ec: Unknown result type (might be due to invalid IL or missing references) //IL_0735: Unknown result type (might be due to invalid IL or missing references) //IL_073a: Unknown result type (might be due to invalid IL or missing references) //IL_06ec: Unknown result type (might be due to invalid IL or missing references) //IL_06f1: Unknown result type (might be due to invalid IL or missing references) //IL_06b3: Unknown result type (might be due to invalid IL or missing references) //IL_0b01: Unknown result type (might be due to invalid IL or missing references) //IL_0b06: Unknown result type (might be due to invalid IL or missing references) //IL_071f: Unknown result type (might be due to invalid IL or missing references) //IL_0b79: Unknown result type (might be due to invalid IL or missing references) //IL_0b7e: Unknown result type (might be due to invalid IL or missing references) //IL_0b34: Unknown result type (might be due to invalid IL or missing references) //IL_0b58: Unknown result type (might be due to invalid IL or missing references) //IL_0f45: Unknown result type (might be due to invalid IL or missing references) //IL_0f4a: Unknown result type (might be due to invalid IL or missing references) //IL_0789: Unknown result type (might be due to invalid IL or missing references) //IL_07ad: Unknown result type (might be due to invalid IL or missing references) //IL_0f78: Unknown result type (might be due to invalid IL or missing references) //IL_0f9c: Unknown result type (might be due to invalid IL or missing references) //IL_0805: Unknown result type (might be due to invalid IL or missing references) //IL_080a: 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_0bcd: Unknown result type (might be due to invalid IL or missing references) //IL_0bf1: Unknown result type (might be due to invalid IL or missing references) //IL_08e4: Unknown result type (might be due to invalid IL or missing references) //IL_08e9: Unknown result type (might be due to invalid IL or missing references) //IL_0914: Unknown result type (might be due to invalid IL or missing references) //IL_0919: Unknown result type (might be due to invalid IL or missing references) //IL_0fed: Unknown result type (might be due to invalid IL or missing references) //IL_1011: Unknown result type (might be due to invalid IL or missing references) //IL_0c49: Unknown result type (might be due to invalid IL or missing references) //IL_0c4e: Unknown result type (might be due to invalid IL or missing references) //IL_0c79: Unknown result type (might be due to invalid IL or missing references) //IL_0c7e: Unknown result type (might be due to invalid IL or missing references) //IL_09c3: Unknown result type (might be due to invalid IL or missing references) //IL_09dd: Unknown result type (might be due to invalid IL or missing references) //IL_09e2: Unknown result type (might be due to invalid IL or missing references) //IL_09ec: Unknown result type (might be due to invalid IL or missing references) //IL_09f1: Unknown result type (might be due to invalid IL or missing references) //IL_0a1c: 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_0a3b: Unknown result type (might be due to invalid IL or missing references) //IL_0a45: Unknown result type (might be due to invalid IL or missing references) //IL_0a4a: Unknown result type (might be due to invalid IL or missing references) //IL_1077: Unknown result type (might be due to invalid IL or missing references) //IL_107c: Unknown result type (might be due to invalid IL or missing references) //IL_108a: Unknown result type (might be due to invalid IL or missing references) //IL_10b5: Unknown result type (might be due to invalid IL or missing references) //IL_10ba: Unknown result type (might be due to invalid IL or missing references) //IL_0d28: Unknown result type (might be due to invalid IL or missing references) //IL_0d2d: Unknown result type (might be due to invalid IL or missing references) //IL_0d58: Unknown result type (might be due to invalid IL or missing references) //IL_0d5d: Unknown result type (might be due to invalid IL or missing references) //IL_117d: Unknown result type (might be due to invalid IL or missing references) //IL_1182: Unknown result type (might be due to invalid IL or missing references) //IL_1190: Unknown result type (might be due to invalid IL or missing references) //IL_11bb: Unknown result type (might be due to invalid IL or missing references) //IL_11c0: Unknown result type (might be due to invalid IL or missing references) //IL_0e07: Unknown result type (might be due to invalid IL or missing references) //IL_0e21: Unknown result type (might be due to invalid IL or missing references) //IL_0e26: Unknown result type (might be due to invalid IL or missing references) //IL_0e30: Unknown result type (might be due to invalid IL or missing references) //IL_0e35: Unknown result type (might be due to invalid IL or missing references) //IL_0e60: Unknown result type (might be due to invalid IL or missing references) //IL_0e7a: Unknown result type (might be due to invalid IL or missing references) //IL_0e7f: Unknown result type (might be due to invalid IL or missing references) //IL_0e89: Unknown result type (might be due to invalid IL or missing references) //IL_0e8e: Unknown result type (might be due to invalid IL or missing references) //IL_1283: 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_1296: Unknown result type (might be due to invalid IL or missing references) //IL_12c1: Unknown result type (might be due to invalid IL or missing references) //IL_12db: Unknown result type (might be due to invalid IL or missing references) //IL_12e0: Unknown result type (might be due to invalid IL or missing references) //IL_12ea: Unknown result type (might be due to invalid IL or missing references) //IL_12ef: Unknown result type (might be due to invalid IL or missing references) turretY.transform.localEulerAngles = new Vector3(0f, Mathf.Lerp(turretY.transform.localEulerAngles.y, turretrefY.transform.localEulerAngles.y, 10f), 0f); if (turretY.transform.localEulerAngles.y < 285f && turretY.transform.localEulerAngles.y > 180f) { turretY.transform.localEulerAngles = new Vector3(0f, 285f, 0f); } if (turretY.transform.localEulerAngles.y > 75f && turretY.transform.localEulerAngles.y < 180f) { turretY.transform.localEulerAngles = new Vector3(0f, 75f, 0f); } turretX.transform.localEulerAngles = new Vector3(Mathf.Lerp(turretX.transform.localEulerAngles.x, turretrefX.transform.localEulerAngles.x, 10f), 0f); if (turretX.transform.localEulerAngles.x > 45f && turretX.transform.localEulerAngles.x < 180f) { turretX.transform.localEulerAngles = new Vector3(45f, 0f, 0f); } if (turretX.transform.localEulerAngles.x < 345f && turretX.transform.localEulerAngles.x > 180f) { turretX.transform.localEulerAngles = new Vector3(345f, 0f, 0f); } Y50R.transform.localEulerAngles = new Vector3(0f, Mathf.Lerp(Y50R.transform.localEulerAngles.y, Y50RRef.transform.localEulerAngles.y, 10f), 0f); if (Y50R.transform.localEulerAngles.y < 315f && Y50R.transform.localEulerAngles.y > 180f) { Y50R.transform.localEulerAngles = new Vector3(0f, 315f, 0f); } if (Y50R.transform.localEulerAngles.y > 95f && Y50R.transform.localEulerAngles.y < 180f) { Y50R.transform.localEulerAngles = new Vector3(0f, 95f, 0f); } X50L.transform.localEulerAngles = new Vector3(Mathf.Lerp(X50L.transform.localEulerAngles.x, X50LRef.transform.localEulerAngles.x, 10f), 0f, 0f); if (X50L.transform.localEulerAngles.x < 330f && X50L.transform.localEulerAngles.x > 180f) { X50L.transform.localEulerAngles = new Vector3(330f, 0f, 0f); } if (X50L.transform.localEulerAngles.x > 30f && X50L.transform.localEulerAngles.x < 180f) { X50L.transform.localEulerAngles = new Vector3(30f, 0f, 0f); } Y50L.transform.localEulerAngles = new Vector3(0f, Mathf.Lerp(Y50L.transform.localEulerAngles.y, Y50LRef.transform.localEulerAngles.y, 10f), 0f); if (Y50L.transform.localEulerAngles.y < 265f && Y50L.transform.localEulerAngles.y > 180f) { Y50L.transform.localEulerAngles = new Vector3(0f, 265f, 0f); } if (Y50L.transform.localEulerAngles.y > 45f && Y50L.transform.localEulerAngles.y < 180f) { Y50L.transform.localEulerAngles = new Vector3(0f, 45f, 0f); } X50R.transform.localEulerAngles = new Vector3(Mathf.Lerp(X50R.transform.localEulerAngles.x, X50RRef.transform.localEulerAngles.x, 10f), 0f, 0f); if (X50R.transform.localEulerAngles.x < 330f && X50R.transform.localEulerAngles.x > 180f) { X50R.transform.localEulerAngles = new Vector3(330f, 0f, 0f); } if (X50R.transform.localEulerAngles.x > 30f && X50R.transform.localEulerAngles.x < 180f) { X50R.transform.localEulerAngles = new Vector3(30f, 0f, 0f); } if (blisterL.transform.localEulerAngles.x >= 80f) { if (!GrabL50L.m_isHeld && !GrabR50L.m_isHeld) { Y50LRef.transform.localEulerAngles = new Vector3(0f, 0f, 0f); X50LRef.transform.localEulerAngles = new Vector3(0f, 0f, 0f); L50cal.EngageSeer(); } if (GrabL50L.m_isHeld && !GrabR50L.m_isHeld) { AxisLookAtY(Y50LRef.transform, ((Component)GrabL50L.m_hand).gameObject.transform.position, Vector3.forward); AxisLookAtX(X50LRef.transform, ((Component)GrabL50L.m_hand).gameObject.transform.position, Vector3.forward); if (GrabL50L.m_hand.Input.TriggerFloat >= 0.75f) { L50cal.ReleaseSeer(); } else if (GrabL50L.m_hand.Input.TriggerFloat < 0.75f) { L50cal.EngageSeer(); } } if (!GrabL50L.m_isHeld && GrabR50L.m_isHeld) { AxisLookAtY(Y50LRef.transform, ((Component)GrabR50L.m_hand).gameObject.transform.position, Vector3.forward); AxisLookAtX(X50LRef.transform, ((Component)GrabR50L.m_hand).gameObject.transform.position, Vector3.forward); if (GrabR50L.m_hand.Input.TriggerFloat >= 0.75f) { L50cal.ReleaseSeer(); } else if (GrabR50L.m_hand.Input.TriggerFloat < 0.75f) { L50cal.EngageSeer(); } } if (GrabL50L.m_isHeld && GrabR50L.m_isHeld) { AxisLookAtY(Y50LRef.transform, (((Component)GrabL50L.m_hand).gameObject.transform.position + ((Component)GrabR50L.m_hand).gameObject.transform.position) / 2f, Vector3.forward); AxisLookAtX(X50LRef.transform, (((Component)GrabL50L.m_hand).gameObject.transform.position + ((Component)GrabR50L.m_hand).gameObject.transform.position) / 2f, Vector3.forward); if (GrabL50L.m_hand.Input.TriggerFloat >= 0.75f || GrabR50L.m_hand.Input.TriggerFloat >= 0.75f) { L50cal.ReleaseSeer(); } else if (GrabL50L.m_hand.Input.TriggerFloat < 0.75f && GrabR50L.m_hand.Input.TriggerFloat < 0.75f) { L50cal.EngageSeer(); } } } else if (blisterL.transform.localEulerAngles.x < 80f) { Y50LRef.transform.localEulerAngles = new Vector3(0f, -95f, 0f); X50LRef.transform.localEulerAngles = new Vector3(0f, 0f, 0f); L50cal.EngageSeer(); } if (blisterR.transform.localEulerAngles.x >= 80f) { if (!GrabL50R.m_isHeld && !GrabR50R.m_isHeld) { Y50RRef.transform.localEulerAngles = new Vector3(0f, 0f, 0f); X50RRef.transform.localEulerAngles = new Vector3(0f, 0f, 0f); R50cal.EngageSeer(); } if (GrabL50R.m_isHeld && !GrabR50R.m_isHeld) { AxisLookAtY(Y50RRef.transform, ((Component)GrabL50R.m_hand).gameObject.transform.position, Vector3.forward); AxisLookAtX(X50RRef.transform, ((Component)GrabL50R.m_hand).gameObject.transform.position, Vector3.forward); if (GrabL50R.m_hand.Input.TriggerFloat >= 0.75f) { R50cal.ReleaseSeer(); } else if (GrabL50R.m_hand.Input.TriggerFloat < 0.75f) { R50cal.EngageSeer(); } } if (!GrabL50R.m_isHeld && GrabR50R.m_isHeld) { AxisLookAtY(Y50RRef.transform, ((Component)GrabR50R.m_hand).gameObject.transform.position, Vector3.forward); AxisLookAtX(X50RRef.transform, ((Component)GrabR50R.m_hand).gameObject.transform.position, Vector3.forward); if (GrabR50R.m_hand.Input.TriggerFloat >= 0.75f) { R50cal.ReleaseSeer(); } else if (GrabR50R.m_hand.Input.TriggerFloat < 0.75f) { R50cal.EngageSeer(); } } if (GrabL50R.m_isHeld && GrabR50R.m_isHeld) { AxisLookAtY(Y50RRef.transform, (((Component)GrabL50R.m_hand).gameObject.transform.position + ((Component)GrabR50R.m_hand).gameObject.transform.position) / 2f, Vector3.forward); AxisLookAtX(X50RRef.transform, (((Component)GrabL50R.m_hand).gameObject.transform.position + ((Component)GrabR50R.m_hand).gameObject.transform.position) / 2f, Vector3.forward); if (GrabL50R.m_hand.Input.TriggerFloat >= 0.75f || GrabR50R.m_hand.Input.TriggerFloat >= 0.75f) { R50cal.ReleaseSeer(); } else if (GrabL50R.m_hand.Input.TriggerFloat < 0.75f && GrabR50R.m_hand.Input.TriggerFloat < 0.75f) { R50cal.EngageSeer(); } } } else if (blisterR.transform.localEulerAngles.x < 80f) { Y50RRef.transform.localEulerAngles = new Vector3(0f, 95f, 0f); X50RRef.transform.localEulerAngles = new Vector3(0f, 0f, 0f); R50cal.EngageSeer(); } if (!GrabL30.m_isHeld && !GrabR30.m_isHeld) { turretrefY.transform.localEulerAngles = new Vector3(0f, 0f, 0f); turretrefX.transform.localEulerAngles = new Vector3(0f, 0f, 0f); L30cal.EngageSeer(); R30cal.EngageSeer(); } if (GrabL30.m_isHeld && !GrabR30.m_isHeld) { turretrefY.transform.eulerAngles = new Vector3(0f, ((Component)GM.CurrentPlayerBody.Torso).gameObject.transform.eulerAngles.y, 0f); AxisLookAtX(turretrefX.transform, ((Component)GrabL30.m_hand).gameObject.transform.position, Vector3.forward); if (GrabL30.m_hand.Input.TriggerFloat >= 0.75f) { L30cal.ReleaseSeer(); R30cal.ReleaseSeer(); } else if (GrabL30.m_hand.Input.TriggerFloat < 0.75f) { L30cal.EngageSeer(); R30cal.EngageSeer(); } } if (!GrabL30.m_isHeld && GrabR30.m_isHeld) { turretrefY.transform.eulerAngles = new Vector3(0f, ((Component)GM.CurrentPlayerBody.Torso).gameObject.transform.eulerAngles.y, 0f); AxisLookAtX(turretrefX.transform, ((Component)GrabR30.m_hand).gameObject.transform.position, Vector3.forward); if (GrabR30.m_hand.Input.TriggerFloat >= 0.75f) { L30cal.ReleaseSeer(); R30cal.ReleaseSeer(); } else if (GrabR30.m_hand.Input.TriggerFloat < 0.75f) { L30cal.EngageSeer(); R30cal.EngageSeer(); } } if (GrabL30.m_isHeld && GrabR30.m_isHeld) { turretrefY.transform.eulerAngles = new Vector3(0f, ((Component)GM.CurrentPlayerBody.Torso).gameObject.transform.eulerAngles.y, 0f); AxisLookAtX(turretrefX.transform, (((Component)GrabL30.m_hand).gameObject.transform.position + ((Component)GrabR30.m_hand).gameObject.transform.position) / 2f, Vector3.forward); if (GrabL30.m_hand.Input.TriggerFloat >= 0.75f || GrabR30.m_hand.Input.TriggerFloat >= 0.75f) { L30cal.ReleaseSeer(); R30cal.ReleaseSeer(); } else if (GrabL30.m_hand.Input.TriggerFloat < 0.75f && GrabR30.m_hand.Input.TriggerFloat < 0.75f) { L30cal.EngageSeer(); R30cal.EngageSeer(); } } } private void AxisLookAtY(Transform tr_self, Vector3 lookPos, Vector3 directionAxis) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002d: 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_0033: 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_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) Quaternion rotation = tr_self.rotation; Vector3 val = lookPos - tr_self.position; Vector3 val2 = tr_self.rotation * directionAxis; Vector3 val3 = Vector3.Cross(val2, val); Vector3 normalized = ((Vector3)(ref val3)).normalized; float num = Vector3.Angle(val2, val); tr_self.rotation = Quaternion.AngleAxis(num, normalized) * rotation; tr_self.localEulerAngles = new Vector3(0f, tr_self.localEulerAngles.y, 0f); } private void AxisLookAtX(Transform tr_self, Vector3 lookPos, Vector3 directionAxis) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002d: 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_0033: 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_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) Quaternion rotation = tr_self.rotation; Vector3 val = lookPos - tr_self.position; Vector3 val2 = tr_self.rotation * directionAxis; Vector3 val3 = Vector3.Cross(val2, val); Vector3 normalized = ((Vector3)(ref val3)).normalized; float num = Vector3.Angle(val2, val); tr_self.rotation = Quaternion.AngleAxis(num, normalized) * rotation; tr_self.localEulerAngles = new Vector3(tr_self.localEulerAngles.x, 0f, 0f); } } public class PTboat : FVRPhysicalObject, IFVRDamageable { public OpenBoltReceiver gun; public GameObject Aim; public float firecd = 0f; public float stopcd = 2f; public float MinDamageRequired = 5000f; public float MaxDamageRequired = 10000f; public float _damageRequired; public float _damageReceived; public GameObject explosion; public bool dead = false; public bool fired = false; private void Start() { _damageRequired = Random.Range(MinDamageRequired, MaxDamageRequired); } public void Damage(Damage dam) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) Vector3 val = dam.point + dam.hitNormal * Random.Range(0.002f, 0.008f); _damageReceived += Random.Range(100, 250); if (_damageReceived >= _damageRequired) { dead = true; explosion.SetActive(true); } } public void Update() { //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Unknown result type (might be due to invalid IL or missing references) //IL_0231: Unknown result type (might be due to invalid IL or missing references) //IL_0288: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Unknown result type (might be due to invalid IL or missing references) //IL_01f0: Unknown result type (might be due to invalid IL or missing references) //IL_01f8: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)GM.CurrentPlayerBody == (Object)null || dead) { firecd = 0f; stopcd = 2f; fired = false; gun.EngageSeer(); Aim.transform.localEulerAngles = new Vector3(0f, 0f, 0f); } if (!((Object)(object)GM.CurrentPlayerBody != (Object)null) || dead) { return; } if (Vector3.Distance(((Component)this).gameObject.transform.position, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position) < 100f) { if (firecd > 0f) { firecd -= 1f; gun.ReleaseSeer(); } if (firecd <= 0f && !fired) { stopcd = Random.Range(2, 10); fired = true; } if (stopcd > 0f) { stopcd -= 1f; gun.EngageSeer(); } if (stopcd <= 0f && fired) { firecd = Random.Range(2, 10); fired = false; } AxisLookAt(Aim.transform, new Vector3(((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position.x, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position.y - 0.25f, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position.z), Vector3.forward); } else if (Vector3.Distance(((Component)this).gameObject.transform.position, ((Component)GM.CurrentPlayerBody.Head).gameObject.transform.position) >= 100f) { gun.EngageSeer(); firecd = 0f; stopcd = 2f; fired = false; Aim.transform.localEulerAngles = new Vector3(0f, 0f, 0f); } } private void AxisLookAt(Transform tr_self, Vector3 lookPos, Vector3 directionAxis) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002d: 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_0033: 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_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) Quaternion rotation = tr_self.rotation; Vector3 val = lookPos - tr_self.position; Vector3 val2 = tr_self.rotation * directionAxis; Vector3 val3 = Vector3.Cross(val2, val); Vector3 normalized = ((Vector3)(ref val3)).normalized; float num = Vector3.Angle(val2, val); tr_self.rotation = Quaternion.AngleAxis(num, normalized) * rotation; tr_self.localEulerAngles = new Vector3(tr_self.localEulerAngles.x, tr_self.localEulerAngles.y, 0f); } } public class SnapToPointRigidbody : MonoBehaviour { public Transform snapTo; [NonSerialized] private Rigidbody body; public float snapTime = 2f; [NonSerialized] private float dropTimer; public void Start() { body = ((Component)this).GetComponent(); } public void FixedUpdate() { //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009e: 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_0055: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) dropTimer += Time.deltaTime / (snapTime / 2f); body.isKinematic = dropTimer > 1f; if (dropTimer > 1f) { ((Component)this).transform.position = snapTo.position; ((Component)this).transform.rotation = snapTo.rotation; } else { float num = Mathf.Pow(35f, dropTimer); body.velocity = Vector3.Lerp(body.velocity, Vector3.zero, Time.fixedDeltaTime * 4f); if (body.useGravity) { body.AddForce(-Physics.gravity); } ((Component)this).transform.position = Vector3.Lerp(((Component)this).transform.position, snapTo.position, Time.fixedDeltaTime * num * 3f); ((Component)this).transform.rotation = Quaternion.Slerp(((Component)this).transform.rotation, snapTo.rotation, Time.fixedDeltaTime * num * 2f); } if ((Object)(object)snapTo == (Object)null) { Object.Destroy((Object)(object)((Component)this).gameObject); } } } public class nvironmentRotate : MonoBehaviour { public GameObject rot; public Material skybox; public Material wave; private void FixedUpdate() { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) wave.SetFloat("_GGlobalRotation", 5f * rot.transform.eulerAngles.y); skybox.SetFloat("_Rotation", 180f - rot.transform.eulerAngles.y); } } public class DoorHingeDamagable : MonoBehaviour, IFVRDamageable { public bool oofImDead = false; public float MinDamageRequired = 100f; public float MaxDamageRequired = 200f; private float _damageRequired; private float _damageReceived; private void Start() { _damageRequired = Random.Range(MinDamageRequired, MaxDamageRequired); } public void Damage(Damage dam) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Invalid comparison between Unknown and I4 if ((int)dam.Class == 1 || (int)dam.Class == 2) { Vector3 val = dam.point + dam.hitNormal * Random.Range(0.002f, 0.008f); _damageReceived += dam.Dam_Blunt; if (_damageReceived >= _damageRequired) { oofImDead = true; } } } } public class DoorScript : MonoBehaviour { public GameObject dooritself; public DoorHingeDamagable hingeupper; public DoorHingeDamagable hingelower; public DoorHingeDamagable hingelock; public GameObject doorhandle; public HingeJoint jointhandle; public HingeJoint jointDoor; public JointLimits open; public JointLimits close; private void Start() { ((JointLimits)(ref open)).min = 0f; ((JointLimits)(ref open)).max = 180f; ((JointLimits)(ref close)).min = 0f; ((JointLimits)(ref close)).max = 0f; } private void Update() { //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: 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_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)jointDoor == (Object)null) { } if (((Object)(object)jointDoor != (Object)null && !hingeupper.oofImDead) || !hingelower.oofImDead) { if (!hingelock.oofImDead) { if (doorhandle.transform.localEulerAngles.y > 20f) { jointDoor.limits = open; } else if (doorhandle.transform.localEulerAngles.y < 20f) { if (dooritself.transform.localEulerAngles.z > 2.5f) { jointDoor.limits = open; } else { jointDoor.limits = close; } } } else { jointhandle.useMotor = false; jointDoor.limits = open; } } else if ((Object)(object)jointDoor != (Object)null && hingeupper.oofImDead && hingelower.oofImDead) { ((Joint)jointDoor).breakForce = 0f; ((Joint)jointDoor).breakTorque = 0f; } } } public class Ejection : MonoBehaviour { public Transform nose2; public GameObject gearlever; public GameObject seatobj1; public GameObject seatobj2; public KillAfter stick; public KillAfter throttle; public KillAfter towtrig; public KillAfter fuelingprobe; public GameObject jester; public GameObject canopybreak; public GameObject seat1ejt; public GameObject seat2ejt; public KillAfter killplane; public KillAfter killcanopy; public KillAfter killseat1; public KillAfter killseat2; public float canopyforce = 100f; public float seat1force = 75f; public float seat2force = 75f; public GameObject speedneedle; public Rigidbody parachuterb1; public Rigidbody parachuterb2; public GameObject ejectionhandle; public GameObject ejectionseat1; public GameObject ejectionseat2; public GameObject ejectionseatGeo1; public GameObject ejectionseatGeo2; public GameObject seatphys1; public GameObject seatphys2; public GameObject parachut1; public GameObject parachut2; public bool wearecrashing = false; public GameObject jestershout; public bool isejected = false; public GameObject vspeedneedle; public GameObject canopy; public bool seatsflied = false; public bool canopyflied = false; public Transform nose; public LayerMask lm; public float dangerrange = 10f; public float fuzetime = 10f; public bool rbadded = false; public bool rbadded1 = false; public bool rbadded2 = false; public bool rbadded3 = false; public bool rbadded4 = false; private void Start() { } private void Update() { //IL_0483: Unknown result type (might be due to invalid IL or missing references) //IL_0488: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_0368: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Unknown result type (might be due to invalid IL or missing references) //IL_03ea: Unknown result type (might be due to invalid IL or missing references) //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_038b: Unknown result type (might be due to invalid IL or missing references) //IL_0403: Unknown result type (might be due to invalid IL or missing references) //IL_040e: Unknown result type (might be due to invalid IL or missing references) //IL_041c: Unknown result type (might be due to invalid IL or missing references) //IL_03a4: Unknown result type (might be due to invalid IL or missing references) //IL_03af: Unknown result type (might be due to invalid IL or missing references) //IL_03bd: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_0436: Unknown result type (might be due to invalid IL or missing references) //IL_0441: Unknown result type (might be due to invalid IL or missing references) //IL_0446: Unknown result type (might be due to invalid IL or missing references) //IL_045a: Unknown result type (might be due to invalid IL or missing references) //IL_018a: 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_0199: Unknown result type (might be due to invalid IL or missing references) //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Unknown result type (might be due to invalid IL or missing references) if (wearecrashing) { ((Behaviour)killplane).enabled = true; ((Behaviour)stick).enabled = true; ((Behaviour)throttle).enabled = true; ((Behaviour)towtrig).enabled = true; ((Behaviour)fuelingprobe).enabled = true; jestershout.SetActive(true); if (!rbadded) { Rigidbody val = canopy.AddComponent(); if ((Object)(object)val == (Object)null) { } if ((Object)(object)val != (Object)null) { val.AddRelativeForce(new Vector3(0f, canopyforce, 0.05f * speedneedle.transform.localEulerAngles.y), (ForceMode)1); canopybreak.SetActive(true); } rbadded = true; } canopyflied = true; ((Behaviour)killcanopy).enabled = true; if (canopyflied = true && fuzetime >= 0f) { fuzetime -= 2f * Time.deltaTime; } if (fuzetime < 9f) { if (!rbadded1) { Rigidbody val2 = ejectionseat1.AddComponent(); if ((Object)(object)val2 == (Object)null) { } if ((Object)(object)val2 != (Object)null) { val2.AddRelativeForce(new Vector3(0f, seat1force, 0.05f * speedneedle.transform.localEulerAngles.y), (ForceMode)1); seat1ejt.SetActive(true); } rbadded1 = true; } ((Behaviour)killseat1).enabled = true; } if (fuzetime < 8f) { if (!rbadded2) { Rigidbody val3 = ejectionseat2.AddComponent(); if ((Object)(object)val3 == (Object)null) { } if ((Object)(object)val3 != (Object)null) { val3.AddRelativeForce(new Vector3(0f, seat2force, 0.05f * speedneedle.transform.localEulerAngles.y), (ForceMode)1); seat2ejt.SetActive(true); } rbadded2 = true; } ((Behaviour)killseat2).enabled = true; } if (fuzetime < 5f && !rbadded3) { ejectionseatGeo1.AddComponent(); rbadded3 = true; parachut1.SetActive(true); seatphys1.SetActive(true); seatobj1.SetActive(true); FixedJoint val4 = ejectionseat1.AddComponent(); ((Joint)val4).connectedBody = parachuterb1; } if (fuzetime < 4f && !rbadded4) { ejectionseatGeo2.AddComponent(); rbadded4 = true; parachut2.SetActive(true); seatphys2.SetActive(true); seatobj2.SetActive(true); FixedJoint val5 = ejectionseat2.AddComponent(); ((Joint)val5).connectedBody = parachuterb2; } } if (jester.activeInHierarchy) { RaycastHit val6 = default(RaycastHit); if (vspeedneedle.transform.localEulerAngles.y > 45f && vspeedneedle.transform.localEulerAngles.y < 171f && Physics.Raycast(nose.position, nose.forward, ref val6, dangerrange, LayerMask.op_Implicit(lm))) { wearecrashing = true; } if (gearlever.transform.localEulerAngles.x > 30f && Physics.Raycast(nose.position, nose.forward, ref val6, dangerrange, LayerMask.op_Implicit(lm)) && Physics.Raycast(nose2.position, -nose.up, ref val6, 0.4f * dangerrange, LayerMask.op_Implicit(lm))) { wearecrashing = true; } } if (ejectionhandle.transform.localEulerAngles.x > 45f) { wearecrashing = true; } } } public class ForceEject : MonoBehaviour { private void Start() { } private void FixedUpdate() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)Object.FindObjectOfType() != (Object)null) { Ejection ejection = Object.FindObjectOfType(); if (((Component)ejection).gameObject.transform.position.y < 5f) { ejection.wearecrashing = true; } } } } } public class GAircraft : MonoBehaviour { public GameObject ThrottleLever; } public class GWindBasic : MonoBehaviour, GWindInterface { public static GWindInterface windManager = null; public float biasSpeed = 1f; public float gust1Speed = 2f; public float gust1TimesPerSecond = 0.1f; public float gust2Speed = 2f; public float gust2TimesPerSecond = 0.03f; private float gust_t = 0f; private static Vector3 globalWindSpeed; private static Vector3 blowSource = Vector3.zero; private static float blowPeak = 0f; private static float blowAmmount = 0f; private static float blowDuration = 0f; private static float blowTime = 1f; private static float blowLastTime = 0f; private static float blowFrequency = 1f; private static float blowDistanceExponent = 1.5f; private float calcWindForce() { return biasSpeed + Mathf.Sin(gust_t * gust1TimesPerSecond) * (gust1Speed - biasSpeed) / 2f + (gust1Speed - biasSpeed) / 2f + Mathf.Sin(gust_t * gust2TimesPerSecond) * (gust2Speed - biasSpeed) / 2f + (gust2Speed - biasSpeed) / 2f; } private void Start() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) globalWindSpeed = ((Component)this).gameObject.transform.forward * calcWindForce(); windManager = this; } private void FixedUpdate() { //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) gust_t += Time.fixedDeltaTime; globalWindSpeed = ((Component)this).gameObject.transform.forward * calcWindForce(); } public Vector3 windAtImplementation(Vector3 position) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) return globalWindSpeed; } public static Vector3 windAt(Vector3 position) { //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: 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_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: 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_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: Unknown result type (might be due to invalid IL or missing references) float realtimeSinceStartup = Time.realtimeSinceStartup; if (realtimeSinceStartup > blowLastTime + Time.fixedDeltaTime) { if (blowDuration > 0f) { blowDuration -= realtimeSinceStartup - blowLastTime; blowAmmount = blowPeak * (blowDuration / blowTime) * Mathf.Cos(blowDuration / blowTime * blowFrequency); } else { blowAmmount = 0f; } blowLastTime = realtimeSinceStartup; } Vector3 val = position - blowSource; val = blowAmmount * val / Mathf.Pow(((Vector3)(ref val)).magnitude, blowDistanceExponent); if (windManager != null) { return windManager.windAtImplementation(position) + val; } return val; } public static bool blowSet(Vector3 blowSource, float blowAmmount, float blowDuration, float blowFrequency, float blowDistanceExponent) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Unknown result type (might be due to invalid IL or missing references) GWindBasic.blowSource = blowSource; blowPeak = (GWindBasic.blowAmmount = blowAmmount); blowTime = (GWindBasic.blowDuration = blowDuration); GWindBasic.blowFrequency = blowFrequency; GWindBasic.blowDistanceExponent = blowDistanceExponent; return true; } } public interface GWindInterface { Vector3 windAtImplementation(Vector3 position); } namespace JerryComponent { [RequireComponent(typeof(AudioSource))] public class SoundPlay : MonoBehaviour { [Tooltip("List of audio clips to play.")] public AudioClip[] waveFile; [Tooltip("Stops the currently playing clip in the audioSource. Otherwise clips will overlap/mix.")] public bool stopOnPlay; [Tooltip("After the audio clip finishes playing, disable the game object the sound is on.")] public bool disableOnEnd; [Tooltip("Loop the sound after the wave file variation has been chosen.")] public bool looping; [Tooltip("If the sound is looping and updating it's position every frame, stop the sound at the end of the wav/clip length. ")] public bool stopOnEnd; [Tooltip("Start a wave file playing on awake, but after a delay.")] public bool playOnAwakeWithDelay; [Header("Random Volume")] public bool useRandomVolume = true; [Tooltip("Minimum volume that will be used when randomly set.")] [Range(0f, 1f)] public float volMin = 1f; [Tooltip("Maximum volume that will be used when randomly set.")] [Range(0f, 1f)] public float volMax = 1f; [Header("Random Pitch")] [Tooltip("Use min and max random pitch levels when playing sounds.")] public bool useRandomPitch = true; [Tooltip("Minimum pitch that will be used when randomly set.")] [Range(-3f, 3f)] public float pitchMin = 1f; [Tooltip("Maximum pitch that will be used when randomly set.")] [Range(-3f, 3f)] public float pitchMax = 1f; [Header("Random Time")] [Tooltip("Use Retrigger Time to repeat the sound within a time range")] public bool useRetriggerTime; [Tooltip("Inital time before the first repetion starts")] [Range(0f, 360f)] public float timeInitial; [Tooltip("Minimum time that will pass before the sound is retriggered")] [Range(0f, 360f)] public float timeMin; [Tooltip("Maximum pitch that will be used when randomly set.")] [Range(0f, 360f)] public float timeMax; [Header("Random Silence")] [Tooltip("Use Retrigger Time to repeat the sound within a time range")] public bool useRandomSilence; [Tooltip("Percent chance that the wave file will not play")] [Range(0f, 1f)] public float percentToNotPlay; [Header("Delay Time")] [Tooltip("Time to offset playback of sound")] public float delayOffsetTime; [NonSerialized] public AudioSource audioSource; [NonSerialized] public AudioClip clip; public void Awake() { audioSource = ((Component)this).GetComponent(); clip = audioSource.clip; if (audioSource.playOnAwake) { if (useRetriggerTime) { ((MonoBehaviour)this).InvokeRepeating("Play", timeInitial, Random.Range(timeMin, timeMax)); } else { Play(); } } else if (!audioSource.playOnAwake && playOnAwakeWithDelay) { PlayWithDelay(delayOffsetTime); if (useRetriggerTime) { ((MonoBehaviour)this).InvokeRepeating("Play", timeInitial, Random.Range(timeMin, timeMax)); } } else if (audioSource.playOnAwake && playOnAwakeWithDelay) { PlayWithDelay(delayOffsetTime); if (useRetriggerTime) { ((MonoBehaviour)this).InvokeRepeating("Play", timeInitial, Random.Range(timeMin, timeMax)); } } } public void Play() { if (looping) { PlayLooping(); } else { PlayOneShotSound(); } } public void PlayWithDelay(float delayTime) { if (looping) { ((MonoBehaviour)this).Invoke("PlayLooping", delayTime); } else { ((MonoBehaviour)this).Invoke("PlayOneShotSound", delayTime); } } public AudioClip PlayOneShotSound() { if (!((Behaviour)audioSource).isActiveAndEnabled) { return null; } SetAudioSource(); if (stopOnPlay) { audioSource.Stop(); } if (disableOnEnd) { ((MonoBehaviour)this).Invoke("Disable", clip.length); } audioSource.PlayOneShot(clip); return clip; } public AudioClip PlayLooping() { SetAudioSource(); if (!audioSource.loop) { audioSource.loop = true; } audioSource.Play(); if (stopOnEnd) { ((MonoBehaviour)this).Invoke("Stop", audioSource.clip.length); } return clip; } public void Disable() { ((Component)this).gameObject.SetActive(false); } public void Stop() { audioSource.Stop(); } public void SetAudioSource() { if (useRandomVolume) { audioSource.volume = Random.Range(volMin, volMax); if (useRandomSilence && (float)Random.Range(0, 1) < percentToNotPlay) { audioSource.volume = 0f; } } if (useRandomPitch) { audioSource.pitch = Random.Range(pitchMin, pitchMax); } if (waveFile.Length > 0) { audioSource.clip = waveFile[Random.Range(0, waveFile.Length)]; clip = audioSource.clip; } } } public class deckcrew : MonoBehaviour { [NonSerialized] public GameObject catGO; public Collider col; public Catapult cat; public NavMeshAgent yellow1; public NavMeshAgent yellow2; public NavMeshAgent green1; public NavMeshAgent green2; public NavMeshAgent white1; public NavMeshAgent white2; public GameObject yellow1geo; public GameObject yellow2geo; public GameObject green1geo; public GameObject green2geo; public GameObject white1geo; public GameObject white2geo; public GameObject y1handL; public GameObject y1handR; public Transform y1handLIdle; public Transform y1handLUp; public Transform y1handLDown; public Transform y1handLy2; public Transform y1handLg1; public Transform y1handLg2; public Transform y1handLw1; public Transform y1handLw2; public Transform y1handLPwrL; public Transform y1handLPwrR; public Transform y1handLShoot; public Transform y1handRIdle; public Transform y1handRBack; public Vector3 y1handLref; public Vector3 y1handRref; public bool y1handLDone = false; public bool y1handRDone = false; public GameObject y2handL; public GameObject y2handR; public Transform y2handLIdle; public Transform y2handLUPOut; public Transform y2handLUPIn; public Transform y2handLOut; public Transform y2handRIdle; public Transform y2handRUPOut; public Transform y2handRUPIn; public Transform y2handROut; public Transform y2handLRdy; public Transform y2handRRdy; public Vector3 y2handLref; public Vector3 y2handRref; public bool y2handLDone = false; public bool y2handRDone = false; public GameObject g1handL; public GameObject g1handR; public Transform g1handLIdle; public Transform g1handLRdy; public Transform g1handRIdle; public Transform g1handRRdy; public Vector3 g1handLref; public Vector3 g1handRref; public bool g1handLDone = false; public bool g1handRDone = false; public GameObject g2handL; public GameObject g2handR; public Transform g2handLIdle; public Transform g2handLRdy; public Transform g2handRIdle; public Transform g2handRRdy; public GameObject bar; public GameObject baroncat; public Vector3 g2handLref; public Vector3 g2handRref; public bool g2handLDone = false; public bool g2handRDone = false; public GameObject w1handL; public GameObject w1handR; public Transform w1handLIdle; public Transform w1handLRdy; public Transform w1handRIdle; public Transform w1handRRdy; public Vector3 w1handLref; public Vector3 w1handRref; public bool w1handLDone = false; public bool w1handRDone = false; public GameObject w2handL; public GameObject w2handR; public Transform w2handLIdle; public Transform w2handLRdy; public Transform w2handRIdle; public Transform w2handRRdy; public Vector3 w2handLref; public Vector3 w2handRref; public bool w2handLDone = false; public bool w2handRDone = false; public Vector3 y1ref; public Vector3 y2ref; public Vector3 g1ref; public Vector3 g2ref; public Vector3 w1ref; public Vector3 w2ref; public Vector3 y1refr; public Vector3 y2refr; public Vector3 g1refr; public Vector3 g2refr; public Vector3 w1refr; public Vector3 w2refr; public Transform y1back; public Transform y1go; public Transform y2back; public Transform y2go; public Transform g1back; public Transform g1go; public Transform g2back; public Transform g2go; public Transform w1back; public Transform w1go; public Transform w2back; public Transform w2go; public bool inrange = false; public bool y2out = false; public bool g1out = false; public bool g2out = false; public bool w1out = false; public bool w2out = false; public bool crewAllRDY = false; public string cat1; public string cat2; public bool shooter = false; public bool ready = false; public float cd = 2f; public saluteblub saluteblub; private void OnTriggerEnter(Collider other) { if (((Object)((Component)other).gameObject).name == cat1 || ((Object)((Component)other).gameObject).name == cat2) { catGO = ((Component)other).gameObject; inrange = true; col.enabled = false; } } private void FixedUpdate() { //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Unknown result type (might be due to invalid IL or missing references) //IL_0166: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_024b: 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_026b: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_02a2: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02ed: Unknown result type (might be due to invalid IL or missing references) //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_031d: Unknown result type (might be due to invalid IL or missing references) //IL_0328: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_0358: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_0373: Unknown result type (might be due to invalid IL or missing references) //IL_0393: Unknown result type (might be due to invalid IL or missing references) //IL_039e: 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_03ce: Unknown result type (might be due to invalid IL or missing references) //IL_03d9: Unknown result type (might be due to invalid IL or missing references) //IL_03e9: Unknown result type (might be due to invalid IL or missing references) //IL_0409: Unknown result type (might be due to invalid IL or missing references) //IL_0414: Unknown result type (might be due to invalid IL or missing references) //IL_0424: Unknown result type (might be due to invalid IL or missing references) //IL_0444: Unknown result type (might be due to invalid IL or missing references) //IL_044f: Unknown result type (might be due to invalid IL or missing references) //IL_045f: Unknown result type (might be due to invalid IL or missing references) //IL_047f: Unknown result type (might be due to invalid IL or missing references) //IL_048a: Unknown result type (might be due to invalid IL or missing references) //IL_049a: Unknown result type (might be due to invalid IL or missing references) //IL_04ba: Unknown result type (might be due to invalid IL or missing references) //IL_04c5: Unknown result type (might be due to invalid IL or missing references) //IL_04d5: Unknown result type (might be due to invalid IL or missing references) //IL_04f5: Unknown result type (might be due to invalid IL or missing references) //IL_0500: Unknown result type (might be due to invalid IL or missing references) //IL_0510: Unknown result type (might be due to invalid IL or missing references) //IL_0530: Unknown result type (might be due to invalid IL or missing references) //IL_053b: Unknown result type (might be due to invalid IL or missing references) //IL_054b: Unknown result type (might be due to invalid IL or missing references) //IL_056b: Unknown result type (might be due to invalid IL or missing references) //IL_0576: Unknown result type (might be due to invalid IL or missing references) //IL_0586: Unknown result type (might be due to invalid IL or missing references) //IL_05a6: Unknown result type (might be due to invalid IL or missing references) //IL_05ba: Unknown result type (might be due to invalid IL or missing references) //IL_05ca: Unknown result type (might be due to invalid IL or missing references) //IL_05ea: Unknown result type (might be due to invalid IL or missing references) //IL_05fe: Unknown result type (might be due to invalid IL or missing references) //IL_060e: Unknown result type (might be due to invalid IL or missing references) //IL_062e: Unknown result type (might be due to invalid IL or missing references) //IL_0642: Unknown result type (might be due to invalid IL or missing references) //IL_0652: Unknown result type (might be due to invalid IL or missing references) //IL_0672: Unknown result type (might be due to invalid IL or missing references) //IL_0686: Unknown result type (might be due to invalid IL or missing references) //IL_0696: Unknown result type (might be due to invalid IL or missing references) //IL_06b6: 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_06da: Unknown result type (might be due to invalid IL or missing references) //IL_06fa: Unknown result type (might be due to invalid IL or missing references) //IL_070e: Unknown result type (might be due to invalid IL or missing references) //IL_071e: Unknown result type (might be due to invalid IL or missing references) //IL_0750: Unknown result type (might be due to invalid IL or missing references) //IL_075b: Unknown result type (might be due to invalid IL or missing references) //IL_0788: Unknown result type (might be due to invalid IL or missing references) //IL_0793: Unknown result type (might be due to invalid IL or missing references) //IL_07c0: Unknown result type (might be due to invalid IL or missing references) //IL_07cb: Unknown result type (might be due to invalid IL or missing references) //IL_07f8: Unknown result type (might be due to invalid IL or missing references) //IL_0803: Unknown result type (might be due to invalid IL or missing references) //IL_0830: Unknown result type (might be due to invalid IL or missing references) //IL_083b: Unknown result type (might be due to invalid IL or missing references) //IL_0868: Unknown result type (might be due to invalid IL or missing references) //IL_0873: Unknown result type (might be due to invalid IL or missing references) //IL_08a0: Unknown result type (might be due to invalid IL or missing references) //IL_08ab: Unknown result type (might be due to invalid IL or missing references) //IL_08d8: Unknown result type (might be due to invalid IL or missing references) //IL_08e3: 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_091b: Unknown result type (might be due to invalid IL or missing references) //IL_0948: Unknown result type (might be due to invalid IL or missing references) //IL_0953: Unknown result type (might be due to invalid IL or missing references) //IL_099e: Unknown result type (might be due to invalid IL or missing references) //IL_09b2: Unknown result type (might be due to invalid IL or missing references) //IL_09c2: Unknown result type (might be due to invalid IL or missing references) //IL_09e2: Unknown result type (might be due to invalid IL or missing references) //IL_09f6: Unknown result type (might be due to invalid IL or missing references) //IL_0a06: Unknown result type (might be due to invalid IL or missing references) //IL_0a26: 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_0a4a: Unknown result type (might be due to invalid IL or missing references) //IL_0a6a: Unknown result type (might be due to invalid IL or missing references) //IL_0a7e: Unknown result type (might be due to invalid IL or missing references) //IL_0a8e: Unknown result type (might be due to invalid IL or missing references) //IL_0aae: Unknown result type (might be due to invalid IL or missing references) //IL_0ac2: Unknown result type (might be due to invalid IL or missing references) //IL_0ad2: Unknown result type (might be due to invalid IL or missing references) //IL_0af2: Unknown result type (might be due to invalid IL or missing references) //IL_0b06: Unknown result type (might be due to invalid IL or missing references) //IL_0b16: Unknown result type (might be due to invalid IL or missing references) //IL_2f4c: Unknown result type (might be due to invalid IL or missing references) //IL_2f6d: Unknown result type (might be due to invalid IL or missing references) //IL_2f7d: Unknown result type (might be due to invalid IL or missing references) //IL_2f8d: Unknown result type (might be due to invalid IL or missing references) //IL_2fa3: Unknown result type (might be due to invalid IL or missing references) //IL_2fc4: Unknown result type (might be due to invalid IL or missing references) //IL_2fd4: Unknown result type (might be due to invalid IL or missing references) //IL_2fe4: Unknown result type (might be due to invalid IL or missing references) //IL_2ffa: Unknown result type (might be due to invalid IL or missing references) //IL_301b: Unknown result type (might be due to invalid IL or missing references) //IL_302b: Unknown result type (might be due to invalid IL or missing references) //IL_303b: Unknown result type (might be due to invalid IL or missing references) //IL_3051: Unknown result type (might be due to invalid IL or missing references) //IL_3072: Unknown result type (might be due to invalid IL or missing references) //IL_3082: Unknown result type (might be due to invalid IL or missing references) //IL_3092: Unknown result type (might be due to invalid IL or missing references) //IL_30a8: Unknown result type (might be due to invalid IL or missing references) //IL_30c9: Unknown result type (might be due to invalid IL or missing references) //IL_30d9: Unknown result type (might be due to invalid IL or missing references) //IL_30e9: Unknown result type (might be due to invalid IL or missing references) //IL_30ff: Unknown result type (might be due to invalid IL or missing references) //IL_3120: Unknown result type (might be due to invalid IL or missing references) //IL_3130: Unknown result type (might be due to invalid IL or missing references) //IL_3140: Unknown result type (might be due to invalid IL or missing references) //IL_3160: Unknown result type (might be due to invalid IL or missing references) //IL_316b: Unknown result type (might be due to invalid IL or missing references) //IL_317b: Unknown result type (might be due to invalid IL or missing references) //IL_319b: Unknown result type (might be due to invalid IL or missing references) //IL_31a6: Unknown result type (might be due to invalid IL or missing references) //IL_31b6: Unknown result type (might be due to invalid IL or missing references) //IL_31d6: Unknown result type (might be due to invalid IL or missing references) //IL_31e1: Unknown result type (might be due to invalid IL or missing references) //IL_31f1: Unknown result type (might be due to invalid IL or missing references) //IL_3211: Unknown result type (might be due to invalid IL or missing references) //IL_321c: Unknown result type (might be due to invalid IL or missing references) //IL_322c: Unknown result type (might be due to invalid IL or missing references) //IL_324c: Unknown result type (might be due to invalid IL or missing references) //IL_3257: Unknown result type (might be due to invalid IL or missing references) //IL_3267: Unknown result type (might be due to invalid IL or missing references) //IL_3287: Unknown result type (might be due to invalid IL or missing references) //IL_3292: Unknown result type (might be due to invalid IL or missing references) //IL_32a2: Unknown result type (might be due to invalid IL or missing references) //IL_32c2: Unknown result type (might be due to invalid IL or missing references) //IL_32cd: Unknown result type (might be due to invalid IL or missing references) //IL_32dd: Unknown result type (might be due to invalid IL or missing references) //IL_32fd: Unknown result type (might be due to invalid IL or missing references) //IL_3308: Unknown result type (might be due to invalid IL or missing references) //IL_3318: Unknown result type (might be due to invalid IL or missing references) //IL_3338: Unknown result type (might be due to invalid IL or missing references) //IL_3343: Unknown result type (might be due to invalid IL or missing references) //IL_3353: Unknown result type (might be due to invalid IL or missing references) //IL_3373: Unknown result type (might be due to invalid IL or missing references) //IL_337e: Unknown result type (might be due to invalid IL or missing references) //IL_338e: Unknown result type (might be due to invalid IL or missing references) //IL_33ae: Unknown result type (might be due to invalid IL or missing references) //IL_33b9: Unknown result type (might be due to invalid IL or missing references) //IL_33c9: Unknown result type (might be due to invalid IL or missing references) //IL_33e9: Unknown result type (might be due to invalid IL or missing references) //IL_33f4: Unknown result type (might be due to invalid IL or missing references) //IL_3404: Unknown result type (might be due to invalid IL or missing references) //IL_3424: Unknown result type (might be due to invalid IL or missing references) //IL_3438: Unknown result type (might be due to invalid IL or missing references) //IL_3448: Unknown result type (might be due to invalid IL or missing references) //IL_3468: Unknown result type (might be due to invalid IL or missing references) //IL_347c: Unknown result type (might be due to invalid IL or missing references) //IL_348c: Unknown result type (might be due to invalid IL or missing references) //IL_34ac: Unknown result type (might be due to invalid IL or missing references) //IL_34c0: Unknown result type (might be due to invalid IL or missing references) //IL_34d0: 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_3514: Unknown result type (might be due to invalid IL or missing references) //IL_3534: Unknown result type (might be due to invalid IL or missing references) //IL_3548: Unknown result type (might be due to invalid IL or missing references) //IL_3558: Unknown result type (might be due to invalid IL or missing references) //IL_3578: Unknown result type (might be due to invalid IL or missing references) //IL_358c: Unknown result type (might be due to invalid IL or missing references) //IL_359c: Unknown result type (might be due to invalid IL or missing references) //IL_282a: Unknown result type (might be due to invalid IL or missing references) //IL_284b: Unknown result type (might be due to invalid IL or missing references) //IL_285b: Unknown result type (might be due to invalid IL or missing references) //IL_286b: Unknown result type (might be due to invalid IL or missing references) //IL_2881: Unknown result type (might be due to invalid IL or missing references) //IL_28a2: Unknown result type (might be due to invalid IL or missing references) //IL_28b2: Unknown result type (might be due to invalid IL or missing references) //IL_28c2: 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_28f9: Unknown result type (might be due to invalid IL or missing references) //IL_2909: Unknown result type (might be due to invalid IL or missing references) //IL_2919: Unknown result type (might be due to invalid IL or missing references) //IL_292f: Unknown result type (might be due to invalid IL or missing references) //IL_2950: Unknown result type (might be due to invalid IL or missing references) //IL_2960: Unknown result type (might be due to invalid IL or missing references) //IL_2970: Unknown result type (might be due to invalid IL or missing references) //IL_2986: Unknown result type (might be due to invalid IL or missing references) //IL_29a7: Unknown result type (might be due to invalid IL or missing references) //IL_29b7: Unknown result type (might be due to invalid IL or missing references) //IL_29c7: Unknown result type (might be due to invalid IL or missing references) //IL_29dd: Unknown result type (might be due to invalid IL or missing references) //IL_29fe: Unknown result type (might be due to invalid IL or missing references) //IL_2a0e: Unknown result type (might be due to invalid IL or missing references) //IL_2a1e: Unknown result type (might be due to invalid IL or missing references) //IL_2a3e: Unknown result type (might be due to invalid IL or missing references) //IL_2a49: Unknown result type (might be due to invalid IL or missing references) //IL_2a59: Unknown result type (might be due to invalid IL or missing references) //IL_2a79: Unknown result type (might be due to invalid IL or missing references) //IL_2a84: Unknown result type (might be due to invalid IL or missing references) //IL_2a94: Unknown result type (might be due to invalid IL or missing references) //IL_2ab4: Unknown result type (might be due to invalid IL or missing references) //IL_2abf: Unknown result type (might be due to invalid IL or missing references) //IL_2acf: Unknown result type (might be due to invalid IL or missing references) //IL_2aef: Unknown result type (might be due to invalid IL or missing references) //IL_2afa: Unknown result type (might be due to invalid IL or missing references) //IL_2b0a: Unknown result type (might be due to invalid IL or missing references) //IL_2b2a: Unknown result type (might be due to invalid IL or missing references) //IL_2b35: Unknown result type (might be due to invalid IL or missing references) //IL_2b45: Unknown result type (might be due to invalid IL or missing references) //IL_2b65: Unknown result type (might be due to invalid IL or missing references) //IL_2b70: Unknown result type (might be due to invalid IL or missing references) //IL_2b80: Unknown result type (might be due to invalid IL or missing references) //IL_2ba0: Unknown result type (might be due to invalid IL or missing references) //IL_2bab: Unknown result type (might be due to invalid IL or missing references) //IL_2bbb: Unknown result type (might be due to invalid IL or missing references) //IL_2bdb: Unknown result type (might be due to invalid IL or missing references) //IL_2be6: Unknown result type (might be due to invalid IL or missing references) //IL_2bf6: Unknown result type (might be due to invalid IL or missing references) //IL_2c16: Unknown result type (might be due to invalid IL or missing references) //IL_2c21: Unknown result type (might be due to invalid IL or missing references) //IL_2c31: Unknown result type (might be due to invalid IL or missing references) //IL_2c51: Unknown result type (might be due to invalid IL or missing references) //IL_2c5c: Unknown result type (might be due to invalid IL or missing references) //IL_2c6c: Unknown result type (might be due to invalid IL or missing references) //IL_2c8c: Unknown result type (might be due to invalid IL or missing references) //IL_2c97: Unknown result type (might be due to invalid IL or missing references) //IL_2ca7: Unknown result type (might be due to invalid IL or missing references) //IL_2cc7: Unknown result type (might be due to invalid IL or missing references) //IL_2cd2: Unknown result type (might be due to invalid IL or missing references) //IL_2ce2: Unknown result type (might be due to invalid IL or missing references) //IL_2d02: Unknown result type (might be due to invalid IL or missing references) //IL_2d16: Unknown result type (might be due to invalid IL or missing references) //IL_2d26: Unknown result type (might be due to invalid IL or missing references) //IL_2d46: Unknown result type (might be due to invalid IL or missing references) //IL_2d5a: Unknown result type (might be due to invalid IL or missing references) //IL_2d6a: Unknown result type (might be due to invalid IL or missing references) //IL_2d8a: Unknown result type (might be due to invalid IL or missing references) //IL_2d9e: Unknown result type (might be due to invalid IL or missing references) //IL_2dae: Unknown result type (might be due to invalid IL or missing references) //IL_2dce: Unknown result type (might be due to invalid IL or missing references) //IL_2de2: Unknown result type (might be due to invalid IL or missing references) //IL_2df2: Unknown result type (might be due to invalid IL or missing references) //IL_2e12: Unknown result type (might be due to invalid IL or missing references) //IL_2e26: Unknown result type (might be due to invalid IL or missing references) //IL_2e36: Unknown result type (might be due to invalid IL or missing references) //IL_2e56: Unknown result type (might be due to invalid IL or missing references) //IL_2e6a: Unknown result type (might be due to invalid IL or missing references) //IL_2e7a: Unknown result type (might be due to invalid IL or missing references) //IL_0b6c: Unknown result type (might be due to invalid IL or missing references) //IL_0b77: Unknown result type (might be due to invalid IL or missing references) //IL_0b87: Unknown result type (might be due to invalid IL or missing references) //IL_0ba7: 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_0bc2: Unknown result type (might be due to invalid IL or missing references) //IL_0be2: Unknown result type (might be due to invalid IL or missing references) //IL_0bed: Unknown result type (might be due to invalid IL or missing references) //IL_0bfd: Unknown result type (might be due to invalid IL or missing references) //IL_0c1d: 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_0c38: Unknown result type (might be due to invalid IL or missing references) //IL_0c58: Unknown result type (might be due to invalid IL or missing references) //IL_0c63: Unknown result type (might be due to invalid IL or missing references) //IL_0c73: Unknown result type (might be due to invalid IL or missing references) //IL_0c93: Unknown result type (might be due to invalid IL or missing references) //IL_0c9e: Unknown result type (might be due to invalid IL or missing references) //IL_0cae: Unknown result type (might be due to invalid IL or missing references) //IL_0cce: Unknown result type (might be due to invalid IL or missing references) //IL_0cd9: Unknown result type (might be due to invalid IL or missing references) //IL_0ce9: Unknown result type (might be due to invalid IL or missing references) //IL_0d09: Unknown result type (might be due to invalid IL or missing references) //IL_0d14: Unknown result type (might be due to invalid IL or missing references) //IL_0d24: Unknown result type (might be due to invalid IL or missing references) //IL_0d44: Unknown result type (might be due to invalid IL or missing references) //IL_0d4f: Unknown result type (might be due to invalid IL or missing references) //IL_0d5f: Unknown result type (might be due to invalid IL or missing references) //IL_0d7f: Unknown result type (might be due to invalid IL or missing references) //IL_0d8a: Unknown result type (might be due to invalid IL or missing references) //IL_0d9a: Unknown result type (might be due to invalid IL or missing references) //IL_0dba: Unknown result type (might be due to invalid IL or missing references) //IL_0dc5: Unknown result type (might be due to invalid IL or missing references) //IL_0dd5: Unknown result type (might be due to invalid IL or missing references) //IL_0df5: Unknown result type (might be due to invalid IL or missing references) //IL_0e00: Unknown result type (might be due to invalid IL or missing references) //IL_0e10: Unknown result type (might be due to invalid IL or missing references) //IL_0e26: Unknown result type (might be due to invalid IL or missing references) //IL_0e47: Unknown result type (might be due to invalid IL or missing references) //IL_0e57: Unknown result type (might be due to invalid IL or missing references) //IL_0e67: Unknown result type (might be due to invalid IL or missing references) //IL_0e7d: Unknown result type (might be due to invalid IL or missing references) //IL_0e9e: Unknown result type (might be due to invalid IL or missing references) //IL_0eae: Unknown result type (might be due to invalid IL or missing references) //IL_0ebe: Unknown result type (might be due to invalid IL or missing references) //IL_0ed4: Unknown result type (might be due to invalid IL or missing references) //IL_0ef5: Unknown result type (might be due to invalid IL or missing references) //IL_0f05: Unknown result type (might be due to invalid IL or missing references) //IL_0f15: Unknown result type (might be due to invalid IL or missing references) //IL_0f2b: Unknown result type (might be due to invalid IL or missing references) //IL_0f4c: Unknown result type (might be due to invalid IL or missing references) //IL_0f5c: Unknown result type (might be due to invalid IL or missing references) //IL_0f6c: Unknown result type (might be due to invalid IL or missing references) //IL_0f82: Unknown result type (might be due to invalid IL or missing references) //IL_0fa3: Unknown result type (might be due to invalid IL or missing references) //IL_0fb3: Unknown result type (might be due to invalid IL or missing references) //IL_0fc3: Unknown result type (might be due to invalid IL or missing references) //IL_0fd9: Unknown result type (might be due to invalid IL or missing references) //IL_0ffa: Unknown result type (might be due to invalid IL or missing references) //IL_100a: Unknown result type (might be due to invalid IL or missing references) //IL_101a: Unknown result type (might be due to invalid IL or missing references) //IL_15be: Unknown result type (might be due to invalid IL or missing references) //IL_15c9: Unknown result type (might be due to invalid IL or missing references) //IL_15d9: Unknown result type (might be due to invalid IL or missing references) //IL_1600: Unknown result type (might be due to invalid IL or missing references) //IL_160b: Unknown result type (might be due to invalid IL or missing references) //IL_161b: Unknown result type (might be due to invalid IL or missing references) //IL_1638: Unknown result type (might be due to invalid IL or missing references) //IL_1659: Unknown result type (might be due to invalid IL or missing references) //IL_1669: Unknown result type (might be due to invalid IL or missing references) //IL_1679: Unknown result type (might be due to invalid IL or missing references) //IL_168f: Unknown result type (might be due to invalid IL or missing references) //IL_16b0: Unknown result type (might be due to invalid IL or missing references) //IL_16c0: Unknown result type (might be due to invalid IL or missing references) //IL_16d0: Unknown result type (might be due to invalid IL or missing references) //IL_16e6: Unknown result type (might be due to invalid IL or missing references) //IL_1707: Unknown result type (might be due to invalid IL or missing references) //IL_1717: 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_173d: Unknown result type (might be due to invalid IL or missing references) //IL_175e: Unknown result type (might be due to invalid IL or missing references) //IL_176e: 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_1794: Unknown result type (might be due to invalid IL or missing references) //IL_17b5: Unknown result type (might be due to invalid IL or missing references) //IL_17c5: Unknown result type (might be due to invalid IL or missing references) //IL_17d5: Unknown result type (might be due to invalid IL or missing references) //IL_17eb: Unknown result type (might be due to invalid IL or missing references) //IL_180c: Unknown result type (might be due to invalid IL or missing references) //IL_181c: Unknown result type (might be due to invalid IL or missing references) //IL_182c: Unknown result type (might be due to invalid IL or missing references) //IL_1041: Unknown result type (might be due to invalid IL or missing references) //IL_1046: Unknown result type (might be due to invalid IL or missing references) //IL_1059: Unknown result type (might be due to invalid IL or missing references) //IL_105e: Unknown result type (might be due to invalid IL or missing references) //IL_12aa: Unknown result type (might be due to invalid IL or missing references) //IL_12af: Unknown result type (might be due to invalid IL or missing references) //IL_12c3: Unknown result type (might be due to invalid IL or missing references) //IL_12c8: Unknown result type (might be due to invalid IL or missing references) //IL_107c: Unknown result type (might be due to invalid IL or missing references) //IL_1081: Unknown result type (might be due to invalid IL or missing references) //IL_1094: Unknown result type (might be due to invalid IL or missing references) //IL_1099: Unknown result type (might be due to invalid IL or missing references) //IL_141f: Unknown result type (might be due to invalid IL or missing references) //IL_1424: Unknown result type (might be due to invalid IL or missing references) //IL_1438: Unknown result type (might be due to invalid IL or missing references) //IL_143d: Unknown result type (might be due to invalid IL or missing references) //IL_1ab9: Unknown result type (might be due to invalid IL or missing references) //IL_1ac4: Unknown result type (might be due to invalid IL or missing references) //IL_1ad4: Unknown result type (might be due to invalid IL or missing references) //IL_1af4: Unknown result type (might be due to invalid IL or missing references) //IL_1aff: Unknown result type (might be due to invalid IL or missing references) //IL_1b0f: Unknown result type (might be due to invalid IL or missing references) //IL_1b2f: Unknown result type (might be due to invalid IL or missing references) //IL_1b3a: Unknown result type (might be due to invalid IL or missing references) //IL_1b4a: Unknown result type (might be due to invalid IL or missing references) //IL_1b6a: Unknown result type (might be due to invalid IL or missing references) //IL_1b75: Unknown result type (might be due to invalid IL or missing references) //IL_1b85: Unknown result type (might be due to invalid IL or missing references) //IL_1ba5: Unknown result type (might be due to invalid IL or missing references) //IL_1bb0: Unknown result type (might be due to invalid IL or missing references) //IL_1bc0: Unknown result type (might be due to invalid IL or missing references) //IL_1be0: Unknown result type (might be due to invalid IL or missing references) //IL_1beb: Unknown result type (might be due to invalid IL or missing references) //IL_1bfb: Unknown result type (might be due to invalid IL or missing references) //IL_1c1b: Unknown result type (might be due to invalid IL or missing references) //IL_1c26: Unknown result type (might be due to invalid IL or missing references) //IL_1c36: Unknown result type (might be due to invalid IL or missing references) //IL_1c56: Unknown result type (might be due to invalid IL or missing references) //IL_1c61: Unknown result type (might be due to invalid IL or missing references) //IL_1c71: Unknown result type (might be due to invalid IL or missing references) //IL_1c91: Unknown result type (might be due to invalid IL or missing references) //IL_1c9c: Unknown result type (might be due to invalid IL or missing references) //IL_1cac: Unknown result type (might be due to invalid IL or missing references) //IL_1ccc: Unknown result type (might be due to invalid IL or missing references) //IL_1cd7: Unknown result type (might be due to invalid IL or missing references) //IL_1ce7: Unknown result type (might be due to invalid IL or missing references) //IL_1cfd: Unknown result type (might be due to invalid IL or missing references) //IL_1d1e: Unknown result type (might be due to invalid IL or missing references) //IL_1d2e: Unknown result type (might be due to invalid IL or missing references) //IL_1d3e: Unknown result type (might be due to invalid IL or missing references) //IL_1d54: Unknown result type (might be due to invalid IL or missing references) //IL_1d75: Unknown result type (might be due to invalid IL or missing references) //IL_1d85: Unknown result type (might be due to invalid IL or missing references) //IL_1d95: 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_1dcc: Unknown result type (might be due to invalid IL or missing references) //IL_1ddc: Unknown result type (might be due to invalid IL or missing references) //IL_1dec: Unknown result type (might be due to invalid IL or missing references) //IL_1e02: Unknown result type (might be due to invalid IL or missing references) //IL_1e23: Unknown result type (might be due to invalid IL or missing references) //IL_1e33: Unknown result type (might be due to invalid IL or missing references) //IL_1e43: 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_1e7a: Unknown result type (might be due to invalid IL or missing references) //IL_1e8a: Unknown result type (might be due to invalid IL or missing references) //IL_1e9a: Unknown result type (might be due to invalid IL or missing references) //IL_1eb0: Unknown result type (might be due to invalid IL or missing references) //IL_1ed1: Unknown result type (might be due to invalid IL or missing references) //IL_1ee1: Unknown result type (might be due to invalid IL or missing references) //IL_1ef1: Unknown result type (might be due to invalid IL or missing references) //IL_1468: Unknown result type (might be due to invalid IL or missing references) //IL_1473: Unknown result type (might be due to invalid IL or missing references) //IL_1483: Unknown result type (might be due to invalid IL or missing references) //IL_1330: Unknown result type (might be due to invalid IL or missing references) //IL_133b: Unknown result type (might be due to invalid IL or missing references) //IL_12ff: Unknown result type (might be due to invalid IL or missing references) //IL_130a: Unknown result type (might be due to invalid IL or missing references) //IL_131a: Unknown result type (might be due to invalid IL or missing references) //IL_1100: Unknown result type (might be due to invalid IL or missing references) //IL_110b: 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_10da: Unknown result type (might be due to invalid IL or missing references) //IL_10ea: Unknown result type (might be due to invalid IL or missing references) //IL_1f4e: Unknown result type (might be due to invalid IL or missing references) //IL_1f59: Unknown result type (might be due to invalid IL or missing references) //IL_1f1d: Unknown result type (might be due to invalid IL or missing references) //IL_1f28: Unknown result type (might be due to invalid IL or missing references) //IL_1f38: Unknown result type (might be due to invalid IL or missing references) //IL_1888: Unknown result type (might be due to invalid IL or missing references) //IL_18a9: 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_18c9: Unknown result type (might be due to invalid IL or missing references) //IL_18df: Unknown result type (might be due to invalid IL or missing references) //IL_1900: Unknown result type (might be due to invalid IL or missing references) //IL_1910: Unknown result type (might be due to invalid IL or missing references) //IL_1920: Unknown result type (might be due to invalid IL or missing references) //IL_1936: Unknown result type (might be due to invalid IL or missing references) //IL_1957: Unknown result type (might be due to invalid IL or missing references) //IL_1967: Unknown result type (might be due to invalid IL or missing references) //IL_1977: Unknown result type (might be due to invalid IL or missing references) //IL_198d: Unknown result type (might be due to invalid IL or missing references) //IL_19ae: Unknown result type (might be due to invalid IL or missing references) //IL_19be: Unknown result type (might be due to invalid IL or missing references) //IL_19ce: Unknown result type (might be due to invalid IL or missing references) //IL_19e4: 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_1a15: Unknown result type (might be due to invalid IL or missing references) //IL_1a25: Unknown result type (might be due to invalid IL or missing references) //IL_1a3b: Unknown result type (might be due to invalid IL or missing references) //IL_1a5c: Unknown result type (might be due to invalid IL or missing references) //IL_1a6c: Unknown result type (might be due to invalid IL or missing references) //IL_1a7c: Unknown result type (might be due to invalid IL or missing references) //IL_14e0: Unknown result type (might be due to invalid IL or missing references) //IL_14eb: Unknown result type (might be due to invalid IL or missing references) //IL_14af: Unknown result type (might be due to invalid IL or missing references) //IL_14ba: Unknown result type (might be due to invalid IL or missing references) //IL_14ca: Unknown result type (might be due to invalid IL or missing references) //IL_13ab: Unknown result type (might be due to invalid IL or missing references) //IL_13b6: 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_1385: Unknown result type (might be due to invalid IL or missing references) //IL_1395: Unknown result type (might be due to invalid IL or missing references) //IL_117b: Unknown result type (might be due to invalid IL or missing references) //IL_1186: Unknown result type (might be due to invalid IL or missing references) //IL_114a: Unknown result type (might be due to invalid IL or missing references) //IL_1155: Unknown result type (might be due to invalid IL or missing references) //IL_1165: Unknown result type (might be due to invalid IL or missing references) //IL_1fc9: Unknown result type (might be due to invalid IL or missing references) //IL_1fd4: Unknown result type (might be due to invalid IL or missing references) //IL_1f98: Unknown result type (might be due to invalid IL or missing references) //IL_1fa3: Unknown result type (might be due to invalid IL or missing references) //IL_1fb3: Unknown result type (might be due to invalid IL or missing references) //IL_155b: Unknown result type (might be due to invalid IL or missing references) //IL_1566: Unknown result type (might be due to invalid IL or missing references) //IL_152a: Unknown result type (might be due to invalid IL or missing references) //IL_1535: Unknown result type (might be due to invalid IL or missing references) //IL_1545: Unknown result type (might be due to invalid IL or missing references) //IL_13e9: Unknown result type (might be due to invalid IL or missing references) //IL_13f4: Unknown result type (might be due to invalid IL or missing references) //IL_1404: Unknown result type (might be due to invalid IL or missing references) //IL_11f6: Unknown result type (might be due to invalid IL or missing references) //IL_1201: Unknown result type (might be due to invalid IL or missing references) //IL_11c5: Unknown result type (might be due to invalid IL or missing references) //IL_11d0: Unknown result type (might be due to invalid IL or missing references) //IL_11e0: Unknown result type (might be due to invalid IL or missing references) //IL_2013: Unknown result type (might be due to invalid IL or missing references) //IL_2027: Unknown result type (might be due to invalid IL or missing references) //IL_2037: Unknown result type (might be due to invalid IL or missing references) //IL_2057: Unknown result type (might be due to invalid IL or missing references) //IL_206b: Unknown result type (might be due to invalid IL or missing references) //IL_207b: Unknown result type (might be due to invalid IL or missing references) //IL_209b: Unknown result type (might be due to invalid IL or missing references) //IL_20af: Unknown result type (might be due to invalid IL or missing references) //IL_20bf: Unknown result type (might be due to invalid IL or missing references) //IL_20df: Unknown result type (might be due to invalid IL or missing references) //IL_20f3: Unknown result type (might be due to invalid IL or missing references) //IL_2103: Unknown result type (might be due to invalid IL or missing references) //IL_2123: Unknown result type (might be due to invalid IL or missing references) //IL_2137: Unknown result type (might be due to invalid IL or missing references) //IL_2147: Unknown result type (might be due to invalid IL or missing references) //IL_2167: Unknown result type (might be due to invalid IL or missing references) //IL_2172: Unknown result type (might be due to invalid IL or missing references) //IL_2182: Unknown result type (might be due to invalid IL or missing references) //IL_21a2: Unknown result type (might be due to invalid IL or missing references) //IL_21ad: Unknown result type (might be due to invalid IL or missing references) //IL_21bd: Unknown result type (might be due to invalid IL or missing references) //IL_21dd: Unknown result type (might be due to invalid IL or missing references) //IL_21e8: Unknown result type (might be due to invalid IL or missing references) //IL_21f8: Unknown result type (might be due to invalid IL or missing references) //IL_2218: Unknown result type (might be due to invalid IL or missing references) //IL_2223: Unknown result type (might be due to invalid IL or missing references) //IL_2233: Unknown result type (might be due to invalid IL or missing references) //IL_2253: Unknown result type (might be due to invalid IL or missing references) //IL_225e: Unknown result type (might be due to invalid IL or missing references) //IL_226e: Unknown result type (might be due to invalid IL or missing references) //IL_228e: Unknown result type (might be due to invalid IL or missing references) //IL_2299: Unknown result type (might be due to invalid IL or missing references) //IL_22a9: Unknown result type (might be due to invalid IL or missing references) //IL_22c9: Unknown result type (might be due to invalid IL or missing references) //IL_22d4: Unknown result type (might be due to invalid IL or missing references) //IL_22e4: Unknown result type (might be due to invalid IL or missing references) //IL_2304: Unknown result type (might be due to invalid IL or missing references) //IL_230f: Unknown result type (might be due to invalid IL or missing references) //IL_231f: Unknown result type (might be due to invalid IL or missing references) //IL_233f: Unknown result type (might be due to invalid IL or missing references) //IL_234a: Unknown result type (might be due to invalid IL or missing references) //IL_235a: Unknown result type (might be due to invalid IL or missing references) //IL_237a: Unknown result type (might be due to invalid IL or missing references) //IL_2385: Unknown result type (might be due to invalid IL or missing references) //IL_2395: Unknown result type (might be due to invalid IL or missing references) //IL_1271: Unknown result type (might be due to invalid IL or missing references) //IL_127c: Unknown result type (might be due to invalid IL or missing references) //IL_1240: Unknown result type (might be due to invalid IL or missing references) //IL_124b: Unknown result type (might be due to invalid IL or missing references) //IL_125b: Unknown result type (might be due to invalid IL or missing references) //IL_23ff: Unknown result type (might be due to invalid IL or missing references) //IL_240a: Unknown result type (might be due to invalid IL or missing references) //IL_241a: Unknown result type (might be due to invalid IL or missing references) //IL_25ff: Unknown result type (might be due to invalid IL or missing references) //IL_2613: Unknown result type (might be due to invalid IL or missing references) //IL_2623: Unknown result type (might be due to invalid IL or missing references) //IL_2638: Unknown result type (might be due to invalid IL or missing references) //IL_263d: Unknown result type (might be due to invalid IL or missing references) //IL_2461: Unknown result type (might be due to invalid IL or missing references) //IL_246c: Unknown result type (might be due to invalid IL or missing references) //IL_247c: Unknown result type (might be due to invalid IL or missing references) //IL_269d: Unknown result type (might be due to invalid IL or missing references) //IL_26a2: Unknown result type (might be due to invalid IL or missing references) //IL_2667: Unknown result type (might be due to invalid IL or missing references) //IL_2672: Unknown result type (might be due to invalid IL or missing references) //IL_2682: Unknown result type (might be due to invalid IL or missing references) //IL_24c3: Unknown result type (might be due to invalid IL or missing references) //IL_24ce: Unknown result type (might be due to invalid IL or missing references) //IL_24de: Unknown result type (might be due to invalid IL or missing references) //IL_26cc: Unknown result type (might be due to invalid IL or missing references) //IL_26d7: Unknown result type (might be due to invalid IL or missing references) //IL_26e7: Unknown result type (might be due to invalid IL or missing references) //IL_2707: Unknown result type (might be due to invalid IL or missing references) //IL_2712: Unknown result type (might be due to invalid IL or missing references) //IL_2722: Unknown result type (might be due to invalid IL or missing references) //IL_2525: Unknown result type (might be due to invalid IL or missing references) //IL_2530: Unknown result type (might be due to invalid IL or missing references) //IL_2540: Unknown result type (might be due to invalid IL or missing references) //IL_2587: Unknown result type (might be due to invalid IL or missing references) //IL_2592: Unknown result type (might be due to invalid IL or missing references) //IL_25a2: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)catGO == (Object)null) { bar.SetActive(true); baroncat.SetActive(false); y1handLDone = false; y1handRDone = false; y2handLDone = false; y2handRDone = false; g1handLDone = false; g1handRDone = false; g2handLDone = false; g2handRDone = false; w1handLDone = false; w1handRDone = false; w2handLDone = false; w2handRDone = false; y2out = false; g1out = false; g2out = false; w1out = false; w2out = false; ready = false; crewAllRDY = false; shooter = false; cd = 1f; yellow1.SetDestination(y1back.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1back).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2back.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2back).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2back.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2back).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1back.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1back).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2back.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2back).transform.eulerAngles, ref w2ref, 0.25f); y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLIdle.localPosition, ref y1handLref, 0.15f); y1handR.transform.localPosition = Vector3.SmoothDamp(y1handR.transform.localPosition, y1handRIdle.localPosition, ref y1handRref, 0.15f); y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLIdle.localPosition, ref y2handLref, 0.15f); y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRIdle.localPosition, ref y2handRref, 0.15f); g1handL.transform.localPosition = Vector3.SmoothDamp(g1handL.transform.localPosition, g1handLIdle.localPosition, ref g1handLref, 0.15f); g1handR.transform.localPosition = Vector3.SmoothDamp(g1handR.transform.localPosition, g1handRIdle.localPosition, ref g1handRref, 0.15f); g2handL.transform.localPosition = Vector3.SmoothDamp(g2handL.transform.localPosition, y1handLIdle.localPosition, ref g2handLref, 0.15f); g2handR.transform.localPosition = Vector3.SmoothDamp(g2handR.transform.localPosition, y1handRIdle.localPosition, ref g2handRref, 0.15f); w1handL.transform.localPosition = Vector3.SmoothDamp(w1handL.transform.localPosition, y1handLIdle.localPosition, ref w1handLref, 0.15f); w1handR.transform.localPosition = Vector3.SmoothDamp(w1handR.transform.localPosition, y1handRIdle.localPosition, ref w1handRref, 0.15f); w2handL.transform.localPosition = Vector3.SmoothDamp(w2handL.transform.localPosition, y1handLIdle.localPosition, ref w2handLref, 0.15f); w2handR.transform.localPosition = Vector3.SmoothDamp(w2handR.transform.localPosition, y1handRIdle.localPosition, ref w2handRref, 0.15f); yellow1geo.transform.localPosition = Vector3.SmoothDamp(yellow1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2ref, 0.05f); yellow2geo.transform.localPosition = Vector3.SmoothDamp(yellow2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2ref, 0.05f); green1geo.transform.localPosition = Vector3.SmoothDamp(green1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2ref, 0.05f); green2geo.transform.localPosition = Vector3.SmoothDamp(green2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2ref, 0.05f); white1geo.transform.localPosition = Vector3.SmoothDamp(white1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2ref, 0.05f); white2geo.transform.localPosition = Vector3.SmoothDamp(white2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2ref, 0.05f); } else { if (!((Object)(object)catGO != (Object)null)) { return; } if (Vector3.Distance(((Component)yellow2).gameObject.transform.position, y2go.position) < 0.1f) { y2out = true; } if (Vector3.Distance(((Component)yellow2).gameObject.transform.position, y2back.position) < 0.1f) { y2out = false; } if (Vector3.Distance(((Component)green1).gameObject.transform.position, g1go.position) < 0.1f) { g1out = true; } if (Vector3.Distance(((Component)green1).gameObject.transform.position, g1back.position) < 0.1f) { g1out = false; } if (Vector3.Distance(((Component)green2).gameObject.transform.position, g2go.position) < 0.1f) { g2out = true; } if (Vector3.Distance(((Component)green2).gameObject.transform.position, g2back.position) < 0.1f) { g2out = false; } if (Vector3.Distance(((Component)white1).gameObject.transform.position, w1go.position) < 0.1f) { w1out = true; } if (Vector3.Distance(((Component)white1).gameObject.transform.position, w1back.position) < 0.1f) { w1out = false; } if (Vector3.Distance(((Component)white2).gameObject.transform.position, w2go.position) < 0.1f) { w2out = true; } if (Vector3.Distance(((Component)white2).gameObject.transform.position, w2back.position) < 0.1f) { w2out = false; } if (inrange) { if (!ready) { yellow1geo.transform.localPosition = Vector3.SmoothDamp(yellow1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y1refr, 0.05f); yellow2geo.transform.localPosition = Vector3.SmoothDamp(yellow2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2refr, 0.05f); green1geo.transform.localPosition = Vector3.SmoothDamp(green1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref g1refr, 0.05f); green2geo.transform.localPosition = Vector3.SmoothDamp(green2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref g2refr, 0.05f); white1geo.transform.localPosition = Vector3.SmoothDamp(white1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref w1refr, 0.05f); white2geo.transform.localPosition = Vector3.SmoothDamp(white2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref w2refr, 0.05f); } if (!cat.oncat) { bar.SetActive(true); baroncat.SetActive(false); if (!y2out) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLIdle.localPosition, ref y1handLref, 0.15f); y1handR.transform.localPosition = Vector3.SmoothDamp(y1handR.transform.localPosition, y1handRIdle.localPosition, ref y1handRref, 0.15f); y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLIdle.localPosition, ref y2handLref, 0.15f); y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRIdle.localPosition, ref y2handRref, 0.15f); g1handL.transform.localPosition = Vector3.SmoothDamp(g1handL.transform.localPosition, g1handLIdle.localPosition, ref g1handLref, 0.15f); g1handR.transform.localPosition = Vector3.SmoothDamp(g1handR.transform.localPosition, g1handRIdle.localPosition, ref g1handRref, 0.15f); g2handL.transform.localPosition = Vector3.SmoothDamp(g2handL.transform.localPosition, g2handLIdle.localPosition, ref g2handLref, 0.15f); g2handR.transform.localPosition = Vector3.SmoothDamp(g2handR.transform.localPosition, g2handRIdle.localPosition, ref g2handRref, 0.15f); w1handL.transform.localPosition = Vector3.SmoothDamp(w1handL.transform.localPosition, w1handLIdle.localPosition, ref w1handLref, 0.15f); w1handR.transform.localPosition = Vector3.SmoothDamp(w1handR.transform.localPosition, w1handRIdle.localPosition, ref w1handRref, 0.15f); w2handL.transform.localPosition = Vector3.SmoothDamp(w2handL.transform.localPosition, w2handLIdle.localPosition, ref w2handLref, 0.15f); w2handR.transform.localPosition = Vector3.SmoothDamp(w2handR.transform.localPosition, w2handRIdle.localPosition, ref w2handRref, 0.15f); yellow1.SetDestination(y1back.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1back).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2go.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2go).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2back.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2back).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1back.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1back).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2back.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2back).transform.eulerAngles, ref w2ref, 0.25f); } else if (y2out) { if (catGO.transform.position.x - ((Component)cat).transform.position.x <= 0.5f && catGO.transform.position.x - ((Component)cat).transform.position.x >= -0.5f) { if (!y2handLDone) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLUPIn.localPosition, ref y2handLref, 0.15f); } if (Vector3.Distance(y2handL.transform.position, y2handLUPIn.position) < 0.05f) { y2handLDone = true; } if (y2handLDone) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLUPOut.localPosition, ref y2handLref, 0.15f); } if (Vector3.Distance(y2handL.transform.position, y2handLUPOut.position) < 0.05f) { y2handLDone = false; } if (!y2handRDone) { y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRUPIn.localPosition, ref y2handRref, 0.15f); } if (Vector3.Distance(y2handR.transform.position, y2handRUPIn.position) < 0.05f) { y2handRDone = true; } if (y2handRDone) { y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRUPOut.localPosition, ref y2handRref, 0.15f); } if (Vector3.Distance(y2handR.transform.position, y2handRUPOut.position) < 0.05f) { y2handRDone = false; } } else if (catGO.transform.position.x - ((Component)cat).transform.position.x > 0.5f) { if (!y2handLDone) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLUPIn.localPosition, ref y2handLref, 0.15f); } if (Vector3.Distance(y2handL.transform.position, y2handLUPIn.position) < 0.05f) { y2handLDone = true; } if (y2handLDone) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLUPOut.localPosition, ref y2handLref, 0.15f); } if (Vector3.Distance(y2handL.transform.position, y2handLUPOut.position) < 0.05f) { y2handLDone = false; } y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handROut.localPosition, ref y2handLref, 0.15f); } else if (catGO.transform.position.x - ((Component)cat).transform.position.x < -0.5f) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLUPIn.localPosition, ref y2handLref, 0.15f); if (!y2handRDone) { y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRUPIn.localPosition, ref y2handRref, 0.15f); } if (Vector3.Distance(y2handR.transform.position, y2handRUPIn.position) < 0.05f) { y2handRDone = true; } if (y2handRDone) { y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRUPOut.localPosition, ref y2handRref, 0.15f); } if (Vector3.Distance(y2handR.transform.position, y2handRUPOut.position) < 0.05f) { y2handRDone = false; } } } } else if (cat.oncat) { if (y2out) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLUPIn.localPosition, ref y2handLref, 0.15f); y2handLDone = false; y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRUPIn.localPosition, ref y2handLref, 0.15f); y2handRDone = false; yellow1.SetDestination(y1back.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1back).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2back.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2back).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2go.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2go).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1go.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1go).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2go.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2go).transform.eulerAngles, ref w2ref, 0.25f); } if (!y2out && g2out && w1out && w2out) { bar.SetActive(false); baroncat.SetActive(true); yellow1.SetDestination(y1back.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1back).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2back.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2back).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2back.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2back).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1go.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1go).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2go.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2go).transform.eulerAngles, ref w2ref, 0.25f); } if (!g2out && !bar.activeInHierarchy) { y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLIdle.localPosition, ref y2handLref, 0.15f); y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRIdle.localPosition, ref y2handRref, 0.15f); g1handL.transform.localPosition = Vector3.SmoothDamp(g1handL.transform.localPosition, g1handLIdle.localPosition, ref g1handLref, 0.15f); g1handR.transform.localPosition = Vector3.SmoothDamp(g1handR.transform.localPosition, g1handRIdle.localPosition, ref g1handRref, 0.15f); g2handL.transform.localPosition = Vector3.SmoothDamp(g2handL.transform.localPosition, g2handLIdle.localPosition, ref g2handLref, 0.15f); g2handR.transform.localPosition = Vector3.SmoothDamp(g2handR.transform.localPosition, g2handRIdle.localPosition, ref g2handRref, 0.15f); w1handL.transform.localPosition = Vector3.SmoothDamp(w1handL.transform.localPosition, w1handLIdle.localPosition, ref w1handLref, 0.15f); w1handR.transform.localPosition = Vector3.SmoothDamp(w1handR.transform.localPosition, w1handRIdle.localPosition, ref w1handRref, 0.15f); w2handL.transform.localPosition = Vector3.SmoothDamp(w2handL.transform.localPosition, w2handLIdle.localPosition, ref w2handLref, 0.15f); w2handR.transform.localPosition = Vector3.SmoothDamp(w2handR.transform.localPosition, w2handRIdle.localPosition, ref w2handRref, 0.15f); yellow1.SetDestination(y1go.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1go).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2back.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2back).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2back.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2back).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1go.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1go).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2go.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2go).transform.eulerAngles, ref w2ref, 0.25f); if (!y1handLDone) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLPwrL.localPosition, ref y1handLref, 0.15f); } if (Vector3.Distance(y1handL.transform.position, y1handLPwrL.position) < 0.05f) { y1handLDone = true; } if (y1handLDone) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLPwrR.localPosition, ref y1handLref, 0.15f); } if (Vector3.Distance(y1handL.transform.position, y1handLPwrR.position) < 0.05f) { y1handLDone = false; } if (ready) { yellow2geo.transform.localPosition = Vector3.SmoothDamp(yellow2geo.transform.localPosition, new Vector3(0f, -0.5f, 0f), ref y2refr, 0.05f); green1geo.transform.localPosition = Vector3.SmoothDamp(green1geo.transform.localPosition, new Vector3(0f, -0.5f, 0f), ref g1refr, 0.05f); green2geo.transform.localPosition = Vector3.SmoothDamp(green2geo.transform.localPosition, new Vector3(0f, -0.5f, 0f), ref g2refr, 0.05f); white1geo.transform.localPosition = Vector3.SmoothDamp(white1geo.transform.localPosition, new Vector3(0f, -0.5f, 0f), ref w1refr, 0.05f); white2geo.transform.localPosition = Vector3.SmoothDamp(white2geo.transform.localPosition, new Vector3(0f, -0.5f, 0f), ref w2refr, 0.05f); y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLRdy.localPosition, ref y2handLref, 0.15f); y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRRdy.localPosition, ref y2handRref, 0.15f); g1handL.transform.localPosition = Vector3.SmoothDamp(g1handL.transform.localPosition, g1handLRdy.localPosition, ref g1handLref, 0.15f); g1handR.transform.localPosition = Vector3.SmoothDamp(g1handR.transform.localPosition, g1handRRdy.localPosition, ref g1handRref, 0.15f); g2handL.transform.localPosition = Vector3.SmoothDamp(g2handL.transform.localPosition, g2handLRdy.localPosition, ref g2handLref, 0.15f); g2handR.transform.localPosition = Vector3.SmoothDamp(g2handR.transform.localPosition, g2handRRdy.localPosition, ref g2handRref, 0.15f); w1handL.transform.localPosition = Vector3.SmoothDamp(w1handL.transform.localPosition, w1handLRdy.localPosition, ref w1handLref, 0.15f); w1handR.transform.localPosition = Vector3.SmoothDamp(w1handR.transform.localPosition, w1handRRdy.localPosition, ref w1handRref, 0.15f); w2handL.transform.localPosition = Vector3.SmoothDamp(w2handL.transform.localPosition, w2handLRdy.localPosition, ref w2handLref, 0.15f); w2handR.transform.localPosition = Vector3.SmoothDamp(w2handR.transform.localPosition, w2handRRdy.localPosition, ref w2handRref, 0.15f); if (cd > -1f) { cd -= Time.deltaTime; } else if (cd >= 8f && cd <= 10f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLw1.localPosition, ref y1handLref, 0.1f); } else if (cd >= 6f && cd < 8f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLw2.localPosition, ref y1handLref, 0.1f); } else if (cd >= 4f && cd < 6f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLg2.localPosition, ref y1handLref, 0.1f); } else if (cd >= 2f && cd < 4f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLg1.localPosition, ref y1handLref, 0.1f); } else if (cd >= 0f && cd < 2f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLy2.localPosition, ref y1handLref, 0.1f); } else if (cd < 0f) { shooter = true; cd = -1f; } if (shooter) { crewAllRDY = true; yellow1geo.transform.localPosition = Vector3.SmoothDamp(yellow1geo.transform.localPosition, new Vector3(0f, -0.5f, 0f), ref y1ref, 0.15f); if (yellow1geo.transform.localPosition.y > -0.35f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLDown.localPosition, ref y1handLref, 0.1f); } else if (yellow1geo.transform.localPosition.y <= -0.35f) { y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLUp.localPosition, ref y1handLref, 0.1f); y1handR.transform.localPosition = Vector3.SmoothDamp(y1handR.transform.localPosition, y1handRBack.localPosition, ref y1handRref, 0.1f); } } } } } } if (!col.enabled && !cat.oncat && cd <= -1f) { col.enabled = true; bar.SetActive(true); baroncat.SetActive(false); y1handLDone = false; y1handRDone = false; y2handLDone = false; y2handRDone = false; g1handLDone = false; g1handRDone = false; g2handLDone = false; g2handRDone = false; w1handLDone = false; w1handRDone = false; w2handLDone = false; w2handRDone = false; y2out = false; g1out = false; g2out = false; w1out = false; w2out = false; ready = false; crewAllRDY = false; shooter = false; cd = 1f; yellow1.SetDestination(y1back.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1back).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2back.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2back).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2back.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2back).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1back.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1back).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2back.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2back).transform.eulerAngles, ref w2ref, 0.25f); y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLIdle.localPosition, ref y1handLref, 0.15f); y1handR.transform.localPosition = Vector3.SmoothDamp(y1handR.transform.localPosition, y1handRIdle.localPosition, ref y1handRref, 0.15f); y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLIdle.localPosition, ref y2handLref, 0.15f); y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRIdle.localPosition, ref y2handRref, 0.15f); g1handL.transform.localPosition = Vector3.SmoothDamp(g1handL.transform.localPosition, g1handLIdle.localPosition, ref g1handLref, 0.15f); g1handR.transform.localPosition = Vector3.SmoothDamp(g1handR.transform.localPosition, g1handRIdle.localPosition, ref g1handRref, 0.15f); g2handL.transform.localPosition = Vector3.SmoothDamp(g2handL.transform.localPosition, y1handLIdle.localPosition, ref g2handLref, 0.15f); g2handR.transform.localPosition = Vector3.SmoothDamp(g2handR.transform.localPosition, y1handRIdle.localPosition, ref g2handRref, 0.15f); w1handL.transform.localPosition = Vector3.SmoothDamp(w1handL.transform.localPosition, y1handLIdle.localPosition, ref w1handLref, 0.15f); w1handR.transform.localPosition = Vector3.SmoothDamp(w1handR.transform.localPosition, y1handRIdle.localPosition, ref w1handRref, 0.15f); w2handL.transform.localPosition = Vector3.SmoothDamp(w2handL.transform.localPosition, y1handLIdle.localPosition, ref w2handLref, 0.15f); w2handR.transform.localPosition = Vector3.SmoothDamp(w2handR.transform.localPosition, y1handRIdle.localPosition, ref w2handRref, 0.15f); yellow1geo.transform.localPosition = Vector3.SmoothDamp(yellow1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y1refr, 0.05f); yellow2geo.transform.localPosition = Vector3.SmoothDamp(yellow2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2refr, 0.05f); green1geo.transform.localPosition = Vector3.SmoothDamp(green1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref g1refr, 0.05f); green2geo.transform.localPosition = Vector3.SmoothDamp(green2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref g2refr, 0.05f); white1geo.transform.localPosition = Vector3.SmoothDamp(white1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref w1refr, 0.05f); white2geo.transform.localPosition = Vector3.SmoothDamp(white2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref w2refr, 0.05f); } if (!inrange) { bar.SetActive(true); baroncat.SetActive(false); y1handLDone = false; y1handRDone = false; y2handLDone = false; y2handRDone = false; g1handLDone = false; g1handRDone = false; g2handLDone = false; g2handRDone = false; w1handLDone = false; w1handRDone = false; w2handLDone = false; w2handRDone = false; y2out = false; g1out = false; g2out = false; w1out = false; w2out = false; ready = false; crewAllRDY = false; shooter = false; cd = 1f; yellow1.SetDestination(y1back.position); yellow1geo.transform.eulerAngles = Vector3.SmoothDamp(yellow1geo.transform.eulerAngles, ((Component)y1back).transform.eulerAngles, ref y1ref, 0.25f); yellow2.SetDestination(y2back.position); yellow2geo.transform.eulerAngles = Vector3.SmoothDamp(yellow2geo.transform.eulerAngles, ((Component)y2back).transform.eulerAngles, ref y2ref, 0.25f); green1.SetDestination(g1back.position); green1geo.transform.eulerAngles = Vector3.SmoothDamp(green1geo.transform.eulerAngles, ((Component)g1back).transform.eulerAngles, ref g1ref, 0.25f); green2.SetDestination(g2back.position); green2geo.transform.eulerAngles = Vector3.SmoothDamp(green2geo.transform.eulerAngles, ((Component)g2back).transform.eulerAngles, ref g2ref, 0.25f); white1.SetDestination(w1back.position); white1geo.transform.eulerAngles = Vector3.SmoothDamp(white1geo.transform.eulerAngles, ((Component)w1back).transform.eulerAngles, ref w1ref, 0.25f); white2.SetDestination(w2back.position); white2geo.transform.eulerAngles = Vector3.SmoothDamp(white2geo.transform.eulerAngles, ((Component)w2back).transform.eulerAngles, ref w2ref, 0.25f); y1handL.transform.localPosition = Vector3.SmoothDamp(y1handL.transform.localPosition, y1handLIdle.localPosition, ref y1handLref, 0.15f); y1handR.transform.localPosition = Vector3.SmoothDamp(y1handR.transform.localPosition, y1handRIdle.localPosition, ref y1handRref, 0.15f); y2handL.transform.localPosition = Vector3.SmoothDamp(y2handL.transform.localPosition, y2handLIdle.localPosition, ref y2handLref, 0.15f); y2handR.transform.localPosition = Vector3.SmoothDamp(y2handR.transform.localPosition, y2handRIdle.localPosition, ref y2handRref, 0.15f); g1handL.transform.localPosition = Vector3.SmoothDamp(g1handL.transform.localPosition, g1handLIdle.localPosition, ref g1handLref, 0.15f); g1handR.transform.localPosition = Vector3.SmoothDamp(g1handR.transform.localPosition, g1handRIdle.localPosition, ref g1handRref, 0.15f); g2handL.transform.localPosition = Vector3.SmoothDamp(g2handL.transform.localPosition, y1handLIdle.localPosition, ref g2handLref, 0.15f); g2handR.transform.localPosition = Vector3.SmoothDamp(g2handR.transform.localPosition, y1handRIdle.localPosition, ref g2handRref, 0.15f); w1handL.transform.localPosition = Vector3.SmoothDamp(w1handL.transform.localPosition, y1handLIdle.localPosition, ref w1handLref, 0.15f); w1handR.transform.localPosition = Vector3.SmoothDamp(w1handR.transform.localPosition, y1handRIdle.localPosition, ref w1handRref, 0.15f); w2handL.transform.localPosition = Vector3.SmoothDamp(w2handL.transform.localPosition, y1handLIdle.localPosition, ref w2handLref, 0.15f); w2handR.transform.localPosition = Vector3.SmoothDamp(w2handR.transform.localPosition, y1handRIdle.localPosition, ref w2handRref, 0.15f); yellow1geo.transform.localPosition = Vector3.SmoothDamp(yellow1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y1refr, 0.05f); yellow2geo.transform.localPosition = Vector3.SmoothDamp(yellow2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref y2refr, 0.05f); green1geo.transform.localPosition = Vector3.SmoothDamp(green1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref g1refr, 0.05f); green2geo.transform.localPosition = Vector3.SmoothDamp(green2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref g2refr, 0.05f); white1geo.transform.localPosition = Vector3.SmoothDamp(white1geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref w1refr, 0.05f); white2geo.transform.localPosition = Vector3.SmoothDamp(white2geo.transform.localPosition, new Vector3(0f, 0f, 0f), ref w2refr, 0.05f); } } } } public class saluteblub : MonoBehaviour { public deckcrew crews; [NonSerialized] public GameObject Obj; public GameObject SaluteTrig; public string Salutename; private void Update() { //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_0150: 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_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) //IL_013a: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Unknown result type (might be due to invalid IL or missing references) if (crews.ready || crews.bar.activeInHierarchy) { ((Component)this).gameObject.transform.position = ((Component)GM.CurrentMovementManager.Hands[1]).gameObject.transform.position; } else if (!crews.ready && !crews.bar.activeInHierarchy) { if (!GM.CurrentMovementManager.Hands[1].Input.TriggerPressed) { ((Component)this).gameObject.transform.position = ((Component)GM.CurrentMovementManager.Hands[1]).gameObject.transform.position; } else if (GM.CurrentMovementManager.Hands[1].Input.TriggerPressed) { ((Component)this).gameObject.transform.position = new Vector3(((Component)this).gameObject.transform.position.x, ((Component)this).gameObject.transform.position.y, ((Component)this).gameObject.transform.position.z); } if (Vector3.Distance(((Component)this).gameObject.transform.position, GM.CurrentMovementManager.RightHand.position) > 0.2f && (Object)(object)Obj == (Object)null) { Obj = Object.Instantiate(SaluteTrig, new Vector3(0f, 0f, 0f), ((Component)this).gameObject.transform.rotation); } if ((Object)(object)GameObject.Find(Salutename) != (Object)null && GameObject.Find(Salutename).activeInHierarchy) { crews.ready = true; } } } } public class AirBrake : MonoBehaviour { public Rigidbody rb; public GameObject hook; public GameObject gearlever; public GameObject HookTrig; private void Start() { } private void FixedUpdate() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) rb.drag = 0.002f * hook.transform.localEulerAngles.x; if (hook.transform.localEulerAngles.x < 45f) { HookTrig.SetActive(false); } else if (hook.transform.localEulerAngles.x >= 45f) { HookTrig.SetActive(true); } } } public class Catapult : MonoBehaviour { public GameObject catbarbase; private Vector3 velocity = Vector3.zero; public GameObject catapultconnectpoint; public GameObject catapultbolt; public GameObject catbar; public Transform lastposition; public Rigidbody rb; public Vector3 speed; public GameObject launchrdy; public Rigidbody RBB; public FixedJoint FJ; public Transform front; public Transform rear; public bool oncat = false; public float countdown = 3f; public bool addforce = false; public float forcevalue; public string tomcatID1; public string tomcatID2; public GameObject launchaudio; public GameObject catbarwaggle; public deckcrew crews; public bool jointadded = false; public Vector3 catrefP; public Vector3 catrefR; public Rigidbody speedref; private void OnTriggerEnter(Collider other) { if (((Object)((Component)other).gameObject).name == tomcatID1 || ((Object)((Component)other).gameObject).name == tomcatID2) { oncat = true; addforce = true; catbar = ((Component)other).gameObject; rb = catbar.GetComponent(); } } private void FixedUpdate() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0293: Unknown result type (might be due to invalid IL or missing references) //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_027d: Unknown result type (might be due to invalid IL or missing references) //IL_02c5: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0333: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Unknown result type (might be due to invalid IL or missing references) //IL_0374: Unknown result type (might be due to invalid IL or missing references) //IL_0379: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Unknown result type (might be due to invalid IL or missing references) ((Component)RBB).transform.position = catbarwaggle.transform.position; ((Component)RBB).transform.eulerAngles = catbarwaggle.transform.eulerAngles; catbarbase.transform.position = Vector3.SmoothDamp(catbarbase.transform.position, catapultconnectpoint.transform.position, ref velocity, 0.5f, 5000f); if ((Object)(object)catbar == (Object)null || (Object)(object)rb == (Object)null || (Object)(object)FJ == (Object)null) { } if (oncat && (Object)(object)catbar != (Object)null && (Object)(object)rb != (Object)null) { launchrdy.transform.localEulerAngles = new Vector3(0f, 0f, 0f); if (!jointadded) { catbar.transform.position = catbarwaggle.transform.position; catbar.transform.eulerAngles = catbarwaggle.transform.eulerAngles; FJ = ((Component)rb).gameObject.AddComponent(); ((Joint)FJ).connectedBody = RBB; jointadded = true; } if (crews.crewAllRDY) { if (countdown >= 0f) { countdown -= 1f * Time.deltaTime; } if (countdown < 0f) { catapultbolt.transform.position = Vector3.MoveTowards(catapultbolt.transform.position, front.position, 50f * Time.deltaTime); countdown = 0f; launchaudio.SetActive(true); } } } if (!oncat) { launchaudio.SetActive(false); countdown = 3f; catapultbolt.transform.position = Vector3.MoveTowards(catapultbolt.transform.position, rear.position, 10f * Time.deltaTime); } if (!(catapultbolt.transform.localPosition.z > 100f)) { return; } launchrdy.transform.localEulerAngles = new Vector3(0f, 75f, 0f); if ((Object)(object)FJ != (Object)null) { ((Joint)FJ).breakForce = 0f; ((Joint)FJ).breakTorque = 0f; Object.Destroy((Object)(object)FJ); oncat = false; jointadded = false; } if (!((Object)(object)rb != (Object)null)) { return; } Vector3 val = rb.velocity; if (((Vector3)(ref val)).magnitude < forcevalue) { rb.AddForce(0f, 0f, forcevalue, (ForceMode)2); return; } Vector3 val2 = rb.velocity; if (((Vector3)(ref val2)).magnitude >= forcevalue) { rb = null; } } } } namespace Packer { [RequireComponent(typeof(BoxCollider))] public class ItemCatcher : MonoBehaviour { [Header("Respawn Location")] [Tooltip("If empty objects will be attemped to respawn ontop of where they dropped, else they'll respawn at this transform")] public Transform respawnLocation; [Header("Respawn Ontop")] public float castYHeight = 200f; public float castFloor = 0f; public float respawnOffset = 0.25f; private void Start() { } public void RespawnPlayer() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) FVRMovementManager currentMovementManager = GM.CurrentMovementManager; Vector3 position = respawnLocation.position; Quaternion rotation = respawnLocation.rotation; currentMovementManager.TeleportToPoint(position, true, ((Quaternion)(ref rotation)).eulerAngles); } private void OnCollisionEnter(Collision collision) { //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: 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_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Unknown result type (might be due to invalid IL or missing references) Rigidbody component = ((Component)collision.transform.root).GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { return; } if (Object.op_Implicit((Object)(object)respawnLocation)) { component.velocity = Vector3.zero; component.angularVelocity = Vector3.zero; component.MovePosition(respawnLocation.position); component.MoveRotation(respawnLocation.rotation); return; } Vector3 position = collision.transform.root.position; position.y = castFloor + castYHeight; Ray val = default(Ray); ((Ray)(ref val)).direction = Vector3.down; ((Ray)(ref val)).origin = position; Ray val2 = val; RaycastHit val3 = default(RaycastHit); if (Physics.Raycast(val2, ref val3, castYHeight + 10f)) { component.velocity = Vector3.zero; component.angularVelocity = Vector3.zero; component.MovePosition(((RaycastHit)(ref val3)).point + Vector3.up * respawnOffset); } } } } namespace JerryComponent { public class LandingRope : MonoBehaviour { public bool catched = false; public Rigidbody point; public SpringJoint fj; public Rigidbody host; public Rigidbody ab; private void OnTriggerEnter(Collider other) { if (((Object)((Component)other).gameObject).name == "F14BHookTrig") { ab = ((Component)other).gameObject.GetComponent(); } } private void Update() { if (!((Object)(object)ab == (Object)null) && (Object)(object)ab != (Object)null) { if (((Component)ab).gameObject.GetComponent().enabled) { catched = true; ((Joint)fj).connectedBody = ab; } else if (!((Component)ab).gameObject.GetComponent().enabled) { ab = null; catched = false; ((Joint)fj).connectedBody = host; } } } } public class LandingWires : MonoBehaviour { public GameObject W1; public GameObject W2; public GameObject W3; public GameObject W4; public FVRObject Wire1; public FVRObject Wire2; public FVRObject Wire3; public FVRObject Wire4; public bool commented = false; public LandingRope R1; public LandingRope R2; public LandingRope R3; public LandingRope R4; public GameObject P1; public GameObject P2; public GameObject P3; public GameObject P4; public LineRenderer L1; public LineRenderer L2; public LineRenderer L3; public LineRenderer L4; private void Start() { } private void FixedUpdate() { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_0269: Unknown result type (might be due to invalid IL or missing references) //IL_01c0: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Unknown result type (might be due to invalid IL or missing references) //IL_0319: 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_0361: Unknown result type (might be due to invalid IL or missing references) //IL_0385: Unknown result type (might be due to invalid IL or missing references) //IL_02dc: Unknown result type (might be due to invalid IL or missing references) //IL_02ec: Unknown result type (might be due to invalid IL or missing references) //IL_0435: 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_047d: 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_03f8: Unknown result type (might be due to invalid IL or missing references) //IL_0408: Unknown result type (might be due to invalid IL or missing references) //IL_0543: Unknown result type (might be due to invalid IL or missing references) //IL_0567: Unknown result type (might be due to invalid IL or missing references) //IL_058b: Unknown result type (might be due to invalid IL or missing references) //IL_05af: Unknown result type (might be due to invalid IL or missing references) L1.SetPosition(2, P1.transform.localPosition); L2.SetPosition(2, P2.transform.localPosition); L3.SetPosition(2, P3.transform.localPosition); L4.SetPosition(2, P4.transform.localPosition); if (R1.catched) { if (!commented) { Object.Instantiate(((AnvilAsset)Wire1).GetGameObject(), ((Component)this).gameObject.transform.position, ((Component)this).gameObject.transform.rotation); commented = true; } W1.transform.localEulerAngles = new Vector3(90f, 0f, 0f); W2.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W3.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W4.transform.localEulerAngles = new Vector3(0f, 0f, 0f); ((Behaviour)R1).enabled = true; ((Behaviour)R2).enabled = false; ((Behaviour)R3).enabled = false; ((Behaviour)R4).enabled = false; } else if (R2.catched) { if (!commented) { Object.Instantiate(((AnvilAsset)Wire2).GetGameObject(), ((Component)this).gameObject.transform.position, ((Component)this).gameObject.transform.rotation); commented = true; } W1.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W2.transform.localEulerAngles = new Vector3(90f, 0f, 0f); W3.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W4.transform.localEulerAngles = new Vector3(0f, 0f, 0f); ((Behaviour)R1).enabled = false; ((Behaviour)R2).enabled = true; ((Behaviour)R3).enabled = false; ((Behaviour)R4).enabled = false; } else if (R3.catched) { if (!commented) { Object.Instantiate(((AnvilAsset)Wire3).GetGameObject(), ((Component)this).gameObject.transform.position, ((Component)this).gameObject.transform.rotation); commented = true; } W1.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W2.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W3.transform.localEulerAngles = new Vector3(90f, 0f, 0f); W4.transform.localEulerAngles = new Vector3(0f, 0f, 0f); ((Behaviour)R1).enabled = false; ((Behaviour)R2).enabled = false; ((Behaviour)R3).enabled = true; ((Behaviour)R4).enabled = false; } else if (R4.catched) { if (!commented) { Object.Instantiate(((AnvilAsset)Wire4).GetGameObject(), ((Component)this).gameObject.transform.position, ((Component)this).gameObject.transform.rotation); commented = true; } W1.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W2.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W3.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W4.transform.localEulerAngles = new Vector3(90f, 0f, 0f); ((Behaviour)R1).enabled = false; ((Behaviour)R2).enabled = false; ((Behaviour)R3).enabled = false; ((Behaviour)R4).enabled = true; } else if (!R1.catched && !R2.catched && !R3.catched && !R4.catched) { commented = false; W1.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W2.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W3.transform.localEulerAngles = new Vector3(0f, 0f, 0f); W4.transform.localEulerAngles = new Vector3(0f, 0f, 0f); ((Behaviour)R1).enabled = true; ((Behaviour)R2).enabled = true; ((Behaviour)R3).enabled = true; ((Behaviour)R4).enabled = true; } } } public class RandomSpeech : MonoBehaviour { public GameObject speech; public GameObject rot; public bool speeched = false; public bool reverse = false; private void Start() { } private void Update() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) if (rot.transform.localEulerAngles.x > 45f) { if (reverse) { speeched = false; } else if (!speeched) { Object.Instantiate(speech, ((Component)this).transform.position, ((Component)this).transform.rotation); speeched = true; } } else if (reverse) { if (!speeched) { Object.Instantiate(speech, ((Component)this).transform.position, ((Component)this).transform.rotation); speeched = true; } } else { speeched = false; } } } public class RefuelingProbe : MonoBehaviour { public Rigidbody rb; public Rigidbody rbprobe; public FixedJoint fj; public bool rdytofuel = false; private void Start() { } private void OnTriggerStay(Collider other) { if (((Object)((Component)other).gameObject).name == "RefuelingProbe") { rdytofuel = true; rbprobe = ((Component)other).gameObject.GetComponent(); } } private void OnTriggerExit(Collider other) { if (((Object)((Component)other).gameObject).name == "RefuelingProbe") { rdytofuel = false; rbprobe = null; } } private void Update() { //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)rbprobe == (Object)null) { } if ((Object)(object)rbprobe != (Object)null) { if (!rdytofuel) { } if (rdytofuel) { ((Component)rb).transform.position = ((Component)rbprobe).transform.position; ((Component)rb).transform.eulerAngles = ((Component)rbprobe).transform.eulerAngles; } } if (!((Object)(object)rbprobe == (Object)null)) { } } } public class VehicleSpawn : MonoBehaviour { public FVRObject vehicle; public GameObject vehiclePrefab; public Transform vehiclespawn; private void Start() { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0027: 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) vehiclePrefab = Object.Instantiate(((AnvilAsset)vehicle).GetGameObject(), vehiclespawn.position + Vector3.up * 0.2f, vehiclespawn.rotation); } private void Update() { if (!((Object)(object)vehiclePrefab == (Object)null)) { } } } } public class BlitToTex : MonoBehaviour { public RenderTexture Rt; public Material Mat; private void Update() { } } public class UpdateProps : MonoBehaviour { private static int nHash; private static int pHash; public GameObject obj; public GameObject plane; private Material objMat; private void Start() { objMat = ((Renderer)obj.GetComponent()).sharedMaterial; nHash = Shader.PropertyToID("n"); pHash = Shader.PropertyToID("p"); } private void Update() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) Vector3 up = plane.transform.up; Vector3 position = plane.transform.position; objMat.SetVector(nHash, Vector4.op_Implicit(up)); objMat.SetVector(pHash, Vector4.op_Implicit(position)); } } public class FreeCamera : MonoBehaviour { public float thetaSpeed = 250f; public float phiSpeed = 120f; public float moveSpeed = 10f; public float zoomSpeed = 30f; public float phiBoundMin = -89f; public float phiBoundMax = 89f; public bool useMoveBounds = true; public float moveBounds = 100f; public float rotateSmoothing = 0.5f; public float moveSmoothing = 0.7f; public float distance = 2f; private Vector2 euler; private Quaternion targetRot; private Vector3 targetLookAt; private float targetDist; private Vector3 distanceVec = new Vector3(0f, 0f, 0f); private Transform target; private Rect inputBounds; public Rect paramInputBounds = new Rect(0f, 0f, 1f, 1f); public bool usePivotPoint = true; public Vector3 pivotPoint = new Vector3(0f, 2f, 0f); public Transform pivotTransform = null; public void Start() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_0159: 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_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0132: 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_013b: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_01a3: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) Vector3 eulerAngles = ((Component)this).transform.eulerAngles; euler.x = eulerAngles.y; euler.y = eulerAngles.x; euler.y = Mathf.Repeat(euler.y + 180f, 360f) - 180f; GameObject val = new GameObject("_FreeCameraTarget"); ((Object)val).hideFlags = (HideFlags)63; target = val.transform; if (usePivotPoint) { target.position = pivotPoint; Vector3 val2 = ((Component)this).transform.position - target.position; targetDist = ((Vector3)(ref val2)).magnitude; } else if ((Object)(object)pivotTransform != (Object)null) { usePivotPoint = true; Matrix4x4 worldToLocalMatrix = ((Component)this).transform.worldToLocalMatrix; Vector3 val3 = ((Matrix4x4)(ref worldToLocalMatrix)).MultiplyPoint3x4(pivotTransform.position); val3.x = 0f; val3.y = 0f; targetDist = val3.z; Transform obj = target; Matrix4x4 localToWorldMatrix = ((Component)this).transform.localToWorldMatrix; obj.position = ((Matrix4x4)(ref localToWorldMatrix)).MultiplyPoint3x4(val3); } else { target.position = ((Component)this).transform.position + ((Component)this).transform.forward * distance; targetDist = distance; } targetRot = ((Component)this).transform.rotation; targetLookAt = target.position; } public void Update() { //IL_00a3: 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_01d3: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01e4: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Unknown result type (might be due to invalid IL or missing references) //IL_01ef: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0360: Unknown result type (might be due to invalid IL or missing references) //IL_0365: Unknown result type (might be due to invalid IL or missing references) ((Rect)(ref inputBounds)).x = (float)((Component)this).GetComponent().pixelWidth * ((Rect)(ref paramInputBounds)).x; ((Rect)(ref inputBounds)).y = (float)((Component)this).GetComponent().pixelHeight * ((Rect)(ref paramInputBounds)).y; ((Rect)(ref inputBounds)).width = (float)((Component)this).GetComponent().pixelWidth * ((Rect)(ref paramInputBounds)).width; ((Rect)(ref inputBounds)).height = (float)((Component)this).GetComponent().pixelHeight * ((Rect)(ref paramInputBounds)).height; if (!Object.op_Implicit((Object)(object)target) || !((Rect)(ref inputBounds)).Contains(Input.mousePosition)) { return; } float axis = Input.GetAxis("Mouse X"); float axis2 = Input.GetAxis("Mouse Y"); bool flag = Input.GetMouseButton(0) || Input.touchCount == 1; bool flag2 = Input.GetMouseButton(1) || Input.touchCount == 2; bool flag3 = Input.GetMouseButton(2) || Input.touchCount == 3; bool flag4 = Input.touchCount >= 4; bool flag5 = flag; bool flag6 = flag4 || (flag && (Input.GetKey((KeyCode)304) || Input.GetKey((KeyCode)303))); bool flag7 = flag3 || (flag && (Input.GetKey((KeyCode)306) || Input.GetKey((KeyCode)305))); bool flag8 = flag2; if (!flag6) { if (flag7) { axis = axis * moveSpeed * 0.005f * targetDist; axis2 = axis2 * moveSpeed * 0.005f * targetDist; targetLookAt -= ((Component)this).transform.up * axis2 + ((Component)this).transform.right * axis; if (useMoveBounds) { targetLookAt.x = Mathf.Clamp(targetLookAt.x, 0f - moveBounds, moveBounds); targetLookAt.y = Mathf.Clamp(targetLookAt.y, 0f - moveBounds, moveBounds); targetLookAt.z = Mathf.Clamp(targetLookAt.z, 0f - moveBounds, moveBounds); } } else if (flag8) { axis2 = axis2 * zoomSpeed * 0.005f * targetDist; targetDist += axis2; targetDist = Mathf.Max(0.1f, targetDist); } else if (flag5) { axis = axis * thetaSpeed * 0.02f; axis2 = axis2 * phiSpeed * 0.02f; ref Vector2 reference = ref euler; reference.x += axis; ref Vector2 reference2 = ref euler; reference2.y -= axis2; euler.y = ClampAngle(euler.y, phiBoundMin, phiBoundMax); targetRot = Quaternion.Euler(euler.y, euler.x, 0f); } } targetDist -= Input.GetAxis("Mouse ScrollWheel") * zoomSpeed * 0.5f; targetDist = Mathf.Max(0.1f, targetDist); } public void FixedUpdate() { //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: 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) distance = moveSmoothing * targetDist + (1f - moveSmoothing) * distance; ((Component)this).transform.rotation = Quaternion.Slerp(((Component)this).transform.rotation, targetRot, rotateSmoothing); target.position = Vector3.Lerp(target.position, targetLookAt, moveSmoothing); distanceVec.z = distance; ((Component)this).transform.position = target.position - ((Component)this).transform.rotation * distanceVec; } private static float ClampAngle(float angle, float min, float max) { if (angle < -360f) { angle += 360f; } if (angle > 360f) { angle -= 360f; } return Mathf.Clamp(angle, min, max); } } namespace JerryGameMode { public class GRGmode : MonoBehaviour, IFVRDamageable { public Transform SpawnPoint_Large; public List SpawnPoints_Small; [NonSerialized] public int m_curSmallPos; [NonSerialized] public GameObject CurrentlySpawnedRandomGun; [NonSerialized] public List spawnCache = new List(); [NonSerialized] public FVRObject TestRandRoutineObj; [NonSerialized] public FVRFireArm fa; public bool BP = false; private void Start() { } private void Awake() { TryToSpawnRandomGun(); } public void Damage(Damage dam) { if ((!(dam.Dam_Thermal > 0f) && !(dam.Dam_TotalKinetic > 0f) && !(dam.Dam_TotalEnergetic > 0f) && !(dam.Dam_Blunt > 0f) && !(dam.Dam_Cutting > 0f) && !(dam.Dam_Piercing > 0f)) || BP) { return; } BP = true; if ((Object)(object)fa != (Object)null) { if (((Component)fa).GetComponentsInChildren().Length > 0) { for (int i = 0; i < ((Component)fa).GetComponentsInChildren().Length; i++) { if ((Object)(object)((Component)fa).GetComponentsInChildren()[i].m_hand != (Object)null) { ((Component)fa).GetComponentsInChildren()[i].ForceBreakInteraction(); } } } ((FVRInteractiveObject)fa).ForceBreakInteraction(); } CleanUpScene_All(); CleanUpScene_AllMags(); CleanUpScene_Empties(); CleanUpScene_Guns(); TryToSpawnRandomGun(); } public void TryToSpawnRandomGun() { spawnCache.Clear(); List list = ManagerSingleton.Instance.odicTagCategory[(ObjectCategory)1]; Debug.Log((object)(list.Count + " guns found in all")); for (int i = 0; i < list.Count; i++) { FVRObject val = list[i]; if (val.OSple && val.SpawnedFromId != null && !(val.SpawnedFromId == string.Empty) && IM.HasSpawnedID(val.SpawnedFromId) && IM.GetSpawnerID(val.SpawnedFromId).IsDisplayedInMainEntry && GM.Rewards.RewardUnlocks.IsRewardUnlocked(IM.GetSpawnerID(val.SpawnedFromId))) { spawnCache.Add(val); } } Debug.Log((object)(spawnCache.Count + " guns post cull")); FVRObject o = spawnCache[Random.Range(0, spawnCache.Count)]; if ((Object)(object)TestRandRoutineObj != (Object)null) { o = TestRandRoutineObj; } Debug.Log((object)"Spawning Random gun 1"); AnvilManager.Run(SpawnRandomGunRoutine(o)); } public IEnumerator SpawnRandomGunRoutine(FVRObject o) { fa = null; Debug.Log((object)"Spawning Random gun 2"); GameObject tempGO2 = null; if ((Object)(object)o == (Object)null) { yield break; } yield return ((AnvilAsset)o).GetGameObjectAsync(); ItemSpawnerID tempID = IM.GetSpawnerID(o.SpawnedFromId); m_curSmallPos++; if (m_curSmallPos >= SpawnPoints_Small.Count) { m_curSmallPos = 0; } if ((Object)(object)tempID.SecondObject != (Object)null) { yield return ((AnvilAsset)tempID.SecondObject).GetGameObjectAsync(); if ((Object)(object)((AnvilAsset)tempID.SecondObject).GetGameObject() != (Object)null) { GameObject val = Object.Instantiate(((AnvilAsset)tempID.SecondObject).GetGameObject(), SpawnPoints_Small[m_curSmallPos].position, SpawnPoints_Small[m_curSmallPos].rotation); m_curSmallPos++; if (m_curSmallPos >= SpawnPoints_Small.Count) { m_curSmallPos = 0; } val.SetActive(true); } } if (tempID.Secondaries.Length > 0) { for (int i = 0; i < tempID.Secondaries.Length; i++) { yield return ((AnvilAsset)tempID.Secondaries[i].MainObject).GetGameObjectAsync(); if ((Object)(object)((AnvilAsset)tempID.Secondaries[i].MainObject).GetGameObject() != (Object)null) { GameObject val2 = Object.Instantiate(((AnvilAsset)tempID.Secondaries[i].MainObject).GetGameObject(), SpawnPoints_Small[m_curSmallPos].position, SpawnPoints_Small[m_curSmallPos].rotation); m_curSmallPos++; if (m_curSmallPos >= SpawnPoints_Small.Count) { m_curSmallPos = 0; } val2.SetActive(true); } } } tempGO2 = (CurrentlySpawnedRandomGun = Object.Instantiate(((AnvilAsset)o).GetGameObject(), SpawnPoint_Large.position + Vector3.up * 0.2f, SpawnPoint_Large.rotation)); tempGO2.SetActive(true); fa = tempGO2.GetComponent(); BP = false; if (!((Object)(object)fa == (Object)null)) { } } private void FixedUpdate() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_0199: 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_02aa: Unknown result type (might be due to invalid IL or missing references) //IL_02ba: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)GM.CurrentMovementManager != (Object)null) { ((Component)GM.CurrentMovementManager).gameObject.transform.position = new Vector3(0f, 0f, 0f); ((Component)GM.CurrentMovementManager).gameObject.transform.eulerAngles = new Vector3(0f, 0f, 0f); } if ((Object)(object)GameObject.Find("SubM_12gauge_Flare(Clone)") != (Object)null && Vector3.Distance(GameObject.Find("SubM_12gauge_Flare(Clone)").transform.position, ((Component)this).gameObject.transform.position) < 0.5f) { if (!BP) { BP = true; if ((Object)(object)fa != (Object)null) { if (((Component)fa).GetComponentsInChildren().Length > 0) { for (int i = 0; i < ((Component)fa).GetComponentsInChildren().Length; i++) { if ((Object)(object)((Component)fa).GetComponentsInChildren()[i].m_hand != (Object)null) { ((Component)fa).GetComponentsInChildren()[i].ForceBreakInteraction(); } } } ((FVRInteractiveObject)fa).ForceBreakInteraction(); } CleanUpScene_All(); CleanUpScene_AllMags(); CleanUpScene_Empties(); CleanUpScene_Guns(); TryToSpawnRandomGun(); } Object.Destroy((Object)(object)GameObject.Find("SubM_12gauge_Flare(Clone)")); } if ((Object)(object)GameObject.Find("Cal_PlungerShell(Clone)") != (Object)null && Vector3.Distance(GameObject.Find("Cal_PlungerShell(Clone)").transform.position, ((Component)this).gameObject.transform.position) < 0.5f) { if (!BP) { BP = true; if ((Object)(object)fa != (Object)null) { if (((Component)fa).GetComponentsInChildren().Length > 0) { for (int j = 0; j < ((Component)fa).GetComponentsInChildren().Length; j++) { if ((Object)(object)((Component)fa).GetComponentsInChildren()[j].m_hand != (Object)null) { ((Component)fa).GetComponentsInChildren()[j].ForceBreakInteraction(); } } } ((FVRInteractiveObject)fa).ForceBreakInteraction(); } CleanUpScene_All(); CleanUpScene_AllMags(); CleanUpScene_Empties(); CleanUpScene_Guns(); TryToSpawnRandomGun(); } Object.Destroy((Object)(object)GameObject.Find("Cal_PlungerShell(Clone)")); } if (!((Object)(object)GameObject.Find("GrappleGunBolt(Clone)") != (Object)null) || !(Vector3.Distance(GameObject.Find("GrappleGunBolt(Clone)").transform.position, ((Component)this).gameObject.transform.position) < 0.5f)) { return; } if (!BP) { BP = true; if ((Object)(object)fa != (Object)null) { if (((Component)fa).GetComponentsInChildren().Length > 0) { for (int k = 0; k < ((Component)fa).GetComponentsInChildren().Length; k++) { if ((Object)(object)((Component)fa).GetComponentsInChildren()[k].m_hand != (Object)null) { ((Component)fa).GetComponentsInChildren()[k].ForceBreakInteraction(); } } } ((FVRInteractiveObject)fa).ForceBreakInteraction(); } CleanUpScene_All(); CleanUpScene_AllMags(); CleanUpScene_Empties(); CleanUpScene_Guns(); TryToSpawnRandomGun(); } Object.Destroy((Object)(object)GameObject.Find("GrappleGunBolt(Clone)")); } public void CleanUpScene_Empties() { FVRFireArmMagazine[] array = Object.FindObjectsOfType(); for (int num = array.Length - 1; num >= 0; num--) { if (!((FVRInteractiveObject)array[num]).IsHeld && (Object)(object)((FVRPhysicalObject)array[num]).QuickbeltSlot == (Object)null && (Object)(object)array[num].FireArm == (Object)null && array[num].m_numRounds == 0 && !array[num].IsIntegrated) { Object.Destroy((Object)(object)((Component)array[num]).gameObject); } } FVRFireArmRound[] array2 = Object.FindObjectsOfType(); for (int num2 = array2.Length - 1; num2 >= 0; num2--) { if (!((FVRInteractiveObject)array2[num2]).IsHeld && (Object)(object)((FVRPhysicalObject)array2[num2]).QuickbeltSlot == (Object)null && (Object)(object)((FVRPhysicalObject)array2[num2]).RootRigidbody != (Object)null) { Object.Destroy((Object)(object)((Component)array2[num2]).gameObject); } } FVRFireArmClip[] array3 = Object.FindObjectsOfType(); for (int num3 = array3.Length - 1; num3 >= 0; num3--) { if (!((FVRInteractiveObject)array3[num3]).IsHeld && (Object)(object)((FVRPhysicalObject)array3[num3]).QuickbeltSlot == (Object)null && (Object)(object)array3[num3].FireArm == (Object)null && array3[num3].m_numRounds == 0) { Object.Destroy((Object)(object)((Component)array3[num3]).gameObject); } } Speedloader[] array4 = Object.FindObjectsOfType(); for (int num4 = array4.Length - 1; num4 >= 0; num4--) { if (!((FVRInteractiveObject)array4[num4]).IsHeld && (Object)(object)((FVRPhysicalObject)array4[num4]).QuickbeltSlot == (Object)null) { Object.Destroy((Object)(object)((Component)array4[num4]).gameObject); } } } public void CleanUpScene_AllMags() { FVRFireArmMagazine[] array = Object.FindObjectsOfType(); for (int num = array.Length - 1; num >= 0; num--) { if (!((FVRInteractiveObject)array[num]).IsHeld && (Object)(object)((FVRPhysicalObject)array[num]).QuickbeltSlot == (Object)null && (Object)(object)array[num].FireArm == (Object)null && !array[num].IsIntegrated) { Object.Destroy((Object)(object)((Component)array[num]).gameObject); } } FVRFireArmRound[] array2 = Object.FindObjectsOfType(); for (int num2 = array2.Length - 1; num2 >= 0; num2--) { if (!((FVRInteractiveObject)array2[num2]).IsHeld && (Object)(object)((FVRPhysicalObject)array2[num2]).QuickbeltSlot == (Object)null && (Object)(object)((FVRPhysicalObject)array2[num2]).RootRigidbody != (Object)null) { Object.Destroy((Object)(object)((Component)array2[num2]).gameObject); } } FVRFireArmClip[] array3 = Object.FindObjectsOfType(); for (int num3 = array3.Length - 1; num3 >= 0; num3--) { if (!((FVRInteractiveObject)array3[num3]).IsHeld && (Object)(object)((FVRPhysicalObject)array3[num3]).QuickbeltSlot == (Object)null && (Object)(object)array3[num3].FireArm == (Object)null) { Object.Destroy((Object)(object)((Component)array3[num3]).gameObject); } } Speedloader[] array4 = Object.FindObjectsOfType(); for (int num4 = array4.Length - 1; num4 >= 0; num4--) { if (!((FVRInteractiveObject)array4[num4]).IsHeld && (Object)(object)((FVRPhysicalObject)array4[num4]).QuickbeltSlot == (Object)null) { Object.Destroy((Object)(object)((Component)array4[num4]).gameObject); } } } public void CleanUpScene_Guns() { FVRFireArm[] array = Object.FindObjectsOfType(); for (int num = array.Length - 1; num >= 0; num--) { if (!((FVRInteractiveObject)array[num]).IsHeld && (Object)(object)((FVRPhysicalObject)array[num]).QuickbeltSlot == (Object)null) { Object.Destroy((Object)(object)((Component)array[num]).gameObject); } } SosigWeapon[] array2 = Object.FindObjectsOfType(); for (int num2 = array2.Length - 1; num2 >= 0; num2--) { if (!((FVRInteractiveObject)array2[num2].O).IsHeld && (Object)(object)array2[num2].O.QuickbeltSlot == (Object)null && !array2[num2].IsHeldByBot && !array2[num2].IsInBotInventory) { Object.Destroy((Object)(object)((Component)array2[num2]).gameObject); } } FVRMeleeWeapon[] array3 = Object.FindObjectsOfType(); for (int num3 = array3.Length - 1; num3 >= 0; num3--) { if (!((FVRInteractiveObject)array3[num3]).IsHeld && (Object)(object)((FVRPhysicalObject)array3[num3]).QuickbeltSlot == (Object)null) { Object.Destroy((Object)(object)((Component)array3[num3]).gameObject); } } FVRFireArmAttachment[] array4 = Object.FindObjectsOfType(); for (int num4 = array4.Length - 1; num4 >= 0; num4--) { if (!((FVRInteractiveObject)array4[num4]).IsHeld && (Object)(object)((FVRPhysicalObject)array4[num4]).QuickbeltSlot == (Object)null && (Object)(object)array4[num4].curMount == (Object)null) { Object.Destroy((Object)(object)((Component)array4[num4]).gameObject); } } } public void CleanUpScene_All() { VaultSystem.ClearExistingSaveableObjects(true); } } } namespace Gamemodes { [CreateAssetMenu(fileName = "New Atlas Object Table", menuName = "MeatKit/Gamemodes/AtlasObjectTable", order = 0)] public class AtlasObjectTable : ScriptableObject { [Header("General Tags")] public ObjectCategory Category; public List Eras = new List(); public List Sets = new List(); public List CountriesOfOrigin = new List(); public int EarliestYear = -1; public int LatestYear = -1; [Header("Firearm Tags")] public List Sizes = new List(); public List Actions = new List(); public List Modes = new List(); public List ExcludedModes = new List(); public List FeedOptions = new List(); public List MountsAvailable = new List(); public List RoundPowers = new List(); [Header("Attachment Tags")] public List Features = new List(); public List MountTypes = new List(); [Header("Melee Tags")] public List MeleeStyles = new List(); public List MeleeHandedness = new List(); public List ThrownTypes = new List(); public List ThrownDamageTypes = new List(); [Header("Misc Tags")] public List PowerupTypes = new List(); [Header("Ammo Properties")] public int MinAmmoCapacity = -1; public int MaxAmmoCapacity = -1; public bool OverrideMagType; public bool OverrideRoundType; public FireArmMagazineType MagTypeOverride; public FireArmRoundType RoundTypeOverride; [Header("Misc Properties")] public List WhitelistedObjectIDs = new List(); public List BlacklistedObjectIDs = new List(); [NonSerialized] public List generatedObjects; public void GenerateTable() { //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_0106: 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_01b6: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_0311: Unknown result type (might be due to invalid IL or missing references) //IL_0342: Unknown result type (might be due to invalid IL or missing references) //IL_0373: Unknown result type (might be due to invalid IL or missing references) //IL_03a4: Unknown result type (might be due to invalid IL or missing references) //IL_03d5: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_0437: Unknown result type (might be due to invalid IL or missing references) //IL_04aa: Unknown result type (might be due to invalid IL or missing references) //IL_04b0: Unknown result type (might be due to invalid IL or missing references) //IL_04d0: Unknown result type (might be due to invalid IL or missing references) //IL_04d6: Unknown result type (might be due to invalid IL or missing references) generatedObjects = new List(); foreach (FVRObject fvr in IM.OD.Values) { if (WhitelistedObjectIDs.Contains(fvr.ItemID)) { generatedObjects.Add(fvr); } else if (!BlacklistedObjectIDs.Contains(fvr.ItemID) && fvr.OSple && fvr.Category == Category && (Eras.Count <= 0 || Eras.Contains(fvr.TagEra)) && (Sets.Count <= 0 || Sets.Contains(fvr.TagSet)) && (CountriesOfOrigin.Count <= 0 || CountriesOfOrigin.Contains(fvr.TagFirearmCountryOfOrigin)) && (EarliestYear <= -1 || fvr.TagFirearmFirstYear >= EarliestYear) && (LatestYear <= -1 || fvr.TagFirearmFirstYear <= LatestYear) && (Sizes.Count <= 0 || Sizes.Contains(fvr.TagFirearmSize)) && (Actions.Count <= 0 || Actions.Contains(fvr.TagFirearmAction)) && (Modes.Count <= 0 || Modes.Any((OTagFirearmFiringMode o) => fvr.TagFirearmFiringModes.Contains(o))) && (ExcludedModes.Count <= 0 || !ExcludedModes.Any((OTagFirearmFiringMode o) => fvr.TagFirearmFiringModes.Contains(o))) && (FeedOptions.Count <= 0 || FeedOptions.Any((OTagFirearmFeedOption o) => fvr.TagFirearmFeedOption.Contains(o))) && (MountsAvailable.Count <= 0 || MountsAvailable.Any((OTagFirearmMount o) => fvr.TagFirearmMounts.Contains(o))) && (RoundPowers.Count <= 0 || RoundPowers.Contains(fvr.TagFirearmRoundPower)) && (Features.Count <= 0 || Features.Contains(fvr.TagAttachmentFeature)) && (MountTypes.Count <= 0 || MountTypes.Contains(fvr.TagAttachmentMount)) && (MeleeStyles.Count <= 0 || MeleeStyles.Contains(fvr.TagMeleeStyle)) && (MeleeHandedness.Count <= 0 || MeleeHandedness.Contains(fvr.TagMeleeHandedness)) && (ThrownTypes.Count <= 0 || ThrownTypes.Contains(fvr.TagThrownType)) && (ThrownDamageTypes.Count <= 0 || ThrownDamageTypes.Contains(fvr.TagThrownDamageType)) && (PowerupTypes.Count <= 0 || PowerupTypes.Contains(fvr.TagPowerupType)) && (MinAmmoCapacity <= -1 || fvr.MaxCapacityRelated >= MinAmmoCapacity) && (MaxAmmoCapacity <= -1 || fvr.MinCapacityRelated <= MaxAmmoCapacity) && (!OverrideMagType || fvr.MagazineType == MagTypeOverride) && (!OverrideRoundType || fvr.RoundType == RoundTypeOverride)) { generatedObjects.Add(fvr); } } } } [CreateAssetMenu(fileName = "New Atlas Outfit Config", menuName = "MeatKit/Gamemodes/AtlasOutfitConfig", order = 0)] public class AtlasOutfitConfigTemplate : ScriptableObject { public List Headwear; public float Chance_Headwear; public List Eyewear; public float Chance_Eyewear; public List Facewear; public float Chance_Facewear; public List Torsowear; public float Chance_Torsowear; public List Pantswear; public float Chance_Pantswear; public List Pantswear_Lower; public float Chance_Pantswear_Lower; public List Backpacks; public float Chance_Backpacks; public SosigOutfitConfig GetOutfitConfig() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Expected O, but got Unknown SosigOutfitConfig val = (SosigOutfitConfig)ScriptableObject.CreateInstance(typeof(SosigOutfitConfig)); val.Chance_Headwear = Chance_Headwear; val.Headwear = Headwear.Select((string o) => IM.OD[o]).ToList(); val.Chance_Eyewear = Chance_Eyewear; val.Eyewear = Eyewear.Select((string o) => IM.OD[o]).ToList(); val.Chance_Facewear = Chance_Facewear; val.Facewear = Facewear.Select((string o) => IM.OD[o]).ToList(); val.Chance_Torsowear = Chance_Torsowear; val.Torsowear = Torsowear.Select((string o) => IM.OD[o]).ToList(); val.Chance_Pantswear = Chance_Pantswear; val.Pantswear = Pantswear.Select((string o) => IM.OD[o]).ToList(); val.Chance_Pantswear_Lower = Chance_Pantswear_Lower; val.Pantswear_Lower = Pantswear_Lower.Select((string o) => IM.OD[o]).ToList(); val.Chance_Backpacks = Chance_Backpacks; val.Backpacks = Backpacks.Select((string o) => IM.OD[o]).ToList(); return val; } } [CreateAssetMenu(fileName = "New Atlas Config", menuName = "MeatKit/Gamemodes/AtlasConfigTemplate", order = 0)] public class AtlasSosigConfigTemplate : ScriptableObject { public float ViewDistance; public float HearingDistance; public float MaxFOV; public float SearchExtentsModifier; public bool DoesAggroOnFriendlyFire; public bool HasABrain; public bool DoesDropWeaponsOnBallistic; public bool CanPickupRanged; public bool CanPickupMelee; public bool CanPickupOther; public int TargetCapacity; public float TargetTrackingTime; public float NoFreshTargetTime; public float AssaultPointOverridesSkirmishPointWhenFurtherThan; public float RunSpeed; public float WalkSpeed; public float SneakSpeed; public float CrawlSpeed; public float TurnSpeed; public float MaxJointLimit; public float MovementRotMagnitude; public float TotalMustard; public float BleedDamageMult; public float BleedRateMultiplier; public float BleedVFXIntensity; public float DamMult_Projectile; public float DamMult_Explosive; public float DamMult_Melee; public float DamMult_Piercing; public float DamMult_Blunt; public float DamMult_Cutting; public float DamMult_Thermal; public float DamMult_Chilling; public float DamMult_EMP; public List LinkDamageMultipliers; public List LinkStaggerMultipliers; public List StartingLinkIntegrity; public List StartingChanceBrokenJoint; public float ShudderThreshold; public float ConfusionThreshold; public float ConfusionMultiplier; public float ConfusionTimeMax; public float StunThreshold; public float StunMultiplier; public float StunTimeMax; public bool CanBeGrabbed; public bool CanBeSevered; public bool CanBeStabbed; public bool CanBeSurpressed; public float SuppressionMult; public bool DoesJointBreakKill_Head; public bool DoesJointBreakKill_Upper; public bool DoesJointBreakKill_Lower; public bool DoesSeverKill_Head; public bool DoesSeverKill_Upper; public bool DoesSeverKill_Lower; public bool DoesExplodeKill_Head; public bool DoesExplodeKill_Upper; public bool DoesExplodeKill_Lower; public SosigConfigTemplate GetConfigTemplate() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Expected O, but got Unknown SosigConfigTemplate val = (SosigConfigTemplate)ScriptableObject.CreateInstance(typeof(SosigConfigTemplate)); val.ViewDistance = ViewDistance; val.HearingDistance = HearingDistance; val.MaxFOV = MaxFOV; val.SearchExtentsModifier = SearchExtentsModifier; val.DoesAggroOnFriendlyFire = DoesAggroOnFriendlyFire; val.HasABrain = HasABrain; val.DoesDropWeaponsOnBallistic = DoesDropWeaponsOnBallistic; val.CanPickup_Ranged = CanPickupRanged; val.CanPickup_Melee = CanPickupMelee; val.CanPickup_Other = CanPickupOther; val.TargetCapacity = TargetCapacity; val.TargetTrackingTime = TargetTrackingTime; val.NoFreshTargetTime = NoFreshTargetTime; val.AssaultPointOverridesSkirmishPointWhenFurtherThan = AssaultPointOverridesSkirmishPointWhenFurtherThan; val.RunSpeed = RunSpeed; val.WalkSpeed = WalkSpeed; val.SneakSpeed = SneakSpeed; val.CrawlSpeed = CrawlSpeed; val.TurnSpeed = TurnSpeed; val.MaxJointLimit = MaxJointLimit; val.MovementRotMagnitude = MovementRotMagnitude; val.TotalMustard = TotalMustard; val.BleedDamageMult = BleedDamageMult; val.BleedRateMultiplier = BleedRateMultiplier; val.BleedVFXIntensity = BleedVFXIntensity; val.DamMult_Projectile = DamMult_Projectile; val.DamMult_Explosive = DamMult_Explosive; val.DamMult_Melee = DamMult_Melee; val.DamMult_Piercing = DamMult_Piercing; val.DamMult_Blunt = DamMult_Blunt; val.DamMult_Cutting = DamMult_Cutting; val.DamMult_Thermal = DamMult_Thermal; val.DamMult_Chilling = DamMult_Chilling; val.DamMult_EMP = DamMult_EMP; val.LinkDamageMultipliers = LinkDamageMultipliers; val.LinkStaggerMultipliers = LinkStaggerMultipliers; val.StartingLinkIntegrity = StartingLinkIntegrity; val.StartingChanceBrokenJoint = StartingChanceBrokenJoint; val.ShudderThreshold = ShudderThreshold; val.ConfusionThreshold = ConfusionThreshold; val.ConfusionMultiplier = ConfusionMultiplier; val.ConfusionTimeMax = ConfusionTimeMax; val.StunThreshold = StunThreshold; val.StunMultiplier = StunMultiplier; val.StunTimeMax = StunTimeMax; val.CanBeGrabbed = CanBeGrabbed; val.CanBeSevered = CanBeSevered; val.CanBeStabbed = CanBeStabbed; val.CanBeSurpressed = CanBeSurpressed; val.SuppressionMult = SuppressionMult; val.DoesJointBreakKill_Head = DoesJointBreakKill_Head; val.DoesJointBreakKill_Upper = DoesJointBreakKill_Upper; val.DoesJointBreakKill_Lower = DoesJointBreakKill_Lower; val.DoesSeverKill_Head = DoesSeverKill_Head; val.DoesSeverKill_Upper = DoesSeverKill_Upper; val.DoesSeverKill_Lower = DoesSeverKill_Lower; val.DoesExplodeKill_Head = DoesExplodeKill_Head; val.DoesExplodeKill_Upper = DoesExplodeKill_Upper; val.DoesExplodeKill_Lower = DoesExplodeKill_Lower; val.UsesLinkSpawns = false; val.LinkSpawns = new List(); val.LinkSpawnChance = new List(); val.OverrideSpeech = false; return val; } } [CreateAssetMenu(fileName = "New Atlas Enemy Template", menuName = "MeatKit/Gamemodes/AtlasEnemyTemplate", order = 0)] public class AtlasSosigEnemyTemplate : ScriptableObject { public string DisplayName; public SosigEnemyCategory SosigEnemyCategory; public List SosigPrefabs; public List Configs; public List ConfigsEasy; public List OutfitConfigs; public List WeaponOptions; public List WeaponOptionsSecondary; public List WeaponOptionsTertiary; public float SecondaryChance; public float TertiaryChance; public SosigEnemyTemplate GetSosigEnemyTemplate() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Expected O, but got Unknown //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) SosigEnemyTemplate val = (SosigEnemyTemplate)ScriptableObject.CreateInstance(typeof(SosigEnemyTemplate)); val.DisplayName = DisplayName; val.SosigEnemyCategory = SosigEnemyCategory; val.SosigPrefabs = SosigPrefabs.Select((string o) => IM.OD[o]).ToList(); val.ConfigTemplates = Configs.Select((AtlasSosigConfigTemplate o) => o.GetConfigTemplate()).ToList(); val.ConfigTemplates_Easy = ConfigsEasy.Select((AtlasSosigConfigTemplate o) => o.GetConfigTemplate()).ToList(); val.OutfitConfig = OutfitConfigs.Select((AtlasOutfitConfigTemplate o) => o.GetOutfitConfig()).ToList(); val.WeaponOptions = WeaponOptions.Select((string o) => IM.OD[o]).ToList(); val.WeaponOptions_Secondary = WeaponOptionsSecondary.Select((string o) => IM.OD[o]).ToList(); val.WeaponOptions_Tertiary = WeaponOptionsTertiary.Select((string o) => IM.OD[o]).ToList(); val.SecondaryChance = SecondaryChance; val.TertiaryChance = TertiaryChance; return val; } } public class BuildableCover : MonoBehaviour { public GameObject coverGeo; public MeshRenderer areaMesh; public SphereCollider areaCollider; public bool built; private void OnTriggerEnter(Collider other) { if (built) { return; } Supplies component = ((Component)other).GetComponent(); if ((Object)(object)component != (Object)null) { if ((Object)(object)((FVRInteractiveObject)component).m_hand != (Object)null) { ((FVRInteractiveObject)component).ForceBreakInteraction(); } Object.Destroy((Object)(object)((Component)component).gameObject); BuildCover(); } } public void BuildCover() { built = true; coverGeo.SetActive(true); ((Collider)areaCollider).enabled = false; ((Renderer)areaMesh).enabled = false; } public void ResetCover() { built = false; coverGeo.SetActive(false); ((Collider)areaCollider).enabled = false; ((Renderer)areaMesh).enabled = false; } } public class ButtonList : MonoBehaviour { public SelectableButton buttonPrefab; public Transform buttonOrigin; public float buttonSpacing; [HideInInspector] public List buttons = new List(); public SelectableButton AddButton(string text, UnityAction onClick, bool selectable) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown SelectableButton buttonComp = Object.Instantiate(buttonPrefab, buttonOrigin.position, buttonOrigin.rotation, buttonOrigin); Transform transform = ((Component)buttonComp).transform; transform.localPosition += Vector3.down * (float)buttons.Count * buttonSpacing; buttonComp.text.text = text; buttonComp.button.onClick = new ButtonClickedEvent(); ((UnityEvent)buttonComp.button.onClick).AddListener(onClick); if (selectable) { ((UnityEvent)buttonComp.button.onClick).AddListener((UnityAction)delegate { buttonComp.SetSelected(); }); buttonComp.otherButtons.AddRange(buttons); foreach (SelectableButton button in buttons) { button.otherButtons.Add(buttonComp); } } buttons.Add(buttonComp); return buttonComp; } public void ClearButtons() { for (int i = 0; i < buttons.Count; i++) { Object.Destroy((Object)(object)((Component)buttons[i]).gameObject); } buttons.Clear(); } } } namespace KOTH { public class KOTHMenuController : MonoBehaviour { public GameObject gamePanel; public KOTHLoadoutEditor loadoutPanel; public GameObject loadingContainer; public Slider loadingBar; public Transform menuPoint; public ButtonList gamemodeButtons; public ButtonList levelButtons; public ButtonList timePeriodButtons; public ButtonList loadoutButtons; public List teamText; public Text healthText; public Text rateText; public Text wristText; private static KOTHMenuController instanceRef; [HideInInspector] public bool hasPlayerInit = false; [HideInInspector] public bool hasGameInit = false; private float basePointDistance; private WristMenuButton menuButton; public static KOTHMenuController instance { get { if ((Object)(object)instanceRef == (Object)null) { instanceRef = Object.FindObjectOfType(); } return instanceRef; } set { instanceRef = value; } } private void Awake() { instance = this; loadingContainer.SetActive(true); ((Component)loadingBar).gameObject.SetActive(true); gamePanel.SetActive(false); ((Component)loadoutPanel).gameObject.SetActive(false); ((Component)KOTHManager.instance).gameObject.SetActive(false); } private void Update() { if (!hasPlayerInit) { DelayedPlayerInit(); } else if (!hasGameInit) { UpdateLoadProgress(); DelayedGameInit(); } } private void DelayedPlayerInit() { //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Expected O, but got Unknown if ((Object)(object)GM.CurrentPlayerBody != (Object)null && (Object)(object)GM.CurrentSceneSettings != (Object)null) { Debug.Log((object)"Delayed Init of Player"); hasPlayerInit = true; basePointDistance = GM.CurrentSceneSettings.MaxPointingDistance; SetPlayerSpectator(menuPoint); menuButton = new WristMenuButton("Game Menu", new ButtonClickEvent(StartGoToMenu)); WristMenuAPI.Buttons.Add(menuButton); } } private void DelayedGameInit() { if (LoaderStatus.GetLoaderProgress() >= 1f) { Debug.Log((object)"Delayed Init of Game"); hasGameInit = true; loadingContainer.SetActive(false); gamePanel.SetActive(true); ((Component)KOTHManager.instance).gameObject.SetActive(true); KOTHManager.instance.DelayedInit(); InitGamemodeButtons(); InitLevelButtons(); InitTimePeriodButtons(); InitLoadoutButtons(); InitSettingsText(); } } public void InitGamemodeButtons() { //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Expected O, but got Unknown gamemodeButtons.ClearButtons(); gamemodeButtons.AddButton("KOTH", (UnityAction)delegate { }, selectable: true); gamemodeButtons.buttons[0].SetSelected(); } public void InitLevelButtons() { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Expected O, but got Unknown levelButtons.ClearButtons(); foreach (KOTHLevel level in KOTHManager.instance.levels) { levelButtons.AddButton(((Object)level).name, new UnityAction(level.SetActiveLevel), selectable: true); } levelButtons.buttons[0].SetSelected(); } public void InitTimePeriodButtons() { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Expected O, but got Unknown timePeriodButtons.ClearButtons(); foreach (KOTHTimePeriodOption timePeriodOption in KOTHManager.instance.timePeriodOptions) { timePeriodButtons.AddButton(timePeriodOption.timePeriodName, new UnityAction(timePeriodOption.SetActiveTimePeriod), selectable: true); } timePeriodButtons.buttons[0].SetSelected(); } public void InitLoadoutButtons() { //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown loadoutButtons.ClearButtons(); foreach (PlayerLoadout loadout in KOTHManager.instance.currentTimePeriod.loadouts) { loadoutButtons.AddButton(loadout.LoadoutName, (UnityAction)delegate { KOTHManager.instance.SetPlayerLoadout(loadout); }, selectable: true); } loadoutButtons.buttons[0].SetSelected(); } private void InitSettingsText() { for (int i = 0; i < teamText.Count; i++) { teamText[i].text = KOTHManager.instance.teams[i].maxSosigs.ToString(); } healthText.text = KOTHManager.instance.playerHealth.ToString(); rateText.text = KOTHManager.instance.sosigSpawnFrequency.ToString(); wristText.text = KOTHManager.instance.wristMap.displayMode.ToString(); } private void UpdateLoadProgress() { loadingBar.value = LoaderStatus.GetLoaderProgress(); } private void OnDestroy() { WristMenuAPI.Buttons.Remove(menuButton); } public void StartGoToMenu(object sender, ButtonClickEventArgs args) { //IL_0022: Unknown result type (might be due to invalid IL or missing references) if (PlayerTracker.currentPlayerState != PlayerState.enteringSpectator) { PlayerTracker.currentPlayerState = PlayerState.enteringSpectator; GM.CurrentSceneSettings.DoesDamageGetRegistered = false; SteamVR_Fade.Start(Color.black, GM.CurrentSceneSettings.PlayerDeathFade, false); ((MonoBehaviour)this).Invoke("DelayedGoToMenu", GM.CurrentSceneSettings.PlayerDeathFade); } } public void DelayedGoToMenu() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) SetPlayerSpectator(menuPoint); CleanupItems(); gamePanel.SetActive(true); ((Component)loadoutPanel).gameObject.SetActive(false); SteamVR_Fade.Start(Color.clear, 0.5f, false); } public void SetPlay() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) if (PlayerTracker.currentPlayerState != PlayerState.spawningIn) { PlayerTracker.currentPlayerState = PlayerState.spawningIn; SteamVR_Fade.Start(Color.black, GM.CurrentSceneSettings.PlayerDeathFade, false); ((MonoBehaviour)this).Invoke("SpawnPlayer", GM.CurrentSceneSettings.PlayerDeathFade); } } public void SetEditLoadout() { gamePanel.SetActive(false); ((Component)loadoutPanel).gameObject.SetActive(true); loadoutPanel.InitLoadoutEditor(); } public void SetGameMenu() { gamePanel.SetActive(true); ((Component)loadoutPanel).gameObject.SetActive(false); } public void SetPlayerSpectator(Transform point) { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) PlayerTracker.ClearPlayerItems(); PlayerTracker.currentPlayerState = PlayerState.spectating; GM.CurrentPlayerRoot.localScale = new Vector3(10f, 10f, 10f); ((Component)WristMenuAPI.Instance2).transform.localScale = GM.CurrentPlayerRoot.localScale; GM.CurrentMovementManager.TeleportToPoint(point.position, true, point.forward); GM.CurrentMovementManager.Mode = (MovementMode)10; GM.CurrentPlayerBody.SetPlayerIFF(-3); GM.CurrentPlayerBody.DisableHitBoxes(); GM.CurrentSceneSettings.DoesDamageGetRegistered = false; GM.CurrentPlayerBody.HealthBar.gameObject.SetActive(false); GM.CurrentSceneSettings.MaxPointingDistance = 100f; } public void SpawnPlayer() { //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) gamePanel.SetActive(false); ((Component)loadoutPanel).gameObject.SetActive(false); PlayerTracker.currentPlayerState = PlayerState.playing; GM.CurrentPlayerRoot.localScale = new Vector3(1f, 1f, 1f); ((Component)WristMenuAPI.Instance2).transform.localScale = GM.CurrentPlayerRoot.localScale; GM.CurrentMovementManager.Mode = GM.Options.MovementOptions.CurrentMovementMode; GM.CurrentPlayerBody.SetPlayerIFF(0); GM.CurrentPlayerBody.EnableHitBoxes(); GM.CurrentSceneSettings.DoesDamageGetRegistered = true; GM.CurrentPlayerBody.HealthBar.gameObject.SetActive(true); GM.CurrentSceneSettings.MaxPointingDistance = basePointDistance; if (((Component)KOTHManager.instance).gameObject.activeInHierarchy) { KOTHManager.instance.MovePlayerSpawnpoint(); KOTHManager.instance.OnPlayerFadeComplete(); GM.CurrentMovementManager.TeleportToPoint(KOTHManager.instance.playerSpawn.position, true, KOTHManager.instance.playerSpawn.forward); } SteamVR_Fade.Start(Color.clear, 0.5f, false); } public void IncreasePlayerHealth() { if (((Component)KOTHManager.instance).gameObject.activeInHierarchy) { KOTHManager.instance.playerHealth = Math.Max(1000f, KOTHManager.instance.playerHealth + 1000f); GM.CurrentPlayerBody.SetHealthThreshold(KOTHManager.instance.playerHealth); healthText.text = ((int)KOTHManager.instance.playerHealth).ToString(); } } public void DecreasePlayerHealth() { if (((Component)KOTHManager.instance).gameObject.activeInHierarchy) { KOTHManager.instance.playerHealth = Math.Max(1000f, KOTHManager.instance.playerHealth - 1000f); GM.CurrentPlayerBody.SetHealthThreshold(KOTHManager.instance.playerHealth); healthText.text = ((int)KOTHManager.instance.playerHealth).ToString(); } } public void IncreaseSosigCount(int team) { if (!((Component)KOTHManager.instance).gameObject.activeInHierarchy) { return; } KOTHManager.instance.teams[team].maxSosigs = Math.Max(1, KOTHManager.instance.teams[team].maxSosigs + 1); teamText[team].text = KOTHManager.instance.teams[team].maxSosigs.ToString(); foreach (KOTHTimePeriodOption timePeriodOption in KOTHManager.instance.timePeriodOptions) { timePeriodOption.kothTeams[team].maxSosigs = KOTHManager.instance.teams[team].maxSosigs; } } public void DecreaseSosigCount(int team) { if (!((Component)KOTHManager.instance).gameObject.activeInHierarchy) { return; } KOTHManager.instance.teams[team].maxSosigs = Math.Max(1, KOTHManager.instance.teams[team].maxSosigs - 1); teamText[team].text = KOTHManager.instance.teams[team].maxSosigs.ToString(); foreach (KOTHTimePeriodOption timePeriodOption in KOTHManager.instance.timePeriodOptions) { timePeriodOption.kothTeams[team].maxSosigs = KOTHManager.instance.teams[team].maxSosigs; } } public void IncreaseSosigDelay() { if (((Component)KOTHManager.instance).gameObject.activeInHierarchy) { KOTHManager.instance.sosigSpawnFrequency = Math.Max(0.1f, KOTHManager.instance.sosigSpawnFrequency + 0.1f); rateText.text = KOTHManager.instance.sosigSpawnFrequency.ToString("0.0"); } } public void DecreaseSosigDelay() { if (((Component)KOTHManager.instance).gameObject.activeInHierarchy) { KOTHManager.instance.sosigSpawnFrequency = Math.Max(0.1f, KOTHManager.instance.sosigSpawnFrequency - 0.1f); rateText.text = KOTHManager.instance.sosigSpawnFrequency.ToString("0.0"); } } public void IncrementWristMode(bool decrease) { KOTHManager.instance.wristMap.IncrementMapState(decrease); wristText.text = KOTHManager.instance.wristMap.displayMode.ToString(); } public void CleanupItems() { FVRPhysicalObject[] array = Object.FindObjectsOfType(); foreach (FVRPhysicalObject val in array) { if (!((FVRInteractiveObject)val).IsHeld && (Object)(object)val.QuickbeltSlot == (Object)null) { if (val is FVRFireArm || val is FVRFireArmMagazine || val is FVRFireArmRound || val is FVRFireArmClip || val is Speedloader || val is FVRMeleeWeapon || val is PinnedGrenade || val is FVRFireArmAttachment) { Object.Destroy((Object)(object)((Component)val).gameObject); } else if (val is GrappleThrowable) { ((Component)val).gameObject.GetComponent().ClearRopeLengths(); Object.Destroy((Object)(object)((Component)val).gameObject); } } } GrappleGunBolt[] array2 = Object.FindObjectsOfType(); foreach (GrappleGunBolt val2 in array2) { val2.ClearRopeLengths(); Object.Destroy((Object)(object)((Component)val2).gameObject); } } } } namespace Gamemodes { public class KillBox : MonoBehaviour { public LayerMask layerMask; public bool killPlayer; private void OnTriggerEnter(Collider other) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) if (((1 << ((Component)other).gameObject.layer) & LayerMask.op_Implicit(layerMask)) == 0) { return; } Sosig componentInParent = ((Component)other).GetComponentInParent(); if ((Object)(object)componentInParent != (Object)null) { componentInParent.KillSosig(); } else if (killPlayer && PlayerTracker.currentPlayerState == PlayerState.playing) { FVRPlayerHitbox component = ((Component)other).GetComponent(); if ((Object)(object)component != (Object)null) { component.Body.HarmPercent(1000f); } } } } [CreateAssetMenu(fileName = "New Loadout Pool", menuName = "Loadout/LoadoutPool", order = 0)] public class LoadoutPool : ScriptableObject { public string poolName; public int poolCost; public List tables; public List additionalItems; public int minMagCapacity = -1; public int maxMagCapacity = -1; public int itemsToSpawn = 1; [HideInInspector] public List items = new List(); private int lastSpawnedIndex = 0; public void InitializeTables() { items.Clear(); foreach (AtlasObjectTable table in tables) { table.GenerateTable(); items.AddRange(table.generatedObjects); } foreach (string additionalItem in additionalItems) { if (IM.OD.ContainsKey(additionalItem)) { items.Add(IM.OD[additionalItem]); } } IListExtensions.Shuffle((IList)items); IListExtensions.Shuffle((IList)items); lastSpawnedIndex = Random.Range(0, items.Count); } public FVRObject GetItem() { lastSpawnedIndex++; if (lastSpawnedIndex >= items.Count) { lastSpawnedIndex = 0; } return items[lastSpawnedIndex]; } } [CreateAssetMenu(fileName = "New Player Loadout", menuName = "Loadout/PlayerLoadout", order = 0)] public class PlayerLoadout : ScriptableObject { public string LoadoutName; public LoadoutPool rightHandTable; public LoadoutPool leftHandTable; public List quickbeltTables; public bool magInOtherHand; public bool bespokeInOtherHand; } public enum PlayerState { waitingToRespawn, spectating, playing, enteringSpectator, spawningIn } public static class PlayerTracker { public static PlayerState currentPlayerState = PlayerState.spectating; public static void EquipPlayer(PlayerLoadout loadout) { ClearPlayerItems(); EquipHands(loadout); EquipQuickbelt(loadout); } public static void ClearPlayerItems() { FVRViveHand component = ((Component)GM.CurrentPlayerBody.RightHand).GetComponent(); FVRInteractiveObject currentInteractable = component.CurrentInteractable; if ((Object)(object)currentInteractable != (Object)null) { currentInteractable.ForceBreakInteraction(); Object.Destroy((Object)(object)((Component)currentInteractable).gameObject); } FVRViveHand component2 = ((Component)GM.CurrentPlayerBody.LeftHand).GetComponent(); FVRInteractiveObject currentInteractable2 = component2.CurrentInteractable; if ((Object)(object)currentInteractable2 != (Object)null) { currentInteractable2.ForceBreakInteraction(); Object.Destroy((Object)(object)((Component)currentInteractable2).gameObject); } GM.CurrentPlayerBody.WipeQuickbeltContents(); } public static void EquipHands(PlayerLoadout loadout) { //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Invalid comparison between Unknown and I4 bool flag = false; bool flag2 = false; if ((Object)(object)loadout.rightHandTable != (Object)null) { FVRObject item = loadout.rightHandTable.GetItem(); GivePlayerItemRightHand(item.ItemID); flag2 = true; FVRObject val = null; if (item.CompatibleMagazines.Count > 0) { if (loadout.rightHandTable.maxMagCapacity < 0 && loadout.rightHandTable.minMagCapacity < 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleMagazines); } else { List list = item.CompatibleMagazines.Where((FVRObject o) => (loadout.rightHandTable.maxMagCapacity < 0 || o.MagazineCapacity <= loadout.rightHandTable.maxMagCapacity) && (loadout.rightHandTable.minMagCapacity < 0 || o.MagazineCapacity >= loadout.rightHandTable.minMagCapacity)).ToList(); val = ((list.Count <= 0) ? FirearmAPI.GetSmallestMagazine(item, (Func)null) : SodaliteUtils.GetRandom((IList)list)); } } else if (item.CompatibleClips.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleClips); } else if (item.CompatibleSpeedLoaders.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleSpeedLoaders); } else if (item.CompatibleSingleRounds.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleSingleRounds); } if ((Object)(object)val != (Object)null) { if (loadout.magInOtherHand && (int)val.Category == 2) { GivePlayerItemLeftHand(val.ItemID); flag = true; } GivePlayerItemQuickbelt(val.ItemID); } if (loadout.bespokeInOtherHand && !flag && item.BespokeAttachments.Count > 0) { GivePlayerItemLeftHand(SodaliteUtils.GetRandom((IList)item.BespokeAttachments).ItemID); flag = true; } } if (!((Object)(object)loadout.leftHandTable != (Object)null) || flag) { return; } FVRObject item2 = loadout.leftHandTable.GetItem(); GivePlayerItemLeftHand(item2.ItemID); FVRObject val2 = null; if (item2.CompatibleMagazines.Count > 0) { if (loadout.leftHandTable.maxMagCapacity < 0 && loadout.leftHandTable.minMagCapacity < 0) { val2 = SodaliteUtils.GetRandom((IList)item2.CompatibleMagazines); } else { List list2 = item2.CompatibleMagazines.Where((FVRObject o) => (loadout.leftHandTable.maxMagCapacity < 0 || o.MaxCapacityRelated <= loadout.leftHandTable.maxMagCapacity) && (loadout.leftHandTable.minMagCapacity < 0 || o.MinCapacityRelated >= loadout.leftHandTable.minMagCapacity)).ToList(); val2 = ((list2.Count <= 0) ? FirearmAPI.GetSmallestMagazine(item2, (Func)null) : SodaliteUtils.GetRandom((IList)list2)); } } else if (item2.CompatibleClips.Count > 0) { val2 = SodaliteUtils.GetRandom((IList)item2.CompatibleClips); } else if (item2.CompatibleSpeedLoaders.Count > 0) { val2 = SodaliteUtils.GetRandom((IList)item2.CompatibleSpeedLoaders); } else if (item2.CompatibleSingleRounds.Count > 0) { val2 = SodaliteUtils.GetRandom((IList)item2.CompatibleSingleRounds); } if ((Object)(object)val2 != (Object)null) { if (loadout.magInOtherHand && !flag2) { GivePlayerItemRightHand(val2.ItemID); flag2 = true; } GivePlayerItemQuickbelt(val2.ItemID); } if (loadout.bespokeInOtherHand && !flag2 && item2.BespokeAttachments.Count > 0) { GivePlayerItemRightHand(SodaliteUtils.GetRandom((IList)item2.BespokeAttachments).ItemID); flag2 = true; } } public static void EquipQuickbelt(PlayerLoadout loadout) { foreach (LoadoutPool quickbeltTable in loadout.quickbeltTables) { if ((Object)(object)quickbeltTable == (Object)null) { continue; } for (int i = 0; i < quickbeltTable.itemsToSpawn; i++) { FVRObject item = quickbeltTable.GetItem(); GivePlayerItemQuickbelt(item.ItemID); if (item.RequiredSecondaryPieces.Count > 0) { foreach (FVRObject requiredSecondaryPiece in item.RequiredSecondaryPieces) { GivePlayerItemQuickbelt(requiredSecondaryPiece.ItemID); } } FVRObject val = null; if (item.CompatibleMagazines.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleMagazines); } else if (item.CompatibleClips.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleClips); } else if (item.CompatibleSpeedLoaders.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleSpeedLoaders); } else if (item.CompatibleSingleRounds.Count > 0) { val = SodaliteUtils.GetRandom((IList)item.CompatibleSingleRounds); } if ((Object)(object)val != (Object)null) { GivePlayerItemQuickbelt(val.ItemID); } } } } public static FVRPhysicalObject GivePlayerItemQuickbelt(string itemID) { //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) if (!IM.OD.ContainsKey(itemID)) { return null; } Transform head = GM.CurrentPlayerBody.Head; GameObject val = Object.Instantiate(((AnvilAsset)IM.OD[itemID]).GetGameObject(), ((Component)head).transform.position + ((Component)head).transform.forward / 2f, ((Component)head).transform.rotation); if ((Object)(object)val.gameObject.GetComponent() != (Object)null) { Debug.Log((object)"Grapple spawned!"); } FVRPhysicalObject[] components = val.GetComponents(); FVRPhysicalObject val2 = ((IEnumerable)components).FirstOrDefault((Func)((FVRPhysicalObject o) => ((Behaviour)o).enabled)); if (components.Length > 1) { Debug.Log((object)"hey we have two components!"); } foreach (FVRQuickBeltSlot item in GM.CurrentPlayerBody.QBSlots_Internal.OrderBy((FVRQuickBeltSlot o) => o.SizeLimit)) { if ((Object)(object)item.CurObject == (Object)null && item.Type == val2.QBSlotType && item.SizeLimit >= val2.Size) { val2.SetQuickBeltSlot(item); break; } } if ((Object)(object)val.gameObject.GetComponent() != (Object)null) { Debug.Log((object)("Is it in a quickbelt? " + ((Object)(object)val2.m_quickbeltSlot != (Object)null))); } return val2; } public static FVRPhysicalObject GivePlayerItemLeftHand(string itemID) { //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) if (!IM.OD.ContainsKey(itemID)) { return null; } FVRViveHand component = ((Component)GM.CurrentPlayerBody.LeftHand).GetComponent(); if ((Object)(object)component.CurrentInteractable != (Object)null) { Debug.LogError((object)"Player was holding stuff!"); return null; } FVRPhysicalObject component2 = Object.Instantiate(((AnvilAsset)IM.OD[itemID]).GetGameObject(), ((Component)component).transform.position, ((Component)component).transform.rotation).GetComponent(); component.RetrieveObject(component2); return component2; } public static FVRPhysicalObject GivePlayerItemRightHand(string itemID) { //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) if (!IM.OD.ContainsKey(itemID)) { return null; } FVRViveHand component = ((Component)GM.CurrentPlayerBody.RightHand).GetComponent(); if ((Object)(object)component.CurrentInteractable != (Object)null) { Debug.LogError((object)"Player was holding stuff!"); return null; } FVRPhysicalObject component2 = Object.Instantiate(((AnvilAsset)IM.OD[itemID]).GetGameObject(), ((Component)component).transform.position, ((Component)component).transform.rotation).GetComponent(); component.RetrieveObject(component2); return component2; } } } namespace SosigRadio { public class Radio : FVRPhysicalObject { [Header("Radio Settings")] public float pointDistance = 50f; public float followUpdateDelay = 1f; public LayerMask sosigLayer; public LayerMask environmentLayer; [HideInInspector] public Quaternion upRotation; [HideInInspector] public Sosig hoveredSosig; [HideInInspector] public List selectedSosigs = new List(); [HideInInspector] public List followingSosigs = new List(); private bool radioActive; private float currentUpdateTime = 0f; private int currentFollowingSosigIndex = 0; public override void Awake() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) ((FVRPhysicalObject)this).Awake(); upRotation = Quaternion.LookRotation(Vector3.up); } public override void UpdateInteraction(FVRViveHand hand) { ((FVRPhysicalObject)this).UpdateInteraction(hand); if (hand.Input.TriggerFloat > 0.5f) { radioActive = true; } else { radioActive = false; selectedSosigs.Clear(); hoveredSosig = null; } if (IsHandSelecting(hand) && (Object)(object)hoveredSosig != (Object)null && !selectedSosigs.Contains(hoveredSosig) && hoveredSosig.E.IFFCode == GM.CurrentPlayerBody.GetPlayerIFF()) { selectedSosigs.Add(hoveredSosig); } if (IsHandCommanding(hand)) { Debug.Log((object)"Command button pressed"); CommandSelectedSosigs(); } } private bool IsHandSelecting(FVRViveHand hand) { return (hand.IsInStreamlinedMode && hand.Input.AXButtonPressed) || (!hand.IsInStreamlinedMode && hand.Input.TouchpadNorthPressed); } private bool IsHandCommanding(FVRViveHand hand) { return (hand.IsInStreamlinedMode && hand.Input.BYButtonDown) || (!hand.IsInStreamlinedMode && hand.Input.TouchpadSouthDown); } public override void EndInteraction(FVRViveHand hand) { ((FVRPhysicalObject)this).EndInteraction(hand); radioActive = false; selectedSosigs.Clear(); hoveredSosig = null; } public override void FVRUpdate() { ((FVRPhysicalObject)this).FVRUpdate(); if (radioActive) { UpdateRadioPointer(); UpdateSelectedSosigs(); } UpdateFollowingSosigs(); } private void UpdateSelectedSosigs() { for (int i = 0; i < selectedSosigs.Count; i++) { if ((Object)(object)selectedSosigs[i] == (Object)null || selectedSosigs[i].Links.Count < 4 || (Object)(object)selectedSosigs[i].Links[3] == (Object)null) { selectedSosigs.RemoveAt(i); i--; continue; } if (selectedSosigs.Count == 0) { break; } DrawSosigSelection(selectedSosigs[i]); } } private void UpdateFollowingSosigs() { //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: 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_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) currentUpdateTime -= Time.deltaTime; if (!(currentUpdateTime < 0f)) { return; } currentUpdateTime = followUpdateDelay; while (followingSosigs.Count > 0) { currentFollowingSosigIndex++; if (currentFollowingSosigIndex >= followingSosigs.Count) { currentFollowingSosigIndex = 0; } if ((Object)(object)followingSosigs[currentFollowingSosigIndex] == (Object)null) { followingSosigs.RemoveAt(currentFollowingSosigIndex); continue; } Vector3 val = GM.CurrentPlayerBody.Head.position - GM.CurrentPlayerBody.Head.forward; if (Vector3.Distance(val, followingSosigs[currentFollowingSosigIndex].m_assaultPoint) > 1f) { followingSosigs[currentFollowingSosigIndex].CommandAssaultPoint(val); } break; } } private void UpdateRadioPointer() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0026: 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_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) RaycastHit val = default(RaycastHit); if (Physics.Raycast(((Component)((FVRInteractiveObject)this).m_hand.OtherHand).transform.position, ((FVRInteractiveObject)this).m_hand.OtherHand.PointingTransform.forward, ref val, pointDistance, LayerMask.op_Implicit(sosigLayer))) { SosigLink componentInParent = ((Component)((RaycastHit)(ref val)).collider).GetComponentInParent(); Debug.Log((object)("Hit agent body! " + componentInParent)); if ((Object)(object)componentInParent != (Object)null) { if (componentInParent.S.E.IFFCode != GM.CurrentPlayerBody.GetPlayerIFF()) { DrawRadioPointer(Color.red); } else if (selectedSosigs.Contains(componentInParent.S)) { DrawRadioPointer(Color.green); } else { DrawRadioPointer(Color.yellow); } hoveredSosig = componentInParent.S; return; } } hoveredSosig = null; DrawRadioPointer(Color.white); } private void DrawRadioPointer(Color color) { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) Gizmos.Line(((Component)((FVRInteractiveObject)this).m_hand.OtherHand).transform.position, ((Component)((FVRInteractiveObject)this).m_hand.OtherHand).transform.position + ((FVRInteractiveObject)this).m_hand.OtherHand.PointingTransform.forward * pointDistance, (Color?)color, false); } private void DrawSosigSelection(Sosig sosig) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Invalid comparison between Unknown and I4 //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Unknown result type (might be due to invalid IL or missing references) Gizmos.Circle(((Component)sosig.Links[3]).transform.position, 0.2f, upRotation, (Color?)Color.green, false, 16); if (followingSosigs.Contains(sosig)) { Gizmos.Line(((Component)sosig.Links[3]).transform.position, ((Component)GM.CurrentPlayerBody).transform.position, (Color?)Color.blue, false); } else if ((int)sosig.FallbackOrder == 7) { Gizmos.Line(((Component)sosig.Links[3]).transform.position, sosig.m_assaultPoint, (Color?)Color.blue, false); } } private void CommandSelectedSosigs() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0026: 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_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: 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_00bb: Unknown result type (might be due to invalid IL or missing references) RaycastHit val = default(RaycastHit); if (!Physics.Raycast(((Component)((FVRInteractiveObject)this).m_hand.OtherHand).transform.position, ((FVRInteractiveObject)this).m_hand.OtherHand.PointingTransform.forward, ref val, pointDistance, LayerMask.op_Implicit(environmentLayer))) { return; } if (Vector3.Distance(((Component)GM.CurrentPlayerBody).transform.position, ((RaycastHit)(ref val)).point) < 1f) { foreach (Sosig selectedSosig in selectedSosigs) { if (!((Object)(object)selectedSosig == (Object)null) && !followingSosigs.Contains(selectedSosig)) { followingSosigs.Add(selectedSosig); selectedSosig.CommandAssaultPoint(((RaycastHit)(ref val)).point); } } return; } Vector3 point = ((RaycastHit)(ref val)).point; Debug.Log((object)("Commanding sosigs to assault point: " + ((object)(Vector3)(ref point)).ToString())); foreach (Sosig selectedSosig2 in selectedSosigs) { if (!((Object)(object)selectedSosig2 == (Object)null)) { if (followingSosigs.Contains(selectedSosig2)) { followingSosigs.Remove(selectedSosig2); } selectedSosig2.CommandAssaultPoint(((RaycastHit)(ref val)).point); } } } } } namespace Gamemodes { public class SelectableButton : MonoBehaviour { public Color selectedColor; public List otherButtons; public Text text; [HideInInspector] public FVRPointableButton fvrButton; [HideInInspector] public Button button; [HideInInspector] public Color normalColor; private void Awake() { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) button = ((Component)this).GetComponent