241 lines
8.9 KiB
C#
241 lines
8.9 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Tools;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02002030 RID: 8240
|
|
[Token(Token = "0x2002030")]
|
|
public class PoolCueAimGrip : ToolAccessory
|
|
{
|
|
// Token: 0x1700219B RID: 8603
|
|
// (get) Token: 0x0600D2DE RID: 53982 RVA: 0x0030B0A4 File Offset: 0x003092A4
|
|
// (set) Token: 0x0600D2DF RID: 53983 RVA: 0x0030B0B8 File Offset: 0x003092B8
|
|
[Token(Token = "0x1700219B")]
|
|
public bool CAAMFILPNBL
|
|
{
|
|
[Token(Token = "0x600D2DE")]
|
|
[Address(RVA = "0x7C9360", Offset = "0x7C8160", VA = "0x1807C9360")]
|
|
get;
|
|
[Token(Token = "0x600D2DF")]
|
|
[Address(RVA = "0x7C8EB0", Offset = "0x7C7CB0", VA = "0x1807C8EB0")]
|
|
private set;
|
|
}
|
|
|
|
// Token: 0x0600D2E0 RID: 53984 RVA: 0x0030B0CC File Offset: 0x003092CC
|
|
[Token(Token = "0x600D2E0")]
|
|
[Address(RVA = "0x7C86A0", Offset = "0x7C74A0", VA = "0x1807C86A0", Slot = "5")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
Tool tool = this._tool;
|
|
int num = 0;
|
|
if (tool != num)
|
|
{
|
|
this._tool.IgnorePickupDirection = true;
|
|
Tool tool2 = this._tool;
|
|
MFBGLIHGCGO<Tool> postPickupEvent = tool2.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.HAAIALDMMEL);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postPickupEvent, action);
|
|
tool2.PostPickupEvent = mfbglihgcgo;
|
|
Tool tool3 = this._tool;
|
|
MFBGLIHGCGO<Tool> preReleaseEvent = tool3.PreReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.BGEJPLCKLPA);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo2 = MFBGLIHGCGO.BPJDFPACLMK(preReleaseEvent, action2);
|
|
tool3.PreReleaseEvent = mfbglihgcgo2;
|
|
Tool tool4 = this._tool;
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = tool4.PostReleaseEvent;
|
|
Action<Tool> action3 = new Action(this.OIOCPLEKMEK);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo3 = MFBGLIHGCGO.BPJDFPACLMK(postReleaseEvent, action3);
|
|
tool4.PostReleaseEvent = mfbglihgcgo3;
|
|
Tool tool5 = this._tool;
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool5.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action4 = new Action(this.LBODGLNOABB);
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.BPJDFPACLMK(postResetEvent, action4);
|
|
tool5.PostResetEvent = eahpnacbldd;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D2E1 RID: 53985 RVA: 0x0030B1D0 File Offset: 0x003093D0
|
|
[Token(Token = "0x600D2E1")]
|
|
[Address(RVA = "0x7C90E0", Offset = "0x7C7EE0", VA = "0x1807C90E0", Slot = "6")]
|
|
protected override void Start()
|
|
{
|
|
RigidbodyPickup rigidbodyPickup = this.parentTool.rigidbodyPickup;
|
|
if (rigidbodyPickup == 0)
|
|
{
|
|
}
|
|
this.DGCCHIOMNJO = rigidbodyPickup;
|
|
int num = 0;
|
|
if (!(rigidbodyPickup == num))
|
|
{
|
|
RigidbodyPickup rigidbodyPickup2 = this._tool.rigidbodyPickup;
|
|
if (rigidbodyPickup2 == 0)
|
|
{
|
|
}
|
|
this.POICOHHEPON = rigidbodyPickup2;
|
|
PoolCueRigidbodyPickup dgcchiomnjo = this.DGCCHIOMNJO;
|
|
PlungerRigidbodyPickup poicohhepon = this.POICOHHEPON;
|
|
float z = this.KNHHAPILJGN.z;
|
|
poicohhepon.ConstraintOffsetPosition.z = z;
|
|
PlungerRigidbodyPickup poicohhepon2 = this.POICOHHEPON;
|
|
Quaternion nnjnbdpdafo = this.NNJNBDPDAFO;
|
|
poicohhepon2.ConstraintOffsetRotation = nnjnbdpdafo;
|
|
PlungerRigidbodyPickup poicohhepon3 = this.POICOHHEPON;
|
|
float z2 = Vector3.forward.z;
|
|
poicohhepon3.ConstraintLocalAxis.z = z2;
|
|
this.POICOHHEPON.MinimumConstraintDistance = 0f;
|
|
this.POICOHHEPON.MaximumConstraintDistance = 0f;
|
|
if (!this._tool.<BIPMAHKMNKF>k__BackingField)
|
|
{
|
|
base.NNPBKEIEMHL();
|
|
}
|
|
base.Start();
|
|
return;
|
|
}
|
|
Debug.LogError(this.parentTool.name + "missing StabilizedRigidbodyPickup.");
|
|
}
|
|
|
|
// Token: 0x0600D2E2 RID: 53986 RVA: 0x0030B2E4 File Offset: 0x003094E4
|
|
[Token(Token = "0x600D2E2")]
|
|
[Address(RVA = "0x7C90A0", Offset = "0x7C7EA0", VA = "0x1807C90A0")]
|
|
private void OnEnable()
|
|
{
|
|
if (!this._tool.<BIPMAHKMNKF>k__BackingField)
|
|
{
|
|
base.NNPBKEIEMHL();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D2E3 RID: 53987 RVA: 0x0030B30C File Offset: 0x0030950C
|
|
[Token(Token = "0x600D2E3")]
|
|
[Address(RVA = "0x7C8EC0", Offset = "0x7C7CC0", VA = "0x1807C8EC0", Slot = "7")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
Tool tool = this._tool;
|
|
int num = 0;
|
|
if (tool != num)
|
|
{
|
|
Tool tool2 = this._tool;
|
|
MFBGLIHGCGO<Tool> postPickupEvent = tool2.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.HAAIALDMMEL);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postPickupEvent, action);
|
|
tool2.PostPickupEvent = mfbglihgcgo;
|
|
Tool tool3 = this._tool;
|
|
MFBGLIHGCGO<Tool> preReleaseEvent = tool3.PreReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.BGEJPLCKLPA);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo2 = MFBGLIHGCGO.GMNMHGMFGOL(preReleaseEvent, action2);
|
|
tool3.PreReleaseEvent = mfbglihgcgo2;
|
|
Tool tool4 = this._tool;
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = tool4.PostReleaseEvent;
|
|
Action<Tool> action3 = new Action(this.OIOCPLEKMEK);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo3 = MFBGLIHGCGO.GMNMHGMFGOL(postReleaseEvent, action3);
|
|
tool4.PostReleaseEvent = mfbglihgcgo3;
|
|
Tool tool5 = this._tool;
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = tool5.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action4 = new Action(this.LBODGLNOABB);
|
|
EAHPNACBLDD<Tool, Vector3, Quaternion, Vector3, bool> eahpnacbldd = EAHPNACBLDD.GMNMHGMFGOL(postResetEvent, action4);
|
|
tool5.PostResetEvent = eahpnacbldd;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D2E4 RID: 53988 RVA: 0x0030B404 File Offset: 0x00309604
|
|
[Token(Token = "0x600D2E4")]
|
|
[Address(RVA = "0x7C8B20", Offset = "0x7C7920", VA = "0x1807C8B20")]
|
|
private void HAAIALDMMEL(Tool EGFEJGHDNAI)
|
|
{
|
|
this.<PKJDJOKMPPN>k__BackingField = true;
|
|
Player <OKDFEPHLKCB>k__BackingField = EGFEJGHDNAI.<OKDFEPHLKCB>k__BackingField;
|
|
Player <EGKJPJKLEAI>k__BackingField = Player.<EGKJPJKLEAI>k__BackingField;
|
|
if (<OKDFEPHLKCB>k__BackingField == <EGKJPJKLEAI>k__BackingField)
|
|
{
|
|
PlayerHand <PBCNKLKCIHJ>k__BackingField = EGFEJGHDNAI.<PBCNKLKCIHJ>k__BackingField;
|
|
PoolCue poolCue = this.cue;
|
|
Transform transform = poolCue.transform;
|
|
Transform transform2 = <PBCNKLKCIHJ>k__BackingField.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
KLLMCPFPIIE<Vector3> pijhfjccano = poolCue.PIJHFJCCANO;
|
|
KLLMCPFPIIE<PoolCue.EBBMJPHAEME> phhlomkicdf = this.cue.PHHLOMKICDF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D2E5 RID: 53989 RVA: 0x0030B47C File Offset: 0x0030967C
|
|
[Token(Token = "0x600D2E5")]
|
|
[Address(RVA = "0x7C88A0", Offset = "0x7C76A0", VA = "0x1807C88A0")]
|
|
private void BGEJPLCKLPA(Tool EGFEJGHDNAI)
|
|
{
|
|
Player <OKDFEPHLKCB>k__BackingField = EGFEJGHDNAI.<OKDFEPHLKCB>k__BackingField;
|
|
Player <EGKJPJKLEAI>k__BackingField = Player.<EGKJPJKLEAI>k__BackingField;
|
|
if (<OKDFEPHLKCB>k__BackingField == <EGKJPJKLEAI>k__BackingField)
|
|
{
|
|
Player <EGKJPJKLEAI>k__BackingField2 = Player.<EGKJPJKLEAI>k__BackingField;
|
|
PlayerHand.PLLIKAOIPHP type = EGFEJGHDNAI.<PBCNKLKCIHJ>k__BackingField.type;
|
|
PlayerHand otherHand = <EGKJPJKLEAI>k__BackingField2.GetOtherHand(type);
|
|
Transform transform = this.cue.transform;
|
|
Transform transform2 = otherHand.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
KLLMCPFPIIE<PoolCue.EBBMJPHAEME> phhlomkicdf = this.cue.PHHLOMKICDF;
|
|
int num = 0;
|
|
phhlomkicdf.BDJFGEJFPPO(num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600D2E6 RID: 53990 RVA: 0x0030B504 File Offset: 0x00309704
|
|
[Token(Token = "0x600D2E6")]
|
|
[Address(RVA = "0x7C8E40", Offset = "0x7C7C40", VA = "0x1807C8E40")]
|
|
private void OIOCPLEKMEK(Tool EGFEJGHDNAI)
|
|
{
|
|
this.<PKJDJOKMPPN>k__BackingField = false;
|
|
Action action = new Action(base.NNPBKEIEMHL);
|
|
Coroutine coroutine = this.CHAAKFJCLIH(action);
|
|
}
|
|
|
|
// Token: 0x0600D2E7 RID: 53991 RVA: 0x0030B530 File Offset: 0x00309730
|
|
[Token(Token = "0x600D2E7")]
|
|
[Address(RVA = "0x7C8D70", Offset = "0x7C7B70", VA = "0x1807C8D70")]
|
|
private void LBODGLNOABB(Tool EGFEJGHDNAI, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
object[] array = new object[1];
|
|
if (this != 0)
|
|
{
|
|
}
|
|
array[0] = this;
|
|
Debug.LogErrorFormat("Resetting stabilization subtool {0}. Subtools generally shouldn't be manually reset.", array);
|
|
base.NNPBKEIEMHL();
|
|
}
|
|
|
|
// Token: 0x0600D2E8 RID: 53992 RVA: 0x0030B568 File Offset: 0x00309768
|
|
[Token(Token = "0x600D2E8")]
|
|
[Address(RVA = "0x7C9350", Offset = "0x7C8150", VA = "0x1807C9350")]
|
|
public PoolCueAimGrip()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040086F9 RID: 34553
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x40086F9")]
|
|
private PoolCueRigidbodyPickup DGCCHIOMNJO;
|
|
|
|
// Token: 0x040086FA RID: 34554
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x40086FA")]
|
|
private PlungerRigidbodyPickup POICOHHEPON;
|
|
|
|
// Token: 0x040086FB RID: 34555
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40086FB")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Parent, false, false, false)]
|
|
private PoolCue cue;
|
|
}
|
|
}
|