Files
2026-04-08 23:40:05 +02:00

184 lines
4.9 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using RecRoom.Tools;
using UnityEngine;
namespace RecRoom.Core.Combat
{
// Token: 0x02002E1A RID: 11802
[Token(Token = "0x2002E1A")]
[StructLayout(3)]
public class WeaponAccessory : ToolAccessory
{
// Token: 0x060151C4 RID: 86468 RVA: 0x00512A24 File Offset: 0x00510C24
[Token(Token = "0x60151C4")]
[Address(RVA = "0x13CA3E0", Offset = "0x13C8DE0", VA = "0x1813CA3E0", Slot = "5")]
protected override void Awake()
{
Weapon.NMOHAINKAIK lcabdlbichm;
Delegate delegate3;
for (;;)
{
base.Awake();
Weapon weapon = this.parentWeapon;
int num = 0;
if (weapon == num)
{
goto IL_E0;
}
Weapon weapon2 = this.parentWeapon;
Weapon.NAHHHABPHFB nahhhabphfb;
nahhhabphfb.method_ptr = ldftn(PEMKLPOKPCF);
nahhhabphfb.method = ldftn(PEMKLPOKPCF);
nahhhabphfb.m_target = this;
Delegate @delegate;
if (@delegate == 0 || @delegate != 0)
{
while (@delegate != weapon2)
{
}
Weapon weapon3 = this.parentWeapon;
Weapon.FIOIKOOLMKP fioikoolmkp;
fioikoolmkp.method_ptr = ldftn(GAAPJNODOAH);
fioikoolmkp.method = ldftn(GAAPJNODOAH);
fioikoolmkp.m_target = this;
Delegate delegate2;
if (delegate2 == 0 || delegate2 != 0)
{
while (delegate2 != weapon3)
{
}
Weapon weapon4 = this.parentWeapon;
Weapon.NMOHAINKAIK nmohainkaik;
nmohainkaik.method_ptr = ldftn(IBLFICLMGKM);
nmohainkaik.method = ldftn(IBLFICLMGKM);
nmohainkaik.m_target = this;
lcabdlbichm = weapon4.LCABDLBICHM;
delegate3 = Delegate.Combine(lcabdlbichm, nmohainkaik);
if (delegate3 == 0 || delegate3 != 0)
{
break;
}
}
}
}
while (delegate3 != lcabdlbichm)
{
}
return;
IL_E0:
Debug.LogError(base.name + " is not parented to a weapon.");
}
// Token: 0x060151C5 RID: 86469 RVA: 0x00512B28 File Offset: 0x00510D28
[Token(Token = "0x60151C5")]
[Address(RVA = "0x13CA820", Offset = "0x13C9220", VA = "0x1813CA820", Slot = "7")]
protected override void OnDestroy()
{
Weapon weapon4;
Delegate delegate3;
for (;;)
{
Weapon weapon = this.parentWeapon;
int num = 0;
if (!(weapon != num))
{
goto IL_C5;
}
Weapon weapon2 = this.parentWeapon;
Weapon.NAHHHABPHFB nahhhabphfb;
nahhhabphfb.method_ptr = ldftn(PEMKLPOKPCF);
nahhhabphfb.method = ldftn(PEMKLPOKPCF);
nahhhabphfb.m_target = this;
Delegate @delegate;
if (@delegate == 0 || @delegate != 0)
{
while (@delegate != weapon2)
{
}
Weapon weapon3 = this.parentWeapon;
Weapon.FIOIKOOLMKP fioikoolmkp;
fioikoolmkp.method_ptr = ldftn(GAAPJNODOAH);
fioikoolmkp.method = ldftn(GAAPJNODOAH);
fioikoolmkp.m_target = this;
Delegate delegate2;
if (delegate2 == 0 || delegate2 != 0)
{
while (delegate2 != weapon3)
{
}
weapon4 = this.parentWeapon;
Weapon.NMOHAINKAIK nmohainkaik;
nmohainkaik.method_ptr = ldftn(IBLFICLMGKM);
nmohainkaik.method = ldftn(IBLFICLMGKM);
nmohainkaik.m_target = this;
if (delegate3 == 0 || delegate3 != 0)
{
break;
}
}
}
}
while (delegate3 != weapon4)
{
}
IL_C5:
base.OnDestroy();
}
// Token: 0x060151C6 RID: 86470 RVA: 0x00512C08 File Offset: 0x00510E08
[Token(Token = "0x60151C6")]
[Address(RVA = "0x13CA6D0", Offset = "0x13C90D0", VA = "0x1813CA6D0")]
private void GAAPJNODOAH(int ENJEOLBEALP, float ONGBFDACHHG)
{
Animator animator = this.animator;
int num = 0;
if (animator != num && this.animator.isActiveAndEnabled)
{
this.animator.SetFloat(ENJEOLBEALP, ONGBFDACHHG);
}
}
// Token: 0x060151C7 RID: 86471 RVA: 0x00512C4C File Offset: 0x00510E4C
[Token(Token = "0x60151C7")]
[Address(RVA = "0x13CAAC0", Offset = "0x13C94C0", VA = "0x1813CAAC0")]
private void PEMKLPOKPCF(int ENJEOLBEALP, bool ONGBFDACHHG)
{
Animator animator = this.animator;
int num = 0;
if (animator != num && this.animator.isActiveAndEnabled)
{
this.animator.SetBool(ENJEOLBEALP, ONGBFDACHHG);
}
}
// Token: 0x060151C8 RID: 86472 RVA: 0x00512C90 File Offset: 0x00510E90
[Token(Token = "0x60151C8")]
[Address(RVA = "0x13CA780", Offset = "0x13C9180", VA = "0x1813CA780")]
private void IBLFICLMGKM(int ENJEOLBEALP)
{
Animator animator = this.animator;
int num = 0;
if (animator != num && this.animator.isActiveAndEnabled)
{
this.animator.SetTrigger(ENJEOLBEALP);
}
}
// Token: 0x060151C9 RID: 86473 RVA: 0x00512CD0 File Offset: 0x00510ED0
[Token(Token = "0x60151C9")]
[Address(RVA = "0x1143AD0", Offset = "0x11424D0", VA = "0x181143AD0")]
public WeaponAccessory()
{
}
// Token: 0x0400E102 RID: 57602
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x400E102")]
[SerializeField]
[DDPIINEJFMD(JIBDPHMGEGO.Parent, false, false)]
protected Weapon parentWeapon;
}
}