280 lines
8.7 KiB
C#
280 lines
8.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.Quest
|
|
{
|
|
// Token: 0x02002CF2 RID: 11506
|
|
[Token(Token = "0x2002CF2")]
|
|
public class QuestCannonLighter : MonoBehaviour
|
|
{
|
|
// Token: 0x170035AB RID: 13739
|
|
// (get) Token: 0x060134CC RID: 79052 RVA: 0x00470284 File Offset: 0x0046E484
|
|
[Token(Token = "0x170035AB")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x60134CC")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060134CD RID: 79053 RVA: 0x00470298 File Offset: 0x0046E498
|
|
[Token(Token = "0x60134CD")]
|
|
[Address(RVA = "0x1631D00", Offset = "0x1630D00", VA = "0x181631D00")]
|
|
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: 0x060134CE RID: 79054 RVA: 0x004703BC File Offset: 0x0046E5BC
|
|
[Token(Token = "0x60134CE")]
|
|
[Address(RVA = "0x16322B0", Offset = "0x16312B0", VA = "0x1816322B0")]
|
|
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: 0x060134CF RID: 79055 RVA: 0x0047050C File Offset: 0x0046E70C
|
|
[Token(Token = "0x60134CF")]
|
|
[Address(RVA = "0x16325E0", Offset = "0x16315E0", VA = "0x1816325E0")]
|
|
private void Update()
|
|
{
|
|
this.ALMNOCEKBOH();
|
|
}
|
|
|
|
// Token: 0x060134D0 RID: 79056 RVA: 0x00470520 File Offset: 0x0046E720
|
|
[Token(Token = "0x60134D0")]
|
|
[Address(RVA = "0x1631F40", Offset = "0x1630F40", VA = "0x181631F40")]
|
|
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: 0x060134D1 RID: 79057 RVA: 0x0047058C File Offset: 0x0046E78C
|
|
[Token(Token = "0x60134D1")]
|
|
[Address(RVA = "0x1631830", Offset = "0x1630830", VA = "0x181631830")]
|
|
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: 0x060134D2 RID: 79058 RVA: 0x00470608 File Offset: 0x0046E808
|
|
[Token(Token = "0x60134D2")]
|
|
[Address(RVA = "0x1632060", Offset = "0x1631060", VA = "0x181632060")]
|
|
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: 0x060134D3 RID: 79059 RVA: 0x00470664 File Offset: 0x0046E864
|
|
[Token(Token = "0x60134D3")]
|
|
[Address(RVA = "0x1631B70", Offset = "0x1630B70", VA = "0x181631B70")]
|
|
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: 0x060134D4 RID: 79060 RVA: 0x004706D0 File Offset: 0x0046E8D0
|
|
[Token(Token = "0x60134D4")]
|
|
[Address(RVA = "0x1632250", Offset = "0x1631250", VA = "0x181632250")]
|
|
private void ECDAKAOIEAF(Tool EGFEJGHDNAI)
|
|
{
|
|
if (EGFEJGHDNAI.OGIBLNIIHDK)
|
|
{
|
|
bool isEnabled = this.cannon._tool.PAJGCGDFHKK;
|
|
EGFEJGHDNAI.PAJGCGDFHKK = isEnabled;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060134D5 RID: 79061 RVA: 0x00470704 File Offset: 0x0046E904
|
|
[Token(Token = "0x60134D5")]
|
|
[Address(RVA = "0x1632570", Offset = "0x1631570", VA = "0x181632570")]
|
|
private void OnDrawGizmosSelected()
|
|
{
|
|
Color yellow = Color.yellow;
|
|
Transform transform = this.tipTransform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x060134D6 RID: 79062 RVA: 0x0047072C File Offset: 0x0046E92C
|
|
[Token(Token = "0x60134D6")]
|
|
[Address(RVA = "0xA9DF00", Offset = "0xA9CF00", VA = "0x180A9DF00")]
|
|
public QuestCannonLighter()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C7EB RID: 51179
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C7EB")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400C7EC RID: 51180
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400C7EC")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.SelfAndParent, false, false, false)]
|
|
private QuestCannon cannon;
|
|
|
|
// Token: 0x0400C7ED RID: 51181
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400C7ED")]
|
|
[SerializeField]
|
|
private Transform tipTransform;
|
|
|
|
// Token: 0x0400C7EE RID: 51182
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400C7EE")]
|
|
[SerializeField]
|
|
private float wickLightDistance = 0.1f;
|
|
}
|
|
}
|