Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

129 lines
3.9 KiB
C#

using System;
using Cpp2IlInjected;
using RecRoom.Core.Pools;
using UnityEngine;
namespace RecRoom.Activities
{
// Token: 0x02002C69 RID: 11369
[Token(Token = "0x2002C69")]
public class PooledDamageParticles : PooledParticle
{
// Token: 0x06012FF9 RID: 77817 RVA: 0x0045749C File Offset: 0x0045569C
[Token(Token = "0x6012FF9")]
[Address(RVA = "0x16307F0", Offset = "0x162F7F0", VA = "0x1816307F0")]
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: 0x06012FFA RID: 77818 RVA: 0x004574E0 File Offset: 0x004556E0
[Token(Token = "0x6012FFA")]
[Address(RVA = "0x1630560", Offset = "0x162F560", VA = "0x181630560")]
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;
float num3 = this.impactStartLifetimeMaxDamage;
float num4 = Mathf.Lerp(this.impactStartLifetimeMinDamage, num3, JJHKPNCCEFB);
AnimationCurve curveMax2 = num4.m_CurveMax;
}
ParticleSystem particleSystem2 = this.sprayParticleSystem;
int num5 = 0;
if (particleSystem2 != num5)
{
ParticleSystem.MainModule main2 = this.sprayParticleSystem.main;
int num6 = Mathf.RoundToInt(Mathf.Lerp(num, JJHKPNCCEFB, JJHKPNCCEFB));
}
}
// Token: 0x06012FFB RID: 77819 RVA: 0x00457594 File Offset: 0x00455794
[Token(Token = "0x6012FFB")]
[Address(RVA = "0x1630950", Offset = "0x162F950", VA = "0x181630950")]
public PooledDamageParticles()
{
}
// Token: 0x0400C3C8 RID: 50120
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x400C3C8")]
[SerializeField]
private float minDamageValue = 1f;
// Token: 0x0400C3C9 RID: 50121
[FieldOffset(Offset = "0x8C")]
[Token(Token = "0x400C3C9")]
[SerializeField]
private float maxDamageValue = 30f;
// Token: 0x0400C3CA RID: 50122
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x400C3CA")]
[SerializeField]
[Header("Impact Particle System")]
private ParticleSystem impactParticleSystem;
// Token: 0x0400C3CB RID: 50123
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x400C3CB")]
[SerializeField]
[Header("Impact Particle Start Size")]
private float impactStartSizeMinDamage;
// Token: 0x0400C3CC RID: 50124
[FieldOffset(Offset = "0x9C")]
[Token(Token = "0x400C3CC")]
[SerializeField]
private float impactStartSizeMaxDamage;
// Token: 0x0400C3CD RID: 50125
[FieldOffset(Offset = "0xA0")]
[Token(Token = "0x400C3CD")]
[SerializeField]
[Header("Impact Particle Start Lifetime")]
private float impactStartLifetimeMinDamage;
// Token: 0x0400C3CE RID: 50126
[FieldOffset(Offset = "0xA4")]
[Token(Token = "0x400C3CE")]
[SerializeField]
private float impactStartLifetimeMaxDamage;
// Token: 0x0400C3CF RID: 50127
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x400C3CF")]
[SerializeField]
[Header("Spray Particle System")]
private ParticleSystem sprayParticleSystem;
// Token: 0x0400C3D0 RID: 50128
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x400C3D0")]
[SerializeField]
[Header("Spray Particle Burst Count")]
private int sprayBurstCountMinDamage;
// Token: 0x0400C3D1 RID: 50129
[FieldOffset(Offset = "0xB4")]
[Token(Token = "0x400C3D1")]
[SerializeField]
private int sprayBurstCountMaxDamage;
}
}