using System; using System.Runtime.InteropServices; using Cpp2IlInjected; using Photon.Pun; using RecRoom.Core; using RecRoom.Core.AI; using RecRoom.Core.Combat; using UnityEngine; namespace RecRoom { // Token: 0x020021B4 RID: 8628 [Token(Token = "0x20021B4")] public class AutomaticHolsteringTool : MonoBehaviourPun { // Token: 0x170022B5 RID: 8885 // (get) Token: 0x0600DA6B RID: 55915 RVA: 0x003237DC File Offset: 0x003219DC [Token(Token = "0x170022B5")] public Tool PBBJCLJPFMI { [Token(Token = "0x600DA6B")] [Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")] get { return this._tool; } } // Token: 0x170022B6 RID: 8886 // (get) Token: 0x0600DA6C RID: 55916 RVA: 0x003237F0 File Offset: 0x003219F0 // (set) Token: 0x0600DA6D RID: 55917 RVA: 0x00323820 File Offset: 0x00321A20 [Token(Token = "0x170022B6")] public AGAJMBPABDL HLENGKNMKIM { [Token(Token = "0x600DA6C")] [Address(RVA = "0x14EE1E0", Offset = "0x14ED1E0", VA = "0x1814EE1E0")] get { AGAJMBPABDL agajmbpabdl = KKPBCOOONNK.MDMMDPEKICF; int num = this.GKKFJOBILAH.IAHDANBDAAM(); return agajmbpabdl.IAHDANBDAAM(num); } [Token(Token = "0x600DA6D")] [Address(RVA = "0x14EE270", Offset = "0x14ED270", VA = "0x1814EE270")] set { KLLMCPFPIIE gkkfjobilah = this.GKKFJOBILAH; if (value != 0) { } } } // Token: 0x0600DA6E RID: 55918 RVA: 0x00323840 File Offset: 0x00321A40 [Token(Token = "0x600DA6E")] [Address(RVA = "0x14ED180", Offset = "0x14EC180", VA = "0x1814ED180", Slot = "13")] protected override void Awake() { base..ctor(); Action action = new Action(this.FNDBHCDBPHO); int num; KLLMCPFPIIE kllmcpfpiie = new KLLMCPFPIIE(this, "POID", -1, (OHOEENCHJJE)num, action, num); num = 0; Tool tool = this._tool; this.GKKFJOBILAH = kllmcpfpiie; MFBGLIHGCGO postPickupEvent = tool.PostPickupEvent; Action action2 = new Action(this.MADAMADCJNN); MFBGLIHGCGO mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postPickupEvent, action2); tool.PostPickupEvent = mfbglihgcgo; Tool tool2 = this._tool; EAHPNACBLDD postResetEvent = tool2.PostResetEvent; Action action3 = new Action(this.APBEFBBOMDJ); EAHPNACBLDD eahpnacbldd = EAHPNACBLDD.BPJDFPACLMK(postResetEvent, action3); tool2.PostResetEvent = eahpnacbldd; Tool tool3 = this._tool; MFBGLIHGCGO postAttachEvent = tool3.PostAttachEvent; Action action4 = new Action(this.PBGOLBKNDOD); EAHPNACBLDD eahpnacbldd2; tool3.PostAttachEvent = eahpnacbldd2; MFBGLIHGCGO hphoojldkkm = KKPBCOOONNK.HPHOOJLDKKM; Action action5 = new Action(this.OnPhotonPlayerDisconnected); EAHPNACBLDD eahpnacbldd3; KKPBCOOONNK.HPHOOJLDKKM = eahpnacbldd3; Tool tool4 = this._tool; tool4.AllowedToTransferOwnershipOnCollision = false; int num2 = 0; if (tool4 != num2) { GameCombatManager.ODCIMPCGPKE odcimpcgpke = new GameCombatManager.ODCIMPCGPKE(this.BFGBPFACPPB); GameCombatManager.HOKOCNGFDAO hokocngfdao = new GameCombatManager.HOKOCNGFDAO(this.IAHEDALKPBI); GameCombatManager.PKJNMGICNJK pkjnmgicnjk = new GameCombatManager.PKJNMGICNJK(this.IDFEEFAMOOI); GameCombatManager.MGBBCMDIIIJ mgbbcmdiiij = new GameCombatManager.MGBBCMDIIIJ(this.JBAMACNACDB); } } // Token: 0x0600DA6F RID: 55919 RVA: 0x00323980 File Offset: 0x00321B80 [Token(Token = "0x600DA6F")] [Address(RVA = "0x14ED620", Offset = "0x14EC620", VA = "0x1814ED620")] private void Start() { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; Tool tool = this._tool; bool flag = permanentOwnerPlayer != 0; tool.BEKODHBDOFG = flag; ToolPlayerAttractor toolPlayerAttractor = this.attractor; int num = 0; if (toolPlayerAttractor != num) { this.attractor.enabledOnReset = flag; } this._tool.k__BackingField.EnableCleanup("AutoHolsteringToolOwnerDown"); } // Token: 0x0600DA70 RID: 55920 RVA: 0x003239E8 File Offset: 0x00321BE8 [Token(Token = "0x600DA70")] [Address(RVA = "0x14EDCD0", Offset = "0x14ECCD0", VA = "0x1814EDCD0", Slot = "14")] protected override void OnDestroy() { Tool tool = this._tool; MFBGLIHGCGO postPickupEvent = tool.PostPickupEvent; Action action = new Action(this.MADAMADCJNN); MFBGLIHGCGO mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postPickupEvent, action); tool.PostPickupEvent = mfbglihgcgo; Tool tool2 = this._tool; EAHPNACBLDD postResetEvent = tool2.PostResetEvent; Action action2 = new Action(this.APBEFBBOMDJ); EAHPNACBLDD eahpnacbldd = EAHPNACBLDD.GMNMHGMFGOL(postResetEvent, action2); tool2.PostResetEvent = eahpnacbldd; Tool tool3 = this._tool; MFBGLIHGCGO postAttachEvent = tool3.PostAttachEvent; Action action3 = new Action(this.PBGOLBKNDOD); EAHPNACBLDD eahpnacbldd2; tool3.PostAttachEvent = eahpnacbldd2; MFBGLIHGCGO hphoojldkkm = KKPBCOOONNK.HPHOOJLDKKM; Action action4 = new Action(this.OnPhotonPlayerDisconnected); EAHPNACBLDD eahpnacbldd3; KKPBCOOONNK.HPHOOJLDKKM = eahpnacbldd3; bool flag; if (flag) { GameCombatManager.ODCIMPCGPKE odcimpcgpke = new GameCombatManager.ODCIMPCGPKE(this.BFGBPFACPPB); GameCombatManager.HOKOCNGFDAO hokocngfdao = new GameCombatManager.HOKOCNGFDAO(this.IAHEDALKPBI); GameCombatManager.PKJNMGICNJK pkjnmgicnjk = new GameCombatManager.PKJNMGICNJK(this.IDFEEFAMOOI); GameCombatManager.MGBBCMDIIIJ mgbbcmdiiij = new GameCombatManager.MGBBCMDIIIJ(this.JBAMACNACDB); } base.OnDestroy(); } // Token: 0x0600DA71 RID: 55921 RVA: 0x00323AE0 File Offset: 0x00321CE0 [Token(Token = "0x600DA71")] [Address(RVA = "0x14EDBD0", Offset = "0x14ECBD0", VA = "0x1814EDBD0")] private void MADAMADCJNN(Tool EGFEJGHDNAI) { Player k__BackingField = EGFEJGHDNAI.k__BackingField; int num = 0; if (k__BackingField != num) { Player k__BackingField2 = EGFEJGHDNAI.k__BackingField; AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (base.OGIBLNIIHDK) { if (permanentOwnerPlayer != 0) { AGAJMBPABDL photonPlayer = EGFEJGHDNAI.k__BackingField.DBAJDHGDPOL; if (permanentOwnerPlayer == photonPlayer) { return; } } AGAJMBPABDL photonPlayer2 = EGFEJGHDNAI.k__BackingField.DBAJDHGDPOL; this.HLENGKNMKIM = photonPlayer2; } } } // Token: 0x0600DA72 RID: 55922 RVA: 0x00323B48 File Offset: 0x00321D48 [Token(Token = "0x600DA72")] [Address(RVA = "0x14ED0E0", Offset = "0x14EC0E0", VA = "0x1814ED0E0")] private void APBEFBBOMDJ(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ) { if (base.OGIBLNIIHDK) { KLLMCPFPIIE gkkfjobilah = this.GKKFJOBILAH; return; } } // Token: 0x0600DA73 RID: 55923 RVA: 0x00323B90 File Offset: 0x00321D90 [Token(Token = "0x600DA73")] [Address(RVA = "0x14EE080", Offset = "0x14ED080", VA = "0x1814EE080")] private void PBGOLBKNDOD(Tool EGFEJGHDNAI) { if (EGFEJGHDNAI.k__BackingField) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; Player k__BackingField = EGFEJGHDNAI.k__BackingField; int num = 0; if (k__BackingField != 0) { AGAJMBPABDL photonPlayer = k__BackingField.DBAJDHGDPOL; } if (permanentOwnerPlayer == 0) { this.HLENGKNMKIM = num; if (num == 0) { return; } } Player player; int length = player.toolEquipSlots.k__BackingField.Length; PlayerToolEquipSlot playerToolEquipSlot; if (!(playerToolEquipSlot.EFEKNEEGDIP == EGFEJGHDNAI)) { } this.EDKECKOGGDD = playerToolEquipSlot; throw new NullReferenceException(); } } // Token: 0x0600DA74 RID: 55924 RVA: 0x00323C04 File Offset: 0x00321E04 [Token(Token = "0x600DA74")] [Address(RVA = "0x14ED780", Offset = "0x14EC780", VA = "0x1814ED780")] private void IIJIFOMGKOI([Optional] PlayerHand IDPDJONLGAK) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (permanentOwnerPlayer != 0 && this._tool.OGIBLNIIHDK) { Player player = permanentOwnerPlayer.GPOMCJICJIH(); PlayerToolEquipSlot edkeckoggdd = this.EDKECKOGGDD; int num = 0; bool flag = edkeckoggdd == num; int num2 = 0; if (!flag) { PlayerToolEquipSlots toolEquipSlots = player.toolEquipSlots; Tool tool = this._tool; if (toolEquipSlots.CanEquipTool(tool, IDPDJONLGAK, edkeckoggdd)) { goto IL_171; } } bool flag4; if (this.equipSlotType == FNCLOCJLFDG.LDHGJHOFPKC.Hip) { PlayerHand dnbipbnnkjh = player.DNBIPBNNKJH; PlayerToolEquipSlots toolEquipSlots2 = player.toolEquipSlots; PlayerToolEquipSlots toolEquipSlots3; if (dnbipbnnkjh.type != (PlayerHand.PLLIKAOIPHP)num2) { PlayerToolEquipSlot rightHipSlot = toolEquipSlots2.rightHipSlot; Tool tool2 = this._tool; bool flag2 = toolEquipSlots2.CanEquipTool(tool2, IDPDJONLGAK, rightHipSlot); toolEquipSlots3 = player.toolEquipSlots; if (!flag2) { PlayerToolEquipSlot leftHipSlot = toolEquipSlots3.leftHipSlot; Tool tool3 = this._tool; if (!toolEquipSlots3.CanEquipTool(tool3, IDPDJONLGAK, leftHipSlot)) { goto IL_171; } PlayerToolEquipSlots toolEquipSlots4 = player.toolEquipSlots; } } PlayerToolEquipSlot leftHipSlot2 = toolEquipSlots3.leftHipSlot; Tool tool4 = this._tool; bool flag3 = toolEquipSlots3.CanEquipTool(tool4, IDPDJONLGAK, leftHipSlot2); PlayerToolEquipSlots toolEquipSlots5 = player.toolEquipSlots; if (!flag3) { PlayerToolEquipSlot rightHipSlot2 = toolEquipSlots5.rightHipSlot; Tool tool5 = this._tool; flag4 = toolEquipSlots5.CanEquipTool(tool5, IDPDJONLGAK, rightHipSlot2); if (!flag4) { goto IL_171; } PlayerToolEquipSlots toolEquipSlots6 = player.toolEquipSlots; } } PlayerToolEquipSlot shoulderSlot2; if (flag4) { PlayerToolEquipSlots toolEquipSlots7 = player.toolEquipSlots; PlayerToolEquipSlot shoulderSlot = toolEquipSlots7.shoulderSlot; Tool tool6 = this._tool; if (toolEquipSlots7.CanEquipTool(tool6, IDPDJONLGAK, shoulderSlot)) { shoulderSlot2 = player.toolEquipSlots.shoulderSlot; } } IL_171: int num3 = 0; if (shoulderSlot2 != num3) { throw new NullReferenceException(); } if (base.OGIBLNIIHDK) { KLLMCPFPIIE gkkfjobilah = this.GKKFJOBILAH; } } } // Token: 0x0600DA75 RID: 55925 RVA: 0x00323DA8 File Offset: 0x00321FA8 [Token(Token = "0x600DA75")] [Address(RVA = "0x14EE070", Offset = "0x14ED070", VA = "0x1814EE070")] private void OnPhotonPlayerDisconnected(AGAJMBPABDL AIBMDIENGJA) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; } // Token: 0x0600DA76 RID: 55926 RVA: 0x00323DBC File Offset: 0x00321FBC [Token(Token = "0x600DA76")] [Address(RVA = "0x14ED620", Offset = "0x14EC620", VA = "0x1814ED620")] private void FNDBHCDBPHO() { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; Tool tool = this._tool; bool flag = permanentOwnerPlayer != 0; tool.BEKODHBDOFG = flag; ToolPlayerAttractor toolPlayerAttractor = this.attractor; int num = 0; if (toolPlayerAttractor != num) { this.attractor.enabledOnReset = flag; } this._tool.k__BackingField.EnableCleanup("AutoHolsteringToolOwnerDown"); } // Token: 0x0600DA77 RID: 55927 RVA: 0x00323E24 File Offset: 0x00322024 [Token(Token = "0x600DA77")] [Address(RVA = "0x14ED5A0", Offset = "0x14EC5A0", VA = "0x1814ED5A0")] private void BFGBPFACPPB(AGAJMBPABDL LJGOHLFADDN, AGAJMBPABDL HMEIODIHDCL, Weapon GDIGKHINJCG, Player.GAHEJKDCLLE OAEAKADENEB, Vector3 BEOPNIAIJOM, Vector3 OKDCENHKDIP, int JJHKPNCCEFB, GameCombatManager.IGHLGLDPACI LCJBLMKOCLB) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (permanentOwnerPlayer != 0 && permanentOwnerPlayer == HMEIODIHDCL) { this._tool.k__BackingField.DisableCleanup("AutoHolsteringToolOwnerDown"); } } // Token: 0x0600DA78 RID: 55928 RVA: 0x00323E5C File Offset: 0x0032205C [Token(Token = "0x600DA78")] [Address(RVA = "0x14ED5A0", Offset = "0x14EC5A0", VA = "0x1814ED5A0")] private void IAHEDALKPBI(Enemy LJGOHLFADDN, AGAJMBPABDL HMEIODIHDCL, Player.GAHEJKDCLLE OAEAKADENEB, Vector3 BEOPNIAIJOM, GameCombatManager.IGHLGLDPACI LCJBLMKOCLB) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (permanentOwnerPlayer != 0 && permanentOwnerPlayer == HMEIODIHDCL) { this._tool.k__BackingField.DisableCleanup("AutoHolsteringToolOwnerDown"); } } // Token: 0x0600DA79 RID: 55929 RVA: 0x00323E94 File Offset: 0x00322094 [Token(Token = "0x600DA79")] [Address(RVA = "0x14ED700", Offset = "0x14EC700", VA = "0x1814ED700")] private void IDFEEFAMOOI(AGAJMBPABDL HMEIODIHDCL, Player.GAHEJKDCLLE OAEAKADENEB, Vector3 BEOPNIAIJOM, GameCombatManager.IGHLGLDPACI LCJBLMKOCLB) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (permanentOwnerPlayer != 0 && permanentOwnerPlayer == HMEIODIHDCL) { this._tool.k__BackingField.DisableCleanup("AutoHolsteringToolOwnerDown"); } } // Token: 0x0600DA7A RID: 55930 RVA: 0x00323ECC File Offset: 0x003220CC [Token(Token = "0x600DA7A")] [Address(RVA = "0x14EDA90", Offset = "0x14ECA90", VA = "0x1814EDA90")] private void JBAMACNACDB(AGAJMBPABDL LLFMHANMHIC, AGAJMBPABDL NLEOIMBAFFL, Vector3 OMFJFJDAAEO) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (permanentOwnerPlayer != 0 && permanentOwnerPlayer == LLFMHANMHIC) { this._tool.k__BackingField.EnableCleanup("AutoHolsteringToolOwnerDown"); } } // Token: 0x0600DA7B RID: 55931 RVA: 0x00323F04 File Offset: 0x00322104 [Token(Token = "0x600DA7B")] [Address(RVA = "0x14EDB10", Offset = "0x14ECB10", VA = "0x1814EDB10")] private void KNELBCFKALN(AGAJMBPABDL IEKDDPPNFPF, bool CFICOGKHLAE) { AGAJMBPABDL permanentOwnerPlayer = this.HLENGKNMKIM; if (permanentOwnerPlayer != 0 && permanentOwnerPlayer == IEKDDPPNFPF) { Tool tool = this._tool; if (CFICOGKHLAE) { return; } tool.k__BackingField.DisableCleanup("AutoHolsteringToolOwnerDown"); } } // Token: 0x0600DA7C RID: 55932 RVA: 0x00323F44 File Offset: 0x00322144 [Token(Token = "0x600DA7C")] [Address(RVA = "0x8E9790", Offset = "0x8E8790", VA = "0x1808E9790")] public AutomaticHolsteringTool() { } // Token: 0x04008B73 RID: 35699 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4008B73")] [SerializeField] private FNCLOCJLFDG.LDHGJHOFPKC equipSlotType; // Token: 0x04008B74 RID: 35700 [Token(Token = "0x4008B74")] private const string INIENPIPAEH = "AutoHolsteringToolOwnerDown"; // Token: 0x04008B75 RID: 35701 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x4008B75")] [SerializeField] [NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)] private Tool _tool; // Token: 0x04008B76 RID: 35702 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x4008B76")] [SerializeField] [OAGJHJAIMMP(FHBJCBPFODN.Self, false, false, false)] private ToolPlayerAttractor attractor; // Token: 0x04008B77 RID: 35703 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x4008B77")] private KLLMCPFPIIE GKKFJOBILAH; // Token: 0x04008B78 RID: 35704 [global::Cpp2IlInjected.FieldOffset(Offset = "0x60")] [Token(Token = "0x4008B78")] private PlayerToolEquipSlot EDKECKOGGDD; } }