m
This commit is contained in:
@@ -0,0 +1,301 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities.BattleRoyale
|
||||
{
|
||||
// Token: 0x02002CBD RID: 11453
|
||||
[Token(Token = "0x2002CBD")]
|
||||
public class BattleRoyaleGliderHandlebar : MonoBehaviour
|
||||
{
|
||||
// Token: 0x17003567 RID: 13671
|
||||
// (get) Token: 0x060132AF RID: 78511 RVA: 0x004644E0 File Offset: 0x004626E0
|
||||
[Token(Token = "0x17003567")]
|
||||
public float FOJOAPKDAND
|
||||
{
|
||||
[Token(Token = "0x60132AF")]
|
||||
[Address(RVA = "0x137C250", Offset = "0x137B250", VA = "0x18137C250")]
|
||||
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: 0x17003568 RID: 13672
|
||||
// (get) Token: 0x060132B0 RID: 78512 RVA: 0x0046453C File Offset: 0x0046273C
|
||||
[Token(Token = "0x17003568")]
|
||||
public float FOKKJNNBANL
|
||||
{
|
||||
[Token(Token = "0x60132B0")]
|
||||
[Address(RVA = "0x137C3B0", Offset = "0x137B3B0", VA = "0x18137C3B0")]
|
||||
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: 0x17003569 RID: 13673
|
||||
// (get) Token: 0x060132B1 RID: 78513 RVA: 0x00464598 File Offset: 0x00462798
|
||||
[Token(Token = "0x17003569")]
|
||||
public Tool PBBJCLJPFMI
|
||||
{
|
||||
[Token(Token = "0x60132B1")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.tool;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060132B2 RID: 78514 RVA: 0x004645AC File Offset: 0x004627AC
|
||||
[Token(Token = "0x60132B2")]
|
||||
[Address(RVA = "0x137B7F0", Offset = "0x137A7F0", VA = "0x18137B7F0")]
|
||||
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: 0x060132B3 RID: 78515 RVA: 0x00464734 File Offset: 0x00462934
|
||||
[Token(Token = "0x60132B3")]
|
||||
[Address(RVA = "0x137BF60", Offset = "0x137AF60", VA = "0x18137BF60")]
|
||||
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: 0x060132B4 RID: 78516 RVA: 0x004647A4 File Offset: 0x004629A4
|
||||
[Token(Token = "0x60132B4")]
|
||||
[Address(RVA = "0x137BD70", Offset = "0x137AD70", VA = "0x18137BD70")]
|
||||
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: 0x060132B5 RID: 78517 RVA: 0x00464880 File Offset: 0x00462A80
|
||||
[Token(Token = "0x60132B5")]
|
||||
[Address(RVA = "0x137BFE0", Offset = "0x137AFE0", VA = "0x18137BFE0")]
|
||||
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: 0x060132B6 RID: 78518 RVA: 0x004648FC File Offset: 0x00462AFC
|
||||
[Token(Token = "0x60132B6")]
|
||||
[Address(RVA = "0x137BD00", Offset = "0x137AD00", VA = "0x18137BD00")]
|
||||
private void NFIFHJNJFGH(Tool EGFEJGHDNAI)
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
int num = 0;
|
||||
tool.EnableUnderhandToss(num != 0, this);
|
||||
}
|
||||
|
||||
// Token: 0x060132B7 RID: 78519 RVA: 0x00464920 File Offset: 0x00462B20
|
||||
[Token(Token = "0x60132B7")]
|
||||
[Address(RVA = "0x137BD30", Offset = "0x137AD30", VA = "0x18137BD30")]
|
||||
private void OGHNKALGNEJ(Tool EGFEJGHDNAI)
|
||||
{
|
||||
this.tool.EnableUnderhandToss(true, this);
|
||||
float time = Time.time;
|
||||
this.NBMIHIIBBNP = time;
|
||||
}
|
||||
|
||||
// Token: 0x060132B8 RID: 78520 RVA: 0x00464950 File Offset: 0x00462B50
|
||||
[Token(Token = "0x60132B8")]
|
||||
[Address(RVA = "0x137BB30", Offset = "0x137AB30", VA = "0x18137BB30")]
|
||||
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: 0x060132B9 RID: 78521 RVA: 0x004649B8 File Offset: 0x00462BB8
|
||||
[Token(Token = "0x60132B9")]
|
||||
[Address(RVA = "0x137BC40", Offset = "0x137AC40", VA = "0x18137BC40")]
|
||||
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: 0x060132BA RID: 78522 RVA: 0x004649FC File Offset: 0x00462BFC
|
||||
[Token(Token = "0x60132BA")]
|
||||
[Address(RVA = "0x137C1B0", Offset = "0x137B1B0", VA = "0x18137C1B0")]
|
||||
public BattleRoyaleGliderHandlebar()
|
||||
{
|
||||
float z = Vector3.zero.z;
|
||||
this.EIJNMCNMMOC.z = z;
|
||||
Quaternion identity = Quaternion.identity;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400C62D RID: 50733
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C62D")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
||||
private Tool tool;
|
||||
|
||||
// Token: 0x0400C62E RID: 50734
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400C62E")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
||||
private VirtualJoystickRigidbodyPickup pickup;
|
||||
|
||||
// Token: 0x0400C62F RID: 50735
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400C62F")]
|
||||
[SerializeField]
|
||||
[NKNLDEIPALE(FHBJCBPFODN.Parent, false, false, false)]
|
||||
private BattleRoyaleGlider glider;
|
||||
|
||||
// Token: 0x0400C630 RID: 50736
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400C630")]
|
||||
[SerializeField]
|
||||
[Header("Settings")]
|
||||
private AnimationCurve settleSpeedCurve;
|
||||
|
||||
// Token: 0x0400C631 RID: 50737
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400C631")]
|
||||
private float NBMIHIIBBNP;
|
||||
|
||||
// Token: 0x0400C632 RID: 50738
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400C632")]
|
||||
private Vector3 EIJNMCNMMOC;
|
||||
|
||||
// Token: 0x0400C633 RID: 50739
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400C633")]
|
||||
private Quaternion PANKPLBABFB;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user