scripts
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.Pools;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities
|
||||
{
|
||||
// Token: 0x02002695 RID: 9877
|
||||
[Token(Token = "0x2002695")]
|
||||
[StructLayout(3)]
|
||||
public class PooledDamageParticles : PooledParticle
|
||||
{
|
||||
// Token: 0x0601123C RID: 70204 RVA: 0x0040BEC0 File Offset: 0x0040A0C0
|
||||
[Token(Token = "0x601123C")]
|
||||
[Address(RVA = "0x1109780", Offset = "0x1108180", VA = "0x181109780")]
|
||||
public static PooledDamageParticles TryPlayDamageParticlePrefab(PooledDamageParticles CFAPNBBHEKB, float JJHKPNCCEFB, Vector3 DDHPAFKBMON, Quaternion IGPENJBJADK)
|
||||
{
|
||||
int num = 0;
|
||||
if (CFAPNBBHEKB != num)
|
||||
{
|
||||
PooledDamageParticles pooledDamageParticles = GlobalPool.ONCPNMDGGKG.Acquire<PooledDamageParticles>(CFAPNBBHEKB);
|
||||
}
|
||||
int num2 = 0;
|
||||
int num3 = 0;
|
||||
if (num2 != num3)
|
||||
{
|
||||
float z = DDHPAFKBMON.z;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0601123D RID: 70205 RVA: 0x0040BF04 File Offset: 0x0040A104
|
||||
[Token(Token = "0x601123D")]
|
||||
[Address(RVA = "0x11094F0", Offset = "0x1107EF0", VA = "0x1811094F0")]
|
||||
public void SetDamageValue(float JJHKPNCCEFB)
|
||||
{
|
||||
float num = Mathf.InverseLerp(this.minDamageValue, JJHKPNCCEFB, JJHKPNCCEFB);
|
||||
ParticleSystem particleSystem = this.impactParticleSystem;
|
||||
int num2 = 0;
|
||||
if (particleSystem != num2)
|
||||
{
|
||||
ParticleSystem.MainModule main = this.impactParticleSystem.main;
|
||||
AnimationCurve curveMax = Mathf.Lerp(num, JJHKPNCCEFB, JJHKPNCCEFB).m_CurveMax;
|
||||
throw new MissingMethodException();
|
||||
}
|
||||
ParticleSystem particleSystem2 = this.sprayParticleSystem;
|
||||
int num3 = 0;
|
||||
if (particleSystem2 != num3)
|
||||
{
|
||||
ParticleSystem.MainModule main2 = this.sprayParticleSystem.main;
|
||||
int num4 = Mathf.RoundToInt(Mathf.Lerp(num, JJHKPNCCEFB, JJHKPNCCEFB));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601123E RID: 70206 RVA: 0x0040BFC4 File Offset: 0x0040A1C4
|
||||
[Token(Token = "0x601123E")]
|
||||
[Address(RVA = "0x11098E0", Offset = "0x11082E0", VA = "0x1811098E0")]
|
||||
public PooledDamageParticles()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400B65A RID: 46682
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x400B65A")]
|
||||
[SerializeField]
|
||||
private float minDamageValue = 1f;
|
||||
|
||||
// Token: 0x0400B65B RID: 46683
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x84")]
|
||||
[Token(Token = "0x400B65B")]
|
||||
[SerializeField]
|
||||
private float maxDamageValue = 30f;
|
||||
|
||||
// Token: 0x0400B65C RID: 46684
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x400B65C")]
|
||||
[SerializeField]
|
||||
[Header("Impact Particle System")]
|
||||
private ParticleSystem impactParticleSystem;
|
||||
|
||||
// Token: 0x0400B65D RID: 46685
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x400B65D")]
|
||||
[SerializeField]
|
||||
[Header("Impact Particle Start Size")]
|
||||
private float impactStartSizeMinDamage;
|
||||
|
||||
// Token: 0x0400B65E RID: 46686
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x400B65E")]
|
||||
[SerializeField]
|
||||
private float impactStartSizeMaxDamage;
|
||||
|
||||
// Token: 0x0400B65F RID: 46687
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x400B65F")]
|
||||
[SerializeField]
|
||||
[Header("Impact Particle Start Lifetime")]
|
||||
private float impactStartLifetimeMinDamage;
|
||||
|
||||
// Token: 0x0400B660 RID: 46688
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x9C")]
|
||||
[Token(Token = "0x400B660")]
|
||||
[SerializeField]
|
||||
private float impactStartLifetimeMaxDamage;
|
||||
|
||||
// Token: 0x0400B661 RID: 46689
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x400B661")]
|
||||
[SerializeField]
|
||||
[Header("Spray Particle System")]
|
||||
private ParticleSystem sprayParticleSystem;
|
||||
|
||||
// Token: 0x0400B662 RID: 46690
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x400B662")]
|
||||
[SerializeField]
|
||||
[Header("Spray Particle Burst Count")]
|
||||
private int sprayBurstCountMinDamage;
|
||||
|
||||
// Token: 0x0400B663 RID: 46691
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xAC")]
|
||||
[Token(Token = "0x400B663")]
|
||||
[SerializeField]
|
||||
private int sprayBurstCountMaxDamage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user