692 lines
27 KiB
C#
692 lines
27 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom.Core;
|
|
using RecRoom.DataStructures;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.BattleRoyale
|
|
{
|
|
// Token: 0x020026D6 RID: 9942
|
|
[Token(Token = "0x20026D6")]
|
|
[StructLayout(3)]
|
|
public class BattleRoyaleGearBag : MonoBehaviourPun
|
|
{
|
|
// Token: 0x17002ED9 RID: 11993
|
|
// (get) Token: 0x0601143B RID: 70715 RVA: 0x00415534 File Offset: 0x00413734
|
|
[Token(Token = "0x17002ED9")]
|
|
private bool OCMLJDHFLBI
|
|
{
|
|
[Token(Token = "0x601143B")]
|
|
[Address(RVA = "0x130EB30", Offset = "0x130D530", VA = "0x18130EB30")]
|
|
get
|
|
{
|
|
Photon.Realtime.Player fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog == 0)
|
|
{
|
|
}
|
|
return fbfbjfnhnog.IsLocal;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002EDA RID: 11994
|
|
// (get) Token: 0x0601143C RID: 70716 RVA: 0x00415554 File Offset: 0x00413754
|
|
[Token(Token = "0x17002EDA")]
|
|
private Vector3 AEDBAOFJJEE
|
|
{
|
|
[Token(Token = "0x601143C")]
|
|
[Address(RVA = "0x130E710", Offset = "0x130D110", VA = "0x18130E710")]
|
|
get
|
|
{
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002EDB RID: 11995
|
|
// (get) Token: 0x0601143D RID: 70717 RVA: 0x0041556C File Offset: 0x0041376C
|
|
[Token(Token = "0x17002EDB")]
|
|
private Quaternion LAEFAGOJOLJ
|
|
{
|
|
[Token(Token = "0x601143D")]
|
|
[Address(RVA = "0x130DED0", Offset = "0x130C8D0", VA = "0x18130DED0")]
|
|
get
|
|
{
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002EDC RID: 11996
|
|
// (get) Token: 0x0601143E RID: 70718 RVA: 0x00415584 File Offset: 0x00413784
|
|
[Token(Token = "0x17002EDC")]
|
|
private bool CNHHCJJAIDJ
|
|
{
|
|
[Token(Token = "0x601143E")]
|
|
[Address(RVA = "0x130F510", Offset = "0x130DF10", VA = "0x18130F510")]
|
|
get
|
|
{
|
|
HKKOHFHADKK cmhgdpokgoa = this.CMHGDPOKGOA;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601143F RID: 70719 RVA: 0x004155A0 File Offset: 0x004137A0
|
|
[Token(Token = "0x601143F")]
|
|
[Address(RVA = "0x130CFE0", Offset = "0x130B9E0", VA = "0x18130CFE0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0601143F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Activities.BattleRoyale.BattleRoyaleGearBag::Awake()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2D2:
|
|
stloc:HKKOHFHADKK(var_49_2D7, newobj:HKKOHFHADKK(HKKOHFHADKK::.ctor))
|
|
stfld:HKKOHFHADKK(BattleRoyaleGearBag::CMHGDPOKGOA, ldloc:BattleRoyaleGearBag(this), ldloc:HKKOHFHADKK(var_49_2D7))
|
|
stloc:OKGCDFLPFOD(var_50_2ED, newobj:OKGCDFLPFOD(OKGCDFLPFOD::.ctor, ldloc:BattleRoyaleGearBag[exp:object](this), ldftn:method instance void *(uint16, uint16)[exp:native int](BattleRoyaleGearBag::HEKHJFHNEFA)))
|
|
stloc:int32(var_51_2F0, ldc.i4:int32(0))
|
|
stloc:int32(var_52_2F3, ldc.i4:int32(0))
|
|
call:void(CJNCFJKBDGI::JEPMLPCOGNM, ldloc:HKKOHFHADKK[exp:CJNCFJKBDGI](var_49_2D7), ldloc:int32[exp:uint16](var_51_2F0), ldloc:OKGCDFLPFOD(var_50_2ED), ldloc:int32[exp:OKGCDFLPFOD](var_52_2F3), ldloc:int32[exp:KNFAKJMALJE](var_0_01))
|
|
stloc:HKKOHFHADKK(var_53_309, ldfld:HKKOHFHADKK(BattleRoyaleGearBag::CMHGDPOKGOA, ldloc:BattleRoyaleGearBag(this)))
|
|
stloc:OKGCDFLPFOD(var_54_317, newobj:OKGCDFLPFOD(OKGCDFLPFOD::.ctor, ldloc:BattleRoyaleGearBag[exp:object](this), ldftn:method instance void *(uint16, uint16)[exp:native int](BattleRoyaleGearBag::GJGAGMBKDAD)))
|
|
stloc:HKKOHFHADKK(var_56_322, ldfld:HKKOHFHADKK(BattleRoyaleGearBag::CMHGDPOKGOA, ldloc:BattleRoyaleGearBag(this)))
|
|
stloc:int32(var_57_325, ldc.i4:int32(0))
|
|
call:void(HKKOHFHADKK::OFFLOPLJBBG, ldloc:HKKOHFHADKK(var_56_322), ldloc:int32[exp:uint16](var_57_325))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06011440 RID: 70720 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6011440")]
|
|
[Address(RVA = "0x130F560", Offset = "0x130DF60", VA = "0x18130F560")]
|
|
private void Start()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06011441 RID: 70721 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6011441")]
|
|
[Address(RVA = "0x130EB50", Offset = "0x130D550", VA = "0x18130EB50", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06011442 RID: 70722 RVA: 0x004158DC File Offset: 0x00413ADC
|
|
[Token(Token = "0x6011442")]
|
|
[Address(RVA = "0x130F1A0", Offset = "0x130DBA0", VA = "0x18130F1A0")]
|
|
private void OnDrawGizmos()
|
|
{
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array = this.bagSlotDescriptors;
|
|
if (array != 0)
|
|
{
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
Color blue = Color.blue;
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array2 = this.bagSlotDescriptors;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array3 = this.bagSlotDescriptors;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array4 = this.bagSlotDescriptors;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array5 = this.bagSlotDescriptors;
|
|
Vector3 vector4;
|
|
float z4 = vector4.z;
|
|
Vector3 vector5;
|
|
float z5 = vector5.z;
|
|
Vector3 vector6;
|
|
float z6 = vector6.z;
|
|
}
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array6 = this.bagSlotDescriptors;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011443 RID: 70723 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6011443")]
|
|
[Address(RVA = "0x130DE10", Offset = "0x130C810", VA = "0x18130DE10")]
|
|
public void DropAllEquipment()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06011444 RID: 70724 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6011444")]
|
|
[Address(RVA = "0x130E960", Offset = "0x130D360", VA = "0x18130E960")]
|
|
private Tool NGFFGDEPFAP(global::Player IEKDDPPNFPF, bool GEJJBENPHJG, Collider DMMDDFILJMK)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06011445 RID: 70725 RVA: 0x00415974 File Offset: 0x00413B74
|
|
[Token(Token = "0x6011445")]
|
|
[Address(RVA = "0x130DA80", Offset = "0x130C480", VA = "0x18130DA80")]
|
|
private void CBHLFMCNNGO(Tool EGFEJGHDNAI)
|
|
{
|
|
HKKOHFHADKK cmhgdpokgoa = this.CMHGDPOKGOA;
|
|
RecRoomAudioClip recRoomAudioClip = this.takeOffSFX;
|
|
Transform transform = base.transform;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
SFXAudioSource sfxaudioSource = AudioManager.Play3DSFX(recRoomAudioClip, transform, num2, num);
|
|
HKKOHFHADKK cmhgdpokgoa2 = this.CMHGDPOKGOA;
|
|
}
|
|
|
|
// Token: 0x06011446 RID: 70726 RVA: 0x004159B8 File Offset: 0x00413BB8
|
|
[Token(Token = "0x6011446")]
|
|
[Address(RVA = "0x130D730", Offset = "0x130C130", VA = "0x18130D730")]
|
|
private void BLKAKANNEJP(Tool EGFEJGHDNAI)
|
|
{
|
|
HKKOHFHADKK cmhgdpokgoa = this.CMHGDPOKGOA;
|
|
RecRoomAudioClip recRoomAudioClip = this.putOnSFX;
|
|
Transform transform = base.transform;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
SFXAudioSource sfxaudioSource = AudioManager.Play3DSFX(recRoomAudioClip, transform, num2, num);
|
|
HKKOHFHADKK cmhgdpokgoa2 = this.CMHGDPOKGOA;
|
|
int num3 = 0;
|
|
cmhgdpokgoa2.PIEOGAPMGIH((ushort)num3);
|
|
}
|
|
|
|
// Token: 0x06011447 RID: 70727 RVA: 0x00415A08 File Offset: 0x00413C08
|
|
[Token(Token = "0x6011447")]
|
|
[Address(RVA = "0x130E640", Offset = "0x130D040", VA = "0x18130E640")]
|
|
private void LBODGLNOABB(Tool EGFEJGHDNAI, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
Photon.Realtime.Player fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog != 0 && fbfbjfnhnog.IsLocal)
|
|
{
|
|
EGFEJGHDNAI.NFNOHGFMPEA = true;
|
|
if (!base.hasAuthority)
|
|
{
|
|
PhotonView photonView = base.photonView;
|
|
Photon.Realtime.Player fbfbjfnhnog2 = this.FBFBJFNHNOG;
|
|
photonView.TransferOwnership(fbfbjfnhnog2);
|
|
}
|
|
if (base.hasAuthority)
|
|
{
|
|
PlayerToolEquipSlots toolEquipSlots = this.MJFIFBHFJOC.toolEquipSlots;
|
|
PlayerToolEquipSlot shoulderSlot = toolEquipSlots.shoulderSlot;
|
|
int num = 0;
|
|
ulong num2;
|
|
bool flag = toolEquipSlots.TryEquipTool(EGFEJGHDNAI, num, shoulderSlot, num2 != 0UL);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011448 RID: 70728 RVA: 0x00415A84 File Offset: 0x00413C84
|
|
[Token(Token = "0x6011448")]
|
|
[Address(RVA = "0x130DC60", Offset = "0x130C660", VA = "0x18130DC60")]
|
|
private bool CNBOLGFAINK(Tool EGFEJGHDNAI, global::Player NHCEBNBEEBE, Vector3 JEDLNAEEMEN, bool GEJJBENPHJG)
|
|
{
|
|
if (this.FBFBJFNHNOG == (ulong)0L || NHCEBNBEEBE.DBAJDHGDPOL == this.FBFBJFNHNOG)
|
|
{
|
|
HKKOHFHADKK cmhgdpokgoa = this.CMHGDPOKGOA;
|
|
Tool tool = this.tool;
|
|
if (!(EGFEJGHDNAI == tool))
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011449 RID: 70729 RVA: 0x00415ACC File Offset: 0x00413CCC
|
|
[Token(Token = "0x6011449")]
|
|
[Address(RVA = "0x130D800", Offset = "0x130C200", VA = "0x18130D800")]
|
|
private bool BMPEACDIJHF(out Vector3 DDHPAFKBMON, out Quaternion ACMECNDDDNG)
|
|
{
|
|
global::Player mjfifbhfjoc = this.MJFIFBHFJOC;
|
|
int num = 0;
|
|
if (!(mjfifbhfjoc != num))
|
|
{
|
|
float z = Vector3.zero.z;
|
|
DDHPAFKBMON.z = z;
|
|
Quaternion identity = Quaternion.identity;
|
|
}
|
|
global::Player mjfifbhfjoc2 = this.MJFIFBHFJOC;
|
|
int num2 = 0;
|
|
if (!(mjfifbhfjoc2 != num2))
|
|
{
|
|
Transform transform = base.transform;
|
|
}
|
|
PlayerToolEquipSlot shoulderSlot = this.MJFIFBHFJOC.toolEquipSlots.shoulderSlot;
|
|
DDHPAFKBMON.z = (float)0;
|
|
global::Player mjfifbhfjoc3 = this.MJFIFBHFJOC;
|
|
int num3 = 0;
|
|
if (!(mjfifbhfjoc3 != num3))
|
|
{
|
|
Transform transform2 = base.transform;
|
|
}
|
|
PlayerToolEquipSlot shoulderSlot2 = this.MJFIFBHFJOC.toolEquipSlots.shoulderSlot;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0601144A RID: 70730 RVA: 0x00415B78 File Offset: 0x00413D78
|
|
[Token(Token = "0x601144A")]
|
|
[Address(RVA = "0x130DB50", Offset = "0x130C550", VA = "0x18130DB50")]
|
|
private bool CIELJOLDILK(Tool EGFEJGHDNAI, PlayerToolEquipSlot HCPBBFGIBAB)
|
|
{
|
|
Tool tool = this.tool;
|
|
if (!(EGFEJGHDNAI == tool))
|
|
{
|
|
HKKOHFHADKK cmhgdpokgoa = this.CMHGDPOKGOA;
|
|
BattleRoyaleGearBag.BNJFJOKIELL bnjfjokiell;
|
|
bnjfjokiell.System.IDisposable.Dispose();
|
|
bnjfjokiell.<>1__state = (int)((ulong)0L);
|
|
bnjfjokiell.<>4__this = this;
|
|
bnjfjokiell.tool = EGFEJGHDNAI;
|
|
Coroutine coroutine = base.StartCoroutine(bnjfjokiell);
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0601144B RID: 70731 RVA: 0x00415BCC File Offset: 0x00413DCC
|
|
[Token(Token = "0x601144B")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970")]
|
|
private bool DFFGKAJAFEJ(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601144C RID: 70732 RVA: 0x00415BDC File Offset: 0x00413DDC
|
|
[Token(Token = "0x601144C")]
|
|
[Address(RVA = "0x130DD50", Offset = "0x130C750", VA = "0x18130DD50")]
|
|
private void DKEJCDEMBOM(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
RecRoomAudioClip recRoomAudioClip = this.hipAttachSFX;
|
|
Transform transform = EGFEJGHDNAI.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x0601144D RID: 70733 RVA: 0x00415C04 File Offset: 0x00413E04
|
|
[Token(Token = "0x601144D")]
|
|
[Address(RVA = "0x130EA70", Offset = "0x130D470", VA = "0x18130EA70")]
|
|
private void NIBNPKFAEMG(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
RecRoomAudioClip recRoomAudioClip = this.hipDetachSFX;
|
|
Transform transform = EGFEJGHDNAI.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x0601144E RID: 70734 RVA: 0x00415C2C File Offset: 0x00413E2C
|
|
[Token(Token = "0x601144E")]
|
|
[Address(RVA = "0x130F9A0", Offset = "0x130E3A0", VA = "0x18130F9A0")]
|
|
public bool TryStoreToolInBag(Tool EGFEJGHDNAI)
|
|
{
|
|
int num = 0;
|
|
if (!(EGFEJGHDNAI == num) && !EGFEJGHDNAI.FNFNLDBILFE && EGFEJGHDNAI.IsValidAttach())
|
|
{
|
|
List<FNCLOCJLFDG> list = this.bagSlots;
|
|
int num2 = 0;
|
|
BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] array = this.bagSlotDescriptors;
|
|
num2++;
|
|
num2 += array;
|
|
OGNBCNBPFCC spawnableToolType = EGFEJGHDNAI.OGNBCNBPFCC;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
List<FNCLOCJLFDG> list2 = this.bagSlots;
|
|
bool flag2;
|
|
if (!flag2)
|
|
{
|
|
List<FNCLOCJLFDG> list3 = this.bagSlots;
|
|
bool flag3;
|
|
if (!flag3)
|
|
{
|
|
goto IL_74;
|
|
}
|
|
}
|
|
}
|
|
List<FNCLOCJLFDG> list4 = this.bagSlots;
|
|
num2++;
|
|
IL_74:
|
|
List<FNCLOCJLFDG> list5 = this.bagSlots;
|
|
bool flag4;
|
|
if (!flag4)
|
|
{
|
|
}
|
|
Tool ephlnfkjgnb = this.EPHLNFKJGNB;
|
|
int num3 = 0;
|
|
bool flag5 = ephlnfkjgnb == num3;
|
|
if (flag5)
|
|
{
|
|
this.EPHLNFKJGNB = EGFEJGHDNAI;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0601144F RID: 70735 RVA: 0x00415CE8 File Offset: 0x00413EE8
|
|
[Token(Token = "0x601144F")]
|
|
[Address(RVA = "0x130CF00", Offset = "0x130B900", VA = "0x18130CF00")]
|
|
private void APHKNDJGJHN(Tool NINJDJJANJC, FNCLOCJLFDG NBNHGMOPHOB)
|
|
{
|
|
RecRoomAudioClip[] array = this.modifyStoredToolSFX;
|
|
Transform transform = base.transform;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
int num3 = 0;
|
|
SFXAudioSource sfxaudioSource = AudioManager.PlayRandom3DSFX(array, transform, num3, num2 != 0, num);
|
|
Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.KAHAFODOEJE);
|
|
NINJDJJANJC.AddCustomPickupCondition(oglajafkbmn);
|
|
}
|
|
|
|
// Token: 0x06011450 RID: 70736 RVA: 0x00415D34 File Offset: 0x00413F34
|
|
[Token(Token = "0x6011450")]
|
|
[Address(RVA = "0x130E860", Offset = "0x130D260", VA = "0x18130E860")]
|
|
private void LJKEMFECDLC(Tool NJLAKHOJJNJ, FNCLOCJLFDG NBNHGMOPHOB)
|
|
{
|
|
RecRoomAudioClip[] array = this.modifyStoredToolSFX;
|
|
Transform transform = base.transform;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
int num3 = 0;
|
|
SFXAudioSource sfxaudioSource = AudioManager.PlayRandom3DSFX(array, transform, num3, num2 != 0, num);
|
|
Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.KAHAFODOEJE);
|
|
NJLAKHOJJNJ.RemoveCustomPickupCondition(oglajafkbmn);
|
|
this.tool.rigidbodyEx.unityRigidbody.ResetCenterOfMass();
|
|
}
|
|
|
|
// Token: 0x06011451 RID: 70737 RVA: 0x00415D94 File Offset: 0x00413F94
|
|
[Token(Token = "0x6011451")]
|
|
[Address(RVA = "0x130E530", Offset = "0x130CF30", VA = "0x18130E530")]
|
|
private bool KAHAFODOEJE(Tool EGFEJGHDNAI, global::Player NHCEBNBEEBE, Vector3 JEDLNAEEMEN, bool GEJJBENPHJG)
|
|
{
|
|
if (this.FBFBJFNHNOG == (ulong)0L || this.MJFIFBHFJOC != NHCEBNBEEBE)
|
|
{
|
|
}
|
|
if (this.MJFIFBHFJOC.BBHBBHEBCEO != LocalPlayerController.MIGPLDFLMHA.SCREEN)
|
|
{
|
|
PlayerToolEquipSlot shoulderSlot = this.MJFIFBHFJOC.toolEquipSlots.shoulderSlot;
|
|
float z = JEDLNAEEMEN.z;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06011452 RID: 70738 RVA: 0x00415DEC File Offset: 0x00413FEC
|
|
[Token(Token = "0x6011452")]
|
|
[Address(RVA = "0x130E060", Offset = "0x130CA60", VA = "0x18130E060")]
|
|
private void HEKHJFHNEFA(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
|
{
|
|
Collider collider = this.easyAccessCollider;
|
|
int num = 0;
|
|
if (collider != num)
|
|
{
|
|
bool inVRDisplayMode = SingletonMonoBehaviour.Instance.EBPFBFMJMBB;
|
|
GameObject gameObject = this.easyAccessCollider.gameObject;
|
|
Photon.Realtime.Player fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog == 0)
|
|
{
|
|
}
|
|
bool isLocal = fbfbjfnhnog.IsLocal;
|
|
gameObject.SetActive(isLocal);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011453 RID: 70739 RVA: 0x00415E48 File Offset: 0x00414048
|
|
[Token(Token = "0x6011453")]
|
|
[Address(RVA = "0x130DFB0", Offset = "0x130C9B0", VA = "0x18130DFB0")]
|
|
private void GJGAGMBKDAD(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
|
{
|
|
Photon.Realtime.Player fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog != 0 && fbfbjfnhnog.IsLocal)
|
|
{
|
|
Collider collider = this.easyAccessCollider;
|
|
int num = 0;
|
|
if (collider != num)
|
|
{
|
|
GameObject gameObject = this.easyAccessCollider.gameObject;
|
|
int num2 = 0;
|
|
gameObject.SetActive(num2 != 0);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011454 RID: 70740 RVA: 0x00415E9C File Offset: 0x0041409C
|
|
[Token(Token = "0x6011454")]
|
|
[Address(RVA = "0x130E7F0", Offset = "0x130D1F0", VA = "0x18130E7F0")]
|
|
private IEnumerator LHDMBKBOINL(Tool EGFEJGHDNAI)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06011454)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.Activities.BattleRoyale.BattleRoyaleGearBag::LHDMBKBOINL(Tool)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(BNJFJOKIELL::System.IDisposable.Dispose, ldloc:BNJFJOKIELL(var_0))
|
|
stfld:BattleRoyaleGearBag(BNJFJOKIELL::<>4__this, ldloc:BNJFJOKIELL(var_0), ldloc:BattleRoyaleGearBag(this))
|
|
stfld:int32(BNJFJOKIELL::<>1__state, ldloc:BNJFJOKIELL(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:Tool(BNJFJOKIELL::tool, ldloc:BNJFJOKIELL(var_0), ldloc:Tool(EGFEJGHDNAI))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06011455 RID: 70741 RVA: 0x00415EC8 File Offset: 0x004140C8
|
|
[Token(Token = "0x6011455")]
|
|
[Address(RVA = "0x130E140", Offset = "0x130CB40", VA = "0x18130E140")]
|
|
public static BattleRoyaleGearBag InstantiateForLocalPlayer(BattleRoyaleGearBag CFAPNBBHEKB)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if (CFAPNBBHEKB != num2)
|
|
{
|
|
string jadnmkhpfko = global::Player.JADNMKHPFKO;
|
|
BattleRoyaleGearBag.ALKGFHKHEPA.Clear();
|
|
BattleRoyaleGearBag.ALKGFHKHEPA = new Dictionary();
|
|
Dictionary<string, object> alkgfhkhepa = BattleRoyaleGearBag.ALKGFHKHEPA;
|
|
string nfgpflpbcbn = BattleRoyaleGearBag.NFGPFLPBCBN;
|
|
int actorNumber = PhotonNetwork.LocalPlayer.actorNumber;
|
|
alkgfhkhepa.Add(nfgpflpbcbn, actorNumber);
|
|
string name = CFAPNBBHEKB.name;
|
|
Dictionary<string, object> alkgfhkhepa2 = BattleRoyaleGearBag.ALKGFHKHEPA;
|
|
}
|
|
int num3 = 0;
|
|
if (num != num3)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011456 RID: 70742 RVA: 0x00415F48 File Offset: 0x00414148
|
|
[Token(Token = "0x6011456")]
|
|
[Address(RVA = "0x130FC80", Offset = "0x130E680", VA = "0x18130FC80")]
|
|
public BattleRoyaleGearBag()
|
|
{
|
|
List<FNCLOCJLFDG> list = new List();
|
|
this.bagSlots = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400B839 RID: 47161
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400B839")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400B83A RID: 47162
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400B83A")]
|
|
[SerializeField]
|
|
[Header("Settings")]
|
|
private Collider easyAccessCollider;
|
|
|
|
// Token: 0x0400B83B RID: 47163
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400B83B")]
|
|
[SerializeField]
|
|
[Header("Bag Slots")]
|
|
private BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] bagSlotDescriptors;
|
|
|
|
// Token: 0x0400B83C RID: 47164
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400B83C")]
|
|
[SerializeField]
|
|
[Header("Audio")]
|
|
private RecRoomAudioClip putOnSFX;
|
|
|
|
// Token: 0x0400B83D RID: 47165
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400B83D")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip takeOffSFX;
|
|
|
|
// Token: 0x0400B83E RID: 47166
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400B83E")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip hipAttachSFX;
|
|
|
|
// Token: 0x0400B83F RID: 47167
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400B83F")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip hipDetachSFX;
|
|
|
|
// Token: 0x0400B840 RID: 47168
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400B840")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip[] modifyStoredToolSFX;
|
|
|
|
// Token: 0x0400B841 RID: 47169
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400B841")]
|
|
private HKKOHFHADKK CMHGDPOKGOA;
|
|
|
|
// Token: 0x0400B842 RID: 47170
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400B842")]
|
|
private Photon.Realtime.Player FBFBJFNHNOG;
|
|
|
|
// Token: 0x0400B843 RID: 47171
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400B843")]
|
|
private global::Player MJFIFBHFJOC;
|
|
|
|
// Token: 0x0400B844 RID: 47172
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400B844")]
|
|
public List<FNCLOCJLFDG> bagSlots;
|
|
|
|
// Token: 0x0400B845 RID: 47173
|
|
[Token(Token = "0x400B845")]
|
|
private static Dictionary<string, object> ALKGFHKHEPA;
|
|
|
|
// Token: 0x0400B846 RID: 47174
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400B846")]
|
|
private Tool EPHLNFKJGNB;
|
|
|
|
// Token: 0x0400B847 RID: 47175
|
|
[Token(Token = "0x400B847")]
|
|
private static readonly string NFGPFLPBCBN = "PEB.WEARER_ID";
|
|
|
|
// Token: 0x0400B848 RID: 47176
|
|
[Token(Token = "0x400B848")]
|
|
private static readonly string IHEGGDCPIEH = "Purpose";
|
|
|
|
// Token: 0x020026D7 RID: 9943
|
|
[Token(Token = "0x20026D7")]
|
|
private enum DLADIMOEPGJ
|
|
{
|
|
// Token: 0x0400B84A RID: 47178
|
|
[Token(Token = "0x400B84A")]
|
|
ON_BACK,
|
|
// Token: 0x0400B84B RID: 47179
|
|
[Token(Token = "0x400B84B")]
|
|
NOT_ON_BACK
|
|
}
|
|
|
|
// Token: 0x020026D8 RID: 9944
|
|
[Token(Token = "0x20026D8")]
|
|
[Serializable]
|
|
private struct BattleRoyaleGearSlotDescriptor
|
|
{
|
|
// Token: 0x17002EDD RID: 11997
|
|
// (get) Token: 0x06011458 RID: 70744 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x17002EDD")]
|
|
public OGNBCNBPFCC[] SupportedEquipmentTypes
|
|
{
|
|
[Token(Token = "0x6011458")]
|
|
[Address(RVA = "0x22F4B0", Offset = "0x22E8B0", VA = "0x18022F4B0")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400B84C RID: 47180
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400B84C")]
|
|
[SerializeField]
|
|
public string Name;
|
|
|
|
// Token: 0x0400B84D RID: 47181
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x400B84D")]
|
|
[SerializeField]
|
|
public Transform SlotTransform;
|
|
|
|
// Token: 0x0400B84E RID: 47182
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B84E")]
|
|
[SerializeField]
|
|
[HELOBGLDDLH.KBCDAGDEHAO(false)]
|
|
public SerializedGuid[] SupportedEquipmentTypeIds;
|
|
|
|
// Token: 0x0400B84F RID: 47183
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B84F")]
|
|
[NonSerialized]
|
|
private OGNBCNBPFCC[] _supportedEquipmentTypes;
|
|
}
|
|
}
|
|
}
|