using System; using System.Collections; using UnityEngine; namespace RecRoom.Tools.Weapons { // Token: 0x02000FFF RID: 4095 public class WeaponReloader : WeaponAccessory { // Token: 0x06022535 RID: 140597 RVA: 0x009615EC File Offset: 0x0095F7EC private void IKJJMEMCBKF() { if (this.NOCJONDDHEF && base.gameObject.activeInHierarchy && this.PLKHLEAJHBK != null && !base.CMLFAHFDBED().OHGPCMJMFGC) { this.BFNDFFDOPIM(); if (!this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { this.KPFNOANPPFO(); } } } // Token: 0x06022536 RID: 140598 RVA: 0x00961658 File Offset: 0x0095F858 protected virtual void ADIOFMMMFNL() { base.NGDOOFGOPPC(); if (base.LLBGJMFFICN() != null) { base.KNEJJEBLJCP().GFBCCFIMFEC += this.ONMDJECHHAM; base.OPJDNGFDMBN().PLPIAOHJBOB += this.NIPCADLOCJP; } if (this.parentWeapon == null) { Debug.LogError(base.name + "punch"); } else { this.parentWeapon.BENCPDPOBCG += this.EGHBENNFHAI; this.parentWeapon.BKIHJCCMMJA += this.IKJJMEMCBKF; this.FGBLAMHEEHF = this.parentWeapon.transform.InverseTransformPoint(this.emptyClipTransform.position); this.AGJPKJDGLOJ = this.FGBLAMHEEHF; this.DMACJDPHOMF = this.parentWeapon.transform.MCKNNGGGBDG(this.emptyClipTransform.rotation); } Vector3 vector = this.emptyClipTransform.InverseTransformPoint(this.fullClipTransform.position); this.EPDNFFJHPKK = vector.normalized; this.DFLFHBNMCDD = vector.magnitude; } // Token: 0x06022537 RID: 140599 RVA: 0x00961784 File Offset: 0x0095F984 private void NFENCLIMNPO() { if (this.NOCJONDDHEF && base.gameObject.activeInHierarchy && this.PLKHLEAJHBK != null && !base.CMLFAHFDBED().OHGPCMJMFGC) { this.BFNDFFDOPIM(); if (!this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { this.OMEAMBPJIKH(); } } } // Token: 0x06022538 RID: 140600 RVA: 0x009617F0 File Offset: 0x0095F9F0 private void NOAKLFIFBAD() { if (this.LOKCNIBDMOI != null) { base.StopCoroutine(this.LOKCNIBDMOI); } this.LOKCNIBDMOI = null; } // Token: 0x06022539 RID: 140601 RVA: 0x00961810 File Offset: 0x0095FA10 private void ELFLBIAKJPM(float ABBJGLFFIJP) { if (!base.BKDFLNGCINH.OHGPCMJMFGC || this.parentWeapon == null || !this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { return; } if (this.pullTickAudio != null) { this.pullTickAudio.pitchShift = 0.45f * ABBJGLFFIJP; AudioManager.Play3DSFX(this.pullTickAudio, base.transform, null); } if (this.parentWeapon.BKDFLNGCINH.CAAOEAAJAIL != null && this.parentWeapon.BKDFLNGCINH.CAAOEAAJAIL.NHDDPGADJPJ && base.BKDFLNGCINH.CAAOEAAJAIL != null && base.BKDFLNGCINH.CAAOEAAJAIL.NHDDPGADJPJ) { base.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(20, 500); this.parentWeapon.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(20, 500); } } // Token: 0x0602253A RID: 140602 RVA: 0x00961918 File Offset: 0x0095FB18 private void BFNDFFDOPIM() { if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PUMP) { this.PLKHLEAJHBK.MinimumConstraintDistance = Mathf.Lerp(234f, this.DFLFHBNMCDD, this.parentWeapon.NKCLPPOABCK); this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } else if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PUMP) { this.PLKHLEAJHBK.MinimumConstraintDistance = 869f; this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } this.PLKHLEAJHBK.MaximumConstraintDistance += this.extraPullDistance; } // Token: 0x0602253B RID: 140603 RVA: 0x009619B4 File Offset: 0x0095FBB4 private void OMEAMBPJIKH() { if (this.parentWeapon != null && this.PLKHLEAJHBK != null) { this.PLKHLEAJHBK.KMMFJBFGHEN(this.parentWeapon.BKDFLNGCINH.CADPGMLHFGH, this.FGBLAMHEEHF, this.DMACJDPHOMF); if (base.isActiveAndEnabled) { this.PLKHLEAJHBK.NFKALPHDFAB(); } else { this.PLKHLEAJHBK.PACDIBDIPPB(); } } } // Token: 0x0602253C RID: 140604 RVA: 0x00961A30 File Offset: 0x0095FC30 protected override void Awake() { base.Awake(); if (base.BKDFLNGCINH != null) { base.BKDFLNGCINH.GFBCCFIMFEC += this.ILAKKOOGHDI; base.BKDFLNGCINH.PLPIAOHJBOB += this.NIPCADLOCJP; } if (this.parentWeapon == null) { Debug.LogError(base.name + " is missing weapon reference."); } else { this.parentWeapon.BENCPDPOBCG += this.BENCPDPOBCG; this.parentWeapon.BKIHJCCMMJA += this.FJMKLPIFCHD; this.FGBLAMHEEHF = this.parentWeapon.transform.InverseTransformPoint(this.emptyClipTransform.position); this.AGJPKJDGLOJ = this.FGBLAMHEEHF; this.DMACJDPHOMF = this.parentWeapon.transform.MCKNNGGGBDG(this.emptyClipTransform.rotation); } Vector3 vector = this.emptyClipTransform.InverseTransformPoint(this.fullClipTransform.position); this.EPDNFFJHPKK = vector.normalized; this.DFLFHBNMCDD = vector.magnitude; } // Token: 0x0602253D RID: 140605 RVA: 0x00961B5C File Offset: 0x0095FD5C private void OKBLJNNBCCF(float ABBJGLFFIJP) { if (!base.MJFGLHPGKCN().OHGPCMJMFGC || this.parentWeapon == null || !this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { return; } if (this.pullTickAudio != null) { this.pullTickAudio.pitchShift = 1776f * ABBJGLFFIJP; AudioManager.Play3DSFX(this.pullTickAudio, base.transform, null); } if (this.parentWeapon.BKDFLNGCINH.NAABPMOIADH() != null && this.parentWeapon.BKDFLNGCINH.NAABPMOIADH().NMDPPKDGAJN() && base.MJFGLHPGKCN().CAAOEAAJAIL != null && base.PKAKOAMJLNN().CAAOEAAJAIL.CFPNNAADNJF()) { base.CMLFAHFDBED().EHFOKGIGIMF.Vibrate(78, (ushort)(-46)); this.parentWeapon.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(-5, 69); } } // Token: 0x17001019 RID: 4121 // (get) Token: 0x0602253E RID: 140606 RVA: 0x00961C64 File Offset: 0x0095FE64 private int OCMHOOMABKK { get { return this.pullTickCount + 1; } } // Token: 0x0602253F RID: 140607 RVA: 0x00961C70 File Offset: 0x0095FE70 private void FJMKLPIFCHD() { if (this.NOCJONDDHEF && base.gameObject.activeInHierarchy && this.PLKHLEAJHBK != null && !base.BKDFLNGCINH.OHGPCMJMFGC) { this.JNFGLMGOABF(); if (!this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { this.CMEDHPCNEGC(); } } } // Token: 0x06022540 RID: 140608 RVA: 0x00961CDC File Offset: 0x0095FEDC private void CMEDHPCNEGC() { if (this.parentWeapon != null && this.PLKHLEAJHBK != null) { this.PLKHLEAJHBK.Pickup(this.parentWeapon.BKDFLNGCINH.CADPGMLHFGH, this.FGBLAMHEEHF, this.DMACJDPHOMF); if (base.isActiveAndEnabled) { this.PLKHLEAJHBK.LerpToConstraint(); } else { this.PLKHLEAJHBK.SnapToConstraint(); } } } // Token: 0x06022541 RID: 140609 RVA: 0x00961D58 File Offset: 0x0095FF58 protected virtual void NDHBFLHIAHM() { base.FNDBDPNMFIO(); if (base.LLBGJMFFICN() != null) { base.KNEJJEBLJCP().GFBCCFIMFEC -= this.EJFHDNNIBBC; base.BKDFLNGCINH.PLPIAOHJBOB -= this.FADOMDPJOKF; } if (this.parentWeapon != null) { this.parentWeapon.BKIHJCCMMJA -= this.AHKCOBJKPLP; this.parentWeapon.BENCPDPOBCG -= this.DEDPIKDGDLI; } } // Token: 0x06022542 RID: 140610 RVA: 0x00961DEC File Offset: 0x0095FFEC protected virtual void DCILLKCLNCI() { base.BCPFDCJJNCE(); this.NFENCLIMNPO(); } // Token: 0x06022543 RID: 140611 RVA: 0x00961DFC File Offset: 0x0095FFFC private void MDKIIHAJPPP() { if (this.NOCJONDDHEF && base.gameObject.activeInHierarchy && this.PLKHLEAJHBK != null && !base.PKAKOAMJLNN().OHGPCMJMFGC) { this.IPKKGBMNJEC(); if (!this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { this.CMEDHPCNEGC(); } } } // Token: 0x06022544 RID: 140612 RVA: 0x00961E68 File Offset: 0x00960068 private IEnumerator OGMBHNECGOL() { float time = Time.time; while (Time.time < time + 3f) { base.BKDFLNGCINH.RenderTutorialOutline(); yield return null; } yield break; } // Token: 0x06022545 RID: 140613 RVA: 0x00961E84 File Offset: 0x00960084 protected virtual void NGHJFABFAOA() { base.OPDMENDFALI(); if (base.MJFGLHPGKCN() != null) { base.LLBGJMFFICN().GFBCCFIMFEC += this.ILAKKOOGHDI; base.KNEJJEBLJCP().PLPIAOHJBOB += this.HNMJKNBFJJM; } if (this.parentWeapon == null) { Debug.LogError(base.name + "z"); } else { this.parentWeapon.BENCPDPOBCG += this.BENCPDPOBCG; this.parentWeapon.BKIHJCCMMJA += this.MDKIIHAJPPP; this.FGBLAMHEEHF = this.parentWeapon.transform.InverseTransformPoint(this.emptyClipTransform.position); this.AGJPKJDGLOJ = this.FGBLAMHEEHF; this.DMACJDPHOMF = this.parentWeapon.transform.MCKNNGGGBDG(this.emptyClipTransform.rotation); } Vector3 vector = this.emptyClipTransform.InverseTransformPoint(this.fullClipTransform.position); this.EPDNFFJHPKK = vector.normalized; this.DFLFHBNMCDD = vector.magnitude; } // Token: 0x06022546 RID: 140614 RVA: 0x00961FB0 File Offset: 0x009601B0 private void Update() { if (this.PLKHLEAJHBK == null || !base.BKDFLNGCINH.OHGPCMJMFGC) { return; } float num = Mathf.InverseLerp(0f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); if (Mathf.Abs(num - this.OFLCECKJNHD) >= 1f / (float)this.OCMHOOMABKK) { this.ELFLBIAKJPM(num); this.OFLCECKJNHD = num; } bool flag = num >= 1f; if (flag && !this.NCBACBDIDOD) { this.parentWeapon.ReloadAmmunition(); this.NOAKLFIFBAD(); } this.NCBACBDIDOD = flag; } // Token: 0x06022547 RID: 140615 RVA: 0x00962060 File Offset: 0x00960260 protected virtual void FDBHMLOEHCE() { base.Awake(); if (base.MJFGLHPGKCN() != null) { base.KNEJJEBLJCP().GFBCCFIMFEC += this.ONMDJECHHAM; base.OPJDNGFDMBN().PLPIAOHJBOB += this.NIPCADLOCJP; } if (this.parentWeapon == null) { Debug.LogError(base.name + "\" call."); } else { this.parentWeapon.BENCPDPOBCG += this.DEDPIKDGDLI; this.parentWeapon.BKIHJCCMMJA += this.FMOIHGDEDFL; this.FGBLAMHEEHF = this.parentWeapon.transform.InverseTransformPoint(this.emptyClipTransform.position); this.AGJPKJDGLOJ = this.FGBLAMHEEHF; this.DMACJDPHOMF = this.parentWeapon.transform.MCKNNGGGBDG(this.emptyClipTransform.rotation); } Vector3 vector = this.emptyClipTransform.InverseTransformPoint(this.fullClipTransform.position); this.EPDNFFJHPKK = vector.normalized; this.DFLFHBNMCDD = vector.magnitude; } // Token: 0x06022548 RID: 140616 RVA: 0x0096218C File Offset: 0x0096038C protected virtual void NNDEBGHNKEN(Tool HJCPFEOEPLB) { base.KFNNLOIOELP(HJCPFEOEPLB); this.FGBLAMHEEHF = this.AGJPKJDGLOJ.NAHCAKKCICD(base.KNEJJEBLJCP().transform.localScale); if (this.PLKHLEAJHBK != null) { this.PLKHLEAJHBK.ConstraintOffsetPosition = this.FGBLAMHEEHF; } this.KPFNOANPPFO(); } // Token: 0x06022549 RID: 140617 RVA: 0x009621EC File Offset: 0x009603EC private void EJFHDNNIBBC(Tool ENBMEDIFBLM) { this.NCBACBDIDOD = true; float num = Mathf.InverseLerp(546f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); int num2 = (int)((float)this.EJJLDEFCIJL() * num); this.OFLCECKJNHD = (float)num2 / (float)this.EJJLDEFCIJL(); this.parentWeapon.GGHFKJNKLON = true; } // Token: 0x0602254A RID: 140618 RVA: 0x00962244 File Offset: 0x00960444 protected override void KFNNLOIOELP(Tool HJCPFEOEPLB) { base.KFNNLOIOELP(HJCPFEOEPLB); this.FGBLAMHEEHF = this.AGJPKJDGLOJ.NAHCAKKCICD(base.BKDFLNGCINH.transform.localScale); if (this.PLKHLEAJHBK != null) { this.PLKHLEAJHBK.ConstraintOffsetPosition = this.FGBLAMHEEHF; } this.CMEDHPCNEGC(); } // Token: 0x0602254B RID: 140619 RVA: 0x009622A4 File Offset: 0x009604A4 private void FMOIHGDEDFL() { if (this.NOCJONDDHEF && base.gameObject.activeInHierarchy && this.PLKHLEAJHBK != null && !base.BKDFLNGCINH.OHGPCMJMFGC) { this.LFPEMEIAOOI(); if (!this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { this.KPFNOANPPFO(); } } } // Token: 0x0602254C RID: 140620 RVA: 0x00962310 File Offset: 0x00960510 protected override void OnDestroy() { base.OnDestroy(); if (base.BKDFLNGCINH != null) { base.BKDFLNGCINH.GFBCCFIMFEC -= this.ILAKKOOGHDI; base.BKDFLNGCINH.PLPIAOHJBOB -= this.NIPCADLOCJP; } if (this.parentWeapon != null) { this.parentWeapon.BKIHJCCMMJA -= this.FJMKLPIFCHD; this.parentWeapon.BENCPDPOBCG -= this.BENCPDPOBCG; } } // Token: 0x0602254E RID: 140622 RVA: 0x00962400 File Offset: 0x00960600 private void ICNEIJLHPAE() { if (this.LOKCNIBDMOI != null) { base.StopCoroutine(this.LOKCNIBDMOI); } this.LOKCNIBDMOI = null; } // Token: 0x0602254F RID: 140623 RVA: 0x00962420 File Offset: 0x00960620 private IEnumerator AFKDJPNLHNF() { time = Time.time; while (Time.time < time + 3f) { base.BKDFLNGCINH.RenderTutorialOutline(); yield return null; } yield break; } // Token: 0x06022550 RID: 140624 RVA: 0x0096243C File Offset: 0x0096063C protected virtual void KAOGJJFLGOI(Tool ENBMEDIFBLM) { base.DEINMENECNL(ENBMEDIFBLM); this.KPFNOANPPFO(); } // Token: 0x06022551 RID: 140625 RVA: 0x0096244C File Offset: 0x0096064C private void GNNDPNNMFGI() { if (this.LOKCNIBDMOI != null) { base.StopCoroutine(this.LOKCNIBDMOI); } this.LOKCNIBDMOI = null; } // Token: 0x06022552 RID: 140626 RVA: 0x0096246C File Offset: 0x0096066C private void KPFNOANPPFO() { if (this.parentWeapon != null && this.PLKHLEAJHBK != null) { this.PLKHLEAJHBK.Pickup(this.parentWeapon.BKDFLNGCINH.CADPGMLHFGH, this.FGBLAMHEEHF, this.DMACJDPHOMF); if (base.isActiveAndEnabled) { this.PLKHLEAJHBK.NFKALPHDFAB(); } else { this.PLKHLEAJHBK.PACDIBDIPPB(); } } } // Token: 0x06022553 RID: 140627 RVA: 0x009624E8 File Offset: 0x009606E8 private void KDJPGABLCJB() { if (this.LOKCNIBDMOI != null) { base.StopCoroutine(this.LOKCNIBDMOI); } this.LOKCNIBDMOI = null; } // Token: 0x06022554 RID: 140628 RVA: 0x00962508 File Offset: 0x00960708 private int EJJLDEFCIJL() { return this.pullTickCount + 1; } // Token: 0x06022555 RID: 140629 RVA: 0x00962514 File Offset: 0x00960714 protected override void MMNEKNECGFN(Tool ENBMEDIFBLM) { base.MMNEKNECGFN(ENBMEDIFBLM); this.CMEDHPCNEGC(); } // Token: 0x06022556 RID: 140630 RVA: 0x00962524 File Offset: 0x00960724 private void DIBAGNOJDKP(Tool ENBMEDIFBLM) { this.NCBACBDIDOD = false; float num = Mathf.InverseLerp(1228f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); int num2 = (int)((float)this.EJJLDEFCIJL() * num); this.OFLCECKJNHD = (float)num2 / (float)this.OCMHOOMABKK; this.parentWeapon.GGHFKJNKLON = false; } // Token: 0x06022557 RID: 140631 RVA: 0x0096257C File Offset: 0x0096077C private void LNNELHLFNIO(float ABBJGLFFIJP) { if (!base.LLBGJMFFICN().OHGPCMJMFGC || this.parentWeapon == null || !this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { return; } if (this.pullTickAudio != null) { this.pullTickAudio.pitchShift = 1103f * ABBJGLFFIJP; AudioManager.Play3DSFX(this.pullTickAudio, base.transform, null); } if (this.parentWeapon.BKDFLNGCINH.NAABPMOIADH() != null && this.parentWeapon.BKDFLNGCINH.NAABPMOIADH().HLLKMNAFJOP() && base.OPJDNGFDMBN().CAAOEAAJAIL != null && base.KNEJJEBLJCP().CAAOEAAJAIL.BGOFBKHOLHF()) { base.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(-63, (ushort)(-63)); this.parentWeapon.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(76, 151); } } // Token: 0x06022558 RID: 140632 RVA: 0x00962684 File Offset: 0x00960884 private void OFDCCGLFACL() { if (this.PLKHLEAJHBK == null || !base.MJFGLHPGKCN().OHGPCMJMFGC) { return; } float num = Mathf.InverseLerp(1837f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); if (Mathf.Abs(num - this.OFLCECKJNHD) >= 1f / (float)this.OCMHOOMABKK) { this.ELFLBIAKJPM(num); this.OFLCECKJNHD = num; } bool flag = num >= 132f; if (flag && !this.NCBACBDIDOD) { this.parentWeapon.ReloadAmmunition(); this.OEFJNMLGCIE(); } this.NCBACBDIDOD = flag; } // Token: 0x06022559 RID: 140633 RVA: 0x00962734 File Offset: 0x00960934 private void EEFNJPECBGM(Tool ENBMEDIFBLM) { this.NCBACBDIDOD = true; float num = Mathf.InverseLerp(1883f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); int num2 = (int)((float)this.EJJLDEFCIJL() * num); this.OFLCECKJNHD = (float)num2 / (float)this.EJJLDEFCIJL(); this.parentWeapon.GGHFKJNKLON = true; } // Token: 0x0602255A RID: 140634 RVA: 0x0096278C File Offset: 0x0096098C private IEnumerator CHGNEOMENKF() { time = Time.time; while (Time.time < time + 3f) { base.BKDFLNGCINH.RenderTutorialOutline(); yield return null; } yield break; } // Token: 0x0602255B RID: 140635 RVA: 0x009627A8 File Offset: 0x009609A8 protected virtual void KODFPNDEHKH() { base.MMEOPLHCDAC(); this.FJMKLPIFCHD(); } // Token: 0x0602255C RID: 140636 RVA: 0x009627B8 File Offset: 0x009609B8 protected virtual void KCHFAFFCMCI() { base.MMEOPLHCDAC(); this.AHKCOBJKPLP(); } // Token: 0x0602255D RID: 140637 RVA: 0x009627C8 File Offset: 0x009609C8 private void DEDPIKDGDLI() { this.OEFJNMLGCIE(); this.LOKCNIBDMOI = base.StartCoroutine(this.PNNKJDPNKAD()); } // Token: 0x0602255E RID: 140638 RVA: 0x009627E4 File Offset: 0x009609E4 protected virtual void CNIMJINKOGC(Tool ENBMEDIFBLM) { base.EDHMKKHPPHK(ENBMEDIFBLM); this.CMEDHPCNEGC(); } // Token: 0x0602255F RID: 140639 RVA: 0x009627F4 File Offset: 0x009609F4 private void IPKKGBMNJEC() { if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PULL) { this.PLKHLEAJHBK.MinimumConstraintDistance = Mathf.Lerp(193f, this.DFLFHBNMCDD, this.parentWeapon.NKCLPPOABCK); this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } else if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PUMP) { this.PLKHLEAJHBK.MinimumConstraintDistance = 438f; this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } this.PLKHLEAJHBK.MaximumConstraintDistance += this.extraPullDistance; } // Token: 0x06022560 RID: 140640 RVA: 0x00962890 File Offset: 0x00960A90 private void JNFGLMGOABF() { if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PULL) { this.PLKHLEAJHBK.MinimumConstraintDistance = Mathf.Lerp(0f, this.DFLFHBNMCDD, this.parentWeapon.NKCLPPOABCK); this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } else if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PUMP) { this.PLKHLEAJHBK.MinimumConstraintDistance = 0f; this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } this.PLKHLEAJHBK.MaximumConstraintDistance += this.extraPullDistance; } // Token: 0x06022561 RID: 140641 RVA: 0x0096292C File Offset: 0x00960B2C private void FADOMDPJOKF(Tool ENBMEDIFBLM) { this.BFNDFFDOPIM(); this.CMEDHPCNEGC(); this.parentWeapon.GGHFKJNKLON = false; } // Token: 0x06022562 RID: 140642 RVA: 0x00962948 File Offset: 0x00960B48 private void LALGCDHKKKK() { this.ICNEIJLHPAE(); this.LOKCNIBDMOI = base.StartCoroutine(this.OGMBHNECGOL()); } // Token: 0x06022563 RID: 140643 RVA: 0x00962964 File Offset: 0x00960B64 protected virtual void CCOHCCEHNIC() { base.MELFNMPLBAK(); if (base.MJFGLHPGKCN() != null) { base.MJFGLHPGKCN().GFBCCFIMFEC += this.DIBAGNOJDKP; base.LLBGJMFFICN().PLPIAOHJBOB += this.NIPCADLOCJP; } if (this.parentWeapon == null) { Debug.LogError(base.name + "HTTPConnection"); } else { this.parentWeapon.BENCPDPOBCG += this.BENCPDPOBCG; this.parentWeapon.BKIHJCCMMJA += this.MDKIIHAJPPP; this.FGBLAMHEEHF = this.parentWeapon.transform.InverseTransformPoint(this.emptyClipTransform.position); this.AGJPKJDGLOJ = this.FGBLAMHEEHF; this.DMACJDPHOMF = this.parentWeapon.transform.MCKNNGGGBDG(this.emptyClipTransform.rotation); } Vector3 vector = this.emptyClipTransform.InverseTransformPoint(this.fullClipTransform.position); this.EPDNFFJHPKK = vector.normalized; this.DFLFHBNMCDD = vector.magnitude; } // Token: 0x06022564 RID: 140644 RVA: 0x00962A90 File Offset: 0x00960C90 private void AHKCOBJKPLP() { if (this.NOCJONDDHEF && base.gameObject.activeInHierarchy && this.PLKHLEAJHBK != null && !base.BKDFLNGCINH.OHGPCMJMFGC) { this.JNFGLMGOABF(); if (!this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { this.KPFNOANPPFO(); } } } // Token: 0x06022565 RID: 140645 RVA: 0x00962AFC File Offset: 0x00960CFC private void IOFGJAOOOMD(float ABBJGLFFIJP) { if (!base.OPJDNGFDMBN().OHGPCMJMFGC || this.parentWeapon == null || !this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { return; } if (this.pullTickAudio != null) { this.pullTickAudio.pitchShift = 1602f * ABBJGLFFIJP; AudioManager.Play3DSFX(this.pullTickAudio, base.transform, null); } if (this.parentWeapon.BKDFLNGCINH.NAABPMOIADH() != null && this.parentWeapon.BKDFLNGCINH.NAABPMOIADH().PJNKKFHLGKI() && base.KNEJJEBLJCP().NAABPMOIADH() != null && base.KNEJJEBLJCP().NAABPMOIADH().CFPNNAADNJF()) { base.KNEJJEBLJCP().EHFOKGIGIMF.Vibrate(58, (ushort)(-136)); this.parentWeapon.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(57, (ushort)(-18)); } } // Token: 0x06022566 RID: 140646 RVA: 0x00962C04 File Offset: 0x00960E04 private void LLOBGFAICOM(float ABBJGLFFIJP) { if (!base.BKDFLNGCINH.OHGPCMJMFGC || this.parentWeapon == null || !this.parentWeapon.BKDFLNGCINH.OHGPCMJMFGC) { return; } if (this.pullTickAudio != null) { this.pullTickAudio.pitchShift = 1399f * ABBJGLFFIJP; AudioManager.Play3DSFX(this.pullTickAudio, base.transform, null); } if (this.parentWeapon.BKDFLNGCINH.CAAOEAAJAIL != null && this.parentWeapon.BKDFLNGCINH.CAAOEAAJAIL.NHDDPGADJPJ && base.BKDFLNGCINH.CAAOEAAJAIL != null && base.MJFGLHPGKCN().CAAOEAAJAIL.GDOFKAIDDNA()) { base.LLBGJMFFICN().EHFOKGIGIMF.Vibrate(105, 1); this.parentWeapon.BKDFLNGCINH.EHFOKGIGIMF.Vibrate(-73, (ushort)(-43)); } } // Token: 0x06022567 RID: 140647 RVA: 0x00962D0C File Offset: 0x00960F0C protected override void Start() { base.Start(); this.PLKHLEAJHBK = base.BKDFLNGCINH.CADPGMLHFGH as PlungerRigidbodyPickup; this.PLKHLEAJHBK.ConstraintPickup = this.parentWeapon.BKDFLNGCINH.CADPGMLHFGH; this.PLKHLEAJHBK.ConstraintOffsetPosition = this.FGBLAMHEEHF; this.PLKHLEAJHBK.ConstraintOffsetRotation = this.DMACJDPHOMF; this.PLKHLEAJHBK.ConstraintLocalAxis = this.EPDNFFJHPKK; this.PLKHLEAJHBK.MinimumConstraintDistance = 0f; this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD + this.extraPullDistance; this.FJMKLPIFCHD(); } // Token: 0x06022568 RID: 140648 RVA: 0x00962DB4 File Offset: 0x00960FB4 private void NIPCADLOCJP(Tool ENBMEDIFBLM) { this.JNFGLMGOABF(); this.CMEDHPCNEGC(); this.parentWeapon.GGHFKJNKLON = false; } // Token: 0x06022569 RID: 140649 RVA: 0x00962DD0 File Offset: 0x00960FD0 private void OEFJNMLGCIE() { if (this.LOKCNIBDMOI != null) { base.StopCoroutine(this.LOKCNIBDMOI); } this.LOKCNIBDMOI = null; } // Token: 0x0602256A RID: 140650 RVA: 0x00962DF0 File Offset: 0x00960FF0 protected virtual void HFNCHCDJPDH(Tool ENBMEDIFBLM) { base.GOLNPLGDIGF(ENBMEDIFBLM); this.OMEAMBPJIKH(); } // Token: 0x0602256B RID: 140651 RVA: 0x00962E00 File Offset: 0x00961000 private void ONMDJECHHAM(Tool ENBMEDIFBLM) { this.NCBACBDIDOD = true; float num = Mathf.InverseLerp(455f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); int num2 = (int)((float)this.EJJLDEFCIJL() * num); this.OFLCECKJNHD = (float)num2 / (float)this.OCMHOOMABKK; this.parentWeapon.GGHFKJNKLON = false; } // Token: 0x0602256C RID: 140652 RVA: 0x00962E58 File Offset: 0x00961058 private void AAPCPOGNBPB(Tool ENBMEDIFBLM) { this.NCBACBDIDOD = false; float num = Mathf.InverseLerp(1799f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); int num2 = (int)((float)this.EJJLDEFCIJL() * num); this.OFLCECKJNHD = (float)num2 / (float)this.EJJLDEFCIJL(); this.parentWeapon.GGHFKJNKLON = false; } // Token: 0x0602256D RID: 140653 RVA: 0x00962EB0 File Offset: 0x009610B0 private void ILAKKOOGHDI(Tool ENBMEDIFBLM) { this.NCBACBDIDOD = false; float num = Mathf.InverseLerp(0f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); int num2 = (int)((float)this.OCMHOOMABKK * num); this.OFLCECKJNHD = (float)num2 / (float)this.OCMHOOMABKK; this.parentWeapon.GGHFKJNKLON = true; } // Token: 0x0602256E RID: 140654 RVA: 0x00962F08 File Offset: 0x00961108 private void BENCPDPOBCG() { this.NOAKLFIFBAD(); this.LOKCNIBDMOI = base.StartCoroutine(this.OGMBHNECGOL()); } // Token: 0x0602256F RID: 140655 RVA: 0x00962F24 File Offset: 0x00961124 private void LFPEMEIAOOI() { if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PULL) { this.PLKHLEAJHBK.MinimumConstraintDistance = Mathf.Lerp(448f, this.DFLFHBNMCDD, this.parentWeapon.NKCLPPOABCK); this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } else if (this.reloaderType == WeaponReloader.ECFBCAANNMG.PUMP) { this.PLKHLEAJHBK.MinimumConstraintDistance = 1583f; this.PLKHLEAJHBK.MaximumConstraintDistance = this.DFLFHBNMCDD; } this.PLKHLEAJHBK.MaximumConstraintDistance += this.extraPullDistance; } // Token: 0x06022570 RID: 140656 RVA: 0x00962FC0 File Offset: 0x009611C0 protected override void OnEnable() { base.OnEnable(); this.FJMKLPIFCHD(); } // Token: 0x06022571 RID: 140657 RVA: 0x00962FD0 File Offset: 0x009611D0 protected override void GJNDGMKCDFD(Tool ENBMEDIFBLM) { base.GJNDGMKCDFD(ENBMEDIFBLM); this.CMEDHPCNEGC(); } // Token: 0x06022572 RID: 140658 RVA: 0x00962FE0 File Offset: 0x009611E0 private void OBFADPEEBLG() { if (this.PLKHLEAJHBK == null || !base.PKAKOAMJLNN().OHGPCMJMFGC) { return; } float num = Mathf.InverseLerp(257f, this.DFLFHBNMCDD, this.PLKHLEAJHBK.CurrentDistance); if (Mathf.Abs(num - this.OFLCECKJNHD) >= 674f / (float)this.OCMHOOMABKK) { this.ELFLBIAKJPM(num); this.OFLCECKJNHD = num; } bool flag = num >= 456f; if (flag && !this.NCBACBDIDOD) { this.parentWeapon.ReloadAmmunition(); this.NOAKLFIFBAD(); } this.NCBACBDIDOD = flag; } // Token: 0x06022573 RID: 140659 RVA: 0x00963090 File Offset: 0x00961290 protected virtual void JEJBLBIABCA() { base.HOOOIPKICHK(); this.IKJJMEMCBKF(); } // Token: 0x06022574 RID: 140660 RVA: 0x009630A0 File Offset: 0x009612A0 protected virtual void DLHCEOMPOHA(Tool HJCPFEOEPLB) { base.ILHDIAOLJLE(HJCPFEOEPLB); this.FGBLAMHEEHF = this.AGJPKJDGLOJ.NAHCAKKCICD(base.LLBGJMFFICN().transform.localScale); if (this.PLKHLEAJHBK != null) { this.PLKHLEAJHBK.ConstraintOffsetPosition = this.FGBLAMHEEHF; } this.KPFNOANPPFO(); } // Token: 0x06022575 RID: 140661 RVA: 0x00963100 File Offset: 0x00961300 protected virtual void HKJDCDEMIPG() { base.HFLIGEKIBOO(); if (base.LLBGJMFFICN() != null) { base.KNEJJEBLJCP().GFBCCFIMFEC -= this.ILAKKOOGHDI; base.CMLFAHFDBED().PLPIAOHJBOB -= this.HNMJKNBFJJM; } if (this.parentWeapon != null) { this.parentWeapon.BKIHJCCMMJA -= this.FMOIHGDEDFL; this.parentWeapon.BENCPDPOBCG -= this.BENCPDPOBCG; } } // Token: 0x06022576 RID: 140662 RVA: 0x00963194 File Offset: 0x00961394 protected virtual void OHJCBFCBONE(Tool ENBMEDIFBLM) { base.EOJAHJNOPDK(ENBMEDIFBLM); this.KPFNOANPPFO(); } // Token: 0x06022577 RID: 140663 RVA: 0x009631A4 File Offset: 0x009613A4 private void EGHBENNFHAI() { this.GNNDPNNMFGI(); this.LOKCNIBDMOI = base.StartCoroutine(this.AFKDJPNLHNF()); } // Token: 0x06022578 RID: 140664 RVA: 0x009631C0 File Offset: 0x009613C0 private void HNMJKNBFJJM(Tool ENBMEDIFBLM) { this.IPKKGBMNJEC(); this.KPFNOANPPFO(); this.parentWeapon.GGHFKJNKLON = true; } // Token: 0x06022579 RID: 140665 RVA: 0x009631DC File Offset: 0x009613DC protected virtual void JBKEEGKFGNA(Tool ENBMEDIFBLM) { base.PICEMFFPDDI(ENBMEDIFBLM); this.CMEDHPCNEGC(); } // Token: 0x0602257A RID: 140666 RVA: 0x009631EC File Offset: 0x009613EC private IEnumerator PNNKJDPNKAD() { time = Time.time; while (Time.time < time + 3f) { base.BKDFLNGCINH.RenderTutorialOutline(); yield return null; } yield break; } // Token: 0x04005963 RID: 22883 [SerializeField] [Header("Reloader")] private WeaponReloader.ECFBCAANNMG reloaderType = WeaponReloader.ECFBCAANNMG.PULL; // Token: 0x04005964 RID: 22884 [SerializeField] private Transform emptyClipTransform; // Token: 0x04005965 RID: 22885 [SerializeField] private Transform fullClipTransform; // Token: 0x04005966 RID: 22886 [SerializeField] private float extraPullDistance = 0.05f; // Token: 0x04005967 RID: 22887 [Header("Feedback")] [SerializeField] private RecRoomAudioClip pullTickAudio; // Token: 0x04005968 RID: 22888 [SerializeField] private int pullTickCount = 10; // Token: 0x04005969 RID: 22889 private const float CECCDGGCJAH = 0.45f; // Token: 0x0400596A RID: 22890 private PlungerRigidbodyPickup PLKHLEAJHBK; // Token: 0x0400596B RID: 22891 private Vector3 AGJPKJDGLOJ = Vector3.zero; // Token: 0x0400596C RID: 22892 private Vector3 FGBLAMHEEHF = Vector3.zero; // Token: 0x0400596D RID: 22893 private Quaternion DMACJDPHOMF = Quaternion.identity; // Token: 0x0400596E RID: 22894 private Vector3 EPDNFFJHPKK = Vector3.zero; // Token: 0x0400596F RID: 22895 private float DFLFHBNMCDD; // Token: 0x04005970 RID: 22896 private bool NCBACBDIDOD; // Token: 0x04005971 RID: 22897 private float OFLCECKJNHD; // Token: 0x04005972 RID: 22898 private Coroutine LOKCNIBDMOI; // Token: 0x02001000 RID: 4096 private enum ECFBCAANNMG { // Token: 0x04005974 RID: 22900 PUMP, // Token: 0x04005975 RID: 22901 PULL } } }