124 lines
3.7 KiB
C#
124 lines
3.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Combat;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200054A RID: 1354
|
|
[Token(Token = "0x200054A")]
|
|
public class AdjustWeaponForQualitySetting : MonoBehaviour
|
|
{
|
|
// Token: 0x06002926 RID: 10534 RVA: 0x000A7F6C File Offset: 0x000A616C
|
|
[Token(Token = "0x6002926")]
|
|
[Address(RVA = "0xB09FB0", Offset = "0xB08DB0", VA = "0x180B09FB0")]
|
|
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: 0x06002927 RID: 10535 RVA: 0x000A7FD8 File Offset: 0x000A61D8
|
|
[Token(Token = "0x6002927")]
|
|
[Address(RVA = "0xB09E90", Offset = "0xB08C90", VA = "0x180B09E90")]
|
|
private void OnDestroy()
|
|
{
|
|
Action<PPDOPHKNMCK> action = new Action(this.EHDNCHLIKMF);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002928 RID: 10536 RVA: 0x000A7FFC File Offset: 0x000A61FC
|
|
[Token(Token = "0x6002928")]
|
|
[Address(RVA = "0xB09CC0", Offset = "0xB08AC0", VA = "0x180B09CC0")]
|
|
private void EHDNCHLIKMF(PPDOPHKNMCK AOKDECDAEEG)
|
|
{
|
|
this.GFAHHBOFMHP();
|
|
}
|
|
|
|
// Token: 0x06002929 RID: 10537 RVA: 0x000A8010 File Offset: 0x000A6210
|
|
[Token(Token = "0x6002929")]
|
|
[Address(RVA = "0xB09CD0", Offset = "0xB08AD0", VA = "0x180B09CD0")]
|
|
private void GFAHHBOFMHP()
|
|
{
|
|
AdjustWeaponForQualitySetting.WeaponSettings[] array = this.overrideSettings;
|
|
if (array != 0)
|
|
{
|
|
int length = array.Length;
|
|
int num = 0;
|
|
if (num < length)
|
|
{
|
|
KHINMMJIENE khinmmjiene;
|
|
if ("{il2cpp array field local3->}" != khinmmjiene)
|
|
{
|
|
num++;
|
|
}
|
|
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;
|
|
}
|
|
|
|
// Token: 0x0600292A RID: 10538 RVA: 0x000A80AC File Offset: 0x000A62AC
|
|
[Token(Token = "0x600292A")]
|
|
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
|
public AdjustWeaponForQualitySetting()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04002114 RID: 8468
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002114")]
|
|
[SerializeField]
|
|
private AdjustWeaponForQualitySetting.WeaponSettings[] overrideSettings;
|
|
|
|
// Token: 0x04002115 RID: 8469
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002115")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private Weapon weapon;
|
|
|
|
// Token: 0x04002116 RID: 8470
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002116")]
|
|
private AdjustWeaponForQualitySetting.WeaponSettings LKPJNMGHMHM;
|
|
|
|
// Token: 0x0200054B RID: 1355
|
|
[Token(Token = "0x200054B")]
|
|
[Serializable]
|
|
public struct WeaponSettings
|
|
{
|
|
// Token: 0x04002117 RID: 8471
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4002117")]
|
|
public PPDOPHKNMCK QualitySetting;
|
|
|
|
// Token: 0x04002118 RID: 8472
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4002118")]
|
|
public ImpactDecal ImpactDecalOverride;
|
|
|
|
// Token: 0x04002119 RID: 8473
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4002119")]
|
|
public PooledParticle ImpactParticleOverride;
|
|
}
|
|
}
|