286 lines
8.9 KiB
C#
286 lines
8.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Realtime;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.Quest
|
|
{
|
|
// Token: 0x02002714 RID: 10004
|
|
[Token(Token = "0x2002714")]
|
|
[StructLayout(3)]
|
|
public class QuestCannonLighter : MonoBehaviour
|
|
{
|
|
// Token: 0x17002F2E RID: 12078
|
|
// (get) Token: 0x060116BE RID: 71358 RVA: 0x00423980 File Offset: 0x00421B80
|
|
[Token(Token = "0x17002F2E")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x60116BE")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060116BF RID: 71359 RVA: 0x00423994 File Offset: 0x00421B94
|
|
[Token(Token = "0x60116BF")]
|
|
[Address(RVA = "0x110ACE0", Offset = "0x11096E0", VA = "0x18110ACE0")]
|
|
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;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.APMLFOAGOJH);
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> actionEvent = postResetEvent + action;
|
|
tool.PostResetEvent = actionEvent;
|
|
Tool tool2 = this.cannon._tool;
|
|
ActionEvent<Tool> enabledChangeEvent = tool2.EnabledChangeEvent;
|
|
Action<Tool> action2 = new Action(this.ECDAKAOIEAF);
|
|
ActionEvent<Tool> actionEvent2 = enabledChangeEvent + action2;
|
|
tool2.EnabledChangeEvent = actionEvent2;
|
|
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: 0x060116C0 RID: 71360 RVA: 0x00423AC4 File Offset: 0x00421CC4
|
|
[Token(Token = "0x60116C0")]
|
|
[Address(RVA = "0x110B290", Offset = "0x1109C90", VA = "0x18110B290")]
|
|
private void OnDestroy()
|
|
{
|
|
QuestCannon questCannon2;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
QuestCannon questCannon = this.cannon;
|
|
int num = 0;
|
|
if (!(questCannon != num))
|
|
{
|
|
goto IL_EE;
|
|
}
|
|
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;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool2.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action = new Action(this.APMLFOAGOJH);
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> actionEvent = postResetEvent - action;
|
|
tool2.PostResetEvent = actionEvent;
|
|
Tool tool3 = this.cannon._tool;
|
|
ActionEvent<Tool> enabledChangeEvent = tool3.EnabledChangeEvent;
|
|
Action<Tool> action2 = new Action(this.ECDAKAOIEAF);
|
|
ActionEvent<Tool> actionEvent2 = enabledChangeEvent - action2;
|
|
tool3.EnabledChangeEvent = actionEvent2;
|
|
}
|
|
IL_EE:
|
|
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: 0x060116C1 RID: 71361 RVA: 0x00423C1C File Offset: 0x00421E1C
|
|
[Token(Token = "0x60116C1")]
|
|
[Address(RVA = "0x110B5C0", Offset = "0x1109FC0", VA = "0x18110B5C0")]
|
|
private void Update()
|
|
{
|
|
this.ALMNOCEKBOH();
|
|
}
|
|
|
|
// Token: 0x060116C2 RID: 71362 RVA: 0x00423C30 File Offset: 0x00421E30
|
|
[Token(Token = "0x60116C2")]
|
|
[Address(RVA = "0x110AF20", Offset = "0x1109920", VA = "0x18110AF20")]
|
|
private void BBFJBFDHPBA(RigidbodyEx AFEBLJOIBBC)
|
|
{
|
|
if (AFEBLJOIBBC.IsSleeping() && !this.tool.FNFNLDBILFE && this.tool.hasAuthority)
|
|
{
|
|
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: 0x060116C3 RID: 71363 RVA: 0x00423C9C File Offset: 0x00421E9C
|
|
[Token(Token = "0x60116C3")]
|
|
[Address(RVA = "0x110A7E0", Offset = "0x11091E0", VA = "0x18110A7E0")]
|
|
private void ALMNOCEKBOH()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
if (!this.tool.hasAuthority)
|
|
{
|
|
break;
|
|
}
|
|
float num2 = this.wickLightDistance;
|
|
List<QuestCannon> dhlpdcgjolh = QuestCannon.DHLPDCGJOLH;
|
|
List<QuestCannon> dhlpdcgjolh2 = QuestCannon.DHLPDCGJOLH;
|
|
num += num;
|
|
num++;
|
|
Transform transform = this.tipTransform;
|
|
Photon.Realtime.Player player = this.tool.authority;
|
|
player += player;
|
|
player += dhlpdcgjolh2;
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x060116C4 RID: 71364 RVA: 0x00423D1C File Offset: 0x00421F1C
|
|
[Token(Token = "0x60116C4")]
|
|
[Address(RVA = "0x110B040", Offset = "0x1109A40", VA = "0x18110B040")]
|
|
private void BDALHADGIGM(QuestCannon IOPKEPOIHAL)
|
|
{
|
|
if (this.tool.hasAuthority)
|
|
{
|
|
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: 0x060116C5 RID: 71365 RVA: 0x00423D78 File Offset: 0x00421F78
|
|
[Token(Token = "0x60116C5")]
|
|
[Address(RVA = "0x110AB50", Offset = "0x1109550", VA = "0x18110AB50")]
|
|
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.hasAuthority)
|
|
{
|
|
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: 0x060116C6 RID: 71366 RVA: 0x00423DE4 File Offset: 0x00421FE4
|
|
[Token(Token = "0x60116C6")]
|
|
[Address(RVA = "0x110B230", Offset = "0x1109C30", VA = "0x18110B230")]
|
|
private void ECDAKAOIEAF(Tool EGFEJGHDNAI)
|
|
{
|
|
if (EGFEJGHDNAI.hasAuthority)
|
|
{
|
|
bool isEnabled = this.cannon._tool.PAJGCGDFHKK;
|
|
EGFEJGHDNAI.PAJGCGDFHKK = isEnabled;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060116C7 RID: 71367 RVA: 0x00423E18 File Offset: 0x00422018
|
|
[Token(Token = "0x60116C7")]
|
|
[Address(RVA = "0x110B550", Offset = "0x1109F50", VA = "0x18110B550")]
|
|
private void OnDrawGizmosSelected()
|
|
{
|
|
Color yellow = Color.yellow;
|
|
Transform transform = this.tipTransform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x060116C8 RID: 71368 RVA: 0x00423E40 File Offset: 0x00422040
|
|
[Token(Token = "0x60116C8")]
|
|
[Address(RVA = "0x110B5D0", Offset = "0x1109FD0", VA = "0x18110B5D0")]
|
|
public QuestCannonLighter()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400BA61 RID: 47713
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400BA61")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400BA62 RID: 47714
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400BA62")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.SelfAndParent, false, false)]
|
|
private QuestCannon cannon;
|
|
|
|
// Token: 0x0400BA63 RID: 47715
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400BA63")]
|
|
[SerializeField]
|
|
private Transform tipTransform;
|
|
|
|
// Token: 0x0400BA64 RID: 47716
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400BA64")]
|
|
[SerializeField]
|
|
private float wickLightDistance = 0.1f;
|
|
}
|
|
}
|