1703 lines
55 KiB
C#
1703 lines
55 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Valve.VR.InteractionSystem
|
|
{
|
|
// Token: 0x020005A5 RID: 1445
|
|
[RequireComponent(typeof(Interactable))]
|
|
public class ComplexThrowable : MonoBehaviour
|
|
{
|
|
// Token: 0x0600E529 RID: 58665 RVA: 0x00447268 File Offset: 0x00445468
|
|
private void MLPBEBKLGDM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.AGPNCODPEMC((ushort)(-198), (LKMJJEMLLKJ)(-60));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E52A RID: 58666 RVA: 0x0044729C File Offset: 0x0044549C
|
|
private void HEHCLIODNJJ(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
|
{
|
|
this.JDIDDHMIHFD(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E52B RID: 58667 RVA: 0x004472B0 File Offset: 0x004454B0
|
|
private void LAMIPDJGNMK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
|
{
|
|
this.JDIDDHMIHFD(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E52C RID: 58668 RVA: 0x004472C4 File Offset: 0x004454C4
|
|
private bool APFELPOBINN(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].PCBHNDBJJDC(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E52D RID: 58669 RVA: 0x00447358 File Offset: 0x00445558
|
|
private void OFOPHGFIAJM()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E52E RID: 58670 RVA: 0x00447368 File Offset: 0x00445568
|
|
private bool AHKDHJOJEOI(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E52F RID: 58671 RVA: 0x004473FC File Offset: 0x004455FC
|
|
private void Awake()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E530 RID: 58672 RVA: 0x0044740C File Offset: 0x0044560C
|
|
private void BKFMPHAHBEO(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E531 RID: 58673 RVA: 0x00447440 File Offset: 0x00445640
|
|
private void KFKGELJDJOP(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-133), (LKMJJEMLLKJ)16);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E532 RID: 58674 RVA: 0x00447474 File Offset: 0x00445674
|
|
private void OOAGIBIEAGH(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.JJJGEOKNEFP(17, (LKMJJEMLLKJ)80);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E533 RID: 58675 RVA: 0x004474A8 File Offset: 0x004456A8
|
|
private void HFEJGMADFGH()
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].BLECLFPGFMG())
|
|
{
|
|
this.JFDDFLKLDOI(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E534 RID: 58676 RVA: 0x004474FC File Offset: 0x004456FC
|
|
private void EFNFELICGLH(Hand GAEKGDCFOJM)
|
|
{
|
|
this.FHEFOABCBED(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1802f;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = true;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.JFCEAEEPFCF(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 60f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.MIOBJLJJPJE(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E535 RID: 58677 RVA: 0x0044764C File Offset: 0x0044584C
|
|
private void KHMIAOGPAPI()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i += 0)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.Impulse);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.VelocityChange);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E536 RID: 58678 RVA: 0x00447714 File Offset: 0x00445914
|
|
private void JMAGDGEJCEK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.BLAOIIFDDED(149, (LKMJJEMLLKJ)(-68));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E537 RID: 58679 RVA: 0x00447748 File Offset: 0x00445948
|
|
private void NEDGDKOPFML()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i += 0)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, (ForceMode)7);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, (ForceMode)6);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E538 RID: 58680 RVA: 0x00447810 File Offset: 0x00445A10
|
|
private void AJOPCBIDBMK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-131), (LKMJJEMLLKJ)(-94));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E539 RID: 58681 RVA: 0x00447844 File Offset: 0x00445A44
|
|
private void DECNKFLJBEM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
|
{
|
|
this.DICMMMCPMIN(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E53A RID: 58682 RVA: 0x00447858 File Offset: 0x00445A58
|
|
private void AMNDOAJEFND()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E53B RID: 58683 RVA: 0x00447868 File Offset: 0x00445A68
|
|
private void PBMJMCBOAID(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E53C RID: 58684 RVA: 0x0044789C File Offset: 0x00445A9C
|
|
private void FJMBIBMGKPA(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
|
{
|
|
this.MFOLCIHCALG(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E53D RID: 58685 RVA: 0x004478B0 File Offset: 0x00445AB0
|
|
private void MNONJPCDMPB()
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].HMHAGBJPDOE())
|
|
{
|
|
this.DAGDDFMNHEG(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E53E RID: 58686 RVA: 0x00447904 File Offset: 0x00445B04
|
|
private void LEMDPFMPCFH(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.IGIIDDCCPNC((ushort)(-31), (LKMJJEMLLKJ)81);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E53F RID: 58687 RVA: 0x00447938 File Offset: 0x00445B38
|
|
private void LJFJILFBKHF()
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i += 0)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].CHAFDDMCHNL())
|
|
{
|
|
this.LFGFAMJCOLN(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E540 RID: 58688 RVA: 0x0044798C File Offset: 0x00445B8C
|
|
private void NCHDDHLNGKA(Hand GAEKGDCFOJM)
|
|
{
|
|
this.DAGDDFMNHEG(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 260f;
|
|
for (int i = 1; i < this.HAPDOLHHBPD.Count; i += 0)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = false;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.OGNFNKIJENE(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1872f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.MIOBJLJJPJE(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E541 RID: 58689 RVA: 0x00447ADC File Offset: 0x00445CDC
|
|
private void EAKAPEKMCDE(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.BLAOIIFDDED((ushort)(-132), (LKMJJEMLLKJ)91);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E542 RID: 58690 RVA: 0x00447B10 File Offset: 0x00445D10
|
|
private bool JFDDFLKLDOI(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, true);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E543 RID: 58691 RVA: 0x00447BA4 File Offset: 0x00445DA4
|
|
private bool NFGEDBKDNMN(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E544 RID: 58692 RVA: 0x00447C38 File Offset: 0x00445E38
|
|
private void KBJJBHGANFH(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.KHPOGJNCGDA())
|
|
{
|
|
this.GCPGJCBDGPC(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E545 RID: 58693 RVA: 0x00447C4C File Offset: 0x00445E4C
|
|
private void GGOPGKFOLIE(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.AGPNCODPEMC((ushort)(-123), LKMJJEMLLKJ.k_EButton_Max);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E546 RID: 58694 RVA: 0x00447C80 File Offset: 0x00445E80
|
|
private void OAPJKLLBHEE()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.Impulse);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, (ForceMode)4);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E547 RID: 58695 RVA: 0x00447D48 File Offset: 0x00445F48
|
|
private bool CCPKJMMLPAG(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].PHJNALOLENH(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E548 RID: 58696 RVA: 0x00447DDC File Offset: 0x00445FDC
|
|
private void MDMALIMMOKO(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.NHFIGMODKIG(58, (LKMJJEMLLKJ)(-8));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E549 RID: 58697 RVA: 0x00447E10 File Offset: 0x00446010
|
|
private void IDNKDPBHLDH(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
|
{
|
|
this.PKNKOPOBBGI(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E54A RID: 58698 RVA: 0x00447E24 File Offset: 0x00446024
|
|
private void GLBKBCBIOFJ()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E54B RID: 58699 RVA: 0x00447E34 File Offset: 0x00446034
|
|
private void Update()
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].GetStandardInteractionButton())
|
|
{
|
|
this.ILBMNHKNEPL(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E54C RID: 58700 RVA: 0x00447E88 File Offset: 0x00446088
|
|
private bool BNBFOKFFNMG(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, true);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E54E RID: 58702 RVA: 0x00447F74 File Offset: 0x00446174
|
|
private void LCKNNHBBHGK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
|
{
|
|
this.DECGHCBCBJI(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E54F RID: 58703 RVA: 0x00447F88 File Offset: 0x00446188
|
|
private bool IDOOEOJIBKC(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].HoverUnlock(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E550 RID: 58704 RVA: 0x0044801C File Offset: 0x0044621C
|
|
private void IECNHPKBOND(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
|
{
|
|
this.NCHDDHLNGKA(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E551 RID: 58705 RVA: 0x00448030 File Offset: 0x00446230
|
|
private void GMDBGNMCONK()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E552 RID: 58706 RVA: 0x00448040 File Offset: 0x00446240
|
|
private void HPLPGAMJDBG()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, (ForceMode)7);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.Acceleration);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E553 RID: 58707 RVA: 0x00448108 File Offset: 0x00446308
|
|
private void ELBDAIAMMGB()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E554 RID: 58708 RVA: 0x00448118 File Offset: 0x00446318
|
|
private void CPBIEJJDGEH(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.KEOAHFCEDBG(182, (LKMJJEMLLKJ)16);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E555 RID: 58709 RVA: 0x0044814C File Offset: 0x0044634C
|
|
private void KJEMCHBNLNP(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.JJJGEOKNEFP((ushort)(-92), (LKMJJEMLLKJ)(-109));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E556 RID: 58710 RVA: 0x00448180 File Offset: 0x00446380
|
|
private void GPDOCPBDIHJ()
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i += 0)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].CHAFDDMCHNL())
|
|
{
|
|
this.PBMADPGDMFM(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E557 RID: 58711 RVA: 0x004481D4 File Offset: 0x004463D4
|
|
private void FDPEFEHDPDJ()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.Acceleration);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.Impulse);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E558 RID: 58712 RVA: 0x0044829C File Offset: 0x0044649C
|
|
private void KNDCMAMOONE()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E559 RID: 58713 RVA: 0x004482AC File Offset: 0x004464AC
|
|
private void IDFGKJHJBLA()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E55A RID: 58714 RVA: 0x004482BC File Offset: 0x004464BC
|
|
private void JDIDDHMIHFD(Hand GAEKGDCFOJM)
|
|
{
|
|
this.ILBMNHKNEPL(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = float.MaxValue;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = true;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.HoverLock(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.AttachObject(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E55B RID: 58715 RVA: 0x0044840C File Offset: 0x0044660C
|
|
private void CMGDCPEFBBI(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-102), (LKMJJEMLLKJ)123);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E55C RID: 58716 RVA: 0x00448440 File Offset: 0x00446640
|
|
private void GPCBKBNAGHN()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E55D RID: 58717 RVA: 0x00448450 File Offset: 0x00446650
|
|
private void GCPGJCBDGPC(Hand GAEKGDCFOJM)
|
|
{
|
|
this.BNBFOKFFNMG(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 932f;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = true;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.HoverLock(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 506f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.MIOBJLJJPJE(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E55E RID: 58718 RVA: 0x004485A0 File Offset: 0x004467A0
|
|
private void LOMJGJDAJCI(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.JJJGEOKNEFP(120, (LKMJJEMLLKJ)(-111));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E55F RID: 58719 RVA: 0x004485D4 File Offset: 0x004467D4
|
|
private void DHEEAAMKKON(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
|
{
|
|
this.JDIDDHMIHFD(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E560 RID: 58720 RVA: 0x004485E8 File Offset: 0x004467E8
|
|
private void GJGEACMGLKP()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E561 RID: 58721 RVA: 0x004485F8 File Offset: 0x004467F8
|
|
private void NIHFKPGBAJN(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.IGIIDDCCPNC(182, (LKMJJEMLLKJ)(-47));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E562 RID: 58722 RVA: 0x0044862C File Offset: 0x0044682C
|
|
private void ANDBKPFECIA()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.VelocityChange);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, (ForceMode)3);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E563 RID: 58723 RVA: 0x004486F4 File Offset: 0x004468F4
|
|
private bool AAJJDDACGBK(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, true);
|
|
this.ODDINDFPGJI[num].HoverUnlock(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E564 RID: 58724 RVA: 0x00448788 File Offset: 0x00446988
|
|
private void AANAKDEIEPM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.OJAPHKLGMBC(82, (LKMJJEMLLKJ)(-71));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E565 RID: 58725 RVA: 0x004487BC File Offset: 0x004469BC
|
|
private void KCBKFIPPANC(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
|
{
|
|
this.GCPGJCBDGPC(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E566 RID: 58726 RVA: 0x004487D0 File Offset: 0x004469D0
|
|
private void GPOHOLCIGJI(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.KHPOGJNCGDA())
|
|
{
|
|
this.DICMMMCPMIN(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E567 RID: 58727 RVA: 0x004487E4 File Offset: 0x004469E4
|
|
private void MFOLCIHCALG(Hand GAEKGDCFOJM)
|
|
{
|
|
this.OCPDCGOKPPE(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1944f;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = false;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.HoverLock(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1262f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.ALDKEKMJHBC(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E568 RID: 58728 RVA: 0x00448934 File Offset: 0x00446B34
|
|
private void AMHFCMNDIMM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
|
{
|
|
this.MFOLCIHCALG(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E569 RID: 58729 RVA: 0x00448948 File Offset: 0x00446B48
|
|
private void FKJBCANMBAP(Hand GAEKGDCFOJM)
|
|
{
|
|
this.HFCMHLFPONI(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1076f;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = true;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.DDEOHOFOMON(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1451f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.AttachObject(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E56A RID: 58730 RVA: 0x00448A98 File Offset: 0x00446C98
|
|
private bool LOAOALFMAIH(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, true);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E56B RID: 58731 RVA: 0x00448B2C File Offset: 0x00446D2C
|
|
private bool LKDLNILNDIP(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E56C RID: 58732 RVA: 0x00448BC0 File Offset: 0x00446DC0
|
|
private void PHLINHAJHBM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.BLAOIIFDDED(75, (LKMJJEMLLKJ)(-101));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E56D RID: 58733 RVA: 0x00448BF4 File Offset: 0x00446DF4
|
|
private void PAMAKCFDNDJ(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.OFNNFLICGKN())
|
|
{
|
|
this.NCHDDHLNGKA(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E56E RID: 58734 RVA: 0x00448C08 File Offset: 0x00446E08
|
|
private bool OCPDCGOKPPE(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].PCBHNDBJJDC(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E56F RID: 58735 RVA: 0x00448C9C File Offset: 0x00446E9C
|
|
private void FKNNLDKAGMN()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, (ForceMode)6);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.Acceleration);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E570 RID: 58736 RVA: 0x00448D64 File Offset: 0x00446F64
|
|
private void FixedUpdate()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.Acceleration);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.Acceleration);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E571 RID: 58737 RVA: 0x00448E2C File Offset: 0x0044702C
|
|
private void DICMMMCPMIN(Hand GAEKGDCFOJM)
|
|
{
|
|
this.FDEGDDKHAAI(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1602f;
|
|
for (int i = 1; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = false;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.OGNFNKIJENE(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 938f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.ALDKEKMJHBC(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E572 RID: 58738 RVA: 0x00448F7C File Offset: 0x0044717C
|
|
private void DECGHCBCBJI(Hand GAEKGDCFOJM)
|
|
{
|
|
this.LOAOALFMAIH(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1141f;
|
|
for (int i = 1; i < this.HAPDOLHHBPD.Count; i += 0)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = true;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.DGGNHAEBFJJ(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1779f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.ALDKEKMJHBC(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E573 RID: 58739 RVA: 0x004490CC File Offset: 0x004472CC
|
|
private void KNCFKKFIIBL()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.Force);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.Impulse);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E574 RID: 58740 RVA: 0x00449194 File Offset: 0x00447394
|
|
private void JDLKCJHDMHB()
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].CHAFDDMCHNL())
|
|
{
|
|
this.AHKDHJOJEOI(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E575 RID: 58741 RVA: 0x004491E8 File Offset: 0x004473E8
|
|
private void CJIOLJNPPOM()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E576 RID: 58742 RVA: 0x004491F8 File Offset: 0x004473F8
|
|
private void KFINPENELPG(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.PBMDDJKFFAI((ushort)(-59), (LKMJJEMLLKJ)(-94));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E577 RID: 58743 RVA: 0x0044922C File Offset: 0x0044742C
|
|
private void JDIKBOCBDFK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.NHFIGMODKIG(193, (LKMJJEMLLKJ)14);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E578 RID: 58744 RVA: 0x00449260 File Offset: 0x00447460
|
|
private bool FHEFOABCBED(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, true);
|
|
this.ODDINDFPGJI[num].HoverUnlock(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E579 RID: 58745 RVA: 0x004492F4 File Offset: 0x004474F4
|
|
private void DHIAMHBELKM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.AGPNCODPEMC((ushort)(-178), (LKMJJEMLLKJ)(-81));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E57A RID: 58746 RVA: 0x00449328 File Offset: 0x00447528
|
|
private void JGFOPLONGBH()
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i += 0)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].BLECLFPGFMG())
|
|
{
|
|
this.IDOOEOJIBKC(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E57B RID: 58747 RVA: 0x0044937C File Offset: 0x0044757C
|
|
private bool HFCMHLFPONI(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].PHJNALOLENH(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E57C RID: 58748 RVA: 0x00449410 File Offset: 0x00447610
|
|
private bool IGJOIHCMAKH(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E57D RID: 58749 RVA: 0x004494A4 File Offset: 0x004476A4
|
|
private void OFDCCGLFACL()
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i += 0)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].HMHAGBJPDOE())
|
|
{
|
|
this.DAGDDFMNHEG(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E57E RID: 58750 RVA: 0x004494F8 File Offset: 0x004476F8
|
|
private void JAKOCGDBBJG(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.KHPOGJNCGDA())
|
|
{
|
|
this.ACMCPFPAOJF(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E57F RID: 58751 RVA: 0x0044950C File Offset: 0x0044770C
|
|
private void KALAKGNBFCK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.PBMDDJKFFAI((ushort)(-90), (LKMJJEMLLKJ)97);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E580 RID: 58752 RVA: 0x00449540 File Offset: 0x00447740
|
|
private void IJPDEJFNCNH()
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].CHAFDDMCHNL())
|
|
{
|
|
this.IGJOIHCMAKH(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E581 RID: 58753 RVA: 0x00449594 File Offset: 0x00447794
|
|
private void LEMGDPHJENH()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E582 RID: 58754 RVA: 0x004495A4 File Offset: 0x004477A4
|
|
private void PKNKOPOBBGI(Hand GAEKGDCFOJM)
|
|
{
|
|
this.JFDDFLKLDOI(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1463f;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = false;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.HoverLock(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1897f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.AttachObject(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E583 RID: 58755 RVA: 0x004496F4 File Offset: 0x004478F4
|
|
private void DFNBGNPCANH(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.AGPNCODPEMC((ushort)(-71), (LKMJJEMLLKJ)69);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E584 RID: 58756 RVA: 0x00449728 File Offset: 0x00447928
|
|
private void FOFJHMNOAPK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.KEOAHFCEDBG(178, (LKMJJEMLLKJ)119);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E585 RID: 58757 RVA: 0x0044975C File Offset: 0x0044795C
|
|
private void DFECKBJLOPD(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.FCKFLGGGDMO((ushort)(-43), (LKMJJEMLLKJ)(-40));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E586 RID: 58758 RVA: 0x00449790 File Offset: 0x00447990
|
|
private void NHLJJOPDMIN()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E587 RID: 58759 RVA: 0x004497A0 File Offset: 0x004479A0
|
|
private void IPAPMGBLCNF()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E588 RID: 58760 RVA: 0x004497B0 File Offset: 0x004479B0
|
|
private bool PBMADPGDMFM(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, true);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E589 RID: 58761 RVA: 0x00449844 File Offset: 0x00447A44
|
|
private void CIIDGLPELBK(Hand GAEKGDCFOJM)
|
|
{
|
|
this.OCPDCGOKPPE(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 1160f;
|
|
for (int i = 1; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = true;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.DDEOHOFOMON(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1097f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.AttachObject(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E58A RID: 58762 RVA: 0x00449994 File Offset: 0x00447B94
|
|
private void OJAIDLPNIEI()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E58B RID: 58763 RVA: 0x004499A4 File Offset: 0x00447BA4
|
|
private void CEOKFCGDDKA(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.PBMDDJKFFAI(135, (LKMJJEMLLKJ)28);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E58C RID: 58764 RVA: 0x004499D8 File Offset: 0x00447BD8
|
|
private void KJJHMMHAKAG()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 0; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, (ForceMode)4);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, ForceMode.Force);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E58D RID: 58765 RVA: 0x00449AA0 File Offset: 0x00447CA0
|
|
private void CHOLLIANPAL()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E58E RID: 58766 RVA: 0x00449AB0 File Offset: 0x00447CB0
|
|
private void BOGNIIANAMA(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.OJAPHKLGMBC(70, (LKMJJEMLLKJ)83);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E58F RID: 58767 RVA: 0x00449AE4 File Offset: 0x00447CE4
|
|
private void BEJPIHEKCML()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E590 RID: 58768 RVA: 0x00449AF4 File Offset: 0x00447CF4
|
|
private void FEPGCJCOPPJ(Hand GAEKGDCFOJM)
|
|
{
|
|
this.CCPKJMMLPAG(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 394f;
|
|
for (int i = 1; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = false;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.DDEOHOFOMON(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1529f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.ALDKEKMJHBC(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E591 RID: 58769 RVA: 0x00449C44 File Offset: 0x00447E44
|
|
private bool ILBMNHKNEPL(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].HoverUnlock(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E592 RID: 58770 RVA: 0x00449CD8 File Offset: 0x00447ED8
|
|
private bool EACHGEHOHGG(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].HoverUnlock(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E593 RID: 58771 RVA: 0x00449D6C File Offset: 0x00447F6C
|
|
private void LHBDPPMFAAI(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.OFNNFLICGKN())
|
|
{
|
|
this.FKJBCANMBAP(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E594 RID: 58772 RVA: 0x00449D80 File Offset: 0x00447F80
|
|
private void CCLHMIMAECM(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.FCKFLGGGDMO((ushort)(-76), (LKMJJEMLLKJ)(-73));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E595 RID: 58773 RVA: 0x00449DB4 File Offset: 0x00447FB4
|
|
private void IFBCDANHCMK(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.KEOAHFCEDBG(31, (LKMJJEMLLKJ)45);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E596 RID: 58774 RVA: 0x00449DE8 File Offset: 0x00447FE8
|
|
private void OLEBPMMFNIF()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E597 RID: 58775 RVA: 0x00449DF8 File Offset: 0x00447FF8
|
|
private bool FDEGDDKHAAI(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].PHJNALOLENH(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600E598 RID: 58776 RVA: 0x00449E8C File Offset: 0x0044808C
|
|
private void OBFADPEEBLG()
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
if (!this.ODDINDFPGJI[i].BLECLFPGFMG())
|
|
{
|
|
this.OCPDCGOKPPE(this.ODDINDFPGJI[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E599 RID: 58777 RVA: 0x00449EE0 File Offset: 0x004480E0
|
|
private void PDCMKOCMIIF()
|
|
{
|
|
base.GetComponentsInChildren<Rigidbody>(this.HAPDOLHHBPD);
|
|
}
|
|
|
|
// Token: 0x0600E59A RID: 58778 RVA: 0x00449EF0 File Offset: 0x004480F0
|
|
private void ACMCPFPAOJF(Hand GAEKGDCFOJM)
|
|
{
|
|
this.LOAOALFMAIH(GAEKGDCFOJM);
|
|
Rigidbody rigidbody = null;
|
|
Vector3 vector = Vector3.zero;
|
|
float num = 220f;
|
|
for (int i = 0; i < this.HAPDOLHHBPD.Count; i++)
|
|
{
|
|
float num2 = Vector3.Distance(this.HAPDOLHHBPD[i].worldCenterOfMass, GAEKGDCFOJM.transform.position);
|
|
if (num2 < num)
|
|
{
|
|
rigidbody = this.HAPDOLHHBPD[i];
|
|
num = num2;
|
|
}
|
|
}
|
|
if (rigidbody == null)
|
|
{
|
|
return;
|
|
}
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
Rigidbody rigidbody2 = OFPFHHLNHIC.JPCAJLJMJLK<Rigidbody>(GAEKGDCFOJM.gameObject);
|
|
rigidbody2.isKinematic = false;
|
|
FixedJoint fixedJoint = GAEKGDCFOJM.gameObject.AddComponent<FixedJoint>();
|
|
fixedJoint.connectedBody = rigidbody;
|
|
}
|
|
GAEKGDCFOJM.OGNFNKIJENE(null);
|
|
Vector3 vector2 = GAEKGDCFOJM.transform.position - rigidbody.worldCenterOfMass;
|
|
vector2 = Mathf.Min(vector2.magnitude, 1598f) * vector2.normalized;
|
|
vector = rigidbody.transform.InverseTransformPoint(rigidbody.worldCenterOfMass + vector2);
|
|
GAEKGDCFOJM.MIOBJLJJPJE(base.gameObject, this.attachmentFlags, string.Empty);
|
|
this.ODDINDFPGJI.Add(GAEKGDCFOJM);
|
|
this.AINBDDAGPIE.Add(rigidbody);
|
|
this.IMKPKFHGKIO.Add(vector);
|
|
}
|
|
|
|
// Token: 0x0600E59B RID: 58779 RVA: 0x0044A040 File Offset: 0x00448240
|
|
private void ODFNPPMMPIP(Hand GAEKGDCFOJM)
|
|
{
|
|
if (this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM) == -1 && GAEKGDCFOJM.controller != null)
|
|
{
|
|
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-117), (LKMJJEMLLKJ)116);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E59C RID: 58780 RVA: 0x0044A074 File Offset: 0x00448274
|
|
private void LMDKBNFDAFB(Hand GAEKGDCFOJM)
|
|
{
|
|
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
|
{
|
|
this.EFNFELICGLH(GAEKGDCFOJM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E59D RID: 58781 RVA: 0x0044A088 File Offset: 0x00448288
|
|
private bool LFGFAMJCOLN(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].DetachObject(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].PCBHNDBJJDC(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x0600E59E RID: 58782 RVA: 0x0044A11C File Offset: 0x0044831C
|
|
private void CEPNJMOCGCE()
|
|
{
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.Force)
|
|
{
|
|
for (int i = 1; i < this.ODDINDFPGJI.Count; i++)
|
|
{
|
|
Vector3 vector = this.AINBDDAGPIE[i].transform.TransformPoint(this.IMKPKFHGKIO[i]);
|
|
Vector3 vector2 = this.ODDINDFPGJI[i].transform.position - vector;
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(this.attachForce * vector2, vector, ForceMode.Impulse);
|
|
this.AINBDDAGPIE[i].AddForceAtPosition(-this.attachForceDamper * this.AINBDDAGPIE[i].GetPointVelocity(vector), vector, (ForceMode)7);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600E59F RID: 58783 RVA: 0x0044A1E4 File Offset: 0x004483E4
|
|
private bool DAGDDFMNHEG(Hand GAEKGDCFOJM)
|
|
{
|
|
int num = this.ODDINDFPGJI.IndexOf(GAEKGDCFOJM);
|
|
if (num != -1)
|
|
{
|
|
this.ODDINDFPGJI[num].MLKNKKNKHKD(base.gameObject, false);
|
|
this.ODDINDFPGJI[num].LAMFHHKJLKN(null);
|
|
if (this.attachMode == ComplexThrowable.OLAGMMOKGOB.FixedJoint)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.ODDINDFPGJI[num].GetComponent<FixedJoint>());
|
|
}
|
|
OFPFHHLNHIC.DNNIECHLNOD<Hand>(this.ODDINDFPGJI, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Rigidbody>(this.AINBDDAGPIE, num);
|
|
OFPFHHLNHIC.DNNIECHLNOD<Vector3>(this.IMKPKFHGKIO, num);
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x04002145 RID: 8517
|
|
public float attachForce = 800f;
|
|
|
|
// Token: 0x04002146 RID: 8518
|
|
public float attachForceDamper = 25f;
|
|
|
|
// Token: 0x04002147 RID: 8519
|
|
public ComplexThrowable.OLAGMMOKGOB attachMode;
|
|
|
|
// Token: 0x04002148 RID: 8520
|
|
[MMHDGCBAJGC]
|
|
public Hand.HFGOOJNELAJ attachmentFlags;
|
|
|
|
// Token: 0x04002149 RID: 8521
|
|
private List<Hand> ODDINDFPGJI = new List<Hand>();
|
|
|
|
// Token: 0x0400214A RID: 8522
|
|
private List<Rigidbody> AINBDDAGPIE = new List<Rigidbody>();
|
|
|
|
// Token: 0x0400214B RID: 8523
|
|
private List<Vector3> IMKPKFHGKIO = new List<Vector3>();
|
|
|
|
// Token: 0x0400214C RID: 8524
|
|
private List<Rigidbody> HAPDOLHHBPD = new List<Rigidbody>();
|
|
|
|
// Token: 0x020005A6 RID: 1446
|
|
public enum OLAGMMOKGOB
|
|
{
|
|
// Token: 0x0400214E RID: 8526
|
|
FixedJoint,
|
|
// Token: 0x0400214F RID: 8527
|
|
Force
|
|
}
|
|
}
|
|
}
|