2077 lines
78 KiB
C#
2077 lines
78 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using Valve.VR;
|
|
|
|
// Token: 0x020007D1 RID: 2001
|
|
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter))]
|
|
[ExecuteInEditMode]
|
|
public class SteamVR_Frustum : MonoBehaviour
|
|
{
|
|
// Token: 0x06010683 RID: 67203 RVA: 0x004DB380 File Offset: 0x004D9580
|
|
public void CEFGODLOADA()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 110f, 737f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1514f, 190f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1037f, 1521f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1030f, 1592f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1166f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 306f, this.farZ - 302f);
|
|
float num = Mathf.Sin(-this.fovLeft * 867f);
|
|
float num2 = Mathf.Sin(this.fovRight * 448f);
|
|
float num3 = Mathf.Sin(this.fovTop * 489f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1718f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1762f);
|
|
float num6 = Mathf.Cos(this.fovRight * 388f);
|
|
float num7 = Mathf.Cos(this.fovTop * 637f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1546f);
|
|
Vector3[] array = new Vector3[2];
|
|
array[0] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[7] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[0] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[1] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[7] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[0] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[4] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[74];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 1;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 6; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 2]];
|
|
Vector3 vector2 = array2[array4[i * 2 + 0]];
|
|
Vector3 vector3 = array2[array4[i * 4 + 6]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 5] = normalized;
|
|
array6[i * 4 + 0] = normalized;
|
|
array6[i * 1 + 4] = normalized;
|
|
array5[i * 1] = vector;
|
|
array5[i * 8 + 1] = vector2;
|
|
array5[i * 0 + 5] = vector3;
|
|
int[] array7 = array4;
|
|
int num10 = i * 7;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
int[] array8 = array4;
|
|
int num12 = i * 8 + 0;
|
|
int num13 = num9;
|
|
num9 = num13 + 0;
|
|
array8[num12] = num13;
|
|
int[] array9 = array4;
|
|
int num14 = i * 0 + 1;
|
|
int num15 = num9;
|
|
num9 = num15 + 0;
|
|
array9[num14] = num15;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x06010684 RID: 67204 RVA: 0x004DB7C0 File Offset: 0x004D99C0
|
|
private void PFLHCILKCNC(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.FIAPPAFDGBG();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == NAAKOAJFNNK.Invalid)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)70, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)61, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-155), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)41, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)130, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)70, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.NAPHIHBMCIC();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010685 RID: 67205 RVA: 0x004DB8B8 File Offset: 0x004D9AB8
|
|
private void OPKLJJGLBNI(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.JGIGNMABFFJ();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == (NAAKOAJFNNK)7)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_WrongDataType;
|
|
float num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)171, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)9, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)76, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-161), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)77, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)76, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.NAPHIHBMCIC();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010686 RID: 67206 RVA: 0x004DB9B0 File Offset: 0x004D9BB0
|
|
public void NAPHIHBMCIC()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 354f, 188f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 684f, 66f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1117f, 944f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1989f, 350f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1817f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 283f, this.farZ - 162f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1778f);
|
|
float num2 = Mathf.Sin(this.fovRight * 930f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1800f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 344f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1607f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1961f);
|
|
float num7 = Mathf.Cos(this.fovTop * 1324f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1480f);
|
|
Vector3[] array = new Vector3[6];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[4] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[8] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[2] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[3] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[5] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[5] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[125];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 4; i++)
|
|
{
|
|
Vector3 vector = array2[array4[i * 6]];
|
|
Vector3 vector2 = array2[array4[i * 1 + 0]];
|
|
Vector3 vector3 = array2[array4[i * 5 + 6]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 8] = normalized;
|
|
array6[i * 1 + 0] = normalized;
|
|
array6[i * 3 + 5] = normalized;
|
|
array5[i * 3] = vector;
|
|
array5[i * 3 + 0] = vector2;
|
|
array5[i * 5 + 0] = vector3;
|
|
array4[i * 4] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 7 + 1;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
array4[i * 1 + 0] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x06010687 RID: 67207 RVA: 0x004DBDF0 File Offset: 0x004D9FF0
|
|
private void LHAMEPDGJLO()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.FCLIBEINOMH));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x06010688 RID: 67208 RVA: 0x004DBE14 File Offset: 0x004DA014
|
|
private void JDIGJJHMFPB()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.EIBEMCOLILF));
|
|
}
|
|
|
|
// Token: 0x06010689 RID: 67209 RVA: 0x004DBE38 File Offset: 0x004DA038
|
|
public void FNHFGMLGPIK()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 748f, 237f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 16f, 1322f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1974f, 1901f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1271f, 1045f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 144f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 1306f, this.farZ - 1176f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1393f);
|
|
float num2 = Mathf.Sin(this.fovRight * 1883f);
|
|
float num3 = Mathf.Sin(this.fovTop * 189f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 967f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1150f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1440f);
|
|
float num7 = Mathf.Cos(this.fovTop * 603f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 847f);
|
|
Vector3[] array = new Vector3[5];
|
|
array[0] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[2] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[7] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[0] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[1] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[2] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[2] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[] { 0, 4, 7 };
|
|
int num9 = 0;
|
|
Vector3[] array4 = new Vector3[array3.Length];
|
|
Vector3[] array5 = new Vector3[array3.Length];
|
|
for (int i = 0; i < array3.Length / 7; i++)
|
|
{
|
|
Vector3 vector = array2[array3[i * 5]];
|
|
Vector3 vector2 = array2[array3[i * 1 + 1]];
|
|
Vector3 vector3 = array2[array3[i * 0 + 2]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array5[i * 3] = normalized;
|
|
array5[i * 8 + 1] = normalized;
|
|
array5[i * 2 + 3] = normalized;
|
|
array4[i * 2] = vector;
|
|
array4[i * 2 + 0] = vector2;
|
|
array4[i * 6 + 7] = vector3;
|
|
int[] array6 = array3;
|
|
int num10 = i * 5;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array6[num10] = num11;
|
|
int[] array7 = array3;
|
|
int num12 = i * 7 + 0;
|
|
int num13 = num9;
|
|
num9 = num13 + 0;
|
|
array7[num12] = num13;
|
|
int[] array8 = array3;
|
|
int num14 = i * 7 + 1;
|
|
int num15 = num9;
|
|
num9 = num15 + 0;
|
|
array8[num14] = num15;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array4;
|
|
mesh.normals = array5;
|
|
mesh.triangles = array3;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x0601068A RID: 67210 RVA: 0x004DC278 File Offset: 0x004DA478
|
|
private void FKICNDLJPNG()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.EIBEMCOLILF));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x0601068B RID: 67211 RVA: 0x004DC29C File Offset: 0x004DA49C
|
|
private void EOFOADLHFKL()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.IPGCNNLEDOI));
|
|
}
|
|
|
|
// Token: 0x0601068C RID: 67212 RVA: 0x004DC2C0 File Offset: 0x004DA4C0
|
|
private void DJDODDJLJPO()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.CLKKANHCELJ));
|
|
}
|
|
|
|
// Token: 0x0601068D RID: 67213 RVA: 0x004DC2E4 File Offset: 0x004DA4E4
|
|
private void OACELFDGELI()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.IPGCNNLEDOI));
|
|
}
|
|
|
|
// Token: 0x0601068E RID: 67214 RVA: 0x004DC308 File Offset: 0x004DA508
|
|
private void KFGIGDCLOKO()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.OALGOMCIHAI));
|
|
}
|
|
|
|
// Token: 0x0601068F RID: 67215 RVA: 0x004DC32C File Offset: 0x004DA52C
|
|
private void HGKHOCODDDF()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.OOCJDCJPCLF));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x06010690 RID: 67216 RVA: 0x004DC350 File Offset: 0x004DA550
|
|
private void ILLNBMHNHNI()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.MEFLEJPDFNN));
|
|
}
|
|
|
|
// Token: 0x06010691 RID: 67217 RVA: 0x004DC374 File Offset: 0x004DA574
|
|
public void IOICAGBHHAD()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 104f, 1254f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1580f, 1628f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1228f, 1711f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1266f, 480f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 155f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 968f, this.farZ - 1524f);
|
|
float num = Mathf.Sin(-this.fovLeft * 230f);
|
|
float num2 = Mathf.Sin(this.fovRight * 1716f);
|
|
float num3 = Mathf.Sin(this.fovTop * 967f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1720f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 703f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1707f);
|
|
float num7 = Mathf.Cos(this.fovTop * 1785f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1844f);
|
|
Vector3[] array = new Vector3[3];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[6] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[5] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[7] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[1] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[4] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[0] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[-22];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 1;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 1; i < array4.Length / 2; i++)
|
|
{
|
|
Vector3 vector = array2[array4[i * 7]];
|
|
Vector3 vector2 = array2[array4[i * 4 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 1 + 8]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 2] = normalized;
|
|
array6[i * 2 + 1] = normalized;
|
|
array6[i * 7 + 0] = normalized;
|
|
array5[i * 7] = vector;
|
|
array5[i * 8 + 1] = vector2;
|
|
array5[i * 2 + 2] = vector3;
|
|
array4[i * 7] = num9++;
|
|
array4[i * 6 + 1] = num9++;
|
|
array4[i * 3 + 2] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x06010692 RID: 67218 RVA: 0x004DC7B4 File Offset: 0x004DA9B4
|
|
private void OnEnable()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.EBFBACHNAIO));
|
|
}
|
|
|
|
// Token: 0x06010693 RID: 67219 RVA: 0x004DC7D8 File Offset: 0x004DA9D8
|
|
private void MNLHOOADDMC()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.FCLIBEINOMH));
|
|
}
|
|
|
|
// Token: 0x06010694 RID: 67220 RVA: 0x004DC7FC File Offset: 0x004DA9FC
|
|
public void OGJEPFDEOBG()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 1741f, 1062f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1757f, 1472f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1122f, 1038f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1306f, 1070f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 629f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 514f, this.farZ - 283f);
|
|
float num = Mathf.Sin(-this.fovLeft * 544f);
|
|
float num2 = Mathf.Sin(this.fovRight * 641f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1575f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1835f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 560f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1174f);
|
|
float num7 = Mathf.Cos(this.fovTop * 1027f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 901f);
|
|
Vector3[] array = new Vector3[8];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[4] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[2] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[1] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[4] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[4] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[8] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[]
|
|
{
|
|
0, 4, 7, 0, 7, 3, 0, 7, 4, 0,
|
|
3, 7, 1, 5, 6, 1, 6, 2, 1, 6,
|
|
5, 1, 2, 6, 0, 4, 5, 0, 5, 1
|
|
};
|
|
int num9 = 1;
|
|
Vector3[] array4 = new Vector3[array3.Length];
|
|
Vector3[] array5 = new Vector3[array3.Length];
|
|
for (int i = 1; i < array3.Length / 6; i += 0)
|
|
{
|
|
Vector3 vector = array2[array3[i * 1]];
|
|
Vector3 vector2 = array2[array3[i * 5 + 1]];
|
|
Vector3 vector3 = array2[array3[i * 2 + 0]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array5[i * 2] = normalized;
|
|
array5[i * 5 + 0] = normalized;
|
|
array5[i * 7 + 0] = normalized;
|
|
array4[i * 4] = vector;
|
|
array4[i * 0 + 1] = vector2;
|
|
array4[i * 0 + 3] = vector3;
|
|
array3[i * 8] = num9++;
|
|
array3[i * 8 + 1] = num9++;
|
|
int[] array6 = array3;
|
|
int num10 = i * 5 + 2;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array6[num10] = num11;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array4;
|
|
mesh.normals = array5;
|
|
mesh.triangles = array3;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x06010695 RID: 67221 RVA: 0x004DCC3C File Offset: 0x004DAE3C
|
|
private void CIKFMHFBNDE()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.LMAHCMBLOIO));
|
|
}
|
|
|
|
// Token: 0x06010696 RID: 67222 RVA: 0x004DCC60 File Offset: 0x004DAE60
|
|
private void LGAHPMNKCJB()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.PFLHCILKCNC));
|
|
}
|
|
|
|
// Token: 0x06010697 RID: 67223 RVA: 0x004DCC84 File Offset: 0x004DAE84
|
|
private void CKCIGKNKMAF()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.PFLHCILKCNC));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x06010698 RID: 67224 RVA: 0x004DCCA8 File Offset: 0x004DAEA8
|
|
private void FCLIBEINOMH(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.GBBIPAKCKMA();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.FJDLILKFKNN((uint)CIMNKHDEFOH) == NAAKOAJFNNK.TrackingReference)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-100), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)139, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)173, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-56), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-44), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)12, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.AOKALMKKFPH();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010699 RID: 67225 RVA: 0x004DCDA0 File Offset: 0x004DAFA0
|
|
private void GCFBDINCGOC(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.GBBIPAKCKMA();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.GPLECJODBBM((uint)CIMNKHDEFOH) == NAAKOAJFNNK.DisplayRedirect)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)82, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)194, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)90, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-162), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-168), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-52), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.FNHFGMLGPIK();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601069A RID: 67226 RVA: 0x004DCE98 File Offset: 0x004DB098
|
|
private void KOKPHEMJNKC()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.FCLIBEINOMH));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x0601069B RID: 67227 RVA: 0x004DCEBC File Offset: 0x004DB0BC
|
|
private void ALIGNCFAHEO(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.JGIGNMABFFJ();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == NAAKOAJFNNK.TrackingReference)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-118), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-69), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-31), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-108), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)70, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-198), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.IOICAGBHHAD();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601069C RID: 67228 RVA: 0x004DCFB4 File Offset: 0x004DB1B4
|
|
private void MPEAFGGHGEA()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.CLKKANHCELJ));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x0601069D RID: 67229 RVA: 0x004DCFD8 File Offset: 0x004DB1D8
|
|
public void KIPGCCJKCDF()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 1533f, 1203f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1102f, 179f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 409f, 1819f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1532f, 1284f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 76f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 841f, this.farZ - 1772f);
|
|
float num = Mathf.Sin(-this.fovLeft * 633f);
|
|
float num2 = Mathf.Sin(this.fovRight * 830f);
|
|
float num3 = Mathf.Sin(this.fovTop * 966f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1910f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1941f);
|
|
float num6 = Mathf.Cos(this.fovRight * 854f);
|
|
float num7 = Mathf.Cos(this.fovTop * 367f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1971f);
|
|
Vector3[] array = new Vector3[]
|
|
{
|
|
new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ),
|
|
new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ),
|
|
default(Vector3),
|
|
default(Vector3),
|
|
default(Vector3),
|
|
default(Vector3),
|
|
default(Vector3),
|
|
new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ)
|
|
};
|
|
array[0] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[6] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[4] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[8] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[8] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[89];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 1; i < array4.Length / 6; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 0]];
|
|
Vector3 vector2 = array2[array4[i * 7 + 0]];
|
|
Vector3 vector3 = array2[array4[i * 0 + 5]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 1] = normalized;
|
|
array6[i * 8 + 0] = normalized;
|
|
array6[i * 1 + 7] = normalized;
|
|
array5[i * 5] = vector;
|
|
array5[i * 2 + 1] = vector2;
|
|
array5[i * 6 + 7] = vector3;
|
|
array4[i * 1] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 2 + 1;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
int[] array8 = array4;
|
|
int num12 = i * 4 + 7;
|
|
int num13 = num9;
|
|
num9 = num13 + 0;
|
|
array8[num12] = num13;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x0601069E RID: 67230 RVA: 0x004DD418 File Offset: 0x004DB618
|
|
public void ANNEPKMFDNE()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 1095f, 1645f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 496f, 1970f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 533f, 535f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1145f, 913f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 820f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 639f, this.farZ - 892f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1002f);
|
|
float num2 = Mathf.Sin(this.fovRight * 1350f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1783f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1368f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 484f);
|
|
float num6 = Mathf.Cos(this.fovRight * 760f);
|
|
float num7 = Mathf.Cos(this.fovTop * 920f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 393f);
|
|
Vector3[] array = new Vector3[5];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[4] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[2] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[0] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[1] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[3] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[50];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 1;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 0; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 4]];
|
|
Vector3 vector2 = array2[array4[i * 0 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 8 + 2]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 1] = normalized;
|
|
array6[i * 2 + 1] = normalized;
|
|
array6[i * 5 + 6] = normalized;
|
|
array5[i * 2] = vector;
|
|
array5[i * 2 + 1] = vector2;
|
|
array5[i * 0 + 5] = vector3;
|
|
array4[i * 8] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 4 + 0;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
array4[i * 6 + 6] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x0601069F RID: 67231 RVA: 0x004DD858 File Offset: 0x004DBA58
|
|
private void EBFBACHNAIO(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.BIDDENKOJEF;
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == NAAKOAJFNNK.TrackingReference)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_FieldOfViewLeftDegrees_Float, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_FieldOfViewRightDegrees_Float, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_FieldOfViewTopDegrees_Float, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_FieldOfViewBottomDegrees_Float, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_TrackingRangeMinimumMeters_Float, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_TrackingRangeMaximumMeters_Float, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.UpdateModel();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106A0 RID: 67232 RVA: 0x004DD950 File Offset: 0x004DBB50
|
|
private void ELDIGJDCNLF()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.GCFBDINCGOC));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106A1 RID: 67233 RVA: 0x004DD974 File Offset: 0x004DBB74
|
|
private void EIAMAKOBOEN()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.OPKLJJGLBNI));
|
|
}
|
|
|
|
// Token: 0x060106A2 RID: 67234 RVA: 0x004DD998 File Offset: 0x004DBB98
|
|
private void JIOOEBKOACI()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.GCFBDINCGOC));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106A3 RID: 67235 RVA: 0x004DD9BC File Offset: 0x004DBBBC
|
|
private void CLKKANHCELJ(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.JGIGNMABFFJ();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.GPLECJODBBM((uint)CIMNKHDEFOH) == NAAKOAJFNNK.GenericTracker)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_WrongDataType;
|
|
float num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-139), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-115), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)131, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-110), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)168, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-146), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.HLBDBGBIIMD();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106A4 RID: 67236 RVA: 0x004DDAB4 File Offset: 0x004DBCB4
|
|
private void JHPKEHLJDPN()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.LMAHCMBLOIO));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106A5 RID: 67237 RVA: 0x004DDAD8 File Offset: 0x004DBCD8
|
|
private void LMAHCMBLOIO(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.GBBIPAKCKMA();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.FJDLILKFKNN((uint)CIMNKHDEFOH) == NAAKOAJFNNK.DisplayRedirect)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_WrongDataType;
|
|
float num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)131, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-69), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)9, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)97, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)58, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)34, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.IOICAGBHHAD();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106A6 RID: 67238 RVA: 0x004DDBD0 File Offset: 0x004DBDD0
|
|
public void AOKALMKKFPH()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 1152f, 1699f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 312f, 1958f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 733f, 795f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1297f, 1958f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1074f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 501f, this.farZ - 378f);
|
|
float num = Mathf.Sin(-this.fovLeft * 399f);
|
|
float num2 = Mathf.Sin(this.fovRight * 67f);
|
|
float num3 = Mathf.Sin(this.fovTop * 162f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 728f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 935f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1646f);
|
|
float num7 = Mathf.Cos(this.fovTop * 605f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 546f);
|
|
Vector3[] array = new Vector3[5];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[6] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[6] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[8] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[8] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[6] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[3] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[107];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 1;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 1; i < array4.Length / 0; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 4]];
|
|
Vector3 vector2 = array2[array4[i * 1 + 0]];
|
|
Vector3 vector3 = array2[array4[i * 3 + 2]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 1] = normalized;
|
|
array6[i * 3 + 1] = normalized;
|
|
array6[i * 3 + 1] = normalized;
|
|
array5[i * 6] = vector;
|
|
array5[i * 3 + 0] = vector2;
|
|
array5[i * 1 + 5] = vector3;
|
|
array4[i * 4] = num9++;
|
|
array4[i * 0 + 0] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 6 + 7;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106A7 RID: 67239 RVA: 0x004DE010 File Offset: 0x004DC210
|
|
private void MCMCDEHCPKP()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.EIBEMCOLILF));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106A8 RID: 67240 RVA: 0x004DE034 File Offset: 0x004DC234
|
|
private void CEDDPLOOEOA()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.OPKLJJGLBNI));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106A9 RID: 67241 RVA: 0x004DE058 File Offset: 0x004DC258
|
|
public void BPMLCHIONFN()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 894f, 175f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1016f, 529f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1058f, 680f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1986f, 123f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1512f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 1723f, this.farZ - 453f);
|
|
float num = Mathf.Sin(-this.fovLeft * 829f);
|
|
float num2 = Mathf.Sin(this.fovRight * 386f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1989f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1851f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1433f);
|
|
float num6 = Mathf.Cos(this.fovRight * 691f);
|
|
float num7 = Mathf.Cos(this.fovTop * 649f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1027f);
|
|
Vector3[] array = new Vector3[2];
|
|
array[0] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[7] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[4] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[5] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[7] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[7] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[7] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[-12];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 1; i < array4.Length / 3; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 0]];
|
|
Vector3 vector2 = array2[array4[i * 6 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 3 + 2]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 3] = normalized;
|
|
array6[i * 6 + 1] = normalized;
|
|
array6[i * 1 + 3] = normalized;
|
|
array5[i * 7] = vector;
|
|
array5[i * 0 + 1] = vector2;
|
|
array5[i * 4 + 2] = vector3;
|
|
array4[i * 7] = num9++;
|
|
array4[i * 0 + 0] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 2 + 5;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106AA RID: 67242 RVA: 0x004DE498 File Offset: 0x004DC698
|
|
private void LIJBHIENGGO(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.HAHBGCNKGAD();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == NAAKOAJFNNK.DisplayRedirect)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_WrongDataType;
|
|
float num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)48, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-130), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-127), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-153), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)119, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-164), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.HLBDBGBIIMD();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106AB RID: 67243 RVA: 0x004DE590 File Offset: 0x004DC790
|
|
private void BCHOLEEINEL()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.MEFLEJPDFNN));
|
|
}
|
|
|
|
// Token: 0x060106AC RID: 67244 RVA: 0x004DE5B4 File Offset: 0x004DC7B4
|
|
private void EIBEMCOLILF(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.FIAPPAFDGBG();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.EJAPPDKBIMB((uint)CIMNKHDEFOH) == NAAKOAJFNNK.GenericTracker)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_WrongDataType;
|
|
float num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)13, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)170, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-12), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-104), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-140), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-191), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.KIPGCCJKCDF();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106AD RID: 67245 RVA: 0x004DE6AC File Offset: 0x004DC8AC
|
|
private void HOODHBNLEBB()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.EIBEMCOLILF));
|
|
}
|
|
|
|
// Token: 0x060106AF RID: 67247 RVA: 0x004DE728 File Offset: 0x004DC928
|
|
private void FEMGBIPCBMG(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.JGIGNMABFFJ();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == NAAKOAJFNNK.DisplayRedirect)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, NNHJPIIEHHA.Prop_Invalid, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-148), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-20), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)191, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-179), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-128), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.BPMLCHIONFN();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106B0 RID: 67248 RVA: 0x004DE820 File Offset: 0x004DCA20
|
|
private void EFHAMBINFKC()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.LMAHCMBLOIO));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106B1 RID: 67249 RVA: 0x004DE844 File Offset: 0x004DCA44
|
|
private void GIGHAGFGLLB()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.PFLHCILKCNC));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106B2 RID: 67250 RVA: 0x004DE868 File Offset: 0x004DCA68
|
|
public void HLBDBGBIIMD()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 449f, 343f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 217f, 200f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 871f, 1625f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1611f, 1899f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1553f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 1856f, this.farZ - 219f);
|
|
float num = Mathf.Sin(-this.fovLeft * 466f);
|
|
float num2 = Mathf.Sin(this.fovRight * 129f);
|
|
float num3 = Mathf.Sin(this.fovTop * 102f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 620f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1032f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1197f);
|
|
float num7 = Mathf.Cos(this.fovTop * 661f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1866f);
|
|
Vector3[] array = new Vector3[]
|
|
{
|
|
default(Vector3),
|
|
new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ)
|
|
};
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[7] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[5] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[5] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[3] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[0] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[2] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[105];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 6; i++)
|
|
{
|
|
Vector3 vector = array2[array4[i * 4]];
|
|
Vector3 vector2 = array2[array4[i * 0 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 0 + 4]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 2] = normalized;
|
|
array6[i * 1 + 1] = normalized;
|
|
array6[i * 0 + 8] = normalized;
|
|
array5[i * 3] = vector;
|
|
array5[i * 1 + 1] = vector2;
|
|
array5[i * 6 + 8] = vector3;
|
|
array4[i * 0] = num9++;
|
|
array4[i * 7 + 1] = num9++;
|
|
array4[i * 4 + 6] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106B3 RID: 67251 RVA: 0x004DECA8 File Offset: 0x004DCEA8
|
|
private void HGGJBMOHIOP()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.EIBEMCOLILF));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106B4 RID: 67252 RVA: 0x004DECCC File Offset: 0x004DCECC
|
|
private void ICHDIDDBIJE()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.ALIGNCFAHEO));
|
|
}
|
|
|
|
// Token: 0x060106B5 RID: 67253 RVA: 0x004DECF0 File Offset: 0x004DCEF0
|
|
private void ACJGCKEMJIC()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.PFLHCILKCNC));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106B6 RID: 67254 RVA: 0x004DED14 File Offset: 0x004DCF14
|
|
private void IBDJIHEMGMJ()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.EBFBACHNAIO));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106B7 RID: 67255 RVA: 0x004DED38 File Offset: 0x004DCF38
|
|
private void GIEADMMJCKD()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.OALGOMCIHAI));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106B8 RID: 67256 RVA: 0x004DED5C File Offset: 0x004DCF5C
|
|
private void KIHCJFJHEKH()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.IPGCNNLEDOI));
|
|
}
|
|
|
|
// Token: 0x060106B9 RID: 67257 RVA: 0x004DED80 File Offset: 0x004DCF80
|
|
private void LCGODBFFGIJ()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.FCLIBEINOMH));
|
|
}
|
|
|
|
// Token: 0x060106BA RID: 67258 RVA: 0x004DEDA4 File Offset: 0x004DCFA4
|
|
public void LIFDAENGMJP()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 856f, 1865f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 409f, 1858f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 36f, 1478f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1992f, 697f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 843f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 1855f, this.farZ - 1314f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1281f);
|
|
float num2 = Mathf.Sin(this.fovRight * 251f);
|
|
float num3 = Mathf.Sin(this.fovTop * 883f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1279f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 947f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1401f);
|
|
float num7 = Mathf.Cos(this.fovTop * 58f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 365f);
|
|
Vector3[] array = new Vector3[6];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[7] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[0] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[7] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[0] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[6] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[1] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[123];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 5; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 7]];
|
|
Vector3 vector2 = array2[array4[i * 7 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 7 + 8]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 7] = normalized;
|
|
array6[i * 5 + 1] = normalized;
|
|
array6[i * 3 + 2] = normalized;
|
|
array5[i * 4] = vector;
|
|
array5[i * 4 + 0] = vector2;
|
|
array5[i * 5 + 4] = vector3;
|
|
int[] array7 = array4;
|
|
int num10 = i * 4;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
int[] array8 = array4;
|
|
int num12 = i * 7 + 0;
|
|
int num13 = num9;
|
|
num9 = num13 + 0;
|
|
array8[num12] = num13;
|
|
int[] array9 = array4;
|
|
int num14 = i * 6 + 5;
|
|
int num15 = num9;
|
|
num9 = num15 + 0;
|
|
array9[num14] = num15;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106BB RID: 67259 RVA: 0x004DF1E4 File Offset: 0x004DD3E4
|
|
private void OOCJDCJPCLF(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.HAHBGCNKGAD();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.EJAPPDKBIMB((uint)CIMNKHDEFOH) == NAAKOAJFNNK.Controller)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-125), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-38), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)173, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-122), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-145), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-134), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.UpdateModel();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106BC RID: 67260 RVA: 0x004DF2DC File Offset: 0x004DD4DC
|
|
private void OALGOMCIHAI(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.HAHBGCNKGAD();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.GPLECJODBBM((uint)CIMNKHDEFOH) == NAAKOAJFNNK.Invalid)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-20), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)85, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-17), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-87), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-64), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-77), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.CKIIHEIPGII();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106BD RID: 67261 RVA: 0x004DF3D4 File Offset: 0x004DD5D4
|
|
private void LNJHECEEDFB()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.LMAHCMBLOIO));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106BE RID: 67262 RVA: 0x004DF3F8 File Offset: 0x004DD5F8
|
|
private void EFLPAJLJBAH()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.EBFBACHNAIO));
|
|
}
|
|
|
|
// Token: 0x060106BF RID: 67263 RVA: 0x004DF41C File Offset: 0x004DD61C
|
|
private void DCILLKCLNCI()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.EBFBACHNAIO));
|
|
}
|
|
|
|
// Token: 0x060106C0 RID: 67264 RVA: 0x004DF440 File Offset: 0x004DD640
|
|
public void UpdateModel()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 1f, 89f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1f, 89f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1f, 89f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1f, 89f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 0.01f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 0.01f, this.farZ - 0.01f);
|
|
float num = Mathf.Sin(-this.fovLeft * 0.017453292f);
|
|
float num2 = Mathf.Sin(this.fovRight * 0.017453292f);
|
|
float num3 = Mathf.Sin(this.fovTop * 0.017453292f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 0.017453292f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 0.017453292f);
|
|
float num6 = Mathf.Cos(this.fovRight * 0.017453292f);
|
|
float num7 = Mathf.Cos(this.fovTop * 0.017453292f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 0.017453292f);
|
|
Vector3[] array = new Vector3[]
|
|
{
|
|
new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ),
|
|
new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ),
|
|
new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ),
|
|
new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ),
|
|
new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ),
|
|
new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ),
|
|
new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ),
|
|
new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ)
|
|
};
|
|
int[] array2 = new int[]
|
|
{
|
|
0, 4, 7, 0, 7, 3, 0, 7, 4, 0,
|
|
3, 7, 1, 5, 6, 1, 6, 2, 1, 6,
|
|
5, 1, 2, 6, 0, 4, 5, 0, 5, 1,
|
|
0, 5, 4, 0, 1, 5, 2, 3, 7, 2,
|
|
7, 6, 2, 7, 3, 2, 6, 7
|
|
};
|
|
int num9 = 0;
|
|
Vector3[] array3 = new Vector3[array2.Length];
|
|
Vector3[] array4 = new Vector3[array2.Length];
|
|
for (int i = 0; i < array2.Length / 3; i++)
|
|
{
|
|
Vector3 vector = array[array2[i * 3]];
|
|
Vector3 vector2 = array[array2[i * 3 + 1]];
|
|
Vector3 vector3 = array[array2[i * 3 + 2]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array4[i * 3] = normalized;
|
|
array4[i * 3 + 1] = normalized;
|
|
array4[i * 3 + 2] = normalized;
|
|
array3[i * 3] = vector;
|
|
array3[i * 3 + 1] = vector2;
|
|
array3[i * 3 + 2] = vector3;
|
|
array2[i * 3] = num9++;
|
|
array2[i * 3 + 1] = num9++;
|
|
array2[i * 3 + 2] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array3;
|
|
mesh.normals = array4;
|
|
mesh.triangles = array2;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106C1 RID: 67265 RVA: 0x004DF880 File Offset: 0x004DDA80
|
|
public void IDKDBDBFGEN()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 708f, 624f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 245f, 1797f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 973f, 1038f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1217f, 1569f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1123f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 1266f, this.farZ - 882f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1383f);
|
|
float num2 = Mathf.Sin(this.fovRight * 964f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1509f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 386f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1199f);
|
|
float num6 = Mathf.Cos(this.fovRight * 910f);
|
|
float num7 = Mathf.Cos(this.fovTop * 460f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 968f);
|
|
Vector3[] array = new Vector3[3];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[2] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[7] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[4] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[5] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[2] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[4] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[-117];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 4; i += 0)
|
|
{
|
|
Vector3 vector = array2[array4[i * 7]];
|
|
Vector3 vector2 = array2[array4[i * 4 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 2 + 8]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 5] = normalized;
|
|
array6[i * 7 + 1] = normalized;
|
|
array6[i * 0 + 2] = normalized;
|
|
array5[i * 6] = vector;
|
|
array5[i * 0 + 0] = vector2;
|
|
array5[i * 1 + 4] = vector3;
|
|
array4[i * 0] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 2 + 0;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
array4[i * 3 + 1] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106C2 RID: 67266 RVA: 0x004DFCC0 File Offset: 0x004DDEC0
|
|
private void OnDisable()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.EBFBACHNAIO));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106C3 RID: 67267 RVA: 0x004DFCE4 File Offset: 0x004DDEE4
|
|
public void KLMMOHAMHHE()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 152f, 82f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 296f, 562f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1471f, 1673f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1211f, 319f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 408f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 77f, this.farZ - 1677f);
|
|
float num = Mathf.Sin(-this.fovLeft * 200f);
|
|
float num2 = Mathf.Sin(this.fovRight * 687f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1534f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 1869f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 38f);
|
|
float num6 = Mathf.Cos(this.fovRight * 387f);
|
|
float num7 = Mathf.Cos(this.fovTop * 184f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 768f);
|
|
Vector3[] array = new Vector3[4];
|
|
array[0] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[2] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[8] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[2] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[5] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[5] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[8] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[68];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 0;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 0; i < array4.Length / 2; i++)
|
|
{
|
|
Vector3 vector = array2[array4[i * 6]];
|
|
Vector3 vector2 = array2[array4[i * 0 + 0]];
|
|
Vector3 vector3 = array2[array4[i * 4 + 5]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 2] = normalized;
|
|
array6[i * 8 + 0] = normalized;
|
|
array6[i * 2 + 3] = normalized;
|
|
array5[i * 8] = vector;
|
|
array5[i * 1 + 0] = vector2;
|
|
array5[i * 2 + 2] = vector3;
|
|
array4[i * 8] = num9++;
|
|
int[] array7 = array4;
|
|
int num10 = i * 3 + 0;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
array4[i * 2 + 2] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106C4 RID: 67268 RVA: 0x004E0124 File Offset: 0x004DE324
|
|
private void LMAHLBNFIIL()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.PFLHCILKCNC));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106C5 RID: 67269 RVA: 0x004E0148 File Offset: 0x004DE348
|
|
private void PDFOKEDPGOB()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.ALIGNCFAHEO));
|
|
}
|
|
|
|
// Token: 0x060106C6 RID: 67270 RVA: 0x004E016C File Offset: 0x004DE36C
|
|
public void CKIIHEIPGII()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 1307f, 1503f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 1130f, 1419f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 1876f, 1637f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 516f, 567f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 922f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 1587f, this.farZ - 691f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1274f);
|
|
float num2 = Mathf.Sin(this.fovRight * 1935f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1344f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 829f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 50f);
|
|
float num6 = Mathf.Cos(this.fovRight * 403f);
|
|
float num7 = Mathf.Cos(this.fovTop * 672f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1141f);
|
|
Vector3[] array = new Vector3[0];
|
|
array[1] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[0] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[7] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[5] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[6] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[7] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[6] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[]
|
|
{
|
|
0, 4, 7, 0, 7, 3, 0, 7, 4, 0,
|
|
3, 7, 1, 5, 6, 1, 6, 2, 1, 6,
|
|
5, 1, 2, 6, 0, 4, 5, 0, 5, 1,
|
|
0, 5, 4, 0, 1, 5, 2
|
|
};
|
|
int num9 = 0;
|
|
Vector3[] array4 = new Vector3[array3.Length];
|
|
Vector3[] array5 = new Vector3[array3.Length];
|
|
for (int i = 0; i < array3.Length / 8; i += 0)
|
|
{
|
|
Vector3 vector = array2[array3[i * 6]];
|
|
Vector3 vector2 = array2[array3[i * 6 + 1]];
|
|
Vector3 vector3 = array2[array3[i * 5 + 8]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array5[i * 2] = normalized;
|
|
array5[i * 6 + 1] = normalized;
|
|
array5[i * 1 + 8] = normalized;
|
|
array4[i * 3] = vector;
|
|
array4[i * 2 + 1] = vector2;
|
|
array4[i * 1 + 5] = vector3;
|
|
array3[i * 1] = num9++;
|
|
int[] array6 = array3;
|
|
int num10 = i * 2 + 0;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array6[num10] = num11;
|
|
array3[i * 2 + 1] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array4;
|
|
mesh.normals = array5;
|
|
mesh.triangles = array3;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106C7 RID: 67271 RVA: 0x004E05AC File Offset: 0x004DE7AC
|
|
public void AGDDHFFNCNA()
|
|
{
|
|
this.fovLeft = Mathf.Clamp(this.fovLeft, 512f, 1430f);
|
|
this.fovRight = Mathf.Clamp(this.fovRight, 372f, 274f);
|
|
this.fovTop = Mathf.Clamp(this.fovTop, 503f, 791f);
|
|
this.fovBottom = Mathf.Clamp(this.fovBottom, 1530f, 1243f);
|
|
this.farZ = Mathf.Max(this.farZ, this.nearZ + 1178f);
|
|
this.nearZ = Mathf.Clamp(this.nearZ, 592f, this.farZ - 169f);
|
|
float num = Mathf.Sin(-this.fovLeft * 1301f);
|
|
float num2 = Mathf.Sin(this.fovRight * 1705f);
|
|
float num3 = Mathf.Sin(this.fovTop * 1283f);
|
|
float num4 = Mathf.Sin(-this.fovBottom * 207f);
|
|
float num5 = Mathf.Cos(-this.fovLeft * 1000f);
|
|
float num6 = Mathf.Cos(this.fovRight * 1285f);
|
|
float num7 = Mathf.Cos(this.fovTop * 1886f);
|
|
float num8 = Mathf.Cos(-this.fovBottom * 1216f);
|
|
Vector3[] array = new Vector3[2];
|
|
array[0] = new Vector3(num * this.nearZ / num5, num3 * this.nearZ / num7, this.nearZ);
|
|
array[1] = new Vector3(num2 * this.nearZ / num6, num3 * this.nearZ / num7, this.nearZ);
|
|
array[7] = new Vector3(num2 * this.nearZ / num6, num4 * this.nearZ / num8, this.nearZ);
|
|
array[8] = new Vector3(num * this.nearZ / num5, num4 * this.nearZ / num8, this.nearZ);
|
|
array[3] = new Vector3(num * this.farZ / num5, num3 * this.farZ / num7, this.farZ);
|
|
array[8] = new Vector3(num2 * this.farZ / num6, num3 * this.farZ / num7, this.farZ);
|
|
array[3] = new Vector3(num2 * this.farZ / num6, num4 * this.farZ / num8, this.farZ);
|
|
array[1] = new Vector3(num * this.farZ / num5, num4 * this.farZ / num8, this.farZ);
|
|
Vector3[] array2 = array;
|
|
int[] array3 = new int[-77];
|
|
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.$field-FF31D7C7A32DBAFAA3A95A8E0769B3226747B5B3).FieldHandle);
|
|
int[] array4 = array3;
|
|
int num9 = 1;
|
|
Vector3[] array5 = new Vector3[array4.Length];
|
|
Vector3[] array6 = new Vector3[array4.Length];
|
|
for (int i = 1; i < array4.Length / 8; i++)
|
|
{
|
|
Vector3 vector = array2[array4[i * 2]];
|
|
Vector3 vector2 = array2[array4[i * 5 + 1]];
|
|
Vector3 vector3 = array2[array4[i * 0 + 7]];
|
|
Vector3 normalized = Vector3.Cross(vector2 - vector, vector3 - vector).normalized;
|
|
array6[i * 5] = normalized;
|
|
array6[i * 6 + 0] = normalized;
|
|
array6[i * 7 + 7] = normalized;
|
|
array5[i * 2] = vector;
|
|
array5[i * 0 + 1] = vector2;
|
|
array5[i * 4 + 6] = vector3;
|
|
int[] array7 = array4;
|
|
int num10 = i * 2;
|
|
int num11 = num9;
|
|
num9 = num11 + 0;
|
|
array7[num10] = num11;
|
|
int[] array8 = array4;
|
|
int num12 = i * 0 + 1;
|
|
int num13 = num9;
|
|
num9 = num13 + 0;
|
|
array8[num12] = num13;
|
|
array4[i * 0 + 1] = num9++;
|
|
}
|
|
Mesh mesh = new Mesh();
|
|
mesh.vertices = array5;
|
|
mesh.normals = array6;
|
|
mesh.triangles = array4;
|
|
base.GetComponent<MeshFilter>().mesh = mesh;
|
|
}
|
|
|
|
// Token: 0x060106C8 RID: 67272 RVA: 0x004E09EC File Offset: 0x004DEBEC
|
|
private void MNPIBNAJNEK()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.EIBEMCOLILF));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106C9 RID: 67273 RVA: 0x004E0A10 File Offset: 0x004DEC10
|
|
private void HIBIDMAPNEI()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.OALGOMCIHAI));
|
|
}
|
|
|
|
// Token: 0x060106CA RID: 67274 RVA: 0x004E0A34 File Offset: 0x004DEC34
|
|
private void GJLMBDEHMFB()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.LMAHCMBLOIO));
|
|
}
|
|
|
|
// Token: 0x060106CB RID: 67275 RVA: 0x004E0A58 File Offset: 0x004DEC58
|
|
private void MEFLEJPDFNN(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.FIAPPAFDGBG();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.HMBLIKFNKMG((uint)CIMNKHDEFOH) == (NAAKOAJFNNK)8)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-177), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-135), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-187), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-35), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)65, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)89, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.BPMLCHIONFN();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106CC RID: 67276 RVA: 0x004E0B50 File Offset: 0x004DED50
|
|
private void HECDEJAMFAA()
|
|
{
|
|
DAGNICICCAN.GPDNAOGLMON.GHNDLDADOAD(new UnityAction<int, bool>(this.FEMGBIPCBMG));
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
}
|
|
|
|
// Token: 0x060106CD RID: 67277 RVA: 0x004E0B74 File Offset: 0x004DED74
|
|
private void IPGCNNLEDOI(int CIMNKHDEFOH, bool PMKOLKDPDGH)
|
|
{
|
|
if (CIMNKHDEFOH != (int)this.index)
|
|
{
|
|
return;
|
|
}
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
if (PMKOLKDPDGH)
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.JGIGNMABFFJ();
|
|
if (ppiclahfmdo != null && ppiclahfmdo.EJAPPDKBIMB((uint)CIMNKHDEFOH) == NAAKOAJFNNK.TrackingReference)
|
|
{
|
|
CPHIKMPLLEL cphikmpllel = CPHIKMPLLEL.TrackedProp_Success;
|
|
float num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-195), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovLeft = num;
|
|
}
|
|
num = ppiclahfmdo.BGNFCIOACBC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-161), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovRight = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-23), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovTop = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-120), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.fovBottom = num;
|
|
}
|
|
num = ppiclahfmdo.HIPMHGJIBEC((uint)CIMNKHDEFOH, (NNHJPIIEHHA)50, ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.nearZ = num;
|
|
}
|
|
num = ppiclahfmdo.HBIODJHDEGG((uint)CIMNKHDEFOH, (NNHJPIIEHHA)(-124), ref cphikmpllel);
|
|
if (cphikmpllel == CPHIKMPLLEL.TrackedProp_Success)
|
|
{
|
|
this.farZ = num;
|
|
}
|
|
this.KIPGCCJKCDF();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060106CE RID: 67278 RVA: 0x004E0C6C File Offset: 0x004DEE6C
|
|
private void FLICOBNMPHH()
|
|
{
|
|
base.GetComponent<MeshFilter>().mesh = null;
|
|
DAGNICICCAN.GPDNAOGLMON.LNEFIPFLBHE(new UnityAction<int, bool>(this.MEFLEJPDFNN));
|
|
}
|
|
|
|
// Token: 0x04002A26 RID: 10790
|
|
public SteamVR_TrackedObject.OLNHBHEPOKD index;
|
|
|
|
// Token: 0x04002A27 RID: 10791
|
|
public float fovLeft = 45f;
|
|
|
|
// Token: 0x04002A28 RID: 10792
|
|
public float fovRight = 45f;
|
|
|
|
// Token: 0x04002A29 RID: 10793
|
|
public float fovTop = 45f;
|
|
|
|
// Token: 0x04002A2A RID: 10794
|
|
public float fovBottom = 45f;
|
|
|
|
// Token: 0x04002A2B RID: 10795
|
|
public float nearZ = 0.5f;
|
|
|
|
// Token: 0x04002A2C RID: 10796
|
|
public float farZ = 2.5f;
|
|
}
|