scripts
This commit is contained in:
@@ -0,0 +1,283 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Pun;
|
||||
using Photon.Realtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities.BattleRoyale
|
||||
{
|
||||
// Token: 0x020026DF RID: 9951
|
||||
[Token(Token = "0x20026DF")]
|
||||
[StructLayout(3)]
|
||||
public class BattleRoyaleGliderHandlebar : MonoBehaviour
|
||||
{
|
||||
// Token: 0x17002EEA RID: 12010
|
||||
// (get) Token: 0x060114A8 RID: 70824 RVA: 0x00417C90 File Offset: 0x00415E90
|
||||
[Token(Token = "0x17002EEA")]
|
||||
public float FOJOAPKDAND
|
||||
{
|
||||
[Token(Token = "0x60114A8")]
|
||||
[Address(RVA = "0x13142C0", Offset = "0x1312CC0", VA = "0x1813142C0")]
|
||||
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: 0x17002EEB RID: 12011
|
||||
// (get) Token: 0x060114A9 RID: 70825 RVA: 0x00417CEC File Offset: 0x00415EEC
|
||||
[Token(Token = "0x17002EEB")]
|
||||
public float FOKKJNNBANL
|
||||
{
|
||||
[Token(Token = "0x60114A9")]
|
||||
[Address(RVA = "0x1314420", Offset = "0x1312E20", VA = "0x181314420")]
|
||||
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: 0x17002EEC RID: 12012
|
||||
// (get) Token: 0x060114AA RID: 70826 RVA: 0x00417D48 File Offset: 0x00415F48
|
||||
[Token(Token = "0x17002EEC")]
|
||||
public Tool PBBJCLJPFMI
|
||||
{
|
||||
[Token(Token = "0x60114AA")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.tool;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060114AB RID: 70827 RVA: 0x00417D5C File Offset: 0x00415F5C
|
||||
[Token(Token = "0x60114AB")]
|
||||
[Address(RVA = "0x1313940", Offset = "0x1312340", VA = "0x181313940")]
|
||||
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;
|
||||
ActionEvent<Tool> postReleaseEvent = tool3.PostReleaseEvent;
|
||||
Action<Tool> action = new Action(this.OGHNKALGNEJ);
|
||||
ActionEvent<Tool> actionEvent = postReleaseEvent + action;
|
||||
tool3.PostReleaseEvent = actionEvent;
|
||||
PhotonView photonView = this.glider.photonView;
|
||||
Action<int> action2 = new Action(this.MIIPNEPKFBP);
|
||||
photonView.OwnerChangedEvent += action2;
|
||||
this.tool.rigidbodyEx.AddKinematic(this);
|
||||
this.tool.ReleaseWithVelocity = false;
|
||||
Tool tool4 = this.tool;
|
||||
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
||||
RigidbodyEx rigidbodyEx = tool4.rigidbodyEx;
|
||||
RigidbodyEx rigidbodyEx2 = battleRoyaleGlider.rigidbodyEx;
|
||||
rigidbodyEx.HICENEOPGOF = rigidbodyEx2;
|
||||
Transform transform = this.glider.transform;
|
||||
Transform transform2 = base.transform;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
BattleRoyaleGlider battleRoyaleGlider2 = this.glider;
|
||||
Vector3 vector2;
|
||||
float z2 = vector2.z;
|
||||
this.EIJNMCNMMOC.z = z2;
|
||||
Transform transform3 = battleRoyaleGlider2.transform;
|
||||
Transform transform4 = base.transform;
|
||||
}
|
||||
|
||||
// Token: 0x060114AC RID: 70828 RVA: 0x00417EB4 File Offset: 0x004160B4
|
||||
[Token(Token = "0x60114AC")]
|
||||
[Address(RVA = "0x1313FD0", Offset = "0x13129D0", VA = "0x181313FD0")]
|
||||
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: 0x060114AD RID: 70829 RVA: 0x00417F24 File Offset: 0x00416124
|
||||
[Token(Token = "0x60114AD")]
|
||||
[Address(RVA = "0x1313E30", Offset = "0x1312830", VA = "0x181313E30")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
int num = 0;
|
||||
if (tool != num)
|
||||
{
|
||||
Tool tool2 = this.tool;
|
||||
ActionEvent<Tool> postReleaseEvent = tool2.PostReleaseEvent;
|
||||
Action<Tool> action = new Action(this.OGHNKALGNEJ);
|
||||
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
||||
tool2.PostReleaseEvent = actionEvent;
|
||||
}
|
||||
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
||||
int num2 = 0;
|
||||
if (battleRoyaleGlider != num2)
|
||||
{
|
||||
PhotonView photonView = this.glider.photonView;
|
||||
int num3 = 0;
|
||||
if (photonView != num3)
|
||||
{
|
||||
PhotonView photonView2 = this.glider.photonView;
|
||||
Action<int> action2 = new Action(this.MIIPNEPKFBP);
|
||||
photonView2.OwnerChangedEvent -= action2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060114AE RID: 70830 RVA: 0x00417FD0 File Offset: 0x004161D0
|
||||
[Token(Token = "0x60114AE")]
|
||||
[Address(RVA = "0x1314050", Offset = "0x1312A50", VA = "0x181314050")]
|
||||
private void Update()
|
||||
{
|
||||
if (this.tool.hasAuthority && !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: 0x060114AF RID: 70831 RVA: 0x0041804C File Offset: 0x0041624C
|
||||
[Token(Token = "0x60114AF")]
|
||||
[Address(RVA = "0x1313E10", Offset = "0x1312810", VA = "0x181313E10")]
|
||||
private void OGHNKALGNEJ(Tool EGFEJGHDNAI)
|
||||
{
|
||||
float time = Time.time;
|
||||
this.NBMIHIIBBNP = time;
|
||||
}
|
||||
|
||||
// Token: 0x060114B0 RID: 70832 RVA: 0x00418068 File Offset: 0x00416268
|
||||
[Token(Token = "0x60114B0")]
|
||||
[Address(RVA = "0x1313D00", Offset = "0x1312700", VA = "0x181313D00")]
|
||||
private void MIIPNEPKFBP(int OAPCCBMILAE)
|
||||
{
|
||||
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
||||
int num = 0;
|
||||
if (battleRoyaleGlider != num && this.glider.hasAuthority)
|
||||
{
|
||||
Tool tool = this.tool;
|
||||
int num2 = 0;
|
||||
if (tool != num2)
|
||||
{
|
||||
PhotonView photonView = this.tool.photonView;
|
||||
Photon.Realtime.Player localPlayer = PhotonNetwork.LocalPlayer;
|
||||
photonView.TransferOwnership(localPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060114B1 RID: 70833 RVA: 0x004180D0 File Offset: 0x004162D0
|
||||
[Token(Token = "0x60114B1")]
|
||||
[Address(RVA = "0x1313C40", Offset = "0x1312640", VA = "0x181313C40")]
|
||||
private bool LPLIIBBAAOI(Tool NBHJPDBHDHB, global::Player NHCEBNBEEBE, Vector3 JEDLNAEEMEN, bool GEJJBENPHJG)
|
||||
{
|
||||
BattleRoyaleGlider battleRoyaleGlider = this.glider;
|
||||
int num = 0;
|
||||
if (battleRoyaleGlider != num)
|
||||
{
|
||||
Photon.Realtime.Player ggafbjilnjb = this.glider.GGAFBJILNJB;
|
||||
if (ggafbjilnjb != 0)
|
||||
{
|
||||
Photon.Realtime.Player photonPlayer = NHCEBNBEEBE.DBAJDHGDPOL;
|
||||
return ggafbjilnjb == photonPlayer;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060114B2 RID: 70834 RVA: 0x00418114 File Offset: 0x00416314
|
||||
[Token(Token = "0x60114B2")]
|
||||
[Address(RVA = "0x1314220", Offset = "0x1312C20", VA = "0x181314220")]
|
||||
public BattleRoyaleGliderHandlebar()
|
||||
{
|
||||
float z = Vector3.zero.z;
|
||||
this.EIJNMCNMMOC.z = z;
|
||||
Quaternion identity = Quaternion.identity;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400B8A3 RID: 47267
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400B8A3")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private Tool tool;
|
||||
|
||||
// Token: 0x0400B8A4 RID: 47268
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400B8A4")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private VirtualJoystickRigidbodyPickup pickup;
|
||||
|
||||
// Token: 0x0400B8A5 RID: 47269
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400B8A5")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Parent, false, false)]
|
||||
private BattleRoyaleGlider glider;
|
||||
|
||||
// Token: 0x0400B8A6 RID: 47270
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400B8A6")]
|
||||
[SerializeField]
|
||||
[Header("Settings")]
|
||||
private AnimationCurve settleSpeedCurve;
|
||||
|
||||
// Token: 0x0400B8A7 RID: 47271
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400B8A7")]
|
||||
private float NBMIHIIBBNP;
|
||||
|
||||
// Token: 0x0400B8A8 RID: 47272
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400B8A8")]
|
||||
private Vector3 EIJNMCNMMOC;
|
||||
|
||||
// Token: 0x0400B8A9 RID: 47273
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400B8A9")]
|
||||
private Quaternion PANKPLBABFB;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user