Files
Dec2017-Script-Dump/Assembly-CSharp/Valve/VR/InteractionSystem/Longbow.cs
T
2026-06-04 11:42:34 +02:00

1387 lines
47 KiB
C#

using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Events;
namespace Valve.VR.InteractionSystem
{
// Token: 0x020005F3 RID: 1523
[RequireComponent(typeof(Interactable))]
public class Longbow : MonoBehaviour
{
// Token: 0x0600F304 RID: 62212 RVA: 0x00497E74 File Offset: 0x00496074
private void MGJMDCDIHHG(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F305 RID: 62213 RVA: 0x00497E84 File Offset: 0x00496084
public void ReleaseNock()
{
this.nocked = false;
this.GAEKGDCFOJM.HoverUnlock(base.GetComponent<Interactable>());
base.StartCoroutine(this.HLLOLOAEBKE());
}
// Token: 0x0600F306 RID: 62214 RVA: 0x00497EAC File Offset: 0x004960AC
public void NJHPGKPBENE()
{
this.nocked = true;
this.GAEKGDCFOJM.LAMFHHKJLKN(base.GetComponent<Interactable>());
this.GAEKGDCFOJM.otherHand.PCBHNDBJJDC(this.CLFJFEIMCAD.GetComponent<Interactable>());
if (this.releaseSound != null)
{
this.releaseSound.ILFGIOEOANG();
}
base.StartCoroutine(this.NAMEAKCDKJA());
}
// Token: 0x0600F307 RID: 62215 RVA: 0x00497F18 File Offset: 0x00496118
private void NAHBHBFDAAM()
{
if (this.GAEKGDCFOJM != null && this.GAEKGDCFOJM.otherHand.LFBOFHLOBMK != null && this.GAEKGDCFOJM.otherHand.LFBOFHLOBMK.GetComponent<ItemPackageReference>() != null && this.GAEKGDCFOJM.otherHand.IKAEKAJAJGA().GetComponent<ItemPackageReference>().itemPackage == this.arrowHandItemPackage)
{
this.GAEKGDCFOJM.otherHand.DetachObject(this.GAEKGDCFOJM.otherHand.NEALHJKGCIL(), false);
}
}
// Token: 0x0600F308 RID: 62216 RVA: 0x00497FBC File Offset: 0x004961BC
private void KANPMLBEPDC(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F309 RID: 62217 RVA: 0x00497FCC File Offset: 0x004961CC
private IEnumerator NAMEAKCDKJA()
{
float time = Time.time;
float bplcbnjgdhc = this.BPLCBNJGDHC;
while (Time.time < time + 0.02f)
{
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, time, time + 0.02f, bplcbnjgdhc, 0f);
this.bowDrawLinearMapping.value = num;
yield return null;
}
this.bowDrawLinearMapping.value = 0f;
yield break;
}
// Token: 0x0600F30A RID: 62218 RVA: 0x00497FE8 File Offset: 0x004961E8
public void MNFMEBLLNLK()
{
this.nocked = true;
this.GAEKGDCFOJM.LAMFHHKJLKN(base.GetComponent<Interactable>());
this.GAEKGDCFOJM.otherHand.PCBHNDBJJDC(this.CLFJFEIMCAD.GetComponent<Interactable>());
if (this.releaseSound != null)
{
this.releaseSound.MNHLLHENJOC();
}
base.StartCoroutine(this.ICFGMHFJJJM());
}
// Token: 0x0600F30B RID: 62219 RVA: 0x00498054 File Offset: 0x00496254
private void GBHKPBDCHIE()
{
this.AILHMBCDEGN.KELIMOCDMOD = true;
}
// Token: 0x0600F30C RID: 62220 RVA: 0x00498064 File Offset: 0x00496264
private void AGMFPEGJBOF(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
}
// Token: 0x0600F30D RID: 62221 RVA: 0x00498070 File Offset: 0x00496270
private void MDOBPFPBHFK(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.IDCOHGKLNMH();
if (this.nocked)
{
this.KPDJLPLKDLP = true;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 1257f, 21f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 1455f, 1659f, 1500f, 1798f);
Vector3 normalized = (Player.FCDPFLMFDBC.OPFFMIDMIIH().position + Vector3.down * 851f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 677f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(1582f, 813f, Mathf.Clamp(-num3, 1781f, 984f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1290f, 1700f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 344f, 247f, 888f, 283f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 304f)
{
this.pulled = true;
}
else
{
this.pulled = false;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 60f, 248f, 1545f, 580f);
GAEKGDCFOJM.controller.PBMDDJKFFAI(num4, (LKMJJEMLLKJ)(-39));
GAEKGDCFOJM.otherHand.controller.IGIIDDCCPNC(num4, (LKMJJEMLLKJ)(-3));
this.drawSound.CAPFFMNHACN(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 857f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.OJAPHKLGMBC(93, (LKMJJEMLLKJ)104);
GAEKGDCFOJM.otherHand.controller.OJAPHKLGMBC((ushort)(-155), (LKMJJEMLLKJ)79);
this.drawSound.EGKJAIINOEL(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(706f, 1197f, 30f);
this.bowDrawLinearMapping.value = 1196f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 1344f, 1193f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 1242f)
{
this.LBBJPLMEMKH = false;
}
}
}
// Token: 0x0600F30E RID: 62222 RVA: 0x004984AC File Offset: 0x004966AC
private void OnDisable()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F30F RID: 62223 RVA: 0x004984BC File Offset: 0x004966BC
public void APOIAIDLIOP(ArrowHand MGOFDJDMABD)
{
this.CLFJFEIMCAD = MGOFDJDMABD;
this.GAEKGDCFOJM.DDEOHOFOMON(base.GetComponent<Interactable>());
this.nocked = false;
this.KHMNAFKBAGM = Time.time;
this.CKCPHBCDOCD = this.pivotTransform.rotation;
this.arrowSlideSound.PFLFIHLKCLK();
this.KIJHCCJJPPF();
}
// Token: 0x0600F310 RID: 62224 RVA: 0x00498518 File Offset: 0x00496718
private IEnumerator ICFGMHFJJJM()
{
time = Time.time;
bplcbnjgdhc = this.BPLCBNJGDHC;
while (Time.time < time + 0.02f)
{
num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, time, time + 0.02f, bplcbnjgdhc, 0f);
this.bowDrawLinearMapping.value = num;
yield return null;
}
this.bowDrawLinearMapping.value = 0f;
yield break;
}
// Token: 0x0600F311 RID: 62225 RVA: 0x00498534 File Offset: 0x00496734
public float PHNEHBODNAN()
{
return this.NGNFLPJCNLI;
}
// Token: 0x0600F312 RID: 62226 RVA: 0x0049853C File Offset: 0x0049673C
private void FLLJCFEHLAL()
{
if (this.KPDJLPLKDLP)
{
base.transform.position = this.BJFPHJJHBOF;
base.transform.rotation = this.JIOIIOKIDDC;
this.KPDJLPLKDLP = false;
}
}
// Token: 0x0600F314 RID: 62228 RVA: 0x004985F4 File Offset: 0x004967F4
private void FFNEPFICPMH(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
}
// Token: 0x0600F315 RID: 62229 RVA: 0x00498600 File Offset: 0x00496800
private void MFJGKCABKPE()
{
if (this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.pivotTransform.localScale = new Vector3(1f, 1f, 1f);
}
else
{
this.pivotTransform.localScale = new Vector3(1f, -1f, 1f);
}
}
// Token: 0x0600F316 RID: 62230 RVA: 0x0049865C File Offset: 0x0049685C
private void CKFBCNFDELM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F317 RID: 62231 RVA: 0x0049866C File Offset: 0x0049686C
private void IABPHNCCPKK(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
this.AGMFPEGJBOF(GAEKGDCFOJM);
}
// Token: 0x0600F318 RID: 62232 RVA: 0x00498684 File Offset: 0x00496884
private void FBKCDGAKGCM()
{
if (this.KPDJLPLKDLP)
{
this.BJFPHJJHBOF = base.transform.position;
this.JIOIIOKIDDC = base.transform.rotation;
}
}
// Token: 0x0600F319 RID: 62233 RVA: 0x004986B4 File Offset: 0x004968B4
private void MBDGKPFKBPI(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
}
// Token: 0x0600F31A RID: 62234 RVA: 0x004986C0 File Offset: 0x004968C0
private void OnDestroy()
{
this.DNLMIDFDPED();
}
// Token: 0x0600F31B RID: 62235 RVA: 0x004986C8 File Offset: 0x004968C8
private void LPMBBIEMFOC()
{
if (this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.pivotTransform.localScale = new Vector3(812f, 1749f, 67f);
}
else
{
this.pivotTransform.localScale = new Vector3(747f, 1178f, 915f);
}
}
// Token: 0x0600F31C RID: 62236 RVA: 0x00498724 File Offset: 0x00496924
private void LCCBLGLOOFO()
{
if (this.KPDJLPLKDLP)
{
base.transform.position = this.BJFPHJJHBOF;
base.transform.rotation = this.JIOIIOKIDDC;
this.KPDJLPLKDLP = true;
}
}
// Token: 0x0600F31D RID: 62237 RVA: 0x0049875C File Offset: 0x0049695C
private void FBOFDJONMLO(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0600F31E RID: 62238 RVA: 0x0049876C File Offset: 0x0049696C
private void HBIJLCBNPAG()
{
if (this.KPDJLPLKDLP)
{
base.transform.position = this.BJFPHJJHBOF;
base.transform.rotation = this.JIOIIOKIDDC;
this.KPDJLPLKDLP = true;
}
}
// Token: 0x0600F31F RID: 62239 RVA: 0x004987A4 File Offset: 0x004969A4
public void FIPKPBHIOLC()
{
this.DEKKFHMONKG();
if (this.nockSound != null)
{
this.nockSound.PFLFIHLKCLK();
}
}
// Token: 0x0600F320 RID: 62240 RVA: 0x004987C8 File Offset: 0x004969C8
private void LateUpdate()
{
if (this.KPDJLPLKDLP)
{
this.BJFPHJJHBOF = base.transform.position;
this.JIOIIOKIDDC = base.transform.rotation;
}
}
// Token: 0x0600F321 RID: 62241 RVA: 0x004987F8 File Offset: 0x004969F8
private void FNHAEHJGENE()
{
if (this.KPDJLPLKDLP)
{
this.BJFPHJJHBOF = base.transform.position;
this.JIOIIOKIDDC = base.transform.rotation;
}
}
// Token: 0x0600F322 RID: 62242 RVA: 0x00498828 File Offset: 0x00496A28
private void GJPPNDBLGIL(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.IDCOHGKLNMH();
if (this.nocked)
{
this.KPDJLPLKDLP = true;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 1978f, 1816f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 265f, 1286f, 439f, 1335f);
Vector3 normalized = (Player.CHKMMKLNBEK().DOKDBNBIOPC().position + Vector3.down * 813f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 1421f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(1049f, 886f, Mathf.Clamp(-num3, 1572f, 1666f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1911f, 1887f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 582f, 617f, 1832f, 1739f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 898f)
{
this.pulled = true;
}
else
{
this.pulled = true;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 914f, 1718f, 1410f, 1603f);
GAEKGDCFOJM.controller.KEOAHFCEDBG(num4, (LKMJJEMLLKJ)(-27));
GAEKGDCFOJM.otherHand.controller.AGPNCODPEMC(num4, (LKMJJEMLLKJ)(-17));
this.drawSound.IHEEBJABOGH(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 458f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.AGPNCODPEMC((ushort)(-141), (LKMJJEMLLKJ)71);
GAEKGDCFOJM.otherHand.controller.JJJGEOKNEFP(121, LKMJJEMLLKJ.k_EButton_A);
this.drawSound.IHEEBJABOGH(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(1788f, 1675f, 525f);
this.bowDrawLinearMapping.value = 1455f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 1144f, 577f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 502f)
{
this.LBBJPLMEMKH = false;
}
}
}
// Token: 0x0600F323 RID: 62243 RVA: 0x00498C64 File Offset: 0x00496E64
public void AEKOPBIBNCJ()
{
this.DIGFIHIFIAK = Time.time;
this.LBBJPLMEMKH = false;
this.IJPCMDEAFGD = this.pivotTransform.localRotation;
OFPFHHLNHIC.GFHBCLGOCGB(this.nockTransform, true);
}
// Token: 0x0600F324 RID: 62244 RVA: 0x00498C98 File Offset: 0x00496E98
private void KOOJKANAHBF(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.KOCGHDOPKGH();
if (this.nocked)
{
this.KPDJLPLKDLP = false;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 959f, 1832f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 1188f, 1247f, 1978f, 694f);
Vector3 normalized = (Player.EFNGEGGJBJL().PDEKLEBNELE().position + Vector3.down * 65f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 1959f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(59f, 850f, Mathf.Clamp(-num3, 1200f, 1634f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1315f, 258f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 1629f, 303f, 453f, 1657f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 1435f)
{
this.pulled = false;
}
else
{
this.pulled = false;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 798f, 290f, 800f, 741f);
GAEKGDCFOJM.controller.PBMDDJKFFAI(num4, (LKMJJEMLLKJ)(-63));
GAEKGDCFOJM.otherHand.controller.AGPNCODPEMC(num4, LKMJJEMLLKJ.k_EButton_A);
this.drawSound.MGJDJJKPMMN(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 1641f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.NHFIGMODKIG((ushort)(-139), (LKMJJEMLLKJ)78);
GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(62, (LKMJJEMLLKJ)(-106));
this.drawSound.KJKAEPMHCHH(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(1f, 1397f, 344f);
this.bowDrawLinearMapping.value = 946f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 1385f, 720f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 1227f)
{
this.LBBJPLMEMKH = true;
}
}
}
// Token: 0x0600F325 RID: 62245 RVA: 0x004990D4 File Offset: 0x004972D4
public void HCKEPEHCBDM()
{
this.nocked = false;
this.GAEKGDCFOJM.PHJNALOLENH(base.GetComponent<Interactable>());
this.GAEKGDCFOJM.otherHand.HoverUnlock(this.CLFJFEIMCAD.GetComponent<Interactable>());
if (this.releaseSound != null)
{
this.releaseSound.FMJEENPEMPM();
}
base.StartCoroutine(this.HLLOLOAEBKE());
}
// Token: 0x0600F326 RID: 62246 RVA: 0x00499140 File Offset: 0x00497340
private void JNPBMCLOPAB()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F327 RID: 62247 RVA: 0x00499150 File Offset: 0x00497350
private void PDFOKEDPGOB()
{
this.AILHMBCDEGN.KELIMOCDMOD = true;
}
// Token: 0x0600F328 RID: 62248 RVA: 0x00499160 File Offset: 0x00497360
private void ILLNBMHNHNI()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F329 RID: 62249 RVA: 0x00499170 File Offset: 0x00497370
public void BEHOPGBJAMB()
{
this.LPMBBIEMFOC();
if (this.nockSound != null)
{
this.nockSound.JMGDMALKCLK();
}
}
// Token: 0x0600F32A RID: 62250 RVA: 0x00499194 File Offset: 0x00497394
private void NONENPAFBFF(Hand GAEKGDCFOJM)
{
global::UnityEngine.Object.Destroy(base.gameObject);
}
// Token: 0x0600F32B RID: 62251 RVA: 0x004991A4 File Offset: 0x004973A4
private void KKKDDNBDGKD()
{
if (this.KPDJLPLKDLP)
{
this.BJFPHJJHBOF = base.transform.position;
this.JIOIIOKIDDC = base.transform.rotation;
}
}
// Token: 0x0600F32C RID: 62252 RVA: 0x004991D4 File Offset: 0x004973D4
private void AFDCLKBCLHL(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.IDCOHGKLNMH();
if (this.nocked)
{
this.KPDJLPLKDLP = false;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 414f, 620f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 1955f, 1383f, 1551f, 1742f);
Vector3 normalized = (Player.FCDPFLMFDBC.JPFNDMHPCCE.position + Vector3.down * 828f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 1879f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(1541f, 1976f, Mathf.Clamp(-num3, 1863f, 449f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1537f, 710f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 956f, 1540f, 68f, 460f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 654f)
{
this.pulled = false;
}
else
{
this.pulled = true;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1561f, 392f, 1278f, 506f);
GAEKGDCFOJM.controller.FCKFLGGGDMO(num4, (LKMJJEMLLKJ)111);
GAEKGDCFOJM.otherHand.controller.KEOAHFCEDBG(num4, (LKMJJEMLLKJ)(-117));
this.drawSound.INFFEHKJBEL(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 934f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-105), (LKMJJEMLLKJ)84);
GAEKGDCFOJM.otherHand.controller.FCKFLGGGDMO(191, (LKMJJEMLLKJ)42);
this.drawSound.IHEEBJABOGH(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(1796f, 748f, 21f);
this.bowDrawLinearMapping.value = 738f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 1993f, 761f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 1132f)
{
this.LBBJPLMEMKH = false;
}
}
}
// Token: 0x0600F32D RID: 62253 RVA: 0x00499610 File Offset: 0x00497810
public void PKMIANNNNDH()
{
this.MFJGKCABKPE();
if (this.nockSound != null)
{
this.nockSound.JMGDMALKCLK();
}
}
// Token: 0x0600F32E RID: 62254 RVA: 0x00499634 File Offset: 0x00497834
private void ABBDFEGOFPH()
{
this.AILHMBCDEGN = DAGNICICCAN.EIOKPGLEDAH(new UnityAction(this.HBIJLCBNPAG));
}
// Token: 0x0600F32F RID: 62255 RVA: 0x00499650 File Offset: 0x00497850
public void MKFBBOHIBMG()
{
this.DIGFIHIFIAK = Time.time;
this.LBBJPLMEMKH = true;
this.IJPCMDEAFGD = this.pivotTransform.localRotation;
OFPFHHLNHIC.GFHBCLGOCGB(this.nockTransform, false);
}
// Token: 0x0600F330 RID: 62256 RVA: 0x00499684 File Offset: 0x00497884
private void NGBBDDEFAMD(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
this.FFNEPFICPMH(GAEKGDCFOJM);
}
// Token: 0x0600F331 RID: 62257 RVA: 0x0049969C File Offset: 0x0049789C
private void FOJMCLIHCHJ()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F332 RID: 62258 RVA: 0x004996AC File Offset: 0x004978AC
private void AFLAKNHDCIC()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F333 RID: 62259 RVA: 0x004996BC File Offset: 0x004978BC
public float GetArrowVelocity()
{
return this.NGNFLPJCNLI;
}
// Token: 0x0600F334 RID: 62260 RVA: 0x004996C4 File Offset: 0x004978C4
private void JNJAMCPNHKL()
{
if (this.KPDJLPLKDLP)
{
base.transform.position = this.BJFPHJJHBOF;
base.transform.rotation = this.JIOIIOKIDDC;
this.KPDJLPLKDLP = false;
}
}
// Token: 0x0600F335 RID: 62261 RVA: 0x004996FC File Offset: 0x004978FC
private void GPLDGNGCKKH(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.IDCOHGKLNMH();
if (this.nocked)
{
this.KPDJLPLKDLP = true;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 1533f, 508f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 1918f, 1083f, 44f, 916f);
Vector3 normalized = (Player.CHKMMKLNBEK().OPFFMIDMIIH().position + Vector3.down * 28f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 589f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(760f, 984f, Mathf.Clamp(-num3, 191f, 235f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 918f, 843f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 1512f, 1950f, 1752f, 1752f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 1614f)
{
this.pulled = false;
}
else
{
this.pulled = true;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 327f, 1061f, 1853f, 57f);
GAEKGDCFOJM.controller.NHFIGMODKIG(num4, LKMJJEMLLKJ.k_EButton_Axis4);
GAEKGDCFOJM.otherHand.controller.NHFIGMODKIG(num4, (LKMJJEMLLKJ)(-1));
this.drawSound.NBDFGFBCAIL(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 634f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.BLAOIIFDDED(73, (LKMJJEMLLKJ)(-41));
GAEKGDCFOJM.otherHand.controller.FCKFLGGGDMO((ushort)(-47), (LKMJJEMLLKJ)(-93));
this.drawSound.NBDFGFBCAIL(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(1697f, 1314f, 1369f);
this.bowDrawLinearMapping.value = 1370f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 142f, 945f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 163f)
{
this.LBBJPLMEMKH = false;
}
}
}
// Token: 0x0600F336 RID: 62262 RVA: 0x00499B38 File Offset: 0x00497D38
private void IDCOHGKLNMH()
{
if (this.GAEKGDCFOJM.GuessCurrentHandType() == Hand.HMMEBFHABKA.Left)
{
if (this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.PEAGHCDGAFP = false;
}
if (!this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Right)
{
this.PEAGHCDGAFP = true;
this.LDKOMHCBDKJ = Time.time;
}
if (this.PEAGHCDGAFP && Time.time > this.LDKOMHCBDKJ + this.MBGINMFDHHH)
{
this.currentHandGuess = Longbow.ILBMBAMNIAE.Left;
this.PEAGHCDGAFP = false;
}
}
else
{
if (this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Right)
{
this.PEAGHCDGAFP = false;
}
if (!this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.PEAGHCDGAFP = true;
this.LDKOMHCBDKJ = Time.time;
}
if (this.PEAGHCDGAFP && Time.time > this.LDKOMHCBDKJ + this.MBGINMFDHHH)
{
this.currentHandGuess = Longbow.ILBMBAMNIAE.Right;
this.PEAGHCDGAFP = false;
}
}
}
// Token: 0x0600F337 RID: 62263 RVA: 0x00499C48 File Offset: 0x00497E48
private void AMAPHOELAOA(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.IDCOHGKLNMH();
if (this.nocked)
{
this.KPDJLPLKDLP = true;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 1176f, 782f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 1831f, 1790f, 902f, 1031f);
Vector3 normalized = (Player.FCDPFLMFDBC.PDEKLEBNELE().position + Vector3.down * 1309f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 1345f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(732f, 895f, Mathf.Clamp(-num3, 1491f, 630f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1445f, 1546f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 1463f, 398f, 1397f, 1909f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 1204f)
{
this.pulled = false;
}
else
{
this.pulled = true;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 1632f, 121f, 1205f, 1623f);
GAEKGDCFOJM.controller.AGPNCODPEMC(num4, (LKMJJEMLLKJ)122);
GAEKGDCFOJM.otherHand.controller.PBMDDJKFFAI(num4, (LKMJJEMLLKJ)(-41));
this.drawSound.PBAEOHNDLIO(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 1268f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.OJAPHKLGMBC((ushort)(-53), LKMJJEMLLKJ.k_EButton_Axis3);
GAEKGDCFOJM.otherHand.controller.JJJGEOKNEFP((ushort)(-141), (LKMJJEMLLKJ)123);
this.drawSound.PlayBowTensionClicks(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(1444f, 1105f, 1905f);
this.bowDrawLinearMapping.value = 1714f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 1500f, 1838f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 1256f)
{
this.LBBJPLMEMKH = false;
}
}
}
// Token: 0x0600F338 RID: 62264 RVA: 0x0049A084 File Offset: 0x00498284
private void CELDKDEGHOJ()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F339 RID: 62265 RVA: 0x0049A094 File Offset: 0x00498294
private void DEKKFHMONKG()
{
if (this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.pivotTransform.localScale = new Vector3(725f, 1884f, 1188f);
}
else
{
this.pivotTransform.localScale = new Vector3(1531f, 1471f, 88f);
}
}
// Token: 0x0600F33A RID: 62266 RVA: 0x0049A0F0 File Offset: 0x004982F0
public void DIJPPOOPNAP()
{
this.nocked = true;
this.GAEKGDCFOJM.LAMFHHKJLKN(base.GetComponent<Interactable>());
base.StartCoroutine(this.ICFGMHFJJJM());
}
// Token: 0x0600F33B RID: 62267 RVA: 0x0049A118 File Offset: 0x00498318
public void KACNJODNGEI(ArrowHand MGOFDJDMABD)
{
this.CLFJFEIMCAD = MGOFDJDMABD;
this.GAEKGDCFOJM.DDEOHOFOMON(base.GetComponent<Interactable>());
this.nocked = true;
this.KHMNAFKBAGM = Time.time;
this.CKCPHBCDOCD = this.pivotTransform.rotation;
this.arrowSlideSound.LJMAJGCPJGG();
this.DEKKFHMONKG();
}
// Token: 0x0600F33C RID: 62268 RVA: 0x0049A174 File Offset: 0x00498374
public void CEMJIIBFMNI()
{
this.nocked = false;
this.GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
this.GAEKGDCFOJM.otherHand.PHJNALOLENH(this.CLFJFEIMCAD.GetComponent<Interactable>());
if (this.releaseSound != null)
{
this.releaseSound.CLPNFBHDKEI();
}
base.StartCoroutine(this.HLLOLOAEBKE());
}
// Token: 0x0600F33D RID: 62269 RVA: 0x0049A1E0 File Offset: 0x004983E0
private IEnumerator EPMCOLLKNAI()
{
time = Time.time;
bplcbnjgdhc = this.BPLCBNJGDHC;
while (Time.time < time + 0.02f)
{
num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, time, time + 0.02f, bplcbnjgdhc, 0f);
this.bowDrawLinearMapping.value = num;
yield return null;
}
this.bowDrawLinearMapping.value = 0f;
yield break;
}
// Token: 0x0600F33E RID: 62270 RVA: 0x0049A1FC File Offset: 0x004983FC
private void OnEnable()
{
this.AILHMBCDEGN.KELIMOCDMOD = true;
}
// Token: 0x0600F33F RID: 62271 RVA: 0x0049A20C File Offset: 0x0049840C
private void BFNIBNHJACM(Hand GAEKGDCFOJM)
{
base.transform.localPosition = Vector3.zero;
base.transform.localRotation = Quaternion.identity;
this.IDCOHGKLNMH();
if (this.nocked)
{
this.KPDJLPLKDLP = true;
Vector3 vector = this.CLFJFEIMCAD.arrowNockTransform.parent.position - this.nockRestTransform.position;
float num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, this.KHMNAFKBAGM, this.KHMNAFKBAGM + this.ALIBEDCHBEK, 0f, 1f);
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(vector.magnitude, 0.05f, 0.5f, 0f, 1f);
Vector3 normalized = (Player.FCDPFLMFDBC.JPFNDMHPCCE.position + Vector3.down * 0.05f - this.CLFJFEIMCAD.arrowNockTransform.parent.position).normalized;
Vector3 vector2 = this.CLFJFEIMCAD.arrowNockTransform.parent.position + normalized * this.drawOffset * num2;
Vector3 normalized2 = (vector2 - this.pivotTransform.position).normalized;
Vector3 normalized3 = (this.handleTransform.position - this.pivotTransform.position).normalized;
this.FLJMPFHGIHJ = -Vector3.Cross(normalized3, normalized2);
this.pivotTransform.rotation = Quaternion.Lerp(this.CKCPHBCDOCD, Quaternion.LookRotation(normalized2, this.FLJMPFHGIHJ), num);
if (Vector3.Dot(vector, -this.nockTransform.forward) > 0f)
{
float num3 = vector.magnitude * num;
this.nockTransform.localPosition = new Vector3(0f, 0f, Mathf.Clamp(-num3, -0.5f, 0f));
this.FNPEELDMJLF = -this.nockTransform.localPosition.z;
this.NGNFLPJCNLI = OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 0.05f, 0.5f, this.arrowMinVelocity, this.arrowMaxVelocity);
this.BPLCBNJGDHC = OFPFHHLNHIC.DKPCDKNIGLJ(this.FNPEELDMJLF, 0f, 0.5f, 0f, 1f);
this.bowDrawLinearMapping.value = this.BPLCBNJGDHC;
if (this.FNPEELDMJLF > 0.05f)
{
this.pulled = true;
}
else
{
this.pulled = false;
}
if (this.FNPEELDMJLF > this.ABGBDOJANDE + this.KANJEAPMNAH || this.FNPEELDMJLF < this.ABGBDOJANDE - this.KANJEAPMNAH)
{
ushort num4 = (ushort)OFPFHHLNHIC.DNNJGEBICKH(this.FNPEELDMJLF, 0f, 0.5f, 100f, 500f);
GAEKGDCFOJM.controller.BLAOIIFDDED(num4, LKMJJEMLLKJ.k_EButton_Axis0);
GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(num4, LKMJJEMLLKJ.k_EButton_Axis0);
this.drawSound.PlayBowTensionClicks(this.BPLCBNJGDHC);
this.ABGBDOJANDE = this.FNPEELDMJLF;
}
if (this.FNPEELDMJLF >= 0.5f && Time.time > this.CMMPFHAAGDJ)
{
GAEKGDCFOJM.controller.BLAOIIFDDED(400, LKMJJEMLLKJ.k_EButton_Axis0);
GAEKGDCFOJM.otherHand.controller.BLAOIIFDDED(400, LKMJJEMLLKJ.k_EButton_Axis0);
this.drawSound.PlayBowTensionClicks(this.BPLCBNJGDHC);
this.CMMPFHAAGDJ = Time.time + global::UnityEngine.Random.Range(this.GNKJFLGJNNJ, this.HKAHPPAOLEG);
}
}
else
{
this.nockTransform.localPosition = new Vector3(0f, 0f, 0f);
this.bowDrawLinearMapping.value = 0f;
}
}
else if (this.LBBJPLMEMKH)
{
float num5 = OFPFHHLNHIC.DNNJGEBICKH(Time.time, this.DIGFIHIFIAK, this.DIGFIHIFIAK + this.ALIBEDCHBEK, 0f, 1f);
this.pivotTransform.localRotation = Quaternion.Lerp(this.IJPCMDEAFGD, Quaternion.identity, num5);
if (num5 >= 1f)
{
this.LBBJPLMEMKH = false;
}
}
}
// Token: 0x0600F340 RID: 62272 RVA: 0x0049A648 File Offset: 0x00498848
private void OCAOHCKFMNN(Hand AECOAAPLFLH)
{
this.GAEKGDCFOJM = AECOAAPLFLH;
}
// Token: 0x0600F341 RID: 62273 RVA: 0x0049A654 File Offset: 0x00498854
private void KOCGHDOPKGH()
{
if (this.GAEKGDCFOJM.JAEEKBOPHMC() == Hand.HMMEBFHABKA.Left)
{
if (this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.PEAGHCDGAFP = true;
}
if (!this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Right)
{
this.PEAGHCDGAFP = false;
this.LDKOMHCBDKJ = Time.time;
}
if (this.PEAGHCDGAFP && Time.time > this.LDKOMHCBDKJ + this.MBGINMFDHHH)
{
this.currentHandGuess = Longbow.ILBMBAMNIAE.Right;
this.PEAGHCDGAFP = true;
}
}
else
{
if (this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.PEAGHCDGAFP = false;
}
if (!this.PEAGHCDGAFP && this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.PEAGHCDGAFP = false;
this.LDKOMHCBDKJ = Time.time;
}
if (this.PEAGHCDGAFP && Time.time > this.LDKOMHCBDKJ + this.MBGINMFDHHH)
{
this.currentHandGuess = Longbow.ILBMBAMNIAE.Right;
this.PEAGHCDGAFP = true;
}
}
}
// Token: 0x0600F342 RID: 62274 RVA: 0x0049A764 File Offset: 0x00498964
private void DNLMIDFDPED()
{
if (this.GAEKGDCFOJM != null && this.GAEKGDCFOJM.otherHand.LFBOFHLOBMK != null && this.GAEKGDCFOJM.otherHand.LFBOFHLOBMK.GetComponent<ItemPackageReference>() != null && this.GAEKGDCFOJM.otherHand.LFBOFHLOBMK.GetComponent<ItemPackageReference>().itemPackage == this.arrowHandItemPackage)
{
this.GAEKGDCFOJM.otherHand.DetachObject(this.GAEKGDCFOJM.otherHand.LFBOFHLOBMK, true);
}
}
// Token: 0x0600F343 RID: 62275 RVA: 0x0049A808 File Offset: 0x00498A08
private void KIJHCCJJPPF()
{
if (this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.pivotTransform.localScale = new Vector3(570f, 188f, 1769f);
}
else
{
this.pivotTransform.localScale = new Vector3(795f, 1231f, 906f);
}
}
// Token: 0x0600F344 RID: 62276 RVA: 0x0049A864 File Offset: 0x00498A64
private void EOLPLBMIOHA(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
}
// Token: 0x0600F345 RID: 62277 RVA: 0x0049A874 File Offset: 0x00498A74
public void IGKDKBCNPDL(ArrowHand MGOFDJDMABD)
{
this.CLFJFEIMCAD = MGOFDJDMABD;
this.GAEKGDCFOJM.HoverLock(base.GetComponent<Interactable>());
this.nocked = true;
this.KHMNAFKBAGM = Time.time;
this.CKCPHBCDOCD = this.pivotTransform.rotation;
this.arrowSlideSound.CCGNPIBJLGE();
this.LPMBBIEMFOC();
}
// Token: 0x0600F346 RID: 62278 RVA: 0x0049A8D0 File Offset: 0x00498AD0
public void EAAIJHFEBPI()
{
this.DIGFIHIFIAK = Time.time;
this.LBBJPLMEMKH = false;
this.IJPCMDEAFGD = this.pivotTransform.localRotation;
OFPFHHLNHIC.GFHBCLGOCGB(this.nockTransform, false);
}
// Token: 0x0600F347 RID: 62279 RVA: 0x0049A904 File Offset: 0x00498B04
private void Awake()
{
this.AILHMBCDEGN = DAGNICICCAN.EIOKPGLEDAH(new UnityAction(this.JNJAMCPNHKL));
}
// Token: 0x0600F348 RID: 62280 RVA: 0x0049A920 File Offset: 0x00498B20
public void ArrowReleased()
{
this.nocked = false;
this.GAEKGDCFOJM.HoverUnlock(base.GetComponent<Interactable>());
this.GAEKGDCFOJM.otherHand.HoverUnlock(this.CLFJFEIMCAD.GetComponent<Interactable>());
if (this.releaseSound != null)
{
this.releaseSound.Play();
}
base.StartCoroutine(this.HLLOLOAEBKE());
}
// Token: 0x0600F349 RID: 62281 RVA: 0x0049A98C File Offset: 0x00498B8C
private void JEJBLBIABCA()
{
this.AILHMBCDEGN.KELIMOCDMOD = true;
}
// Token: 0x0600F34A RID: 62282 RVA: 0x0049A99C File Offset: 0x00498B9C
private void FJCGHPAEPKL()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F34B RID: 62283 RVA: 0x0049A9AC File Offset: 0x00498BAC
private void DEFOPFMMPEE()
{
if (this.GAEKGDCFOJM != null && this.GAEKGDCFOJM.otherHand.IKAEKAJAJGA() != null && this.GAEKGDCFOJM.otherHand.NEALHJKGCIL().GetComponent<ItemPackageReference>() != null && this.GAEKGDCFOJM.otherHand.IKAEKAJAJGA().GetComponent<ItemPackageReference>().itemPackage == this.arrowHandItemPackage)
{
this.GAEKGDCFOJM.otherHand.DetachObject(this.GAEKGDCFOJM.otherHand.IKAEKAJAJGA(), true);
}
}
// Token: 0x0600F34C RID: 62284 RVA: 0x0049AA50 File Offset: 0x00498C50
public void StartRotationLerp()
{
this.DIGFIHIFIAK = Time.time;
this.LBBJPLMEMKH = true;
this.IJPCMDEAFGD = this.pivotTransform.localRotation;
OFPFHHLNHIC.GFHBCLGOCGB(this.nockTransform, true);
}
// Token: 0x0600F34D RID: 62285 RVA: 0x0049AA84 File Offset: 0x00498C84
public void ArrowInPosition()
{
this.MFJGKCABKPE();
if (this.nockSound != null)
{
this.nockSound.Play();
}
}
// Token: 0x0600F34E RID: 62286 RVA: 0x0049AAA8 File Offset: 0x00498CA8
public void StartNock(ArrowHand MGOFDJDMABD)
{
this.CLFJFEIMCAD = MGOFDJDMABD;
this.GAEKGDCFOJM.HoverLock(base.GetComponent<Interactable>());
this.nocked = true;
this.KHMNAFKBAGM = Time.time;
this.CKCPHBCDOCD = this.pivotTransform.rotation;
this.arrowSlideSound.Play();
this.MFJGKCABKPE();
}
// Token: 0x0600F34F RID: 62287 RVA: 0x0049AB04 File Offset: 0x00498D04
private IEnumerator HLLOLOAEBKE()
{
time = Time.time;
bplcbnjgdhc = this.BPLCBNJGDHC;
while (Time.time < time + 0.02f)
{
num = OFPFHHLNHIC.DKPCDKNIGLJ(Time.time, time, time + 0.02f, bplcbnjgdhc, 0f);
this.bowDrawLinearMapping.value = num;
yield return null;
}
this.bowDrawLinearMapping.value = 0f;
yield break;
}
// Token: 0x0600F350 RID: 62288 RVA: 0x0049AB20 File Offset: 0x00498D20
public void DKDECMPCNAM()
{
this.nocked = false;
this.GAEKGDCFOJM.HoverUnlock(base.GetComponent<Interactable>());
base.StartCoroutine(this.EPMCOLLKNAI());
}
// Token: 0x0600F351 RID: 62289 RVA: 0x0049AB48 File Offset: 0x00498D48
private void NDHBFLHIAHM()
{
this.DNLMIDFDPED();
}
// Token: 0x0600F352 RID: 62290 RVA: 0x0049AB50 File Offset: 0x00498D50
public void HBFNMPIFGIL()
{
this.DIGFIHIFIAK = Time.time;
this.LBBJPLMEMKH = true;
this.IJPCMDEAFGD = this.pivotTransform.localRotation;
OFPFHHLNHIC.GFHBCLGOCGB(this.nockTransform, false);
}
// Token: 0x0600F353 RID: 62291 RVA: 0x0049AB84 File Offset: 0x00498D84
private void OBIKAFEHEPD()
{
this.AILHMBCDEGN.KELIMOCDMOD = false;
}
// Token: 0x0600F354 RID: 62292 RVA: 0x0049AB94 File Offset: 0x00498D94
public void JKEHKLBHPII()
{
this.DIGFIHIFIAK = Time.time;
this.LBBJPLMEMKH = false;
this.IJPCMDEAFGD = this.pivotTransform.localRotation;
OFPFHHLNHIC.GFHBCLGOCGB(this.nockTransform, true);
}
// Token: 0x0600F355 RID: 62293 RVA: 0x0049ABC8 File Offset: 0x00498DC8
private void DICLFMOPKFM(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(true);
this.AGMFPEGJBOF(GAEKGDCFOJM);
}
// Token: 0x0600F356 RID: 62294 RVA: 0x0049ABE0 File Offset: 0x00498DE0
public float MLLDMBMMLFO()
{
return this.NGNFLPJCNLI;
}
// Token: 0x0600F357 RID: 62295 RVA: 0x0049ABE8 File Offset: 0x00498DE8
private void HEGAKMHGKMN()
{
if (this.currentHandGuess == Longbow.ILBMBAMNIAE.Left)
{
this.pivotTransform.localScale = new Vector3(799f, 1271f, 1166f);
}
else
{
this.pivotTransform.localScale = new Vector3(1794f, 465f, 1389f);
}
}
// Token: 0x0600F358 RID: 62296 RVA: 0x0049AC44 File Offset: 0x00498E44
public void CCNBNFGDNLK(ArrowHand MGOFDJDMABD)
{
this.CLFJFEIMCAD = MGOFDJDMABD;
this.GAEKGDCFOJM.HBIGEOLCLCN(base.GetComponent<Interactable>());
this.nocked = true;
this.KHMNAFKBAGM = Time.time;
this.CKCPHBCDOCD = this.pivotTransform.rotation;
this.arrowSlideSound.ICEACNLCOGC();
this.KIJHCCJJPPF();
}
// Token: 0x0600F359 RID: 62297 RVA: 0x0049ACA0 File Offset: 0x00498EA0
private void JPCHCOMGCAI(Hand GAEKGDCFOJM)
{
base.gameObject.SetActive(false);
}
// Token: 0x0400230A RID: 8970
public Longbow.ILBMBAMNIAE currentHandGuess;
// Token: 0x0400230B RID: 8971
private float LDKOMHCBDKJ;
// Token: 0x0400230C RID: 8972
private float MBGINMFDHHH = 1.5f;
// Token: 0x0400230D RID: 8973
private bool PEAGHCDGAFP;
// Token: 0x0400230E RID: 8974
public Transform pivotTransform;
// Token: 0x0400230F RID: 8975
public Transform handleTransform;
// Token: 0x04002310 RID: 8976
private Hand GAEKGDCFOJM;
// Token: 0x04002311 RID: 8977
private ArrowHand CLFJFEIMCAD;
// Token: 0x04002312 RID: 8978
public Transform nockTransform;
// Token: 0x04002313 RID: 8979
public Transform nockRestTransform;
// Token: 0x04002314 RID: 8980
public bool autoSpawnArrowHand = true;
// Token: 0x04002315 RID: 8981
public ItemPackage arrowHandItemPackage;
// Token: 0x04002316 RID: 8982
public GameObject arrowHandPrefab;
// Token: 0x04002317 RID: 8983
public bool nocked;
// Token: 0x04002318 RID: 8984
public bool pulled;
// Token: 0x04002319 RID: 8985
private const float DMNKNBKKGNN = 0.05f;
// Token: 0x0400231A RID: 8986
private const float PBIFJJIBDHI = 0.5f;
// Token: 0x0400231B RID: 8987
private float FNPEELDMJLF;
// Token: 0x0400231C RID: 8988
private float KANJEAPMNAH = 0.01f;
// Token: 0x0400231D RID: 8989
private float ABGBDOJANDE;
// Token: 0x0400231E RID: 8990
private const float ILBLCIMHFNK = 100f;
// Token: 0x0400231F RID: 8991
private const float HOGBMAJMPDP = 500f;
// Token: 0x04002320 RID: 8992
private Vector3 FLJMPFHGIHJ;
// Token: 0x04002321 RID: 8993
public float arrowMinVelocity = 3f;
// Token: 0x04002322 RID: 8994
public float arrowMaxVelocity = 30f;
// Token: 0x04002323 RID: 8995
private float NGNFLPJCNLI = 30f;
// Token: 0x04002324 RID: 8996
private float GNKJFLGJNNJ = 0.1f;
// Token: 0x04002325 RID: 8997
private float HKAHPPAOLEG = 0.5f;
// Token: 0x04002326 RID: 8998
private float CMMPFHAAGDJ;
// Token: 0x04002327 RID: 8999
private bool LBBJPLMEMKH;
// Token: 0x04002328 RID: 9000
private float DIGFIHIFIAK;
// Token: 0x04002329 RID: 9001
private float ALIBEDCHBEK = 0.15f;
// Token: 0x0400232A RID: 9002
private Quaternion IJPCMDEAFGD;
// Token: 0x0400232B RID: 9003
private float KHMNAFKBAGM;
// Token: 0x0400232C RID: 9004
private Quaternion CKCPHBCDOCD;
// Token: 0x0400232D RID: 9005
public float drawOffset = 0.06f;
// Token: 0x0400232E RID: 9006
public LinearMapping bowDrawLinearMapping;
// Token: 0x0400232F RID: 9007
private bool KPDJLPLKDLP;
// Token: 0x04002330 RID: 9008
private Vector3 BJFPHJJHBOF;
// Token: 0x04002331 RID: 9009
private Quaternion JIOIIOKIDDC;
// Token: 0x04002332 RID: 9010
public SoundBowClick drawSound;
// Token: 0x04002333 RID: 9011
private float BPLCBNJGDHC;
// Token: 0x04002334 RID: 9012
public SoundPlayOneshot arrowSlideSound;
// Token: 0x04002335 RID: 9013
public SoundPlayOneshot releaseSound;
// Token: 0x04002336 RID: 9014
public SoundPlayOneshot nockSound;
// Token: 0x04002337 RID: 9015
private DAGNICICCAN.MIGBABMNAHI AILHMBCDEGN;
// Token: 0x020005F4 RID: 1524
public enum ILBMBAMNIAE
{
// Token: 0x04002339 RID: 9017
Left,
// Token: 0x0400233A RID: 9018
Right
}
}
}