Files
2026-04-10 22:50:51 +02:00

130 lines
5.7 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Core.Combat
{
// Token: 0x020033C6 RID: 13254
[Token(Token = "0x20033C6")]
public class LiquidBullet : Bullet
{
// Token: 0x060171AA RID: 94634 RVA: 0x005663C8 File Offset: 0x005645C8
[Token(Token = "0x60171AA")]
[Address(RVA = "0x1436B70", Offset = "0x1435970", VA = "0x181436B70", Slot = "6")]
protected override void Awake()
{
base.Awake();
float colliderRadius = this.colliderRadius;
this.PLJDIBDMKLA = colliderRadius;
}
// Token: 0x060171AB RID: 94635 RVA: 0x005663EC File Offset: 0x005645EC
[Token(Token = "0x60171AB")]
[Address(RVA = "0x1436C80", Offset = "0x1435A80", VA = "0x181436C80", Slot = "7")]
protected override void Update()
{
/*
An exception occurred when decompiling this method (060171AB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RecRoom.Core.Combat.LiquidBullet::Update()
---> 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: 0x060171AC RID: 94636 RVA: 0x00566494 File Offset: 0x00564694
[Token(Token = "0x60171AC")]
[Address(RVA = "0x1436B90", Offset = "0x1435990", VA = "0x181436B90", Slot = "5")]
public override void Fire(Vector3 DDHPAFKBMON, Quaternion IGPENJBJADK, Vector3 POMGIDPAKLH, float AMDHEHCKCBD, float LFDFFDCJAAD, List<Rigidbody> FLCLMCFOIID, CBMIKIMPBKF.CBAAHCJHLFD KDLEENOBACM, float ELLJGJFPHDA, byte LLCGGEENDAJ, bool EMCBJAIFHCB = false, float PJMKGHOKNGB = 1f)
{
float z = POMGIDPAKLH.z;
float magnitude = POMGIDPAKLH.magnitude;
this.ELPJBEBLKCO = magnitude;
}
// Token: 0x060171AD RID: 94637 RVA: 0x005664B8 File Offset: 0x005646B8
[Token(Token = "0x60171AD")]
[Address(RVA = "0x1436EB0", Offset = "0x1435CB0", VA = "0x181436EB0")]
public LiquidBullet()
{
this.colliderRadius = 0.033f;
this.applyGravity = true;
this.gravityRatio = 1f;
this.destroyOnLayers = (IIBIOPCKHGK)((ulong)362036736L);
this.minWallSlopeDegrees = 30f;
this.maxReflections = (int)((ulong)1L);
this.restitution = 1f;
this.selfDestructTime = 10f;
this.selfDestructDistance = -1f;
this.maxFadeDistanceFromCamera = 16f;
this.minFadeDistanceFromCamera = 1f;
this.maxFadeDistanceAlpha = 0.05f;
this.minFadeDistanceAlpha = 0.75f;
this.maxStretchDistance = 10f;
this.explicitStretchFinishTime = 0.5f;
this.LDOBIHIGAHN = (int)((ulong)4294967295L);
CBMIKIMPBKF cbmikimpbkf = new CBMIKIMPBKF();
this.NLDMCLMNEAL = cbmikimpbkf;
float z = Vector3.zero.z;
this.NHAOMEMANJA.z = z;
this.LFDFFDCJAAD = 1f;
this.PJMKGHOKNGB = 1f;
float z2 = Vector3.zero.z;
this.GIBLHGKMJDJ.z = z2;
base..ctor();
}
// Token: 0x0400F09A RID: 61594
[FieldOffset(Offset = "0x1F8")]
[Token(Token = "0x400F09A")]
[SerializeField]
[Header("Liquid Bullet")]
private float stretchAtMaxSpeed = 2.5f;
// Token: 0x0400F09B RID: 61595
[FieldOffset(Offset = "0x1FC")]
[Token(Token = "0x400F09B")]
[SerializeField]
private float minStretch = 0.5f;
// Token: 0x0400F09C RID: 61596
[FieldOffset(Offset = "0x200")]
[Token(Token = "0x400F09C")]
[SerializeField]
private AnimationCurve sqrSpeedToMaxStretch;
// Token: 0x0400F09D RID: 61597
[FieldOffset(Offset = "0x208")]
[Token(Token = "0x400F09D")]
[SerializeField]
private AnimationCurve sqrSpeedToWidth;
// Token: 0x0400F09E RID: 61598
[FieldOffset(Offset = "0x210")]
[Token(Token = "0x400F09E")]
[SerializeField]
private AnimationCurve lifetimeToBulletSize;
// Token: 0x0400F09F RID: 61599
[FieldOffset(Offset = "0x218")]
[Token(Token = "0x400F09F")]
private float ELPJBEBLKCO;
// Token: 0x0400F0A0 RID: 61600
[FieldOffset(Offset = "0x21C")]
[Token(Token = "0x400F0A0")]
private float PLJDIBDMKLA;
}
}