This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,2503 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Valve.VR.InteractionSystem
{
// Token: 0x020005E9 RID: 1513
public class ArrowHand : MonoBehaviour
{
// Token: 0x0600F100 RID: 61696 RVA: 0x00487C28 File Offset: 0x00485E28
private void GBKNNAAFFIE(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.KAAGEFELLNK();
}
// Token: 0x0600F101 RID: 61697 RVA: 0x00487C38 File Offset: 0x00485E38
private void LBCDHCDHAPN(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.HGHKDJIKPEH();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.NPKNNCOBEBK();
this.arrowSpawnSound.ILFGIOEOANG();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1077f, 1275f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 1728f, 1805f);
num3 = Mathf.Clamp(num3, 166f, 585f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
GAEKGDCFOJM.controller.JJJGEOKNEFP(8, (LKMJJEMLLKJ)(-13));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
this.NAKICGDINLB.BEHOPGBJAMB();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DJONBHMMHNC(1218UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.GHDAMDGJPFC();
}
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.CCNBNFGDNLK(this);
GAEKGDCFOJM.HoverLock(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, false);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.MLGHJGJJKPA(53UL) || GAEKGDCFOJM.controller.ANLGAPKBAEF(650UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.BHEPCEGDKGD();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.DKDECMPCNAM();
GAEKGDCFOJM.PHJNALOLENH(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.MKFBBOHIBMG();
}
}
// Token: 0x0600F102 RID: 61698 RVA: 0x00487FD4 File Offset: 0x004861D4
private void PBAHADNDEPN()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F103 RID: 61699 RVA: 0x00487FE0 File Offset: 0x004861E0
private GameObject MPEPNLJCKNP()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "{0} {1} HTTP/1.1";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F104 RID: 61700 RVA: 0x0048808C File Offset: 0x0048628C
private GameObject KMMOHPELNCC()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = " ch#";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, false);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F105 RID: 61701 RVA: 0x00488138 File Offset: 0x00486338
private GameObject FPOJKPOJNGK()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "pitch";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, false);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[1];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F106 RID: 61702 RVA: 0x004881E4 File Offset: 0x004863E4
private void MKKFLHLGDJI(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F107 RID: 61703 RVA: 0x004881F4 File Offset: 0x004863F4
private void NPIDBLBHGDJ()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = false;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = true;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), ForceMode.Acceleration);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 921f);
this.ANHDJOLGIOA = true;
this.HPBKHPGLMMM.GetComponent<Arrow>().BKJHFEHAGLH(this.NAKICGDINLB.MLLDMBMMLFO());
this.NAKICGDINLB.HCKEPEHCBDM();
this.MBLGIPBFMNB = true;
base.Invoke("Cinematic", 1097f);
base.StartCoroutine(this.LAILDDKKDHI());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F108 RID: 61704 RVA: 0x00488330 File Offset: 0x00486530
private void GPNEOLMNOBA(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.NOLMGEIKGDB();
}
// Token: 0x0600F109 RID: 61705 RVA: 0x00488340 File Offset: 0x00486540
private void NGKBHIKEFKL(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.MBHBEBPEEAB();
}
// Token: 0x0600F10A RID: 61706 RVA: 0x00488350 File Offset: 0x00486550
private GameObject FDADMDDKBAB()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "published";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, false);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(0);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F10B RID: 61707 RVA: 0x004883FC File Offset: 0x004865FC
private void FJFALBALFPD()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F10C RID: 61708 RVA: 0x00488408 File Offset: 0x00486608
private void JGKMAOJKNJH()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = true;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), ForceMode.Acceleration);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1019f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().MJHEOIJMHAL(this.NAKICGDINLB.PHNEHBODNAN());
this.NAKICGDINLB.ArrowReleased();
this.MBLGIPBFMNB = true;
base.Invoke("oldPing", 1357f);
base.StartCoroutine(this.BMBPOOPCJPI());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F10D RID: 61709 RVA: 0x00488544 File Offset: 0x00486744
private void GDNKHMCMHCD(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HFHBIDDBLCD();
}
// Token: 0x0600F10E RID: 61710 RVA: 0x00488554 File Offset: 0x00486754
private IEnumerator AMPMEEFCFOD()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F10F RID: 61711 RVA: 0x00488570 File Offset: 0x00486770
private void GICHADGFOJK()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = true;
this.BAIOMMJEMDE.overrideHoverLock = true;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F110 RID: 61712 RVA: 0x004885A4 File Offset: 0x004867A4
private void LGCNFLACIIH()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = true;
this.BAIOMMJEMDE.overrideHoverLock = false;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F111 RID: 61713 RVA: 0x004885D8 File Offset: 0x004867D8
private void MFEPJHJHGIO(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F112 RID: 61714 RVA: 0x004885E8 File Offset: 0x004867E8
private void MDFNBCBIEIO()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F113 RID: 61715 RVA: 0x004885F4 File Offset: 0x004867F4
private void FCFLCHHNOGH(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F114 RID: 61716 RVA: 0x00488604 File Offset: 0x00486804
private void DCLAIHDCKON(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F115 RID: 61717 RVA: 0x00488614 File Offset: 0x00486814
private void IPGCBOBFHBE()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = true;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), ForceMode.Force);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1697f);
this.ANHDJOLGIOA = true;
this.HPBKHPGLMMM.GetComponent<Arrow>().NJHPGKPBENE(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.CEMJIIBFMNI();
this.MBLGIPBFMNB = false;
base.Invoke("DownloadProgress", 193f);
base.StartCoroutine(this.LAILDDKKDHI());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = true;
}
// Token: 0x0600F116 RID: 61718 RVA: 0x00488750 File Offset: 0x00486950
private void LBIBLOFGAHE()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = false;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = false;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.MLLDMBMMLFO(), (ForceMode)7);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1800f);
this.ANHDJOLGIOA = true;
this.HPBKHPGLMMM.GetComponent<Arrow>().BIJDAJLBCKF(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.CEMJIIBFMNI();
this.MBLGIPBFMNB = true;
base.Invoke("time", 744f);
base.StartCoroutine(this.FMMDBCMNDLJ());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = true;
}
// Token: 0x0600F117 RID: 61719 RVA: 0x0048888C File Offset: 0x00486A8C
private void FDEIKKCBEOK(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HIABMCDOIIE();
}
// Token: 0x0600F118 RID: 61720 RVA: 0x0048889C File Offset: 0x00486A9C
private void FFBDLMHCDIF(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.GFEIMDBKLLD();
}
// Token: 0x0600F119 RID: 61721 RVA: 0x004888AC File Offset: 0x00486AAC
private void NMOBMJGJCCC()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = false;
this.BAIOMMJEMDE.overrideHoverLock = false;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F11A RID: 61722 RVA: 0x004888E0 File Offset: 0x00486AE0
private void MDMNFENDLPN()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = false;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = true;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), (ForceMode)8);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1878f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().ArrowReleased(this.NAKICGDINLB.MLLDMBMMLFO());
this.NAKICGDINLB.CEMJIIBFMNI();
this.MBLGIPBFMNB = false;
base.Invoke("SBM_SM", 1212f);
base.StartCoroutine(this.FMMDBCMNDLJ());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F11B RID: 61723 RVA: 0x00488A1C File Offset: 0x00486C1C
private void MNGHFKDGOKA(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F11C RID: 61724 RVA: 0x00488A2C File Offset: 0x00486C2C
private void DPBLCCLABLC(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HGHKDJIKPEH();
}
// Token: 0x0600F11D RID: 61725 RVA: 0x00488A3C File Offset: 0x00486C3C
private void CGAKLBJNKGJ(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F11E RID: 61726 RVA: 0x00488A4C File Offset: 0x00486C4C
private void FLOGEDEHLIA(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F11F RID: 61727 RVA: 0x00488A5C File Offset: 0x00486C5C
private void KENFNEKPDPJ()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F120 RID: 61728 RVA: 0x00488A74 File Offset: 0x00486C74
private void GKCGBALOBHD()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F121 RID: 61729 RVA: 0x00488A80 File Offset: 0x00486C80
private GameObject JDGABKMDKAL()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "Bow Arrow";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(0);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F122 RID: 61730 RVA: 0x00488B2C File Offset: 0x00486D2C
private void BEKBKCADKNM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F123 RID: 61731 RVA: 0x00488B3C File Offset: 0x00486D3C
private void KONMJDJHJLA(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F124 RID: 61732 RVA: 0x00488B4C File Offset: 0x00486D4C
private void BLDMEBPMADM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F125 RID: 61733 RVA: 0x00488B5C File Offset: 0x00486D5C
private void NPOLBFMFGOP(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.IHDEBNNPNGP();
}
// Token: 0x0600F126 RID: 61734 RVA: 0x00488B6C File Offset: 0x00486D6C
private IEnumerator GKKKDKCOFFB()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F127 RID: 61735 RVA: 0x00488B88 File Offset: 0x00486D88
private void HJIBOHJEGIO(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F128 RID: 61736 RVA: 0x00488B98 File Offset: 0x00486D98
private void AMGPEBPMNNM(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.IHDEBNNPNGP();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.MPEPNLJCKNP();
this.arrowSpawnSound.HCBOADLENIM();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1080f, 1440f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 793f, 1660f);
num3 = Mathf.Clamp(num3, 1307f, 1659f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
GAEKGDCFOJM.controller.OJAPHKLGMBC(151, (LKMJJEMLLKJ)(-112));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.PKMIANNNNDH();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DJONBHMMHNC(1009UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.CBCIPICJLHG();
}
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.CCNBNFGDNLK(this);
GAEKGDCFOJM.HBIGEOLCLCN(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, false);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DAKLOJIFLGD(1851UL) || GAEKGDCFOJM.controller.HFAJJCCICPB(1933UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.NCKAIDDPIFI();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.DIJPPOOPNAP();
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
}
this.NAKICGDINLB.AEKOPBIBNCJ();
}
}
// Token: 0x0600F129 RID: 61737 RVA: 0x00488F34 File Offset: 0x00487134
private void NFCLPCMGALK(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.MHDILFOCAMJ();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.ABCNPMBBAMO();
this.arrowSpawnSound.MNHLLHENJOC();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1161f, 1578f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 1721f, 149f);
num3 = Mathf.Clamp(num3, 570f, 26f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
GAEKGDCFOJM.controller.KEOAHFCEDBG((ushort)(-49), (LKMJJEMLLKJ)83);
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.PKMIANNNNDH();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DJONBHMMHNC(904UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.MPEPNLJCKNP();
}
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.IGKDKBCNPDL(this);
GAEKGDCFOJM.HBIGEOLCLCN(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.MLGHJGJJKPA(18446744073709550343UL) || GAEKGDCFOJM.controller.HFAJJCCICPB(1221UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.BHEPCEGDKGD();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.ReleaseNock();
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
}
this.NAKICGDINLB.MKFBBOHIBMG();
}
}
// Token: 0x0600F12A RID: 61738 RVA: 0x004892D0 File Offset: 0x004874D0
private void ABCIOCOKMLM()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F12B RID: 61739 RVA: 0x004892E8 File Offset: 0x004874E8
private void HOGGCABPJGD()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = true;
component.shaftRB.useGravity = false;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.isKinematic = true;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.PHNEHBODNAN(), ForceMode.Acceleration);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1149f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().KDFDJKDOPFD(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.MNFMEBLLNLK();
this.MBLGIPBFMNB = true;
base.Invoke("The host has silenced everybody", 344f);
base.StartCoroutine(this.BMBPOOPCJPI());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F12C RID: 61740 RVA: 0x00489424 File Offset: 0x00487624
private void KAAGEFELLNK()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F12D RID: 61741 RVA: 0x0048943C File Offset: 0x0048763C
private void KJMHCENAHFL()
{
this.MBLGIPBFMNB = false;
}
// Token: 0x0600F12E RID: 61742 RVA: 0x00489448 File Offset: 0x00487648
private void CGLBOCKMGFP(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HIABMCDOIIE();
}
// Token: 0x0600F12F RID: 61743 RVA: 0x00489458 File Offset: 0x00487658
private void PJAOAEDEJDJ(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HIABMCDOIIE();
}
// Token: 0x0600F130 RID: 61744 RVA: 0x00489468 File Offset: 0x00487668
private void BHEPCEGDKGD()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = true;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.MLLDMBMMLFO(), ForceMode.Acceleration);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 139f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().BIJDAJLBCKF(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.MNFMEBLLNLK();
this.MBLGIPBFMNB = false;
base.Invoke("PlayStation Only Matching", 408f);
base.StartCoroutine(this.NKIIDDFLLGF());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F131 RID: 61745 RVA: 0x004895A4 File Offset: 0x004877A4
private void FBOFDJONMLO(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F132 RID: 61746 RVA: 0x004895B4 File Offset: 0x004877B4
private void NMBJGDAGMCA(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.NOLMGEIKGDB();
}
// Token: 0x0600F133 RID: 61747 RVA: 0x004895C4 File Offset: 0x004877C4
private void CNGMMOAIKJO(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F134 RID: 61748 RVA: 0x004895D4 File Offset: 0x004877D4
private void CNKIKPBHFOA(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F135 RID: 61749 RVA: 0x004895E4 File Offset: 0x004877E4
private void HHDNDCALEKP(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F136 RID: 61750 RVA: 0x004895F4 File Offset: 0x004877F4
private void DAJNCLJLOGM(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F137 RID: 61751 RVA: 0x00489604 File Offset: 0x00487804
private void PHCKPLIAIPM(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.NOLMGEIKGDB();
}
// Token: 0x0600F138 RID: 61752 RVA: 0x00489614 File Offset: 0x00487814
private void OEAJEBKFMLI(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F139 RID: 61753 RVA: 0x00489624 File Offset: 0x00487824
private void ABHMPFPOBIK(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.KAAGEFELLNK();
}
// Token: 0x0600F13A RID: 61754 RVA: 0x00489634 File Offset: 0x00487834
private void ACOIMDMPDOM()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = true;
this.BAIOMMJEMDE.overrideHoverLock = false;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F13B RID: 61755 RVA: 0x00489668 File Offset: 0x00487868
private void NDHOHKOCPML()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F13C RID: 61756 RVA: 0x00489680 File Offset: 0x00487880
private void POPAHLODEHD(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.HKOENNBEDOK();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.MPEPNLJCKNP();
this.arrowSpawnSound.ICEACNLCOGC();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1677f, 1520f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 1725f, 1594f);
num3 = Mathf.Clamp(num3, 1917f, 43f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-88), (LKMJJEMLLKJ)(-118));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.FIPKPBHIOLC();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.MLGHJGJJKPA(1871UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.FFLHNICKLDK();
}
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.APOIAIDLIOP(this);
GAEKGDCFOJM.HBIGEOLCLCN(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DJONBHMMHNC(18446744073709549975UL) || GAEKGDCFOJM.controller.ANLGAPKBAEF(252UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.FJBANCCINJF();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.DIJPPOOPNAP();
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.JKEHKLBHPII();
}
}
// Token: 0x0600F13D RID: 61757 RVA: 0x00489A1C File Offset: 0x00487C1C
private void MBHBEBPEEAB()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F13E RID: 61758 RVA: 0x00489A34 File Offset: 0x00487C34
private void BACNCKGIBAH(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.ABCIOCOKMLM();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.JDGABKMDKAL();
this.arrowSpawnSound.CCGNPIBJLGE();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1108f, 70f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 859f, 62f);
num3 = Mathf.Clamp(num3, 1201f, 495f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
GAEKGDCFOJM.controller.PBMDDJKFFAI((ushort)(-103), (LKMJJEMLLKJ)(-2));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
this.NAKICGDINLB.FIPKPBHIOLC();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.MLGHJGJJKPA(18446744073709550481UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.EKEIICMEIAK();
}
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.CCNBNFGDNLK(this);
GAEKGDCFOJM.JFCEAEEPFCF(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DJONBHMMHNC(18446744073709550798UL) || GAEKGDCFOJM.controller.HFAJJCCICPB(1884UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.LOLKDEOHBHN();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.ReleaseNock();
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.EAAIJHFEBPI();
}
}
// Token: 0x0600F13F RID: 61759 RVA: 0x00489DD0 File Offset: 0x00487FD0
private GameObject GHDAMDGJPFC()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "Uploading...";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, false);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[1];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F140 RID: 61760 RVA: 0x00489E7C File Offset: 0x0048807C
private void JABJKECAFAK(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F141 RID: 61761 RVA: 0x00489E8C File Offset: 0x0048808C
private void KLBJLELOGHE()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F142 RID: 61762 RVA: 0x00489E98 File Offset: 0x00488098
private GameObject NPKNNCOBEBK()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "Proxy-Authorization";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[1];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F143 RID: 61763 RVA: 0x00489F44 File Offset: 0x00488144
private void BNBJMDLAINN(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.KAAGEFELLNK();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.CBCIPICJLHG();
this.arrowSpawnSound.CDCOMFOMPGM();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 710f, 1013f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 733f, 374f);
num3 = Mathf.Clamp(num3, 886f, 368f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
GAEKGDCFOJM.controller.OJAPHKLGMBC(86, (LKMJJEMLLKJ)(-79));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
this.NAKICGDINLB.BEHOPGBJAMB();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DAKLOJIFLGD(294UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.EKEIICMEIAK();
}
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.IGKDKBCNPDL(this);
GAEKGDCFOJM.FIDJJOFGJDK(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DJONBHMMHNC(208UL) || GAEKGDCFOJM.controller.ANLGAPKBAEF(18446744073709550081UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.LBIBLOFGAHE();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.DKDECMPCNAM();
GAEKGDCFOJM.PHJNALOLENH(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.HBFNMPIFGIL();
}
}
// Token: 0x0600F144 RID: 61764 RVA: 0x0048A2E0 File Offset: 0x004884E0
private void OIENGLALKKN(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.KENFNEKPDPJ();
}
// Token: 0x0600F145 RID: 61765 RVA: 0x0048A2F0 File Offset: 0x004884F0
private void NOLMGEIKGDB()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F146 RID: 61766 RVA: 0x0048A308 File Offset: 0x00488508
private void NMLBHAJJFPF()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = true;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.isKinematic = true;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), (ForceMode)3);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1397f);
this.ANHDJOLGIOA = true;
this.HPBKHPGLMMM.GetComponent<Arrow>().AJAGNIJHNHF(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.ArrowReleased();
this.MBLGIPBFMNB = false;
base.Invoke("SystemInfo", 1930f);
base.StartCoroutine(this.LAILDDKKDHI());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F147 RID: 61767 RVA: 0x0048A444 File Offset: 0x00488644
private void EPLJFBMONOJ(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.KAAGEFELLNK();
}
// Token: 0x0600F148 RID: 61768 RVA: 0x0048A454 File Offset: 0x00488654
private void BPNLDIPPLKB(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HIABMCDOIIE();
}
// Token: 0x0600F149 RID: 61769 RVA: 0x0048A464 File Offset: 0x00488664
private IEnumerator LAILDDKKDHI()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F14A RID: 61770 RVA: 0x0048A480 File Offset: 0x00488680
private void APIFBGJJAAA(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HIABMCDOIIE();
}
// Token: 0x0600F14B RID: 61771 RVA: 0x0048A490 File Offset: 0x00488690
private void BFNIBNHJACM(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.IHDEBNNPNGP();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.JDGABKMDKAL();
this.arrowSpawnSound.Play();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 0f, 1f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 0f, 1f);
num3 = Mathf.Clamp(num3, 0f, 1f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
GAEKGDCFOJM.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.ArrowInPosition();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.MLGHJGJJKPA(8589934592UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.JDGABKMDKAL();
}
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.StartNock(this);
GAEKGDCFOJM.HoverLock(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.MLGHJGJJKPA(8589934592UL) || GAEKGDCFOJM.controller.HFAJJCCICPB(8589934592UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.LOLKDEOHBHN();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.ReleaseNock();
GAEKGDCFOJM.HoverUnlock(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.StartRotationLerp();
}
}
// Token: 0x0600F14C RID: 61772 RVA: 0x0048A82C File Offset: 0x00488A2C
private void HKOENNBEDOK()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F14E RID: 61774 RVA: 0x0048A894 File Offset: 0x00488A94
private void GFEIMDBKLLD()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F14F RID: 61775 RVA: 0x0048A8AC File Offset: 0x00488AAC
private void LIGJMOJEDKH(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F150 RID: 61776 RVA: 0x0048A8BC File Offset: 0x00488ABC
private void GBPHMJGPHBL(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F151 RID: 61777 RVA: 0x0048A8CC File Offset: 0x00488ACC
private void KNBHHLLGOGL(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F152 RID: 61778 RVA: 0x0048A8DC File Offset: 0x00488ADC
private void DFBDHMKDJOB()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = true;
this.BAIOMMJEMDE.overrideHoverLock = false;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F153 RID: 61779 RVA: 0x0048A910 File Offset: 0x00488B10
private GameObject ABCNPMBBAMO()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "IsCheering";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(0);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F154 RID: 61780 RVA: 0x0048A9BC File Offset: 0x00488BBC
private void HGIOHJKCGCH()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = false;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.PHNEHBODNAN(), (ForceMode)6);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 366f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().NJHPGKPBENE(this.NAKICGDINLB.MLLDMBMMLFO());
this.NAKICGDINLB.ArrowReleased();
this.MBLGIPBFMNB = false;
base.Invoke("time_before_quit", 1165f);
base.StartCoroutine(this.BMBPOOPCJPI());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = true;
}
// Token: 0x0600F155 RID: 61781 RVA: 0x0048AAF8 File Offset: 0x00488CF8
private void Awake()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = true;
this.BAIOMMJEMDE.overrideHoverLock = false;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F156 RID: 61782 RVA: 0x0048AB2C File Offset: 0x00488D2C
private void KGENMBGFFHB()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F157 RID: 61783 RVA: 0x0048AB44 File Offset: 0x00488D44
private void PBAHCCOKIKB(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.KAAGEFELLNK();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.FPOJKPOJNGK();
this.arrowSpawnSound.HCBOADLENIM();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1318f, 1791f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 319f, 587f);
num3 = Mathf.Clamp(num3, 1541f, 1231f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
GAEKGDCFOJM.controller.IGIIDDCCPNC((ushort)(-67), (LKMJJEMLLKJ)127);
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.PKMIANNNNDH();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DJONBHMMHNC(18446744073709549738UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.GHDAMDGJPFC();
}
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.StartNock(this);
GAEKGDCFOJM.JFCEAEEPFCF(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, false);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DAKLOJIFLGD(973UL) || GAEKGDCFOJM.controller.ANLGAPKBAEF(18446744073709550283UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.HOGGCABPJGD();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.DKDECMPCNAM();
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.StartRotationLerp();
}
}
// Token: 0x0600F158 RID: 61784 RVA: 0x0048AEE0 File Offset: 0x004890E0
private void EFJDJIBMNDD()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F159 RID: 61785 RVA: 0x0048AEEC File Offset: 0x004890EC
private void FAEBAKJJKNP(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F15A RID: 61786 RVA: 0x0048AEFC File Offset: 0x004890FC
private void FJINNIHFKNJ(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F15B RID: 61787 RVA: 0x0048AF0C File Offset: 0x0048910C
private void NPIJEGGPMIC(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F15C RID: 61788 RVA: 0x0048AF1C File Offset: 0x0048911C
private void CKFBCNFDELM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F15D RID: 61789 RVA: 0x0048AF2C File Offset: 0x0048912C
private void DICLFMOPKFM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F15E RID: 61790 RVA: 0x0048AF3C File Offset: 0x0048913C
private void NPKJDAFKOMJ()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F15F RID: 61791 RVA: 0x0048AF48 File Offset: 0x00489148
private void GKOFPBDENFP()
{
this.MBLGIPBFMNB = false;
}
// Token: 0x0600F160 RID: 61792 RVA: 0x0048AF54 File Offset: 0x00489154
private void HFHBIDDBLCD()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F161 RID: 61793 RVA: 0x0048AF6C File Offset: 0x0048916C
private void AHDNMDLPFGA(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F162 RID: 61794 RVA: 0x0048AF7C File Offset: 0x0048917C
private void EGCDIMMFIIJ()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F163 RID: 61795 RVA: 0x0048AF88 File Offset: 0x00489188
private GameObject FFLHNICKLDK()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "SSA_IA";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F164 RID: 61796 RVA: 0x0048B034 File Offset: 0x00489234
private void PCPGLDOGPAM(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F165 RID: 61797 RVA: 0x0048B044 File Offset: 0x00489244
private IEnumerator GFFCBKJHHBD()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F166 RID: 61798 RVA: 0x0048B060 File Offset: 0x00489260
private void MGJMDCDIHHG(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F167 RID: 61799 RVA: 0x0048B070 File Offset: 0x00489270
private void IAAMICEAEIL(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.KAAGEFELLNK();
}
// Token: 0x0600F168 RID: 61800 RVA: 0x0048B080 File Offset: 0x00489280
private void JCMACIIAKIA(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.GFEIMDBKLLD();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.FFLHNICKLDK();
this.arrowSpawnSound.HCBOADLENIM();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1495f, 143f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 346f, 1125f);
num3 = Mathf.Clamp(num3, 1132f, 523f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
GAEKGDCFOJM.controller.BLAOIIFDDED(96, (LKMJJEMLLKJ)(-14));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.ArrowInPosition();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DJONBHMMHNC(1374UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.GHDAMDGJPFC();
}
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.StartNock(this);
GAEKGDCFOJM.FIDJJOFGJDK(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, false);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DAKLOJIFLGD(1459UL) || GAEKGDCFOJM.controller.HFAJJCCICPB(966UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.LBIBLOFGAHE();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.DIJPPOOPNAP();
GAEKGDCFOJM.LAMFHHKJLKN(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
}
this.NAKICGDINLB.JKEHKLBHPII();
}
}
// Token: 0x0600F169 RID: 61801 RVA: 0x0048B41C File Offset: 0x0048961C
private void AGMFPEGJBOF(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.IHDEBNNPNGP();
}
// Token: 0x0600F16A RID: 61802 RVA: 0x0048B42C File Offset: 0x0048962C
private void HIABMCDOIIE()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F16B RID: 61803 RVA: 0x0048B444 File Offset: 0x00489644
private void GAMKILIEJHG()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = true;
this.BAIOMMJEMDE.overrideHoverLock = false;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F16C RID: 61804 RVA: 0x0048B478 File Offset: 0x00489678
private void KOOJKANAHBF(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.KENFNEKPDPJ();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.GHDAMDGJPFC();
this.arrowSpawnSound.CCGNPIBJLGE();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 978f, 1259f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 196f, 1035f);
num3 = Mathf.Clamp(num3, 1228f, 673f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
GAEKGDCFOJM.controller.FCKFLGGGDMO(75, (LKMJJEMLLKJ)(-81));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
this.NAKICGDINLB.PKMIANNNNDH();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.DAKLOJIFLGD(18446744073709550534UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.ABCNPMBBAMO();
}
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.StartNock(this);
GAEKGDCFOJM.FIDJJOFGJDK(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.MLGHJGJJKPA(1989UL) || GAEKGDCFOJM.controller.HFAJJCCICPB(18446744073709550562UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.HOGGCABPJGD();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.DKDECMPCNAM();
GAEKGDCFOJM.LAMFHHKJLKN(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
}
this.NAKICGDINLB.HBFNMPIFGIL();
}
}
// Token: 0x0600F16D RID: 61805 RVA: 0x0048B814 File Offset: 0x00489A14
private void BJDIOJEGMEB(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F16E RID: 61806 RVA: 0x0048B824 File Offset: 0x00489A24
private void CJNFFAJLJEM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F16F RID: 61807 RVA: 0x0048B834 File Offset: 0x00489A34
private IEnumerator AILLIAKOMFE()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F170 RID: 61808 RVA: 0x0048B850 File Offset: 0x00489A50
private void NENNINEPGEC(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F171 RID: 61809 RVA: 0x0048B860 File Offset: 0x00489A60
private void LOLKDEOHBHN()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), ForceMode.VelocityChange);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 10f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().ArrowReleased(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.ArrowReleased();
this.MBLGIPBFMNB = false;
base.Invoke("CONGFFPGBED", 0.5f);
base.StartCoroutine(this.FMMDBCMNDLJ());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = true;
}
// Token: 0x0600F172 RID: 61810 RVA: 0x0048B99C File Offset: 0x00489B9C
private void KFJBJGDLJIB(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F173 RID: 61811 RVA: 0x0048B9AC File Offset: 0x00489BAC
private void KLOHCJMIAOP()
{
this.MBLGIPBFMNB = false;
}
// Token: 0x0600F174 RID: 61812 RVA: 0x0048B9B8 File Offset: 0x00489BB8
private void KMMLOFCGIMG()
{
this.BAIOMMJEMDE = base.GetComponent<AllowTeleportWhileAttachedToHand>();
this.BAIOMMJEMDE.teleportAllowed = false;
this.BAIOMMJEMDE.overrideHoverLock = true;
this.ICANENLLGGO = new List<GameObject>();
}
// Token: 0x0600F175 RID: 61813 RVA: 0x0048B9EC File Offset: 0x00489BEC
private void AJFOIFBLILB()
{
this.MBLGIPBFMNB = false;
}
// Token: 0x0600F176 RID: 61814 RVA: 0x0048B9F8 File Offset: 0x00489BF8
private void MFJGMBIELAH()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.PHNEHBODNAN(), ForceMode.Force);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1906f);
this.ANHDJOLGIOA = false;
this.HPBKHPGLMMM.GetComponent<Arrow>().NJHPGKPBENE(this.NAKICGDINLB.MLLDMBMMLFO());
this.NAKICGDINLB.CEMJIIBFMNI();
this.MBLGIPBFMNB = false;
base.Invoke("to", 1874f);
base.StartCoroutine(this.GKKKDKCOFFB());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F177 RID: 61815 RVA: 0x0048BB34 File Offset: 0x00489D34
private void MHDILFOCAMJ()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F178 RID: 61816 RVA: 0x0048BB4C File Offset: 0x00489D4C
private void BDPNPBFOJOO(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F179 RID: 61817 RVA: 0x0048BB5C File Offset: 0x00489D5C
private void MMKOKAOJPLI(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F17A RID: 61818 RVA: 0x0048BB6C File Offset: 0x00489D6C
private void HGHKDJIKPEH()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F17B RID: 61819 RVA: 0x0048BB84 File Offset: 0x00489D84
private void NGKJPCEDAIK(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F17C RID: 61820 RVA: 0x0048BB94 File Offset: 0x00489D94
private void GCNMEIBNIFG(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.KENFNEKPDPJ();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.KMMOHPELNCC();
this.arrowSpawnSound.FMJEENPEMPM();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 216f, 1573f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 1131f, 1242f);
num3 = Mathf.Clamp(num3, 26f, 1524f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
GAEKGDCFOJM.controller.KEOAHFCEDBG(163, (LKMJJEMLLKJ)(-82));
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
this.NAKICGDINLB.BEHOPGBJAMB();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = true;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.MLGHJGJJKPA(1403UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.KMMOHPELNCC();
}
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.KACNJODNGEI(this);
GAEKGDCFOJM.JFCEAEEPFCF(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, false);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DJONBHMMHNC(863UL) || GAEKGDCFOJM.controller.ANLGAPKBAEF(18446744073709550254UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.HGIOHJKCGCH();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.ReleaseNock();
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
}
this.NAKICGDINLB.HBFNMPIFGIL();
}
}
// Token: 0x0600F17D RID: 61821 RVA: 0x0048BF30 File Offset: 0x0048A130
private IEnumerator NKIIDDFLLGF()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F17E RID: 61822 RVA: 0x0048BF4C File Offset: 0x0048A14C
private void NCKAIDDPIFI()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = false;
component.shaftRB.useGravity = false;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = false;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.GetArrowVelocity(), (ForceMode)8);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 1931f);
this.ANHDJOLGIOA = true;
this.HPBKHPGLMMM.GetComponent<Arrow>().NGDFCGEDFBA(this.NAKICGDINLB.PHNEHBODNAN());
this.NAKICGDINLB.NJHPGKPBENE();
this.MBLGIPBFMNB = true;
base.Invoke("Failed to save, error : ", 75f);
base.StartCoroutine(this.GFFCBKJHHBD());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = false;
}
// Token: 0x0600F17F RID: 61823 RVA: 0x0048C088 File Offset: 0x0048A288
private GameObject CBKHEMCAJAM()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "TouchpadUp (Click)";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(0);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F180 RID: 61824 RVA: 0x0048C134 File Offset: 0x0048A334
private void CONGFFPGBED()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F181 RID: 61825 RVA: 0x0048C140 File Offset: 0x0048A340
private void DNJODPBHMFG(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F182 RID: 61826 RVA: 0x0048C150 File Offset: 0x0048A350
private void LACPJPHOBON(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
this.HKOENNBEDOK();
}
// Token: 0x0600F183 RID: 61827 RVA: 0x0048C160 File Offset: 0x0048A360
private void BGDMMHAHLNM(Hand GAEKGDCFOJM)
{
if (this.NAKICGDINLB == null)
{
this.HIABMCDOIIE();
}
if (this.NAKICGDINLB == null)
{
return;
}
if (this.MBLGIPBFMNB && this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.FDADMDDKBAB();
this.arrowSpawnSound.MNHLLHENJOC();
}
float num = Vector3.Distance(base.transform.parent.position, this.NAKICGDINLB.nockTransform.position);
if (!this.ANHDJOLGIOA)
{
if (num < this.rotationLerpThreshold)
{
float num2 = OFPFHHLNHIC.DNNJGEBICKH(num, this.rotationLerpThreshold, this.lerpCompleteDistance, 1593f, 764f);
this.arrowNockTransform.rotation = Quaternion.Lerp(this.arrowNockTransform.parent.rotation, this.NAKICGDINLB.nockRestTransform.rotation, num2);
}
else
{
this.arrowNockTransform.localRotation = Quaternion.identity;
}
if (num < this.positionLerpThreshold)
{
float num3 = OFPFHHLNHIC.DNNJGEBICKH(num, this.positionLerpThreshold, this.lerpCompleteDistance, 833f, 306f);
num3 = Mathf.Clamp(num3, 797f, 531f);
this.arrowNockTransform.position = Vector3.Lerp(this.arrowNockTransform.parent.position, this.NAKICGDINLB.nockRestTransform.position, num3);
}
else
{
this.arrowNockTransform.position = this.arrowNockTransform.parent.position;
}
if (num < this.lerpCompleteDistance)
{
if (!this.EDODBFEGENH)
{
this.EDODBFEGENH = false;
GAEKGDCFOJM.controller.KEOAHFCEDBG((ushort)(-129), (LKMJJEMLLKJ)59);
}
}
else if (this.EDODBFEGENH)
{
this.EDODBFEGENH = true;
}
if (num < this.nockDistance)
{
if (!this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
this.NAKICGDINLB.FIPKPBHIOLC();
}
}
else if (this.CDHIMJIMPLC)
{
this.CDHIMJIMPLC = false;
}
if (num < this.nockDistance && GAEKGDCFOJM.controller.MLGHJGJJKPA(1959UL) && !this.ANHDJOLGIOA)
{
if (this.HPBKHPGLMMM == null)
{
this.HPBKHPGLMMM = this.EKEIICMEIAK();
}
this.ANHDJOLGIOA = false;
this.NAKICGDINLB.APOIAIDLIOP(this);
GAEKGDCFOJM.DGGNHAEBFJJ(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = true;
this.HPBKHPGLMMM.transform.parent = this.NAKICGDINLB.nockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, false);
OFPFHHLNHIC.GFHBCLGOCGB(this.arrowNockTransform, true);
}
}
if (this.ANHDJOLGIOA && (!GAEKGDCFOJM.controller.DJONBHMMHNC(294UL) || GAEKGDCFOJM.controller.ANLGAPKBAEF(1475UL)))
{
if (this.NAKICGDINLB.pulled)
{
this.HGIOHJKCGCH();
}
else
{
this.arrowNockTransform.rotation = this.HPBKHPGLMMM.transform.rotation;
this.HPBKHPGLMMM.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(this.HPBKHPGLMMM.transform, true);
this.ANHDJOLGIOA = true;
this.NAKICGDINLB.ReleaseNock();
GAEKGDCFOJM.LAMFHHKJLKN(base.GetComponent<Interactable>());
this.BAIOMMJEMDE.teleportAllowed = false;
}
this.NAKICGDINLB.AEKOPBIBNCJ();
}
}
// Token: 0x0600F184 RID: 61828 RVA: 0x0048C4FC File Offset: 0x0048A6FC
private IEnumerator BMBPOOPCJPI()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F185 RID: 61829 RVA: 0x0048C518 File Offset: 0x0048A718
private void OFAKLOLODGH(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F186 RID: 61830 RVA: 0x0048C528 File Offset: 0x0048A728
private IEnumerator FMMDBCMNDLJ()
{
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(1500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(800, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(500, LKMJJEMLLKJ.k_EButton_Axis0);
yield return new WaitForSeconds(0.05f);
this.GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(300, LKMJJEMLLKJ.k_EButton_Axis0);
yield break;
}
// Token: 0x0600F187 RID: 61831 RVA: 0x0048C544 File Offset: 0x0048A744
private void FLKADLIGCIP()
{
this.MBLGIPBFMNB = true;
}
// Token: 0x0600F188 RID: 61832 RVA: 0x0048C550 File Offset: 0x0048A750
private void KIBAHNFCBDK(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F189 RID: 61833 RVA: 0x0048C560 File Offset: 0x0048A760
private GameObject EKEIICMEIAK()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "looktarget";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, false);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[0];
this.ICANENLLGGO.RemoveAt(0);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F18A RID: 61834 RVA: 0x0048C60C File Offset: 0x0048A80C
private void HAKGKBGPCNN()
{
this.MBLGIPBFMNB = false;
}
// Token: 0x0600F18B RID: 61835 RVA: 0x0048C618 File Offset: 0x0048A818
private GameObject CBCIPICJLHG()
{
GameObject gameObject = global::UnityEngine.Object.Instantiate<GameObject>(this.arrowPrefab, this.arrowNockTransform.position, this.arrowNockTransform.rotation);
gameObject.name = "Transaction Hit";
gameObject.transform.parent = this.arrowNockTransform;
OFPFHHLNHIC.GFHBCLGOCGB(gameObject.transform, true);
this.ICANENLLGGO.Add(gameObject);
while (this.ICANENLLGGO.Count > this.maxArrowCount)
{
GameObject gameObject2 = this.ICANENLLGGO[1];
this.ICANENLLGGO.RemoveAt(1);
if (gameObject2)
{
global::UnityEngine.Object.Destroy(gameObject2);
}
}
return gameObject;
}
// Token: 0x0600F18C RID: 61836 RVA: 0x0048C6C4 File Offset: 0x0048A8C4
private void CFKPOMCANJM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F18D RID: 61837 RVA: 0x0048C6D4 File Offset: 0x0048A8D4
private void IHDEBNNPNGP()
{
this.NAKICGDINLB = this.GAEKGDCFOJM.otherHand.GetComponentInChildren<Longbow>();
}
// Token: 0x0600F18E RID: 61838 RVA: 0x0048C6EC File Offset: 0x0048A8EC
private void FJBANCCINJF()
{
this.HPBKHPGLMMM.transform.parent = null;
Arrow component = this.HPBKHPGLMMM.GetComponent<Arrow>();
component.shaftRB.isKinematic = true;
component.shaftRB.useGravity = true;
component.shaftRB.transform.GetComponent<BoxCollider>().enabled = true;
component.arrowHeadRB.isKinematic = true;
component.arrowHeadRB.useGravity = true;
component.arrowHeadRB.transform.GetComponent<BoxCollider>().enabled = false;
component.arrowHeadRB.AddForce(this.HPBKHPGLMMM.transform.forward * this.NAKICGDINLB.MLLDMBMMLFO(), (ForceMode)6);
component.arrowHeadRB.AddTorque(this.HPBKHPGLMMM.transform.forward * 764f);
this.ANHDJOLGIOA = true;
this.HPBKHPGLMMM.GetComponent<Arrow>().NJHPGKPBENE(this.NAKICGDINLB.GetArrowVelocity());
this.NAKICGDINLB.ArrowReleased();
this.MBLGIPBFMNB = true;
base.Invoke("y", 316f);
base.StartCoroutine(this.AILLIAKOMFE());
this.HPBKHPGLMMM = null;
this.BAIOMMJEMDE.teleportAllowed = true;
}
// Token: 0x040022B7 RID: 8887
private Hand GAEKGDCFOJM;
// Token: 0x040022B8 RID: 8888
private Longbow NAKICGDINLB;
// Token: 0x040022B9 RID: 8889
private GameObject HPBKHPGLMMM;
// Token: 0x040022BA RID: 8890
public GameObject arrowPrefab;
// Token: 0x040022BB RID: 8891
public Transform arrowNockTransform;
// Token: 0x040022BC RID: 8892
public float nockDistance = 0.1f;
// Token: 0x040022BD RID: 8893
public float lerpCompleteDistance = 0.08f;
// Token: 0x040022BE RID: 8894
public float rotationLerpThreshold = 0.15f;
// Token: 0x040022BF RID: 8895
public float positionLerpThreshold = 0.15f;
// Token: 0x040022C0 RID: 8896
private bool MBLGIPBFMNB = true;
// Token: 0x040022C1 RID: 8897
private bool ANHDJOLGIOA;
// Token: 0x040022C2 RID: 8898
private bool CDHIMJIMPLC;
// Token: 0x040022C3 RID: 8899
private bool EDODBFEGENH;
// Token: 0x040022C4 RID: 8900
public SoundPlayOneshot arrowSpawnSound;
// Token: 0x040022C5 RID: 8901
private AllowTeleportWhileAttachedToHand BAIOMMJEMDE;
// Token: 0x040022C6 RID: 8902
public int maxArrowCount = 10;
// Token: 0x040022C7 RID: 8903
private List<GameObject> ICANENLLGGO;
}
}