131 lines
5.9 KiB
C#
131 lines
5.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Combat
|
|
{
|
|
// Token: 0x02002DFD RID: 11773
|
|
[Token(Token = "0x2002DFD")]
|
|
[StructLayout(3)]
|
|
public class LiquidBullet : Bullet
|
|
{
|
|
// Token: 0x0601503A RID: 86074 RVA: 0x0050B34C File Offset: 0x0050954C
|
|
[Token(Token = "0x601503A")]
|
|
[Address(RVA = "0x185BF10", Offset = "0x185A910", VA = "0x18185BF10", Slot = "6")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
float colliderRadius = this.colliderRadius;
|
|
this.PLJDIBDMKLA = colliderRadius;
|
|
}
|
|
|
|
// Token: 0x0601503B RID: 86075 RVA: 0x0050B370 File Offset: 0x00509570
|
|
[Token(Token = "0x601503B")]
|
|
[Address(RVA = "0x185C020", Offset = "0x185AA20", VA = "0x18185C020", Slot = "7")]
|
|
protected override void Update()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0601503B)
|
|
|
|
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 327
|
|
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: 0x0601503C RID: 86076 RVA: 0x0050B400 File Offset: 0x00509600
|
|
[Token(Token = "0x601503C")]
|
|
[Address(RVA = "0x185BF30", Offset = "0x185A930", VA = "0x18185BF30", 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;
|
|
this.ELPJBEBLKCO = (float)0;
|
|
}
|
|
|
|
// Token: 0x0601503D RID: 86077 RVA: 0x0050B41C File Offset: 0x0050961C
|
|
[Token(Token = "0x601503D")]
|
|
[Address(RVA = "0x185C250", Offset = "0x185AC50", VA = "0x18185C250")]
|
|
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: 0x0400E004 RID: 57348
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1F8")]
|
|
[Token(Token = "0x400E004")]
|
|
[SerializeField]
|
|
[Header("Liquid Bullet")]
|
|
private float stretchAtMaxSpeed = 2.5f;
|
|
|
|
// Token: 0x0400E005 RID: 57349
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1FC")]
|
|
[Token(Token = "0x400E005")]
|
|
[SerializeField]
|
|
private float minStretch = 0.5f;
|
|
|
|
// Token: 0x0400E006 RID: 57350
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x200")]
|
|
[Token(Token = "0x400E006")]
|
|
[SerializeField]
|
|
private AnimationCurve sqrSpeedToMaxStretch;
|
|
|
|
// Token: 0x0400E007 RID: 57351
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x208")]
|
|
[Token(Token = "0x400E007")]
|
|
[SerializeField]
|
|
private AnimationCurve sqrSpeedToWidth;
|
|
|
|
// Token: 0x0400E008 RID: 57352
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x210")]
|
|
[Token(Token = "0x400E008")]
|
|
[SerializeField]
|
|
private AnimationCurve lifetimeToBulletSize;
|
|
|
|
// Token: 0x0400E009 RID: 57353
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x218")]
|
|
[Token(Token = "0x400E009")]
|
|
private float ELPJBEBLKCO;
|
|
|
|
// Token: 0x0400E00A RID: 57354
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x21C")]
|
|
[Token(Token = "0x400E00A")]
|
|
private float PLJDIBDMKLA;
|
|
}
|
|
}
|