707 lines
26 KiB
C#
707 lines
26 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using RecRoom.Core;
|
|
using RecRoom.DataStructures;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.BattleRoyale
|
|
{
|
|
// Token: 0x02002CB4 RID: 11444
|
|
[Token(Token = "0x2002CB4")]
|
|
public class BattleRoyaleGearBag : MonoBehaviourPun
|
|
{
|
|
// Token: 0x17003556 RID: 13654
|
|
// (get) Token: 0x06013242 RID: 78402 RVA: 0x00461D34 File Offset: 0x0045FF34
|
|
[Token(Token = "0x17003556")]
|
|
private bool OCMLJDHFLBI
|
|
{
|
|
[Token(Token = "0x6013242")]
|
|
[Address(RVA = "0x1376990", Offset = "0x1375990", VA = "0x181376990")]
|
|
get
|
|
{
|
|
AGAJMBPABDL fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog == 0)
|
|
{
|
|
}
|
|
return fbfbjfnhnog.DMKCIEPGGAB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003557 RID: 13655
|
|
// (get) Token: 0x06013243 RID: 78403 RVA: 0x00461D54 File Offset: 0x0045FF54
|
|
[Token(Token = "0x17003557")]
|
|
private Vector3 AEDBAOFJJEE
|
|
{
|
|
[Token(Token = "0x6013243")]
|
|
[Address(RVA = "0x1376570", Offset = "0x1375570", VA = "0x181376570")]
|
|
get
|
|
{
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
}
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003558 RID: 13656
|
|
// (get) Token: 0x06013244 RID: 78404 RVA: 0x00461D78 File Offset: 0x0045FF78
|
|
[Token(Token = "0x17003558")]
|
|
private Quaternion LAEFAGOJOLJ
|
|
{
|
|
[Token(Token = "0x6013244")]
|
|
[Address(RVA = "0x1375D30", Offset = "0x1374D30", VA = "0x181375D30")]
|
|
get
|
|
{
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003559 RID: 13657
|
|
// (get) Token: 0x06013245 RID: 78405 RVA: 0x00461D90 File Offset: 0x0045FF90
|
|
[Token(Token = "0x17003559")]
|
|
private bool CNHHCJJAIDJ
|
|
{
|
|
[Token(Token = "0x6013245")]
|
|
[Address(RVA = "0x1377370", Offset = "0x1376370", VA = "0x181377370")]
|
|
get
|
|
{
|
|
HKKOHFHADKK cmhgdpokgoa = this.CMHGDPOKGOA;
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013246 RID: 78406 RVA: 0x00461DAC File Offset: 0x0045FFAC
|
|
[Token(Token = "0x6013246")]
|
|
[Address(RVA = "0x1374E40", Offset = "0x1373E40", VA = "0x181374E40", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06013246)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Activities.BattleRoyale.BattleRoyaleGearBag::Awake()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2DD:
|
|
stloc:HKKOHFHADKK(var_50_2E2, newobj:HKKOHFHADKK(HKKOHFHADKK::.ctor))
|
|
stfld:HKKOHFHADKK(BattleRoyaleGearBag::CMHGDPOKGOA, ldloc:BattleRoyaleGearBag(this), ldloc:HKKOHFHADKK(var_50_2E2))
|
|
stloc:OKGCDFLPFOD(var_51_2F8, newobj:OKGCDFLPFOD(OKGCDFLPFOD::.ctor, ldloc:BattleRoyaleGearBag[exp:object](this), ldftn:method instance void *(uint16, uint16)[exp:native int](BattleRoyaleGearBag::HEKHJFHNEFA)))
|
|
stloc:int32(var_52_2FB, ldc.i4:int32(0))
|
|
stloc:int32(var_53_2FE, ldc.i4:int32(0))
|
|
call:void(CJNCFJKBDGI::JEPMLPCOGNM, ldloc:HKKOHFHADKK[exp:CJNCFJKBDGI](var_50_2E2), ldloc:int32[exp:uint16](var_52_2FB), ldloc:OKGCDFLPFOD(var_51_2F8), ldloc:int32[exp:OKGCDFLPFOD](var_53_2FE), ldloc:int32[exp:KNFAKJMALJE](var_0_01))
|
|
stloc:HKKOHFHADKK(var_54_314, ldfld:HKKOHFHADKK(BattleRoyaleGearBag::CMHGDPOKGOA, ldloc:BattleRoyaleGearBag(this)))
|
|
stloc:OKGCDFLPFOD(var_55_322, newobj:OKGCDFLPFOD(OKGCDFLPFOD::.ctor, ldloc:BattleRoyaleGearBag[exp:object](this), ldftn:method instance void *(uint16, uint16)[exp:native int](BattleRoyaleGearBag::GJGAGMBKDAD)))
|
|
stloc:HKKOHFHADKK(var_57_32D, ldfld:HKKOHFHADKK(BattleRoyaleGearBag::CMHGDPOKGOA, ldloc:BattleRoyaleGearBag(this)))
|
|
stloc:int32(var_58_330, ldc.i4:int32(0))
|
|
call:void(HKKOHFHADKK::OFFLOPLJBBG, ldloc:HKKOHFHADKK(var_57_32D), ldloc:int32[exp:uint16](var_58_330))
|
|
}
|
|
|
|
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: 0x06013247 RID: 78407 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6013247")]
|
|
[Address(RVA = "0x13773C0", Offset = "0x13763C0", VA = "0x1813773C0")]
|
|
private void Start()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06013248 RID: 78408 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6013248")]
|
|
[Address(RVA = "0x13769B0", Offset = "0x13759B0", VA = "0x1813769B0", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06013249 RID: 78409 RVA: 0x004620F4 File Offset: 0x004602F4
|
|
[Token(Token = "0x6013249")]
|
|
[Address(RVA = "0x1377000", Offset = "0x1376000", VA = "0x181377000")]
|
|
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: 0x0601324A RID: 78410 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601324A")]
|
|
[Address(RVA = "0x1375C70", Offset = "0x1374C70", VA = "0x181375C70")]
|
|
public void DropAllEquipment()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601324B RID: 78411 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x601324B")]
|
|
[Address(RVA = "0x13767C0", Offset = "0x13757C0", VA = "0x1813767C0")]
|
|
private Tool NGFFGDEPFAP(Player IEKDDPPNFPF, bool GEJJBENPHJG, Collider DMMDDFILJMK)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0601324C RID: 78412 RVA: 0x0046218C File Offset: 0x0046038C
|
|
[Token(Token = "0x601324C")]
|
|
[Address(RVA = "0x13758E0", Offset = "0x13748E0", VA = "0x1813758E0")]
|
|
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: 0x0601324D RID: 78413 RVA: 0x004621D0 File Offset: 0x004603D0
|
|
[Token(Token = "0x601324D")]
|
|
[Address(RVA = "0x1375590", Offset = "0x1374590", VA = "0x181375590")]
|
|
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: 0x0601324E RID: 78414 RVA: 0x00462220 File Offset: 0x00460420
|
|
[Token(Token = "0x601324E")]
|
|
[Address(RVA = "0x13764A0", Offset = "0x13754A0", VA = "0x1813764A0")]
|
|
private void LBODGLNOABB(Tool EGFEJGHDNAI, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
AGAJMBPABDL fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog != 0 && fbfbjfnhnog.DMKCIEPGGAB)
|
|
{
|
|
EGFEJGHDNAI.NFNOHGFMPEA = true;
|
|
if (!base.OGIBLNIIHDK)
|
|
{
|
|
PhotonView photonView = base.JDHMIOJKLCK;
|
|
AGAJMBPABDL fbfbjfnhnog2 = this.FBFBJFNHNOG;
|
|
photonView.TransferOwnership(fbfbjfnhnog2);
|
|
}
|
|
if (base.OGIBLNIIHDK)
|
|
{
|
|
PlayerToolEquipSlots toolEquipSlots = this.MJFIFBHFJOC.toolEquipSlots;
|
|
PlayerToolEquipSlot shoulderSlot = toolEquipSlots.shoulderSlot;
|
|
int num = 0;
|
|
ulong num2;
|
|
bool flag = toolEquipSlots.TryEquipTool(EGFEJGHDNAI, num, shoulderSlot, num2 != 0UL);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601324F RID: 78415 RVA: 0x0046229C File Offset: 0x0046049C
|
|
[Token(Token = "0x601324F")]
|
|
[Address(RVA = "0x1375AC0", Offset = "0x1374AC0", VA = "0x181375AC0")]
|
|
private bool CNBOLGFAINK(Tool EGFEJGHDNAI, 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: 0x06013250 RID: 78416 RVA: 0x004622E4 File Offset: 0x004604E4
|
|
[Token(Token = "0x6013250")]
|
|
[Address(RVA = "0x1375660", Offset = "0x1374660", VA = "0x181375660")]
|
|
private bool BMPEACDIJHF(out Vector3 DDHPAFKBMON, out Quaternion ACMECNDDDNG)
|
|
{
|
|
Player mjfifbhfjoc = this.MJFIFBHFJOC;
|
|
int num = 0;
|
|
if (!(mjfifbhfjoc != num))
|
|
{
|
|
float z = Vector3.zero.z;
|
|
DDHPAFKBMON.z = z;
|
|
Quaternion identity = Quaternion.identity;
|
|
}
|
|
Player mjfifbhfjoc2 = this.MJFIFBHFJOC;
|
|
int num2 = 0;
|
|
if (!(mjfifbhfjoc2 != num2))
|
|
{
|
|
Transform transform = base.transform;
|
|
}
|
|
PlayerToolEquipSlot shoulderSlot = this.MJFIFBHFJOC.toolEquipSlots.shoulderSlot;
|
|
Vector3 vector;
|
|
float z2 = vector.z;
|
|
DDHPAFKBMON.z = z2;
|
|
Player mjfifbhfjoc3 = this.MJFIFBHFJOC;
|
|
int num3 = 0;
|
|
if (!(mjfifbhfjoc3 != num3))
|
|
{
|
|
Transform transform2 = base.transform;
|
|
}
|
|
PlayerToolEquipSlot shoulderSlot2 = this.MJFIFBHFJOC.toolEquipSlots.shoulderSlot;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06013251 RID: 78417 RVA: 0x00462398 File Offset: 0x00460598
|
|
[Token(Token = "0x6013251")]
|
|
[Address(RVA = "0x13759B0", Offset = "0x13749B0", VA = "0x1813759B0")]
|
|
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: 0x06013252 RID: 78418 RVA: 0x004623EC File Offset: 0x004605EC
|
|
[Token(Token = "0x6013252")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
|
private bool DFFGKAJAFEJ(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013253 RID: 78419 RVA: 0x004623FC File Offset: 0x004605FC
|
|
[Token(Token = "0x6013253")]
|
|
[Address(RVA = "0x1375BB0", Offset = "0x1374BB0", VA = "0x181375BB0")]
|
|
private void DKEJCDEMBOM(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
RecRoomAudioClip recRoomAudioClip = this.hipAttachSFX;
|
|
Transform transform = EGFEJGHDNAI.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x06013254 RID: 78420 RVA: 0x00462424 File Offset: 0x00460624
|
|
[Token(Token = "0x6013254")]
|
|
[Address(RVA = "0x13768D0", Offset = "0x13758D0", VA = "0x1813768D0")]
|
|
private void NIBNPKFAEMG(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
RecRoomAudioClip recRoomAudioClip = this.hipDetachSFX;
|
|
Transform transform = EGFEJGHDNAI.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x06013255 RID: 78421 RVA: 0x0046244C File Offset: 0x0046064C
|
|
[Token(Token = "0x6013255")]
|
|
[Address(RVA = "0x1377800", Offset = "0x1376800", VA = "0x181377800")]
|
|
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: 0x06013256 RID: 78422 RVA: 0x00462508 File Offset: 0x00460708
|
|
[Token(Token = "0x6013256")]
|
|
[Address(RVA = "0x1374D60", Offset = "0x1373D60", VA = "0x181374D60")]
|
|
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: 0x06013257 RID: 78423 RVA: 0x00462554 File Offset: 0x00460754
|
|
[Token(Token = "0x6013257")]
|
|
[Address(RVA = "0x13766C0", Offset = "0x13756C0", VA = "0x1813766C0")]
|
|
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: 0x06013258 RID: 78424 RVA: 0x004625B4 File Offset: 0x004607B4
|
|
[Token(Token = "0x6013258")]
|
|
[Address(RVA = "0x1376390", Offset = "0x1375390", VA = "0x181376390")]
|
|
private bool KAHAFODOEJE(Tool EGFEJGHDNAI, 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: 0x06013259 RID: 78425 RVA: 0x0046260C File Offset: 0x0046080C
|
|
[Token(Token = "0x6013259")]
|
|
[Address(RVA = "0x1375EC0", Offset = "0x1374EC0", VA = "0x181375EC0")]
|
|
private void HEKHJFHNEFA(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
|
{
|
|
Collider collider = this.easyAccessCollider;
|
|
int num = 0;
|
|
if (collider != num)
|
|
{
|
|
bool inVRDisplayMode = SingletonMonoBehaviour.ONCPNMDGGKG.EBPFBFMJMBB;
|
|
GameObject gameObject = this.easyAccessCollider.gameObject;
|
|
AGAJMBPABDL fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog == 0)
|
|
{
|
|
}
|
|
bool dmkciepggab = fbfbjfnhnog.DMKCIEPGGAB;
|
|
gameObject.SetActive(dmkciepggab);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601325A RID: 78426 RVA: 0x00462668 File Offset: 0x00460868
|
|
[Token(Token = "0x601325A")]
|
|
[Address(RVA = "0x1375E10", Offset = "0x1374E10", VA = "0x181375E10")]
|
|
private void GJGAGMBKDAD(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
|
{
|
|
AGAJMBPABDL fbfbjfnhnog = this.FBFBJFNHNOG;
|
|
if (fbfbjfnhnog != 0 && fbfbjfnhnog.DMKCIEPGGAB)
|
|
{
|
|
Collider collider = this.easyAccessCollider;
|
|
int num = 0;
|
|
if (collider != num)
|
|
{
|
|
GameObject gameObject = this.easyAccessCollider.gameObject;
|
|
int num2 = 0;
|
|
gameObject.SetActive(num2 != 0);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601325B RID: 78427 RVA: 0x004626BC File Offset: 0x004608BC
|
|
[Token(Token = "0x601325B")]
|
|
[Address(RVA = "0x1376650", Offset = "0x1375650", VA = "0x181376650")]
|
|
private IEnumerator LHDMBKBOINL(Tool EGFEJGHDNAI)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0601325B)
|
|
|
|
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: 0x0601325C RID: 78428 RVA: 0x004626E8 File Offset: 0x004608E8
|
|
[Token(Token = "0x601325C")]
|
|
[Address(RVA = "0x1375FA0", Offset = "0x1374FA0", VA = "0x181375FA0")]
|
|
public static BattleRoyaleGearBag InstantiateForLocalPlayer(BattleRoyaleGearBag CFAPNBBHEKB)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if (CFAPNBBHEKB != num2)
|
|
{
|
|
MFBGLIHGCGO<Killzone> localPlayerEnteredKillzoneEvent = Player.LocalPlayerEnteredKillzoneEvent;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
BattleRoyaleGearBag.ALKGFHKHEPA.Clear();
|
|
BattleRoyaleGearBag.ALKGFHKHEPA = new Dictionary();
|
|
Dictionary<string, object> alkgfhkhepa = BattleRoyaleGearBag.ALKGFHKHEPA;
|
|
int inpoaaaoahi = KKPBCOOONNK.MDMMDPEKICF.INPOAAAOAHI;
|
|
throw new NullReferenceException();
|
|
}
|
|
int num3 = 0;
|
|
if (num != num3)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0601325D RID: 78429 RVA: 0x00462768 File Offset: 0x00460968
|
|
[Token(Token = "0x601325D")]
|
|
[Address(RVA = "0x1377AE0", Offset = "0x1376AE0", VA = "0x181377AE0")]
|
|
public BattleRoyaleGearBag()
|
|
{
|
|
List<FNCLOCJLFDG> list = new List();
|
|
this.bagSlots = list;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400C5C3 RID: 50627
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400C5C3")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400C5C4 RID: 50628
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400C5C4")]
|
|
[SerializeField]
|
|
[Header("Settings")]
|
|
private Collider easyAccessCollider;
|
|
|
|
// Token: 0x0400C5C5 RID: 50629
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400C5C5")]
|
|
[SerializeField]
|
|
[Header("Bag Slots")]
|
|
private BattleRoyaleGearBag.BattleRoyaleGearSlotDescriptor[] bagSlotDescriptors;
|
|
|
|
// Token: 0x0400C5C6 RID: 50630
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400C5C6")]
|
|
[SerializeField]
|
|
[Header("Audio")]
|
|
private RecRoomAudioClip putOnSFX;
|
|
|
|
// Token: 0x0400C5C7 RID: 50631
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400C5C7")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip takeOffSFX;
|
|
|
|
// Token: 0x0400C5C8 RID: 50632
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400C5C8")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip hipAttachSFX;
|
|
|
|
// Token: 0x0400C5C9 RID: 50633
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400C5C9")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip hipDetachSFX;
|
|
|
|
// Token: 0x0400C5CA RID: 50634
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400C5CA")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip[] modifyStoredToolSFX;
|
|
|
|
// Token: 0x0400C5CB RID: 50635
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400C5CB")]
|
|
private HKKOHFHADKK CMHGDPOKGOA;
|
|
|
|
// Token: 0x0400C5CC RID: 50636
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400C5CC")]
|
|
private AGAJMBPABDL FBFBJFNHNOG;
|
|
|
|
// Token: 0x0400C5CD RID: 50637
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400C5CD")]
|
|
private Player MJFIFBHFJOC;
|
|
|
|
// Token: 0x0400C5CE RID: 50638
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400C5CE")]
|
|
public List<FNCLOCJLFDG> bagSlots;
|
|
|
|
// Token: 0x0400C5CF RID: 50639
|
|
[Token(Token = "0x400C5CF")]
|
|
private static Dictionary<string, object> ALKGFHKHEPA;
|
|
|
|
// Token: 0x0400C5D0 RID: 50640
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400C5D0")]
|
|
private Tool EPHLNFKJGNB;
|
|
|
|
// Token: 0x0400C5D1 RID: 50641
|
|
[Token(Token = "0x400C5D1")]
|
|
private static readonly string NFGPFLPBCBN = "PEB.WEARER_ID";
|
|
|
|
// Token: 0x0400C5D2 RID: 50642
|
|
[Token(Token = "0x400C5D2")]
|
|
private static readonly string IHEGGDCPIEH = "Purpose";
|
|
|
|
// Token: 0x02002CB5 RID: 11445
|
|
[Token(Token = "0x2002CB5")]
|
|
private enum DLADIMOEPGJ
|
|
{
|
|
// Token: 0x0400C5D4 RID: 50644
|
|
[Token(Token = "0x400C5D4")]
|
|
ON_BACK,
|
|
// Token: 0x0400C5D5 RID: 50645
|
|
[Token(Token = "0x400C5D5")]
|
|
NOT_ON_BACK
|
|
}
|
|
|
|
// Token: 0x02002CB6 RID: 11446
|
|
[Token(Token = "0x2002CB6")]
|
|
[Serializable]
|
|
private struct BattleRoyaleGearSlotDescriptor
|
|
{
|
|
// Token: 0x1700355A RID: 13658
|
|
// (get) Token: 0x0601325F RID: 78431 RVA: 0x004627AC File Offset: 0x004609AC
|
|
[Token(Token = "0x1700355A")]
|
|
public OGNBCNBPFCC[] SupportedEquipmentTypes
|
|
{
|
|
[Token(Token = "0x601325F")]
|
|
[Address(RVA = "0x137A9B0", Offset = "0x13799B0", VA = "0x18137A9B0")]
|
|
get
|
|
{
|
|
OGNBCNBPFCC[] supportedEquipmentTypes = this._supportedEquipmentTypes;
|
|
if (supportedEquipmentTypes == 0)
|
|
{
|
|
SerializedGuid[] supportedEquipmentTypeIds = this.SupportedEquipmentTypeIds;
|
|
if (supportedEquipmentTypeIds != 0)
|
|
{
|
|
int num;
|
|
Func<SerializedGuid, OGNBCNBPFCC> func = new Func(num.CCFEJLNMDLG);
|
|
num = 0;
|
|
OGNBCNBPFCC[] array = Enumerable.ToArray<OGNBCNBPFCC>(Enumerable.Select<SerializedGuid, OGNBCNBPFCC>(supportedEquipmentTypeIds, func));
|
|
this._supportedEquipmentTypes = array;
|
|
return array;
|
|
}
|
|
}
|
|
return supportedEquipmentTypes;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400C5D6 RID: 50646
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400C5D6")]
|
|
[SerializeField]
|
|
public string Name;
|
|
|
|
// Token: 0x0400C5D7 RID: 50647
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x400C5D7")]
|
|
[SerializeField]
|
|
public Transform SlotTransform;
|
|
|
|
// Token: 0x0400C5D8 RID: 50648
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400C5D8")]
|
|
[SerializeField]
|
|
[HELOBGLDDLH.KBCDAGDEHAO(false)]
|
|
public SerializedGuid[] SupportedEquipmentTypeIds;
|
|
|
|
// Token: 0x0400C5D9 RID: 50649
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C5D9")]
|
|
[NonSerialized]
|
|
private OGNBCNBPFCC[] _supportedEquipmentTypes;
|
|
}
|
|
}
|
|
}
|