302 lines
9.9 KiB
C#
302 lines
9.9 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.BattleRoyale
|
|
{
|
|
// Token: 0x02002BD4 RID: 11220
|
|
[Token(Token = "0x2002BD4")]
|
|
public class BattleRoyaleGliderHandlebar : MonoBehaviour
|
|
{
|
|
// Token: 0x170034B3 RID: 13491
|
|
// (get) Token: 0x06012E6E RID: 77422 RVA: 0x0045A738 File Offset: 0x00458938
|
|
[Token(Token = "0x170034B3")]
|
|
public float FOJOAPKDAND
|
|
{
|
|
[Token(Token = "0x6012E6E")]
|
|
[Address(RVA = "0x868B30", Offset = "0x867930", VA = "0x180868B30")]
|
|
get
|
|
{
|
|
Transform transform = base.transform;
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform targetTransform = battleRoyaleGlider.rigidbodyEx.MDKDCJFEBJH;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
int num = 0;
|
|
float num2 = Mathf.InverseLerp((float)0, 1f, (float)num);
|
|
float num3;
|
|
num2 = num3;
|
|
return Mathf.Sign(num2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170034B4 RID: 13492
|
|
// (get) Token: 0x06012E6F RID: 77423 RVA: 0x0045A794 File Offset: 0x00458994
|
|
[Token(Token = "0x170034B4")]
|
|
public float FOKKJNNBANL
|
|
{
|
|
[Token(Token = "0x6012E6F")]
|
|
[Address(RVA = "0x868C90", Offset = "0x867A90", VA = "0x180868C90")]
|
|
get
|
|
{
|
|
Transform transform = base.transform;
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform targetTransform = battleRoyaleGlider.rigidbodyEx.MDKDCJFEBJH;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
int num = 0;
|
|
float num2 = Mathf.InverseLerp((float)0, 1f, (float)num);
|
|
float num3;
|
|
num2 = num3;
|
|
return Mathf.Sign(num2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170034B5 RID: 13493
|
|
// (get) Token: 0x06012E70 RID: 77424 RVA: 0x0045A7F0 File Offset: 0x004589F0
|
|
[Token(Token = "0x170034B5")]
|
|
public Tool PBBJCLJPFMI
|
|
{
|
|
[Token(Token = "0x6012E70")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.tool;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E71 RID: 77425 RVA: 0x0045A804 File Offset: 0x00458A04
|
|
[Token(Token = "0x6012E71")]
|
|
[Address(RVA = "0x8680D0", Offset = "0x866ED0", VA = "0x1808680D0")]
|
|
private void Awake()
|
|
{
|
|
Tool tool = this.tool;
|
|
int num = 0;
|
|
tool.BHEPECCEMNP = num != 0;
|
|
Tool tool2 = this.tool;
|
|
Tool.OGLAJAFKBMN oglajafkbmn = new Tool.OGLAJAFKBMN(this.LPLIIBBAAOI);
|
|
tool2.AddCustomPickupCondition(oglajafkbmn);
|
|
this.tool.AllowedToTransferOwnershipOnCollision = false;
|
|
this.tool.GravityPickupMode = (Tool.LMJNHJCGDOF)((ulong)4294967295L);
|
|
this.tool.AlwaysPhysicalPickupOffCenter = true;
|
|
Tool tool3 = this.tool;
|
|
MFBGLIHGCGO<Tool> postPickupEvent = tool3.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.NFIFHJNJFGH);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postPickupEvent, action);
|
|
tool3.PostPickupEvent = mfbglihgcgo;
|
|
Tool tool4 = this.tool;
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = tool4.PostReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.OGHNKALGNEJ);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo2 = MFBGLIHGCGO.BPJDFPACLMK(postReleaseEvent, action2);
|
|
tool4.PostReleaseEvent = mfbglihgcgo2;
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
Action<AGAJMBPABDL> action3 = new Action(this.EAAJIMNMLCP);
|
|
battleRoyaleGlider.AuthorityChangedEvent += action3;
|
|
this.tool.rigidbodyEx.AddKinematic(this);
|
|
this.tool.ReleaseWithVelocity = false;
|
|
Tool tool5 = this.tool;
|
|
BattleRoyaleGlider battleRoyaleGlider2 = this.glider;
|
|
RigidbodyEx rigidbodyEx = tool5.rigidbodyEx;
|
|
RigidbodyEx rigidbodyEx2 = battleRoyaleGlider2.rigidbodyEx;
|
|
rigidbodyEx.HICENEOPGOF = rigidbodyEx2;
|
|
Transform transform = this.glider.transform;
|
|
Transform transform2 = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
BattleRoyaleGlider battleRoyaleGlider3 = this.glider;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
this.EIJNMCNMMOC.z = z2;
|
|
Transform transform3 = battleRoyaleGlider3.transform;
|
|
Transform transform4 = base.transform;
|
|
}
|
|
|
|
// Token: 0x06012E72 RID: 77426 RVA: 0x0045A98C File Offset: 0x00458B8C
|
|
[Token(Token = "0x6012E72")]
|
|
[Address(RVA = "0x868840", Offset = "0x867640", VA = "0x180868840")]
|
|
private void Start()
|
|
{
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
VirtualJoystickRigidbodyPickup virtualJoystickRigidbodyPickup = this.pickup;
|
|
Transform targetTransform = battleRoyaleGlider.rigidbodyEx.MDKDCJFEBJH;
|
|
virtualJoystickRigidbodyPickup.Pivot = targetTransform;
|
|
VirtualJoystickRigidbodyPickup virtualJoystickRigidbodyPickup2 = this.pickup;
|
|
float z = this.EIJNMCNMMOC.z;
|
|
virtualJoystickRigidbodyPickup2.PivotLocalPosition.z = z;
|
|
VirtualJoystickRigidbodyPickup virtualJoystickRigidbodyPickup3 = this.pickup;
|
|
Quaternion pankplbabfb = this.PANKPLBABFB;
|
|
virtualJoystickRigidbodyPickup3.PivotLocalRotation = pankplbabfb;
|
|
}
|
|
|
|
// Token: 0x06012E73 RID: 77427 RVA: 0x0045A9FC File Offset: 0x00458BFC
|
|
[Token(Token = "0x6012E73")]
|
|
[Address(RVA = "0x868650", Offset = "0x867450", VA = "0x180868650")]
|
|
private void 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.NFIFHJNJFGH);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postPickupEvent, action);
|
|
tool2.PostPickupEvent = mfbglihgcgo;
|
|
Tool tool3 = this.tool;
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = tool3.PostReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.OGHNKALGNEJ);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo2 = MFBGLIHGCGO.GMNMHGMFGOL(postReleaseEvent, action2);
|
|
tool3.PostReleaseEvent = mfbglihgcgo2;
|
|
}
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
int num2 = 0;
|
|
if (battleRoyaleGlider != num2)
|
|
{
|
|
PhotonView photonView = this.glider.JDHMIOJKLCK;
|
|
int num3 = 0;
|
|
if (photonView != num3)
|
|
{
|
|
BattleRoyaleGlider battleRoyaleGlider2 = this.glider;
|
|
Action<AGAJMBPABDL> action3 = new Action(this.EAAJIMNMLCP);
|
|
battleRoyaleGlider2.AuthorityChangedEvent -= action3;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E74 RID: 77428 RVA: 0x0045AAD8 File Offset: 0x00458CD8
|
|
[Token(Token = "0x6012E74")]
|
|
[Address(RVA = "0x8688C0", Offset = "0x8676C0", VA = "0x1808688C0")]
|
|
private void Update()
|
|
{
|
|
if (this.tool.OGIBLNIIHDK && !this.tool.FNFNLDBILFE)
|
|
{
|
|
RigidbodyEx rigidbodyEx = this.tool.rigidbodyEx;
|
|
float z = this.EIJNMCNMMOC.z;
|
|
float time = Time.time;
|
|
float num = this.settleSpeedCurve.Evaluate(time);
|
|
RigidbodyEx rigidbodyEx2 = this.tool.rigidbodyEx;
|
|
Quaternion pankplbabfb = this.PANKPLBABFB;
|
|
float deltaTime = Time.deltaTime;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E75 RID: 77429 RVA: 0x0045AB54 File Offset: 0x00458D54
|
|
[Token(Token = "0x6012E75")]
|
|
[Address(RVA = "0x8685E0", Offset = "0x8673E0", VA = "0x1808685E0")]
|
|
private void NFIFHJNJFGH(Tool EGFEJGHDNAI)
|
|
{
|
|
Tool tool = this.tool;
|
|
int num = 0;
|
|
tool.EnableUnderhandToss(num != 0, this);
|
|
}
|
|
|
|
// Token: 0x06012E76 RID: 77430 RVA: 0x0045AB78 File Offset: 0x00458D78
|
|
[Token(Token = "0x6012E76")]
|
|
[Address(RVA = "0x868610", Offset = "0x867410", VA = "0x180868610")]
|
|
private void OGHNKALGNEJ(Tool EGFEJGHDNAI)
|
|
{
|
|
this.tool.EnableUnderhandToss(true, this);
|
|
float time = Time.time;
|
|
this.NBMIHIIBBNP = time;
|
|
}
|
|
|
|
// Token: 0x06012E77 RID: 77431 RVA: 0x0045ABA8 File Offset: 0x00458DA8
|
|
[Token(Token = "0x6012E77")]
|
|
[Address(RVA = "0x868410", Offset = "0x867210", VA = "0x180868410")]
|
|
private void EAAJIMNMLCP(AGAJMBPABDL HIBNOIKDDAC)
|
|
{
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
int num = 0;
|
|
if (battleRoyaleGlider != num && this.glider.OGIBLNIIHDK)
|
|
{
|
|
Tool tool = this.tool;
|
|
int num2 = 0;
|
|
if (tool != num2)
|
|
{
|
|
PhotonView photonView = this.tool.JDHMIOJKLCK;
|
|
AGAJMBPABDL agajmbpabdl = KKPBCOOONNK.MDMMDPEKICF;
|
|
photonView.TransferOwnership(agajmbpabdl);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012E78 RID: 77432 RVA: 0x0045AC10 File Offset: 0x00458E10
|
|
[Token(Token = "0x6012E78")]
|
|
[Address(RVA = "0x868520", Offset = "0x867320", VA = "0x180868520")]
|
|
private bool LPLIIBBAAOI(Tool NBHJPDBHDHB, Player NHCEBNBEEBE, Vector3 JEDLNAEEMEN, bool GEJJBENPHJG)
|
|
{
|
|
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
|
int num = 0;
|
|
if (battleRoyaleGlider != num)
|
|
{
|
|
AGAJMBPABDL ggafbjilnjb = this.glider.GGAFBJILNJB;
|
|
if (ggafbjilnjb != 0)
|
|
{
|
|
AGAJMBPABDL photonPlayer = NHCEBNBEEBE.DBAJDHGDPOL;
|
|
return ggafbjilnjb == photonPlayer;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012E79 RID: 77433 RVA: 0x0045AC54 File Offset: 0x00458E54
|
|
[Token(Token = "0x6012E79")]
|
|
[Address(RVA = "0x868A90", Offset = "0x867890", VA = "0x180868A90")]
|
|
public BattleRoyaleGliderHandlebar()
|
|
{
|
|
float z = Vector3.zero.z;
|
|
this.EIJNMCNMMOC.z = z;
|
|
Quaternion identity = Quaternion.identity;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400C419 RID: 50201
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C419")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400C41A RID: 50202
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400C41A")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
|
private VirtualJoystickRigidbodyPickup pickup;
|
|
|
|
// Token: 0x0400C41B RID: 50203
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400C41B")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Parent, false, false, false)]
|
|
private BattleRoyaleGlider glider;
|
|
|
|
// Token: 0x0400C41C RID: 50204
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400C41C")]
|
|
[SerializeField]
|
|
[Header("Settings")]
|
|
private AnimationCurve settleSpeedCurve;
|
|
|
|
// Token: 0x0400C41D RID: 50205
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400C41D")]
|
|
private float NBMIHIIBBNP;
|
|
|
|
// Token: 0x0400C41E RID: 50206
|
|
[FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x400C41E")]
|
|
private Vector3 EIJNMCNMMOC;
|
|
|
|
// Token: 0x0400C41F RID: 50207
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400C41F")]
|
|
private Quaternion PANKPLBABFB;
|
|
}
|
|
}
|