using System; using System.Runtime.InteropServices; using Cpp2IlInjected; using RecRoom.Core; using RecRoom.Core.Combat; using UnityEngine; namespace RecRoom.Tools.Weapons { // Token: 0x0200266F RID: 9839 [Token(Token = "0x200266F")] [StructLayout(3)] public class BowString : WeaponAccessory { // Token: 0x17002E57 RID: 11863 // (get) Token: 0x06011102 RID: 69890 RVA: 0x00405644 File Offset: 0x00403844 [Token(Token = "0x17002E57")] public Vector3 LLLIMCMPDOO { [Token(Token = "0x6011102")] [Address(RVA = "0x15A7020", Offset = "0x15A5A20", VA = "0x1815A7020")] get { Transform transform = base.transform; Vector3 vector; float z = vector.z; throw new NullReferenceException(); } } // Token: 0x17002E58 RID: 11864 // (get) Token: 0x06011103 RID: 69891 RVA: 0x00405664 File Offset: 0x00403864 // (set) Token: 0x06011104 RID: 69892 RVA: 0x00405678 File Offset: 0x00403878 [Token(Token = "0x17002E58")] public AxisConstrainedRigidbodyPickup ELPKNBILKMD { [Token(Token = "0x6011103")] [Address(RVA = "0x4D2570", Offset = "0x4D0F70", VA = "0x1804D2570")] get; [Token(Token = "0x6011104")] [Address(RVA = "0x7D4760", Offset = "0x7D3160", VA = "0x1807D4760")] private set; } // Token: 0x06011105 RID: 69893 RVA: 0x0040568C File Offset: 0x0040388C [Token(Token = "0x6011105")] [Address(RVA = "0x15A6750", Offset = "0x15A5150", VA = "0x1815A6750", Slot = "5")] protected override void Awake() { base.Awake(); Weapon parentWeapon = this.parentWeapon; if (parentWeapon == 0) { } this.Bow = parentWeapon; int num = 0; if (parentWeapon == num) { Debug.LogError(base.name + " is not parented to a bow weapon."); } this.Bow.k__BackingField = this; Tool tool = this._tool; int num2 = 0; if (tool != num2) { this._tool.IgnorePickupDirection = true; this._tool.AlwaysPhysicalPickupOffCenter = false; } } // Token: 0x06011106 RID: 69894 RVA: 0x00405714 File Offset: 0x00403914 [Token(Token = "0x6011106")] [Address(RVA = "0x15A6E10", Offset = "0x15A5810", VA = "0x1815A6E10", Slot = "6")] protected override void Start() { Tool tool = this._tool; int num = 0; if (tool != num) { Tool tool2 = this._tool; RigidbodyPickup rigidbodyPickup = tool2.rigidbodyPickup; if (rigidbodyPickup == 0) { } this.k__BackingField = rigidbodyPickup; ActionEvent postPickupEvent = tool2.PostPickupEvent; Action action = new Action(this.HAAIALDMMEL); ActionEvent actionEvent = postPickupEvent + action; tool2.PostPickupEvent = actionEvent; Tool tool3 = this._tool; ActionEvent postReleaseEvent = tool3.PostReleaseEvent; Action action2 = new Action(this.OIOCPLEKMEK); ActionEvent actionEvent2 = postReleaseEvent + action2; tool3.PostReleaseEvent = actionEvent2; Tool tool4 = this._tool; ActionEvent hoverStartEvent = tool4.HoverStartEvent; Action action3 = new Action(this.CCPHHDELIFF); ActionEvent actionEvent3 = hoverStartEvent + action3; tool4.HoverStartEvent = actionEvent3; } if (!this._tool.k__BackingField) { base.NNPBKEIEMHL(); } base.Start(); } // Token: 0x06011107 RID: 69895 RVA: 0x00405804 File Offset: 0x00403A04 [Token(Token = "0x6011107")] [Address(RVA = "0x1143820", Offset = "0x1142220", VA = "0x181143820")] private void OnEnable() { if (!this._tool.k__BackingField) { base.NNPBKEIEMHL(); return; } } // Token: 0x06011108 RID: 69896 RVA: 0x0040582C File Offset: 0x00403A2C [Token(Token = "0x6011108")] [Address(RVA = "0x15A6C80", Offset = "0x15A5680", VA = "0x1815A6C80", Slot = "7")] protected override void OnDestroy() { base.OnDestroy(); Tool tool = this._tool; int num = 0; if (tool != num) { Tool tool2 = this._tool; ActionEvent postPickupEvent = tool2.PostPickupEvent; Action action = new Action(this.HAAIALDMMEL); ActionEvent actionEvent = postPickupEvent - action; tool2.PostPickupEvent = actionEvent; Tool tool3 = this._tool; ActionEvent postReleaseEvent = tool3.PostReleaseEvent; Action action2 = new Action(this.OIOCPLEKMEK); ActionEvent actionEvent2 = postReleaseEvent - action2; tool3.PostReleaseEvent = actionEvent2; Tool tool4 = this._tool; ActionEvent hoverStartEvent = tool4.HoverStartEvent; Action action3 = new Action(this.CCPHHDELIFF); ActionEvent actionEvent3 = hoverStartEvent - action3; tool4.HoverStartEvent = actionEvent3; } } // Token: 0x06011109 RID: 69897 RVA: 0x004058F0 File Offset: 0x00403AF0 [Token(Token = "0x6011109")] [Address(RVA = "0x15A6A40", Offset = "0x15A5440", VA = "0x1815A6A40")] private void CJNIBFGDCCN() { Bow bow = this.Bow; int num = 0; if (bow != num) { AxisConstrainedRigidbodyPickup axisConstrainedRigidbodyPickup = this.k__BackingField; int num2 = 0; if (axisConstrainedRigidbodyPickup != num2) { Bow bow2 = this.Bow; AxisConstrainedRigidbodyPickup axisConstrainedRigidbodyPickup2 = this.k__BackingField; RigidbodyEx rigidbodyEx = bow2._tool.rigidbodyEx; Vector3 vector; float z = vector.z; axisConstrainedRigidbodyPickup2.sphericalRestrictionCenter.z = z; } } } // Token: 0x0601110A RID: 69898 RVA: 0x00405960 File Offset: 0x00403B60 [Token(Token = "0x601110A")] [Address(RVA = "0x15A6B30", Offset = "0x15A5530", VA = "0x1815A6B30")] private void HAAIALDMMEL(Tool EGFEJGHDNAI) { Bow bow = this.Bow; if (bow.FireArrowOnStringPickupRelease) { bow.ReadyArrow(); } Action action = new Action(this.CJNIBFGDCCN); IDisposable disposable = this.Update(action); this.MBOJILKNFIL = disposable; } // Token: 0x0601110B RID: 69899 RVA: 0x004059A8 File Offset: 0x00403BA8 [Token(Token = "0x601110B")] [Address(RVA = "0x15A6BC0", Offset = "0x15A55C0", VA = "0x1815A6BC0")] private void OIOCPLEKMEK(Tool EGFEJGHDNAI) { AxisConstrainedRigidbodyPickup axisConstrainedRigidbodyPickup = this.k__BackingField; int num = 0; if (axisConstrainedRigidbodyPickup != num) { this.Bow.OnStringRelease(); } IDisposable mbojilknfil = this.MBOJILKNFIL; this.SafeStopSchedule(mbojilknfil); Action action = new Action(base.NNPBKEIEMHL); Coroutine coroutine = this.EndOfFrameRoutine(action); } // Token: 0x0601110C RID: 69900 RVA: 0x00405A00 File Offset: 0x00403C00 [Token(Token = "0x601110C")] [Address(RVA = "0x15A68C0", Offset = "0x15A52C0", VA = "0x1815A68C0")] private void CCPHHDELIFF(Tool NBHJPDBHDHB) { Tool tool = this.Bow._tool; if (tool.k__BackingField) { Player k__BackingField = tool.k__BackingField; Player k__BackingField = Player.k__BackingField; if (k__BackingField == k__BackingField) { PlayerHand.PLLIKAOIPHP type = tool.k__BackingField.type; PlayerHand playerHand; playerHand.Vibrate(50, 1f); return; } } } // Token: 0x0601110D RID: 69901 RVA: 0x00405A5C File Offset: 0x00403C5C [Token(Token = "0x601110D")] [Address(RVA = "0x15A7010", Offset = "0x15A5A10", VA = "0x1815A7010")] public BowString() { } // Token: 0x0400B56D RID: 46445 [global::Cpp2IlInjected.FieldOffset(Offset = "0x68")] [Token(Token = "0x400B56D")] [NonSerialized] public Bow Bow; // Token: 0x0400B56F RID: 46447 [global::Cpp2IlInjected.FieldOffset(Offset = "0x78")] [Token(Token = "0x400B56F")] private IDisposable MBOJILKNFIL; } }