using System; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.Activities.Bowling { // Token: 0x02002C5F RID: 11359 [Token(Token = "0x2002C5F")] public class BowlingBall : Ball { // Token: 0x060133A0 RID: 78752 RVA: 0x00475E74 File Offset: 0x00474074 [Token(Token = "0x60133A0")] [Address(RVA = "0xB1A3E0", Offset = "0xB191E0", VA = "0x180B1A3E0", Slot = "13")] protected override void Awake() { base.Awake(); SphereCollider componentInChildren = base.GetComponentInChildren(); this.GLPOLGOBLAA = componentInChildren; float dynamicFriction = componentInChildren.material.dynamicFriction; Tool k__BackingField = this.k__BackingField; this.MGOCCEJMMNF = dynamicFriction; RigidbodyEx rigidbodyEx = k__BackingField.rigidbodyEx; Vector3 vector; float z = vector.z; Vector3 vector2; float z2 = vector2.z; Rigidbody unityRigidbody = this.k__BackingField.rigidbodyEx.unityRigidbody; float maxDepenetrationVelocity = this.MaxDepenetrationVelocity; unityRigidbody.maxDepenetrationVelocity = maxDepenetrationVelocity; Tool k__BackingField2 = this.k__BackingField; Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.LPLIIBBAAOI); k__BackingField2.AddCustomPickupCondition(oglajafkbmn); Tool k__BackingField3 = this.k__BackingField; EAHPNACBLDD postResetEvent = k__BackingField3.PostResetEvent; Action action = new Action(this.APBEFBBOMDJ); EAHPNACBLDD eahpnacbldd = EAHPNACBLDD.BPJDFPACLMK(postResetEvent, action); k__BackingField3.PostResetEvent = eahpnacbldd; BGLEMLAJOAN bglemlajoan = new BGLEMLAJOAN(this.k__BackingField); this.PMCDIJOGEIM = bglemlajoan; } // Token: 0x060133A1 RID: 78753 RVA: 0x00475F58 File Offset: 0x00474158 [Token(Token = "0x60133A1")] [Address(RVA = "0xB1A3B0", Offset = "0xB191B0", VA = "0x180B1A3B0")] private void APBEFBBOMDJ(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ) { NBHJPDBHDHB.rigidbodyEx.WakeUp(); } // Token: 0x060133A2 RID: 78754 RVA: 0x00475F78 File Offset: 0x00474178 [Token(Token = "0x60133A2")] [Address(RVA = "0xB1A710", Offset = "0xB19510", VA = "0x180B1A710")] private bool LPLIIBBAAOI(Tool NBHJPDBHDHB, Player NHCEBNBEEBE, Vector3 JEDLNAEEMEN, bool GEJJBENPHJG) { Player owner = NBHJPDBHDHB.BHNPNHMILIF; if (NHCEBNBEEBE == owner) { return true; } BGLEMLAJOAN pmcdijogeim = this.PMCDIJOGEIM; if (pmcdijogeim == 0) { } return !pmcdijogeim.LFGCFEBCOEP; } // Token: 0x060133A3 RID: 78755 RVA: 0x00475FB4 File Offset: 0x004741B4 [Token(Token = "0x60133A3")] [Address(RVA = "0xB1AC10", Offset = "0xB19A10", VA = "0x180B1AC10")] public void Start() { Tool k__BackingField = this.k__BackingField; int num = 0; if (k__BackingField != num) { Tool k__BackingField2 = this.k__BackingField; MFBGLIHGCGO postReleaseEvent = k__BackingField2.PostReleaseEvent; Action action = new Action(this.OGHAJAIGNJC); MFBGLIHGCGO mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postReleaseEvent, action); k__BackingField2.PostReleaseEvent = mfbglihgcgo; } RecRoomAudioClip recRoomAudioClip = this.rumble; Transform transform = base.transform; int num2 = 0; int num3 = 0; SFXAudioSource sfxaudioSource = AudioManager.StartLooping3DSFX(recRoomAudioClip, transform, num3, num2); this.HIIIDBLPEAL = sfxaudioSource; AudioSource audioSource = sfxaudioSource._audioSource; int num4 = 0; audioSource.volume = (float)num4; Action action2 = new Action(this.GAJIJLPDHNI); IDisposable disposable = ADIFCODGAML.FOFJADGKNJF(this, action2); } // Token: 0x060133A4 RID: 78756 RVA: 0x00476064 File Offset: 0x00474264 [Token(Token = "0x60133A4")] [Address(RVA = "0xB1A7E0", Offset = "0xB195E0", VA = "0x180B1A7E0")] private void OGHAJAIGNJC(Tool NBHJPDBHDHB) { /* An exception occurred when decompiling this method (060133A4) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Activities.Bowling.BowlingBall::OGHAJAIGNJC(Tool) ---> System.ArgumentOutOfRangeException: length ('-1') must be a non-negative value. (Parameter 'length') Actual value was -1. at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName) at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length) at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 337 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 117 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: 0x060133A5 RID: 78757 RVA: 0x004760DC File Offset: 0x004742DC [Token(Token = "0x60133A5")] [Address(RVA = "0xB1A620", Offset = "0xB19420", VA = "0x180B1A620")] private void GAJIJLPDHNI(float POGAEJIEPIM) { SFXAudioSource hiiidblpeal = this.HIIIDBLPEAL; if (!this.NMKBFJBJFAP) { AudioSource audioSource = hiiidblpeal._audioSource; int num = 0; audioSource.volume = (float)num; return; } AudioSource audioSource2 = hiiidblpeal._audioSource; Tool k__BackingField = this.k__BackingField; AnimationCurve animationCurve = this.rumbleVolumeBySpeedSquared; RigidbodyEx rigidbodyEx = k__BackingField.rigidbodyEx; Vector3 vector; float z = vector.z; float num2 = animationCurve.Evaluate(POGAEJIEPIM); audioSource2.volume = POGAEJIEPIM; this.NMKBFJBJFAP = false; } // Token: 0x060133A6 RID: 78758 RVA: 0x00476158 File Offset: 0x00474358 [Token(Token = "0x60133A6")] [Address(RVA = "0xB1A9A0", Offset = "0xB197A0", VA = "0x180B1A9A0")] private void OnCollisionStay(Collision GBJHLKOJGPB) { SphereCollider glpolgoblaa = this.GLPOLGOBLAA; this.NMKBFJBJFAP = true; PhysicMaterial material = glpolgoblaa.material; float dynamicFriction = this.GLPOLGOBLAA.material.dynamicFriction; float num = this.MGOCCEJMMNF; float num2 = Time.deltaTime; float lerpFrictionSpeed = this.LerpFrictionSpeed; num2 = dynamicFriction; num = Mathf.Lerp(num2, num, lerpFrictionSpeed); material.dynamicFriction = num; } // Token: 0x060133A7 RID: 78759 RVA: 0x004761C0 File Offset: 0x004743C0 [Token(Token = "0x60133A7")] [Address(RVA = "0xB1AAB0", Offset = "0xB198B0", VA = "0x180B1AAB0", Slot = "14")] protected override void OnDestroy() { base.OnDestroy(); if (this.HIIIDBLPEAL) { AudioManager.StopLoopingSFX(this.HIIIDBLPEAL); } Tool k__BackingField = this.k__BackingField; Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.LPLIIBBAAOI); k__BackingField.RemoveCustomPickupCondition(oglajafkbmn); Tool k__BackingField2 = this.k__BackingField; EAHPNACBLDD postResetEvent = k__BackingField2.PostResetEvent; Action action = new Action(this.APBEFBBOMDJ); EAHPNACBLDD eahpnacbldd = EAHPNACBLDD.GMNMHGMFGOL(postResetEvent, action); k__BackingField2.PostResetEvent = eahpnacbldd; this.PMCDIJOGEIM.Dispose(); } // Token: 0x060133A8 RID: 78760 RVA: 0x00476248 File Offset: 0x00474448 [Token(Token = "0x60133A8")] [Address(RVA = "0xB1AD80", Offset = "0xB19B80", VA = "0x180B1AD80")] public BowlingBall() { } // Token: 0x0400C830 RID: 51248 [FieldOffset(Offset = "0x48")] [Token(Token = "0x400C830")] public float AngularVelocityThrowMultiplier; // Token: 0x0400C831 RID: 51249 [FieldOffset(Offset = "0x4C")] [Token(Token = "0x400C831")] public float LerpFrictionSpeed; // Token: 0x0400C832 RID: 51250 [FieldOffset(Offset = "0x50")] [Token(Token = "0x400C832")] public float InertiaMultiplier = 1.5f; // Token: 0x0400C833 RID: 51251 [FieldOffset(Offset = "0x54")] [Token(Token = "0x400C833")] public float YUpVelocityScalar = 0.5f; // Token: 0x0400C834 RID: 51252 [FieldOffset(Offset = "0x58")] [Token(Token = "0x400C834")] public float MaxDepenetrationVelocity = 1f; // Token: 0x0400C835 RID: 51253 [FieldOffset(Offset = "0x60")] [Token(Token = "0x400C835")] [SerializeField] private AnimationCurve rumbleVolumeBySpeedSquared; // Token: 0x0400C836 RID: 51254 [FieldOffset(Offset = "0x68")] [Token(Token = "0x400C836")] [SerializeField] private RecRoomAudioClip rumble; // Token: 0x0400C837 RID: 51255 [FieldOffset(Offset = "0x70")] [Token(Token = "0x400C837")] private SFXAudioSource HIIIDBLPEAL; // Token: 0x0400C838 RID: 51256 [FieldOffset(Offset = "0x78")] [Token(Token = "0x400C838")] private float MGOCCEJMMNF; // Token: 0x0400C839 RID: 51257 [FieldOffset(Offset = "0x7C")] [Token(Token = "0x400C839")] private bool NMKBFJBJFAP; // Token: 0x0400C83A RID: 51258 [FieldOffset(Offset = "0x80")] [Token(Token = "0x400C83A")] private SphereCollider GLPOLGOBLAA; // Token: 0x0400C83B RID: 51259 [FieldOffset(Offset = "0x88")] [Token(Token = "0x400C83B")] private BGLEMLAJOAN PMCDIJOGEIM; } }