oh dear
This commit is contained in:
@@ -0,0 +1,279 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities.Quest
|
||||
{
|
||||
// Token: 0x02002C09 RID: 11273
|
||||
[Token(Token = "0x2002C09")]
|
||||
public class QuestCannonLighter : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170034F7 RID: 13559
|
||||
// (get) Token: 0x0601308B RID: 77963 RVA: 0x004664F4 File Offset: 0x004646F4
|
||||
[Token(Token = "0x170034F7")]
|
||||
public Tool PBBJCLJPFMI
|
||||
{
|
||||
[Token(Token = "0x601308B")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.tool;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601308C RID: 77964 RVA: 0x00466508 File Offset: 0x00464708
|
||||
[Token(Token = "0x601308C")]
|
||||
[Address(RVA = "0xB31EC0", Offset = "0xB30CC0", VA = "0x180B31EC0")]
|
||||
private void Awake()
|
||||
{
|
||||
QuestCannon questCannon;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
Transform transform = base.transform;
|
||||
Transform parent = this.cannon.transform.parent;
|
||||
transform.SetParent(parent, true);
|
||||
questCannon = this.cannon;
|
||||
QuestCannon.FBBDHANCMNO wielderChangeEvent = questCannon.WielderChangeEvent;
|
||||
QuestCannon.FBBDHANCMNO fbbdhancmno;
|
||||
fbbdhancmno.method_ptr = ldftn(BDALHADGIGM);
|
||||
fbbdhancmno.method = ldftn(BDALHADGIGM);
|
||||
fbbdhancmno.m_target = this;
|
||||
@delegate = Delegate.Combine(wielderChangeEvent, fbbdhancmno);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
questCannon.WielderChangeEvent = @delegate;
|
||||
Tool tool = this.cannon._tool;
|
||||
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool.PostResetEvent;
|
||||
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.APMLFOAGOJH);
|
||||
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.BPJDFPACLMK(postResetEvent, action);
|
||||
tool.PostResetEvent = eahpnacbldd;
|
||||
Tool tool2 = this.cannon._tool;
|
||||
MFBGLIHGCGO<Tool> enabledChangeEvent = tool2.EnabledChangeEvent;
|
||||
Action<Tool> action2 = new Action(this.ECDAKAOIEAF);
|
||||
EAHPNACBLDD eahpnacbldd2;
|
||||
tool2.EnabledChangeEvent = eahpnacbldd2;
|
||||
this.tool.KinematicOnReset = true;
|
||||
this.tool.GravityPickupMode = (Tool.LMJNHJCGDOF)((ulong)0L);
|
||||
RigidbodyEx rigidbodyEx = this.tool.rigidbodyEx;
|
||||
RigidbodyEx.FPLEDOKDLCC fpledokdlcc = new RigidbodyEx.FPLEDOKDLCC(this.BBFJBFDHPBA);
|
||||
rigidbodyEx.JNAJFIOHDKO += fpledokdlcc;
|
||||
}
|
||||
|
||||
// Token: 0x0601308D RID: 77965 RVA: 0x0046662C File Offset: 0x0046482C
|
||||
[Token(Token = "0x601308D")]
|
||||
[Address(RVA = "0xB32470", Offset = "0xB31270", VA = "0x180B32470")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
QuestCannon questCannon2;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
QuestCannon questCannon = this.cannon;
|
||||
int num = 0;
|
||||
if (!(questCannon != num))
|
||||
{
|
||||
goto IL_E3;
|
||||
}
|
||||
questCannon2 = this.cannon;
|
||||
QuestCannon.FBBDHANCMNO wielderChangeEvent = questCannon2.WielderChangeEvent;
|
||||
QuestCannon.FBBDHANCMNO fbbdhancmno;
|
||||
fbbdhancmno.method_ptr = ldftn(BDALHADGIGM);
|
||||
fbbdhancmno.method = ldftn(BDALHADGIGM);
|
||||
fbbdhancmno.m_target = this;
|
||||
@delegate = Delegate.Remove(wielderChangeEvent, fbbdhancmno);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
questCannon2.WielderChangeEvent = @delegate;
|
||||
Tool tool = this.cannon._tool;
|
||||
int num2 = 0;
|
||||
if (tool != num2)
|
||||
{
|
||||
Tool tool2 = this.cannon._tool;
|
||||
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool2.PostResetEvent;
|
||||
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.APMLFOAGOJH);
|
||||
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.GMNMHGMFGOL(postResetEvent, action);
|
||||
tool2.PostResetEvent = eahpnacbldd;
|
||||
Tool tool3 = this.cannon._tool;
|
||||
MFBGLIHGCGO<Tool> enabledChangeEvent = tool3.EnabledChangeEvent;
|
||||
Action<Tool> action2 = new Action(this.ECDAKAOIEAF);
|
||||
EAHPNACBLDD eahpnacbldd2;
|
||||
tool3.EnabledChangeEvent = eahpnacbldd2;
|
||||
}
|
||||
IL_E3:
|
||||
Tool tool4 = this.tool;
|
||||
int num3 = 0;
|
||||
if (tool4 != num3)
|
||||
{
|
||||
RigidbodyEx rigidbodyEx = this.tool.rigidbodyEx;
|
||||
int num4 = 0;
|
||||
if (rigidbodyEx != num4)
|
||||
{
|
||||
RigidbodyEx rigidbodyEx2 = this.tool.rigidbodyEx;
|
||||
RigidbodyEx.FPLEDOKDLCC fpledokdlcc = new RigidbodyEx.FPLEDOKDLCC(this.BBFJBFDHPBA);
|
||||
rigidbodyEx2.JNAJFIOHDKO -= fpledokdlcc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601308E RID: 77966 RVA: 0x0046677C File Offset: 0x0046497C
|
||||
[Token(Token = "0x601308E")]
|
||||
[Address(RVA = "0xB327A0", Offset = "0xB315A0", VA = "0x180B327A0")]
|
||||
private void Update()
|
||||
{
|
||||
this.ALMNOCEKBOH();
|
||||
}
|
||||
|
||||
// Token: 0x0601308F RID: 77967 RVA: 0x00466790 File Offset: 0x00464990
|
||||
[Token(Token = "0x601308F")]
|
||||
[Address(RVA = "0xB32100", Offset = "0xB30F00", VA = "0x180B32100")]
|
||||
private void BBFJBFDHPBA(RigidbodyEx AFEBLJOIBBC)
|
||||
{
|
||||
if (AFEBLJOIBBC.IsSleeping() && !this.tool.FNFNLDBILFE && this.tool.OGIBLNIIHDK)
|
||||
{
|
||||
QuestCannon questCannon = this.cannon;
|
||||
Tool tool = this.tool;
|
||||
Transform lighterHolsterTransform = questCannon.lighterHolsterTransform;
|
||||
QuestCannon questCannon2 = this.cannon;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
Transform lighterHolsterTransform2 = questCannon2.lighterHolsterTransform;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013090 RID: 77968 RVA: 0x004667FC File Offset: 0x004649FC
|
||||
[Token(Token = "0x6013090")]
|
||||
[Address(RVA = "0xB319F0", Offset = "0xB307F0", VA = "0x180B319F0")]
|
||||
private void ALMNOCEKBOH()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (!this.tool.OGIBLNIIHDK)
|
||||
{
|
||||
break;
|
||||
}
|
||||
float num2 = this.wickLightDistance;
|
||||
List<QuestCannon> dhlpdcgjolh = QuestCannon.DHLPDCGJOLH;
|
||||
List<QuestCannon> dhlpdcgjolh2 = QuestCannon.DHLPDCGJOLH;
|
||||
num += num;
|
||||
num++;
|
||||
Transform transform = this.tipTransform;
|
||||
AGAJMBPABDL agajmbpabdl = this.tool.KPBFAKFKDAF;
|
||||
agajmbpabdl += agajmbpabdl;
|
||||
agajmbpabdl += dhlpdcgjolh2;
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x06013091 RID: 77969 RVA: 0x00466878 File Offset: 0x00464A78
|
||||
[Token(Token = "0x6013091")]
|
||||
[Address(RVA = "0xB32220", Offset = "0xB31020", VA = "0x180B32220")]
|
||||
private void BDALHADGIGM(QuestCannon IOPKEPOIHAL)
|
||||
{
|
||||
if (this.tool.OGIBLNIIHDK)
|
||||
{
|
||||
bool flag;
|
||||
if (!flag || !this.tool.PAJGCGDFHKK)
|
||||
{
|
||||
bool flag2;
|
||||
while (!flag2)
|
||||
{
|
||||
}
|
||||
bool flag3;
|
||||
while (flag3)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Transform lighterHolsterTransform = IOPKEPOIHAL.lighterHolsterTransform;
|
||||
Tool tool = this.tool;
|
||||
Transform lighterHolsterTransform2 = IOPKEPOIHAL.lighterHolsterTransform;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013092 RID: 77970 RVA: 0x004668D4 File Offset: 0x00464AD4
|
||||
[Token(Token = "0x6013092")]
|
||||
[Address(RVA = "0xB31D30", Offset = "0xB30B30", VA = "0x180B31D30")]
|
||||
private void APMLFOAGOJH(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
int num = 0;
|
||||
if (tool != num && this.tool.OGIBLNIIHDK)
|
||||
{
|
||||
QuestCannon questCannon = this.cannon;
|
||||
int num2 = 0;
|
||||
bool flag = questCannon != num2;
|
||||
Tool tool2 = this.tool;
|
||||
if (flag)
|
||||
{
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
return;
|
||||
}
|
||||
int num3 = 0;
|
||||
tool2.AuthorityResetToLastSpawnPosition(num3 != 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013093 RID: 77971 RVA: 0x00466940 File Offset: 0x00464B40
|
||||
[Token(Token = "0x6013093")]
|
||||
[Address(RVA = "0xB32410", Offset = "0xB31210", VA = "0x180B32410")]
|
||||
private void ECDAKAOIEAF(Tool EGFEJGHDNAI)
|
||||
{
|
||||
if (EGFEJGHDNAI.OGIBLNIIHDK)
|
||||
{
|
||||
bool isEnabled = this.cannon._tool.PAJGCGDFHKK;
|
||||
EGFEJGHDNAI.PAJGCGDFHKK = isEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06013094 RID: 77972 RVA: 0x00466974 File Offset: 0x00464B74
|
||||
[Token(Token = "0x6013094")]
|
||||
[Address(RVA = "0xB32730", Offset = "0xB31530", VA = "0x180B32730")]
|
||||
private void OnDrawGizmosSelected()
|
||||
{
|
||||
Color yellow = Color.yellow;
|
||||
Transform transform = this.tipTransform;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
}
|
||||
|
||||
// Token: 0x06013095 RID: 77973 RVA: 0x0046699C File Offset: 0x00464B9C
|
||||
[Token(Token = "0x6013095")]
|
||||
[Address(RVA = "0xB327B0", Offset = "0xB315B0", VA = "0x180B327B0")]
|
||||
public QuestCannonLighter()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400C5D7 RID: 50647
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C5D7")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
||||
private Tool tool;
|
||||
|
||||
// Token: 0x0400C5D8 RID: 50648
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400C5D8")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.SelfAndParent, false, false, false)]
|
||||
private QuestCannon cannon;
|
||||
|
||||
// Token: 0x0400C5D9 RID: 50649
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400C5D9")]
|
||||
[SerializeField]
|
||||
private Transform tipTransform;
|
||||
|
||||
// Token: 0x0400C5DA RID: 50650
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400C5DA")]
|
||||
[SerializeField]
|
||||
private float wickLightDistance = 0.1f;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user