m
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.Combat;
|
||||
using RecRoom.Core.Pools;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
|
||||
// Token: 0x02000556 RID: 1366
|
||||
[Token(Token = "0x2000556")]
|
||||
public class AdjustWeaponForQualitySetting : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060029A8 RID: 10664 RVA: 0x000A91A8 File Offset: 0x000A73A8
|
||||
[Token(Token = "0x60029A8")]
|
||||
[Address(RVA = "0x15B43D0", Offset = "0x15B33D0", VA = "0x1815B43D0")]
|
||||
private void Start()
|
||||
{
|
||||
ImpactDecal impactDecalPrefab = this.weapon.impactDecalPrefab;
|
||||
this.LKPJNMGHMHM.ImpactDecalOverride = impactDecalPrefab;
|
||||
PooledParticle impactParticlePrefab = this.weapon.impactParticlePrefab;
|
||||
this.LKPJNMGHMHM.ImpactParticleOverride = impactParticlePrefab;
|
||||
EFEFMHJPJIJ efefmhjpjij;
|
||||
if (efefmhjpjij != 0)
|
||||
{
|
||||
this.GFAHHBOFMHP();
|
||||
Action<PPDOPHKNMCK> action = new Action(this.EHDNCHLIKMF);
|
||||
int num = 0;
|
||||
base.enabled = num != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060029A9 RID: 10665 RVA: 0x000A9214 File Offset: 0x000A7414
|
||||
[Token(Token = "0x60029A9")]
|
||||
[Address(RVA = "0x15B42B0", Offset = "0x15B32B0", VA = "0x1815B42B0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
Action<PPDOPHKNMCK> action = new Action(this.EHDNCHLIKMF);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060029AA RID: 10666 RVA: 0x000A9238 File Offset: 0x000A7438
|
||||
[Token(Token = "0x60029AA")]
|
||||
[Address(RVA = "0x15B4050", Offset = "0x15B3050", VA = "0x1815B4050")]
|
||||
private void EHDNCHLIKMF(PPDOPHKNMCK AOKDECDAEEG)
|
||||
{
|
||||
this.GFAHHBOFMHP();
|
||||
}
|
||||
|
||||
// Token: 0x060029AB RID: 10667 RVA: 0x000A924C File Offset: 0x000A744C
|
||||
[Token(Token = "0x60029AB")]
|
||||
[Address(RVA = "0x15B4060", Offset = "0x15B3060", VA = "0x1815B4060")]
|
||||
private void GFAHHBOFMHP()
|
||||
{
|
||||
AdjustWeaponForQualitySetting.WeaponSettings[] array = this.overrideSettings;
|
||||
if (array != 0)
|
||||
{
|
||||
int length = array.Length;
|
||||
int num = 0;
|
||||
if (num < length)
|
||||
{
|
||||
int length2 = array.Length;
|
||||
AdjustWeaponForQualitySetting.WeaponSettings weaponSettings;
|
||||
if ((ulong)((uint)(-1)) == (ulong)(-1L) || weaponSettings < "{il2cpp array field local3->}")
|
||||
{
|
||||
}
|
||||
num++;
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
this.weapon.impactDecalPrefab = num;
|
||||
AdjustWeaponForQualitySetting.WeaponSettings[] array2 = this.overrideSettings;
|
||||
this.weapon.impactParticlePrefab = array2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
Weapon weapon = this.weapon;
|
||||
ImpactDecal impactDecalOverride = this.LKPJNMGHMHM.ImpactDecalOverride;
|
||||
weapon.impactDecalPrefab = impactDecalOverride;
|
||||
Weapon weapon2 = this.weapon;
|
||||
PooledParticle impactParticleOverride = this.LKPJNMGHMHM.ImpactParticleOverride;
|
||||
weapon2.impactParticlePrefab = impactParticleOverride;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060029AC RID: 10668 RVA: 0x000A9304 File Offset: 0x000A7504
|
||||
[Token(Token = "0x60029AC")]
|
||||
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
||||
public AdjustWeaponForQualitySetting()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002175 RID: 8565
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002175")]
|
||||
[SerializeField]
|
||||
private AdjustWeaponForQualitySetting.WeaponSettings[] overrideSettings;
|
||||
|
||||
// Token: 0x04002176 RID: 8566
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002176")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
||||
private Weapon weapon;
|
||||
|
||||
// Token: 0x04002177 RID: 8567
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002177")]
|
||||
private AdjustWeaponForQualitySetting.WeaponSettings LKPJNMGHMHM;
|
||||
|
||||
// Token: 0x02000557 RID: 1367
|
||||
[Token(Token = "0x2000557")]
|
||||
[Serializable]
|
||||
public struct WeaponSettings
|
||||
{
|
||||
// Token: 0x04002178 RID: 8568
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4002178")]
|
||||
public WeaponDetailQualityLevel WeaponDetailQuality;
|
||||
|
||||
// Token: 0x04002179 RID: 8569
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4002179")]
|
||||
public ImpactDecal ImpactDecalOverride;
|
||||
|
||||
// Token: 0x0400217A RID: 8570
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400217A")]
|
||||
public PooledParticle ImpactParticleOverride;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user