3479 lines
130 KiB
C#
3479 lines
130 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Valve.VR.InteractionSystem
|
|
{
|
|
// Token: 0x020005E8 RID: 1512
|
|
public class Arrow : MonoBehaviour
|
|
{
|
|
// Token: 0x0600F096 RID: 61590 RVA: 0x0047E660 File Offset: 0x0047C860
|
|
private void DCHCOKIMPDJ()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F097 RID: 61591 RVA: 0x0047E680 File Offset: 0x0047C880
|
|
private void MKMAMKDILHL()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F098 RID: 61592 RVA: 0x0047E6A0 File Offset: 0x0047C8A0
|
|
private void ONHMFEKMOOB(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 236f);
|
|
bool flag = true;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.HCBOADLENIM();
|
|
this.KNHLOCIGOAN = new GameObject("from");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (801f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1712f, 4f, 1303f, 1837f) + global::UnityEngine.Random.Range(1643f, 1158f)));
|
|
}
|
|
|
|
// Token: 0x0600F099 RID: 61593 RVA: 0x0047E90C File Offset: 0x0047CB0C
|
|
private void GFJBMHDCFEC()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F09A RID: 61594 RVA: 0x0047E988 File Offset: 0x0047CB88
|
|
private void BEMMIEHNPIL(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 211f);
|
|
bool flag = false;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.CLPNFBHDKEI();
|
|
this.KNHLOCIGOAN = new GameObject("OBJECTIVE");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (1214f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 4f, 1611f, 1378f, 703f) + global::UnityEngine.Random.Range(1791f, 24f)));
|
|
}
|
|
|
|
// Token: 0x0600F09B RID: 61595 RVA: 0x0047EBF4 File Offset: 0x0047CDF4
|
|
private void ALOOMBDDFMA(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 1897f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 7 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 1205f;
|
|
this.shaftRB.velocity = vector * 157f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1981f)
|
|
{
|
|
this.hitGroundSound.KCCIILCOJMP();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Transaction ID", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1268f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("islocal", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("Marking old objects for destroy:", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.AHLGJHEHOOG(PDCJEBJGFNF, this.EKNFOIDMHPD < 4);
|
|
}
|
|
if (Player.EFNGEGGJBJL() && PDCJEBJGFNF.collider == Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F09C RID: 61596 RVA: 0x0047EEA4 File Offset: 0x0047D0A4
|
|
public void BKJHFEHAGLH(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.ILFGIOEOANG();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.GMIBFAPHJAO();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1312f, base.transform.forward, 1579f, 27, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 0;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1719f);
|
|
}
|
|
|
|
// Token: 0x0600F09D RID: 61597 RVA: 0x0047F018 File Offset: 0x0047D218
|
|
private void EMAOCOOLPFE(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 1212f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 2 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 183f;
|
|
this.shaftRB.velocity = vector * 1303f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 1234f)
|
|
{
|
|
this.hitGroundSound.Play();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("RoomId", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 909f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("ToPlayerIds", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("Profile Info:\r\n Profile ID: {0}\r\n Profile DisplayName: {1}\r\n Junior Profile: {2}\r\n SID: {3}", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.LEBHMJOLEHB(PDCJEBJGFNF, this.EKNFOIDMHPD < 0);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
Player.CHKMMKLNBEK().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F09E RID: 61598 RVA: 0x0047F2C8 File Offset: 0x0047D4C8
|
|
private void IAKCEMICIDN()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F09F RID: 61599 RVA: 0x0047F2E8 File Offset: 0x0047D4E8
|
|
private void FFKMHEBDOBM(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 703f);
|
|
bool flag = false;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.LOBIFNMKFEE();
|
|
this.KNHLOCIGOAN = new GameObject("Oculus.Platform.CallbackRunner");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (876f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 543f, 272f, 1721f, 1820f) + global::UnityEngine.Random.Range(1831f, 1595f)));
|
|
}
|
|
|
|
// Token: 0x0600F0A0 RID: 61600 RVA: 0x0047F554 File Offset: 0x0047D754
|
|
private void KEHKJPLHFOM(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 747f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 7 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 896f;
|
|
this.shaftRB.velocity = vector * 97f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 685f)
|
|
{
|
|
this.hitGroundSound.PKCAGGAHPGE();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Existing instance of PlayerRoomIndexing found. Only One instance is required at the most. Please correct and have only one at any time.", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 169f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Deleted ", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("method", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.GNLAAOCLMBB(PDCJEBJGFNF, this.EKNFOIDMHPD < 0);
|
|
}
|
|
if (Player.EFNGEGGJBJL() && PDCJEBJGFNF.collider == Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A1 RID: 61601 RVA: 0x0047F804 File Offset: 0x0047DA04
|
|
private void IDMPAHACHFP(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 282f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 0 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 1570f;
|
|
this.shaftRB.velocity = vector * 9f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1986f)
|
|
{
|
|
this.hitGroundSound.PKCAGGAHPGE();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("api/gamesessions/v2/", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1364f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Resend", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("Go now!", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.LEFFCHKNCCL(PDCJEBJGFNF, this.EKNFOIDMHPD < 3);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.CHKMMKLNBEK().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A2 RID: 61602 RVA: 0x0047FAB4 File Offset: 0x0047DCB4
|
|
private void ANDBKPFECIA()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A3 RID: 61603 RVA: 0x0047FB30 File Offset: 0x0047DD30
|
|
private void PLNOEPHJBOK(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 929f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 5 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 262f;
|
|
this.shaftRB.velocity = vector * 1889f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 1059f)
|
|
{
|
|
this.hitGroundSound.KFBDIHJJJNL();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("USAGE: antiAliasing <int>", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 321f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Wireframe", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("JOIN", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.ONHMFEKMOOB(PDCJEBJGFNF, this.EKNFOIDMHPD < 0);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A4 RID: 61604 RVA: 0x0047FDE0 File Offset: 0x0047DFE0
|
|
private void JLCPBGCHGGF(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 988f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 2 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 430f;
|
|
this.shaftRB.velocity = vector * 592f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1860f)
|
|
{
|
|
this.hitGroundSound.IBHLAJKHNDI();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("ChtwZXJzaXN0ZW5jZV92aWV3X2RhdGEucHJvdG8SB3JlY3Jvb20aFHRyYW5z", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 989f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards(" data is null", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("The word was: ", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.OKELPFLELEK(PDCJEBJGFNF, this.EKNFOIDMHPD < 3);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.EFNGEGGJBJL().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A5 RID: 61605 RVA: 0x00480090 File Offset: 0x0047E290
|
|
private void LDDPOENKPJO(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 1387f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 6 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 592f;
|
|
this.shaftRB.velocity = vector * 1962f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1240f)
|
|
{
|
|
this.hitGroundSound.PKCAGGAHPGE();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("{0}v2/search?name={1}", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1888f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("RelationshipType", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("VoiceVolume", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.BMMCNONILLB(PDCJEBJGFNF, this.EKNFOIDMHPD < 6);
|
|
}
|
|
if (Player.FCDPFLMFDBC && PDCJEBJGFNF.collider == Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A6 RID: 61606 RVA: 0x00480340 File Offset: 0x0047E540
|
|
private void LHFAAMJFBOC()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A7 RID: 61607 RVA: 0x004803BC File Offset: 0x0047E5BC
|
|
private void LHJGNOODHPG()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.EFNGEGGJBJL().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0A8 RID: 61608 RVA: 0x004803D8 File Offset: 0x0047E5D8
|
|
private void KLACKNGAGCN(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 1159f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 0 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 1336f;
|
|
this.shaftRB.velocity = vector * 1655f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 467f)
|
|
{
|
|
this.hitGroundSound.NHPBLHDPOLA();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("handles", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1888f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("api/messages/", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("mode", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.BANEMPBCDBK(PDCJEBJGFNF, this.EKNFOIDMHPD < 7);
|
|
}
|
|
if (Player.FCDPFLMFDBC && PDCJEBJGFNF.collider == Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
Player.CHKMMKLNBEK().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0A9 RID: 61609 RVA: 0x00480688 File Offset: 0x0047E888
|
|
public void NGDFCGEDFBA(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.CCGNPIBJLGE();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.GMIBFAPHJAO();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 452f, base.transform.forward, 617f, 81, QueryTriggerInteraction.Ignore);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 474f);
|
|
}
|
|
|
|
// Token: 0x0600F0AA RID: 61610 RVA: 0x004807FC File Offset: 0x0047E9FC
|
|
private void CELAHBMKHDL()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0AB RID: 61611 RVA: 0x0048081C File Offset: 0x0047EA1C
|
|
private void FPLHEPLNNCI(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 1402f);
|
|
bool flag = true;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.GMIBFAPHJAO();
|
|
this.KNHLOCIGOAN = new GameObject("Recroom.ChallengeMap");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (1385f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1022f, 273f, 333f, 529f) + global::UnityEngine.Random.Range(228f, 636f)));
|
|
}
|
|
|
|
// Token: 0x0600F0AC RID: 61612 RVA: 0x00480A88 File Offset: 0x0047EC88
|
|
private void LEBHMJOLEHB(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 160f);
|
|
bool flag = false;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.LOBIFNMKFEE();
|
|
this.KNHLOCIGOAN = new GameObject("rotation");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (1974f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1718f, 1617f, 1349f, 1881f) + global::UnityEngine.Random.Range(1227f, 219f)));
|
|
}
|
|
|
|
// Token: 0x0600F0AD RID: 61613 RVA: 0x00480CF4 File Offset: 0x0047EEF4
|
|
private void GPDDEFAMABA(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 837f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 1 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 830f;
|
|
this.shaftRB.velocity = vector * 755f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 1031f)
|
|
{
|
|
this.hitGroundSound.Play();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Resend", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1359f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("sentToPlayerId", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("Failed to ", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.OJHAJOJLDPG(PDCJEBJGFNF, this.EKNFOIDMHPD < 0);
|
|
}
|
|
if (Player.FCDPFLMFDBC && PDCJEBJGFNF.collider == Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0AE RID: 61614 RVA: 0x00480FA4 File Offset: 0x0047F1A4
|
|
private void AHLGJHEHOOG(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 1658f);
|
|
bool flag = false;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.MNHLLHENJOC();
|
|
this.KNHLOCIGOAN = new GameObject("namedcolorvalue");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (178f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 942f, 1580f, 1644f, 243f) + global::UnityEngine.Random.Range(1879f, 459f)));
|
|
}
|
|
|
|
// Token: 0x0600F0AF RID: 61615 RVA: 0x00481210 File Offset: 0x0047F410
|
|
private void OnDestroy()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0B0 RID: 61616 RVA: 0x00481230 File Offset: 0x0047F430
|
|
private void OJHAJOJLDPG(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 147f);
|
|
bool flag = false;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.ICEACNLCOGC();
|
|
this.KNHLOCIGOAN = new GameObject("Only spawned ");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (1564f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1680f, 1204f, 1166f, 1686f) + global::UnityEngine.Random.Range(1180f, 508f)));
|
|
}
|
|
|
|
// Token: 0x0600F0B1 RID: 61617 RVA: 0x0048149C File Offset: 0x0047F69C
|
|
private void ANGCKGOOFEH(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 1926f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 7 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1573f;
|
|
this.shaftRB.velocity = vector * 996f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 799f)
|
|
{
|
|
this.hitGroundSound.Play();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("X3ZpZXdfaWQYAiABKAxCE6oCEFJlY1Jvb20uUHJvdG9idWZiBnByb3RvMw==", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1195f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("\\\"", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("RegionId", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.MABJINMKBOP(PDCJEBJGFNF, this.EKNFOIDMHPD < 7);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0B2 RID: 61618 RVA: 0x0048174C File Offset: 0x0047F94C
|
|
private void JAMDPKFNJBF()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.FCDPFLMFDBC.headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0B3 RID: 61619 RVA: 0x00481768 File Offset: 0x0047F968
|
|
private void GNLAAOCLMBB(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 649f);
|
|
bool flag = false;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.JMGDMALKCLK();
|
|
this.KNHLOCIGOAN = new GameObject("Description is same!");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (864f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 716f, 226f, 169f, 1527f) + global::UnityEngine.Random.Range(620f, 1152f)));
|
|
}
|
|
|
|
// Token: 0x0600F0B4 RID: 61620 RVA: 0x004819D4 File Offset: 0x0047FBD4
|
|
public void LHJPLKHBCCO(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.ILFGIOEOANG();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.JMGDMALKCLK();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 616f, base.transform.forward, 1268f, -81, QueryTriggerInteraction.UseGlobal);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1111f);
|
|
}
|
|
|
|
// Token: 0x0600F0B5 RID: 61621 RVA: 0x00481B48 File Offset: 0x0047FD48
|
|
private void KOKOKCHBFPP()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.FCDPFLMFDBC.headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0B6 RID: 61622 RVA: 0x00481B64 File Offset: 0x0047FD64
|
|
public void FGGBMOIIFBO(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.ILFGIOEOANG();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.CLPNFBHDKEI();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1382f, base.transform.forward, 1293f, 26, QueryTriggerInteraction.UseGlobal);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 0;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1646f);
|
|
}
|
|
|
|
// Token: 0x0600F0B7 RID: 61623 RVA: 0x00481CD8 File Offset: 0x0047FED8
|
|
private void KNOGCPGCNHH()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0B8 RID: 61624 RVA: 0x00481CF8 File Offset: 0x0047FEF8
|
|
private void MIOGJFJJIGH()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0B9 RID: 61625 RVA: 0x00481D74 File Offset: 0x0047FF74
|
|
private void OnCollisionEnter(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 0.2f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 2 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 0.25f;
|
|
this.shaftRB.velocity = vector * 0.25f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 0.1f)
|
|
{
|
|
this.hitGroundSound.Play();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("EGKBNBOMGKG", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 0.1f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("ApplyDamage", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("HasAppliedDamage", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.LEFFCHKNCCL(PDCJEBJGFNF, this.EKNFOIDMHPD < 2);
|
|
}
|
|
if (Player.FCDPFLMFDBC && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0BA RID: 61626 RVA: 0x00482024 File Offset: 0x00480224
|
|
private void MMEKGKHJECF()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0BB RID: 61627 RVA: 0x00482044 File Offset: 0x00480244
|
|
private void HJPONHDAHEF(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 379f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 3 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 276f;
|
|
this.shaftRB.velocity = vector * 877f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1311f)
|
|
{
|
|
this.hitGroundSound.CHBEOCCBLDC();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Event Action", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 548f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("HoverUnlock ", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("BirthdayDateString", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.AHLGJHEHOOG(PDCJEBJGFNF, this.EKNFOIDMHPD < 2);
|
|
}
|
|
if (Player.FCDPFLMFDBC && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0BC RID: 61628 RVA: 0x004822F4 File Offset: 0x004804F4
|
|
public void BIJDAJLBCKF(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.AONJILIKFOI();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.ILFGIOEOANG();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1852f, base.transform.forward, 1433f, 80, QueryTriggerInteraction.Ignore);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 98f);
|
|
}
|
|
|
|
// Token: 0x0600F0BD RID: 61629 RVA: 0x00482468 File Offset: 0x00480668
|
|
public void JGACBGLGPNK(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.JHDEPHCIOCJ();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.GMIBFAPHJAO();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1008f, base.transform.forward, 1490f, 76, QueryTriggerInteraction.Ignore);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 0;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 133f);
|
|
}
|
|
|
|
// Token: 0x0600F0BE RID: 61630 RVA: 0x004825DC File Offset: 0x004807DC
|
|
private void AKCNHLPNPCO(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 442f);
|
|
bool flag = false;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.ILFGIOEOANG();
|
|
this.KNHLOCIGOAN = new GameObject(". Prefab must have a PhotonView component.");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (192f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1629f, 562f, 1279f, 464f) + global::UnityEngine.Random.Range(1214f, 1014f)));
|
|
}
|
|
|
|
// Token: 0x0600F0BF RID: 61631 RVA: 0x00482848 File Offset: 0x00480A48
|
|
private void IEPOLBBJFGL(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 75f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 0 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1033f;
|
|
this.shaftRB.velocity = vector * 1686f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 867f)
|
|
{
|
|
this.hitGroundSound.PPMNOGEFFPP();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("SEM_TO", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 290f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("\">Detected: ", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("{0:N1}", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.HHLPNGEIAEE(PDCJEBJGFNF, this.EKNFOIDMHPD < 1);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C0 RID: 61632 RVA: 0x00482AF8 File Offset: 0x00480CF8
|
|
public void MJHEOIJMHAL(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.CCGNPIBJLGE();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.PFLFIHLKCLK();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 572f, base.transform.forward, 455f, 26, QueryTriggerInteraction.Ignore);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 0;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 444f);
|
|
}
|
|
|
|
// Token: 0x0600F0C1 RID: 61633 RVA: 0x00482C6C File Offset: 0x00480E6C
|
|
private void JHCOJFFBMKO()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C2 RID: 61634 RVA: 0x00482CE8 File Offset: 0x00480EE8
|
|
private void GDNIKIMCKMA()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C3 RID: 61635 RVA: 0x00482D08 File Offset: 0x00480F08
|
|
private void AHBKFGJNNMO(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 1769f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 8 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1099f;
|
|
this.shaftRB.velocity = vector * 1103f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 11f)
|
|
{
|
|
this.hitGroundSound.PAHKOCPEDMB();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Failed to upload Rec Room player profile reputation changes", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1329f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("gizmos", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("{0}v1/completegroup", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.ONHMFEKMOOB(PDCJEBJGFNF, this.EKNFOIDMHPD < 4);
|
|
}
|
|
if (Player.EFNGEGGJBJL() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.EFNGEGGJBJL().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C4 RID: 61636 RVA: 0x00482FB8 File Offset: 0x004811B8
|
|
private void MIHMNLABILJ(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 858f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 4 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 394f;
|
|
this.shaftRB.velocity = vector * 248f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 175f)
|
|
{
|
|
this.hitGroundSound.DIJNNGLOCPK();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("onupdateparams", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 79f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Assets/Core/Content/Configs/", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("DH_EQUP", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.IAGAPKACOIH(PDCJEBJGFNF, this.EKNFOIDMHPD < 7);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C5 RID: 61637 RVA: 0x00483268 File Offset: 0x00481468
|
|
private void BANEMPBCDBK(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 714f);
|
|
bool flag = true;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.PFLFIHLKCLK();
|
|
this.KNHLOCIGOAN = new GameObject("api/gamesessions/v2/");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (110f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 477f, 1103f, 859f, 1749f) + global::UnityEngine.Random.Range(1269f, 1616f)));
|
|
}
|
|
|
|
// Token: 0x0600F0C6 RID: 61638 RVA: 0x004834D4 File Offset: 0x004816D4
|
|
private void MIFPCGBMGMD()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C7 RID: 61639 RVA: 0x004834F4 File Offset: 0x004816F4
|
|
private void CBNFIOBLLIH()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.FCDPFLMFDBC.headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0C8 RID: 61640 RVA: 0x00483510 File Offset: 0x00481710
|
|
private void BODLLNDDEOD()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0C9 RID: 61641 RVA: 0x0048358C File Offset: 0x0048178C
|
|
private void ODLEKMHNHFC(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 1342f);
|
|
bool flag = false;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.AONJILIKFOI();
|
|
this.KNHLOCIGOAN = new GameObject("developer_flag");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (1032f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 676f, 302f, 1740f, 51f) + global::UnityEngine.Random.Range(1240f, 1000f)));
|
|
}
|
|
|
|
// Token: 0x0600F0CA RID: 61642 RVA: 0x004837F8 File Offset: 0x004819F8
|
|
public void AJAGNIJHNHF(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.JHDEPHCIOCJ();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.Play();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1590f, base.transform.forward, 1154f, -101, QueryTriggerInteraction.Ignore);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 479f);
|
|
}
|
|
|
|
// Token: 0x0600F0CB RID: 61643 RVA: 0x0048396C File Offset: 0x00481B6C
|
|
private void Start()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.FCDPFLMFDBC.headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0CC RID: 61644 RVA: 0x00483988 File Offset: 0x00481B88
|
|
private void BHAKDOMMOOB()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.EFNGEGGJBJL().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0CD RID: 61645 RVA: 0x004839A4 File Offset: 0x00481BA4
|
|
private void MANPMDCEDDE(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 1034f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 6 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1008f;
|
|
this.shaftRB.velocity = vector * 1559f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 1199f)
|
|
{
|
|
this.hitGroundSound.DPNBDDBJEDE();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("rotation", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 191f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("need dictionary", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("RaiseEvent() failed. Your event is not being sent! Check if your are in a Room and the eventCode must be less than 200 (0..199).", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.KIMFEOLADDM(PDCJEBJGFNF, this.EKNFOIDMHPD < 7);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
Player.EFNGEGGJBJL().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0CE RID: 61646 RVA: 0x00483C54 File Offset: 0x00481E54
|
|
private void NECGIOGALNB()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0CF RID: 61647 RVA: 0x00483CD0 File Offset: 0x00481ED0
|
|
public void KDFDJKDOPFD(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.ILFGIOEOANG();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.JHDEPHCIOCJ();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1420f, base.transform.forward, 945f, -34, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 0; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 0;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 864f);
|
|
}
|
|
|
|
// Token: 0x0600F0D0 RID: 61648 RVA: 0x00483E44 File Offset: 0x00482044
|
|
private void IDGNADEAJEG(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 66f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 0 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1951f;
|
|
this.shaftRB.velocity = vector * 610f;
|
|
this.EKNFOIDMHPD = 0;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 140f)
|
|
{
|
|
this.hitGroundSound.Play();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Cheers - {0}{1}", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 254f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("GFJDHECAPJD", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("&", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.GNLAAOCLMBB(PDCJEBJGFNF, this.EKNFOIDMHPD < 1);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0D1 RID: 61649 RVA: 0x004840F4 File Offset: 0x004822F4
|
|
private void BMMCNONILLB(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 1784f);
|
|
bool flag = true;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.PFLFIHLKCLK();
|
|
this.KNHLOCIGOAN = new GameObject("api/rooms/");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (508f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1750f, 667f, 590f, 458f) + global::UnityEngine.Random.Range(1304f, 5f)));
|
|
}
|
|
|
|
// Token: 0x0600F0D2 RID: 61650 RVA: 0x00484360 File Offset: 0x00482560
|
|
private void OMNAMDCOFIE(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 207f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 1 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1901f;
|
|
this.shaftRB.velocity = vector * 1435f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(true);
|
|
}
|
|
if (sqrMagnitude > 467f)
|
|
{
|
|
this.hitGroundSound.EJENPFGCNEH();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("{0}v1/getCurrent", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 896f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Spin", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("rotation", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.ODLEKMHNHFC(PDCJEBJGFNF, this.EKNFOIDMHPD < 8);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0D3 RID: 61651 RVA: 0x00484610 File Offset: 0x00482810
|
|
private void OBMEILJNENF(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 423f);
|
|
bool flag = false;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.CCGNPIBJLGE();
|
|
this.KNHLOCIGOAN = new GameObject("_InterpolationEpi");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (1501f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1858f, 787f, 764f, 165f) + global::UnityEngine.Random.Range(1709f, 1343f)));
|
|
}
|
|
|
|
// Token: 0x0600F0D4 RID: 61652 RVA: 0x0048487C File Offset: 0x00482A7C
|
|
private void IJGOKHIFMNI()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0D5 RID: 61653 RVA: 0x0048489C File Offset: 0x00482A9C
|
|
private void FGCPHGJDALF()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.EFNGEGGJBJL().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0D6 RID: 61654 RVA: 0x004848B8 File Offset: 0x00482AB8
|
|
private void CHEDOHFELGH()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0D8 RID: 61656 RVA: 0x004848E0 File Offset: 0x00482AE0
|
|
private void EKKGEDBDINH()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.FCDPFLMFDBC.headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0D9 RID: 61657 RVA: 0x004848FC File Offset: 0x00482AFC
|
|
public void NJHPGKPBENE(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.CLPNFBHDKEI();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.JHDEPHCIOCJ();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1009f, base.transform.forward, 501f, -96, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 0; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 517f);
|
|
}
|
|
|
|
// Token: 0x0600F0DA RID: 61658 RVA: 0x00484A70 File Offset: 0x00482C70
|
|
private void FixedUpdate()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0DB RID: 61659 RVA: 0x00484AEC File Offset: 0x00482CEC
|
|
private void KIMFEOLADDM(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 1416f);
|
|
bool flag = true;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.ILFGIOEOANG();
|
|
this.KNHLOCIGOAN = new GameObject("Save");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (90f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1633f, 1816f, 451f, 458f) + global::UnityEngine.Random.Range(795f, 1706f)));
|
|
}
|
|
|
|
// Token: 0x0600F0DC RID: 61660 RVA: 0x00484D58 File Offset: 0x00482F58
|
|
public void AHPMCOLEPFE(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.ILFGIOEOANG();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.HCBOADLENIM();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 211f, base.transform.forward, 820f, -35, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1459f);
|
|
}
|
|
|
|
// Token: 0x0600F0DD RID: 61661 RVA: 0x00484ECC File Offset: 0x004830CC
|
|
private void PBBDFGGOBPA()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0DE RID: 61662 RVA: 0x00484F48 File Offset: 0x00483148
|
|
private void HHLPNGEIAEE(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 754f);
|
|
bool flag = false;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.CLPNFBHDKEI();
|
|
this.KNHLOCIGOAN = new GameObject("Content-Type");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (156f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1149f, 1550f, 295f, 1376f) + global::UnityEngine.Random.Range(1851f, 1382f)));
|
|
}
|
|
|
|
// Token: 0x0600F0DF RID: 61663 RVA: 0x004851B4 File Offset: 0x004833B4
|
|
private void CFNEBBODFBL()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0E0 RID: 61664 RVA: 0x00485230 File Offset: 0x00483430
|
|
private void IIBHNJKFMFH()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.EFNGEGGJBJL().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0E1 RID: 61665 RVA: 0x0048524C File Offset: 0x0048344C
|
|
private void FOHNONAJLPC(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 311f);
|
|
bool flag = true;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.CCGNPIBJLGE();
|
|
this.KNHLOCIGOAN = new GameObject("FriendsOverall");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (342f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 925f, 1425f, 608f, 1232f) + global::UnityEngine.Random.Range(630f, 639f)));
|
|
}
|
|
|
|
// Token: 0x0600F0E2 RID: 61666 RVA: 0x004854B8 File Offset: 0x004836B8
|
|
private void BCJGHBEAMOB()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0E3 RID: 61667 RVA: 0x00485534 File Offset: 0x00483734
|
|
private void CKOKFFCJENB()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0E4 RID: 61668 RVA: 0x004855B0 File Offset: 0x004837B0
|
|
private void HBOIBKDMGAH(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 614f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 4 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1064f;
|
|
this.shaftRB.velocity = vector * 1632f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 590f)
|
|
{
|
|
this.hitGroundSound.FLIKINFOOED();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("TEAM_TWO_LAST_PERFORMER_INDEX", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1856f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Failed to get Calibrated Play Area bounds! Make sure you have tracking first, and that your space is calibrated.", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("No Exception", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.IAGAPKACOIH(PDCJEBJGFNF, this.EKNFOIDMHPD < 2);
|
|
}
|
|
if (Player.EFNGEGGJBJL() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0E5 RID: 61669 RVA: 0x00485860 File Offset: 0x00483A60
|
|
private void IAGAPKACOIH(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 228f);
|
|
bool flag = true;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.HCBOADLENIM();
|
|
this.KNHLOCIGOAN = new GameObject(" w=");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (1497f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1376f, 911f, 819f, 875f) + global::UnityEngine.Random.Range(1976f, 83f)));
|
|
}
|
|
|
|
// Token: 0x0600F0E6 RID: 61670 RVA: 0x00485ACC File Offset: 0x00483CCC
|
|
private void CDMLFNKDCJG(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 185f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 6 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 1455f;
|
|
this.shaftRB.velocity = vector * 1402f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1764f)
|
|
{
|
|
this.hitGroundSound.HMBDOACENFC();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("forceRegistration", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1667f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("DEFENSE SCORES", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage("player_Id", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.KIMFEOLADDM(PDCJEBJGFNF, this.EKNFOIDMHPD < 0);
|
|
}
|
|
if (Player.EFNGEGGJBJL() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.CHKMMKLNBEK().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0E7 RID: 61671 RVA: 0x00485D7C File Offset: 0x00483F7C
|
|
private void AGFKLOKAJPO()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0E8 RID: 61672 RVA: 0x00485DF8 File Offset: 0x00483FF8
|
|
private void JCNICGJDBOJ(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 1267f);
|
|
bool flag = false;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.FMJEENPEMPM();
|
|
this.KNHLOCIGOAN = new GameObject("true");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[1].point - base.transform.forward * (1042f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 1425f, 557f, 113f, 1354f) + global::UnityEngine.Random.Range(444f, 255f)));
|
|
}
|
|
|
|
// Token: 0x0600F0E9 RID: 61673 RVA: 0x00486064 File Offset: 0x00484264
|
|
private void GGJMBPEDMCJ(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = this.targetPhysMaterial != null && PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial && sqrMagnitude > 1664f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 8 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[0].normal);
|
|
this.arrowHeadRB.velocity = vector * 1086f;
|
|
this.shaftRB.velocity = vector * 912f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 103f)
|
|
{
|
|
this.hitGroundSound.PAHKOCPEDMB();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("z", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = true;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1680f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("CheerSportsman", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("{0}", SendMessageOptions.DontRequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.GNLAAOCLMBB(PDCJEBJGFNF, this.EKNFOIDMHPD < 1);
|
|
}
|
|
if (Player.EFNGEGGJBJL() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.EFNGEGGJBJL().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0EA RID: 61674 RVA: 0x00486314 File Offset: 0x00484514
|
|
private void HKNABLHEAAI(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 173f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 7 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 1242f;
|
|
this.shaftRB.velocity = vector * 1553f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 313f)
|
|
{
|
|
this.hitGroundSound.EPHJFGKDNKB();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("CachedView_mat", base.gameObject, SendMessageOptions.RequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 317f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("gzip", SendMessageOptions.DontRequireReceiver);
|
|
base.gameObject.SendMessage(" at channel ", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.BMMCNONILLB(PDCJEBJGFNF, this.EKNFOIDMHPD < 4);
|
|
}
|
|
if (Player.FCDPFLMFDBC && PDCJEBJGFNF.collider == Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
Player.FCDPFLMFDBC.PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0EB RID: 61675 RVA: 0x004865C4 File Offset: 0x004847C4
|
|
public void FKFAMEOPBJM(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.Play();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.CLPNFBHDKEI();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 967f, base.transform.forward, 1919f, 37, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1349f);
|
|
}
|
|
|
|
// Token: 0x0600F0EC RID: 61676 RVA: 0x00486738 File Offset: 0x00484938
|
|
private void BICAENLDDFE(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 903f);
|
|
bool flag = true;
|
|
for (int i = 1; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = true;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.GMIBFAPHJAO();
|
|
this.KNHLOCIGOAN = new GameObject(" ms");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (311f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 377f, 571f, 1220f, 1646f) + global::UnityEngine.Random.Range(317f, 1061f)));
|
|
}
|
|
|
|
// Token: 0x0600F0ED RID: 61677 RVA: 0x004869A4 File Offset: 0x00484BA4
|
|
private void DEGNFLDBLGF()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.EFNGEGGJBJL().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0EE RID: 61678 RVA: 0x004869C0 File Offset: 0x00484BC0
|
|
private void PLHKCNHIOMA()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0EF RID: 61679 RVA: 0x004869E0 File Offset: 0x00484BE0
|
|
private void EAJCCJGMGFH(Collision PDCJEBJGFNF)
|
|
{
|
|
if (this.FPPLAMLLGJA)
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
float sqrMagnitude = component.velocity.sqrMagnitude;
|
|
bool flag = !(this.targetPhysMaterial != null) || !(PDCJEBJGFNF.collider.sharedMaterial == this.targetPhysMaterial) || sqrMagnitude > 1152f;
|
|
bool flag2 = PDCJEBJGFNF.collider.gameObject.GetComponent<Balloon>() != null;
|
|
if (this.EKNFOIDMHPD < 2 && !flag)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA - this.GOPOIDEKDLL * Time.deltaTime;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
Vector3 vector = Vector3.Reflect(this.arrowHeadRB.velocity, PDCJEBJGFNF.contacts[1].normal);
|
|
this.arrowHeadRB.velocity = vector * 1824f;
|
|
this.shaftRB.velocity = vector * 1328f;
|
|
this.EKNFOIDMHPD = 1;
|
|
return;
|
|
}
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Stop(false);
|
|
}
|
|
if (sqrMagnitude > 1055f)
|
|
{
|
|
this.hitGroundSound.NDFPOCIGDFK();
|
|
}
|
|
FireSource componentInChildren = base.gameObject.GetComponentInChildren<FireSource>();
|
|
FireSource componentInParent = PDCJEBJGFNF.collider.GetComponentInParent<FireSource>();
|
|
if (componentInChildren != null && componentInChildren.isBurning && componentInParent != null)
|
|
{
|
|
if (!this.FOAFFFEPBLL)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("Out of Bounds!", base.gameObject, SendMessageOptions.DontRequireReceiver);
|
|
this.FOAFFFEPBLL = false;
|
|
}
|
|
}
|
|
else if (sqrMagnitude > 1249f || flag2)
|
|
{
|
|
PDCJEBJGFNF.collider.gameObject.SendMessageUpwards("InputBuffer is null. ", SendMessageOptions.RequireReceiver);
|
|
base.gameObject.SendMessage("\n", SendMessageOptions.RequireReceiver);
|
|
}
|
|
if (flag2)
|
|
{
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
this.arrowHeadRB.velocity = this.GOPOIDEKDLL;
|
|
Physics.IgnoreCollision(this.arrowHeadRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), PDCJEBJGFNF.collider);
|
|
}
|
|
if (flag)
|
|
{
|
|
this.BMMCNONILLB(PDCJEBJGFNF, this.EKNFOIDMHPD < 0);
|
|
}
|
|
if (Player.CHKMMKLNBEK() && PDCJEBJGFNF.collider == Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
Player.CHKMMKLNBEK().PlayerShotSelf();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0F0 RID: 61680 RVA: 0x00486C90 File Offset: 0x00484E90
|
|
private void NJCGLHJMAEC()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.FCDPFLMFDBC.headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0F1 RID: 61681 RVA: 0x00486CAC File Offset: 0x00484EAC
|
|
private void LKIBODHFMHA()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.CHKMMKLNBEK().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0F2 RID: 61682 RVA: 0x00486CC8 File Offset: 0x00484EC8
|
|
private void LEFFCHKNCCL(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 2f);
|
|
bool flag = false;
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = false;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.Play();
|
|
this.KNHLOCIGOAN = new GameObject("Arrow Scale Parent");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (0.75f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 0f, 10f, 0f, 0.1f) + global::UnityEngine.Random.Range(0f, 0.05f)));
|
|
}
|
|
|
|
// Token: 0x0600F0F3 RID: 61683 RVA: 0x00486F34 File Offset: 0x00485134
|
|
public void OEBNCADIGKD(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.LOBIFNMKFEE();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.HCBOADLENIM();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1897f, base.transform.forward, 122f, 74, QueryTriggerInteraction.Ignore);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.EFNGEGGJBJL().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1719f);
|
|
}
|
|
|
|
// Token: 0x0600F0F4 RID: 61684 RVA: 0x004870A8 File Offset: 0x004852A8
|
|
private void FPCCNPHKEEB()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0F5 RID: 61685 RVA: 0x00487124 File Offset: 0x00485324
|
|
private void JLEFPEPGPFJ()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0F6 RID: 61686 RVA: 0x004871A0 File Offset: 0x004853A0
|
|
private void OKELPFLELEK(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 344f);
|
|
bool flag = true;
|
|
for (int i = 0; i < array.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = true;
|
|
this.shaftRB.useGravity = false;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = true;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
|
|
this.hitTargetSound.LJMAJGCPJGG();
|
|
this.KNHLOCIGOAN = new GameObject("Deflating: rc={0} msg={1}");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (771f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 359f, 1789f, 540f, 1177f) + global::UnityEngine.Random.Range(660f, 1955f)));
|
|
}
|
|
|
|
// Token: 0x0600F0F7 RID: 61687 RVA: 0x0048740C File Offset: 0x0048560C
|
|
private void NALJBDAAOHL()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0F8 RID: 61688 RVA: 0x00487488 File Offset: 0x00485688
|
|
private void KHMIAOGPAPI()
|
|
{
|
|
if (this.IGDJBDLHLBP && this.FPPLAMLLGJA)
|
|
{
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.EKNFOIDMHPD += 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0F9 RID: 61689 RVA: 0x00487504 File Offset: 0x00485704
|
|
private void MABJINMKBOP(Collision PDCJEBJGFNF, bool NILFJDKBHHP)
|
|
{
|
|
Vector3 vector = this.CMMEEHCCMDG * Vector3.forward;
|
|
if (!NILFJDKBHHP)
|
|
{
|
|
RaycastHit[] array = Physics.RaycastAll(this.NLFHJAKJGJE - this.GOPOIDEKDLL * Time.deltaTime, vector, this.GOPOIDEKDLL.magnitude * Time.deltaTime * 38f);
|
|
bool flag = true;
|
|
for (int i = 1; i < array.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array[i];
|
|
if (raycastHit.collider == PDCJEBJGFNF.collider)
|
|
{
|
|
flag = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
global::UnityEngine.Object.Destroy(this.glintParticle);
|
|
this.FPPLAMLLGJA = false;
|
|
this.shaftRB.velocity = Vector3.zero;
|
|
this.shaftRB.angularVelocity = Vector3.zero;
|
|
this.shaftRB.isKinematic = false;
|
|
this.shaftRB.useGravity = true;
|
|
this.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.arrowHeadRB.velocity = Vector3.zero;
|
|
this.arrowHeadRB.angularVelocity = Vector3.zero;
|
|
this.arrowHeadRB.isKinematic = false;
|
|
this.arrowHeadRB.useGravity = true;
|
|
this.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
|
|
this.hitTargetSound.PFLFIHLKCLK();
|
|
this.KNHLOCIGOAN = new GameObject("otherPlayerId");
|
|
Transform transform = PDCJEBJGFNF.collider.transform;
|
|
ExplosionWobble component = PDCJEBJGFNF.collider.gameObject.GetComponent<ExplosionWobble>();
|
|
if (!component && transform.parent)
|
|
{
|
|
transform = transform.parent;
|
|
}
|
|
this.KNHLOCIGOAN.transform.parent = transform;
|
|
base.transform.parent = this.KNHLOCIGOAN.transform;
|
|
base.transform.rotation = this.CMMEEHCCMDG;
|
|
base.transform.position = this.PLOBAJHDMLA;
|
|
base.transform.position = PDCJEBJGFNF.contacts[0].point - base.transform.forward * (923f - (OFPFHHLNHIC.DKPCDKNIGLJ(this.GOPOIDEKDLL.magnitude, 27f, 1357f, 1215f, 35f) + global::UnityEngine.Random.Range(939f, 358f)));
|
|
}
|
|
|
|
// Token: 0x0600F0FA RID: 61690 RVA: 0x00487770 File Offset: 0x00485970
|
|
private void ICPCJPFPLCD()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F0FB RID: 61691 RVA: 0x00487790 File Offset: 0x00485990
|
|
public void HCKEPEHCBDM(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.ILFGIOEOANG();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.JHDEPHCIOCJ();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1641f, base.transform.forward, 1684f, -54, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i++)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 1208f);
|
|
}
|
|
|
|
// Token: 0x0600F0FC RID: 61692 RVA: 0x00487904 File Offset: 0x00485B04
|
|
public void EJIDEEHEEHM(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = false;
|
|
this.IGDJBDLHLBP = false;
|
|
this.airReleaseSound.AONJILIKFOI();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.HCBOADLENIM();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 1632f, base.transform.forward, 885f, 31, QueryTriggerInteraction.UseGlobal);
|
|
RaycastHit[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
RaycastHit raycastHit = array2[i];
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.CHKMMKLNBEK().headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 1;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 128f);
|
|
}
|
|
|
|
// Token: 0x0600F0FD RID: 61693 RVA: 0x00487A78 File Offset: 0x00485C78
|
|
private void KGHEACCGPEE()
|
|
{
|
|
Physics.IgnoreCollision(this.shaftRB.GetComponent<Collider>(), Player.EFNGEGGJBJL().headCollider);
|
|
}
|
|
|
|
// Token: 0x0600F0FE RID: 61694 RVA: 0x00487A94 File Offset: 0x00485C94
|
|
public void ArrowReleased(float KMMOLJJIELE)
|
|
{
|
|
this.FPPLAMLLGJA = true;
|
|
this.IGDJBDLHLBP = true;
|
|
this.airReleaseSound.Play();
|
|
if (this.glintParticle != null)
|
|
{
|
|
this.glintParticle.Play();
|
|
}
|
|
if (base.gameObject.GetComponentInChildren<FireSource>().isBurning)
|
|
{
|
|
this.fireReleaseSound.Play();
|
|
}
|
|
RaycastHit[] array = Physics.SphereCastAll(base.transform.position, 0.01f, base.transform.forward, 0.8f, -5, QueryTriggerInteraction.Ignore);
|
|
foreach (RaycastHit raycastHit in array)
|
|
{
|
|
if (raycastHit.collider.gameObject != base.gameObject && raycastHit.collider.gameObject != this.arrowHeadRB.gameObject && raycastHit.collider != Player.FCDPFLMFDBC.headCollider)
|
|
{
|
|
global::UnityEngine.Object.Destroy(base.gameObject);
|
|
return;
|
|
}
|
|
}
|
|
this.EKNFOIDMHPD = 0;
|
|
this.PLOBAJHDMLA = base.transform.position;
|
|
this.CMMEEHCCMDG = base.transform.rotation;
|
|
this.NLFHJAKJGJE = this.arrowHeadRB.transform.position;
|
|
this.GOPOIDEKDLL = base.GetComponent<Rigidbody>().velocity;
|
|
global::UnityEngine.Object.Destroy(base.gameObject, 30f);
|
|
}
|
|
|
|
// Token: 0x0600F0FF RID: 61695 RVA: 0x00487C08 File Offset: 0x00485E08
|
|
private void NDHBFLHIAHM()
|
|
{
|
|
if (this.KNHLOCIGOAN != null)
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.KNHLOCIGOAN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x040022A6 RID: 8870
|
|
public ParticleSystem glintParticle;
|
|
|
|
// Token: 0x040022A7 RID: 8871
|
|
public Rigidbody arrowHeadRB;
|
|
|
|
// Token: 0x040022A8 RID: 8872
|
|
public Rigidbody shaftRB;
|
|
|
|
// Token: 0x040022A9 RID: 8873
|
|
public PhysicMaterial targetPhysMaterial;
|
|
|
|
// Token: 0x040022AA RID: 8874
|
|
private Vector3 PLOBAJHDMLA;
|
|
|
|
// Token: 0x040022AB RID: 8875
|
|
private Quaternion CMMEEHCCMDG;
|
|
|
|
// Token: 0x040022AC RID: 8876
|
|
private Vector3 GOPOIDEKDLL;
|
|
|
|
// Token: 0x040022AD RID: 8877
|
|
private Vector3 NLFHJAKJGJE;
|
|
|
|
// Token: 0x040022AE RID: 8878
|
|
public SoundPlayOneshot fireReleaseSound;
|
|
|
|
// Token: 0x040022AF RID: 8879
|
|
public SoundPlayOneshot airReleaseSound;
|
|
|
|
// Token: 0x040022B0 RID: 8880
|
|
public SoundPlayOneshot hitTargetSound;
|
|
|
|
// Token: 0x040022B1 RID: 8881
|
|
public PlaySound hitGroundSound;
|
|
|
|
// Token: 0x040022B2 RID: 8882
|
|
private bool FPPLAMLLGJA;
|
|
|
|
// Token: 0x040022B3 RID: 8883
|
|
private bool IGDJBDLHLBP;
|
|
|
|
// Token: 0x040022B4 RID: 8884
|
|
private bool FOAFFFEPBLL;
|
|
|
|
// Token: 0x040022B5 RID: 8885
|
|
private int EKNFOIDMHPD;
|
|
|
|
// Token: 0x040022B6 RID: 8886
|
|
private GameObject KNHLOCIGOAN;
|
|
}
|
|
}
|