scripts
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Realtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities
|
||||
{
|
||||
// Token: 0x02002692 RID: 9874
|
||||
[Token(Token = "0x2002692")]
|
||||
[StructLayout(3)]
|
||||
public class WhipPullable : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06011230 RID: 70192 RVA: 0x0040BB70 File Offset: 0x00409D70
|
||||
[Token(Token = "0x6011230")]
|
||||
[Address(RVA = "0x15D5400", Offset = "0x15D3E00", VA = "0x1815D5400")]
|
||||
private void Awake()
|
||||
{
|
||||
WhipInteractable whipInteractable = this.whipInteractable;
|
||||
WhipInteractable.DMNHOKLPCKI dmnhoklpcki;
|
||||
dmnhoklpcki.method_ptr = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.method = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.m_target = this;
|
||||
whipInteractable.HOHAEKNOABM += dmnhoklpcki;
|
||||
RigidbodyEx rigidbodyEx = this.whipInteractable.rigidbodyEx;
|
||||
int num = 0;
|
||||
if (rigidbodyEx == num)
|
||||
{
|
||||
Debug.LogError(base.name + " doesn't have a RigidbodyEx component. Pullables must have this component.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06011231 RID: 70193 RVA: 0x0040BBE0 File Offset: 0x00409DE0
|
||||
[Token(Token = "0x6011231")]
|
||||
[Address(RVA = "0x15D56B0", Offset = "0x15D40B0", VA = "0x1815D56B0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
WhipInteractable whipInteractable = this.whipInteractable;
|
||||
int num = 0;
|
||||
if (!(whipInteractable != num))
|
||||
{
|
||||
return;
|
||||
}
|
||||
WhipInteractable whipInteractable2 = this.whipInteractable;
|
||||
WhipInteractable.DMNHOKLPCKI dmnhoklpcki;
|
||||
dmnhoklpcki.method_ptr = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.method = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.m_target = this;
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != this)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06011232 RID: 70194 RVA: 0x0040BC3C File Offset: 0x00409E3C
|
||||
[Token(Token = "0x6011232")]
|
||||
[Address(RVA = "0x15D5500", Offset = "0x15D3F00", VA = "0x1815D5500")]
|
||||
private void OJNOPFLEKHL(WhipInteractable ODBAFIFNIDO, Photon.Realtime.Player NIAKEPMCHPK, Vector3 FGEOANJKIBI, Vector3 LJCFJMELDFL)
|
||||
{
|
||||
if (this.whipInteractable.rigidbodyEx.JEGGMAKBGEK)
|
||||
{
|
||||
WhipInteractable whipInteractable = this.whipInteractable;
|
||||
RigidbodyEx rigidbodyEx = whipInteractable.rigidbodyEx;
|
||||
if (rigidbodyEx != 0)
|
||||
{
|
||||
int num = 0;
|
||||
rigidbodyEx.SetKinematic("WhipInteractableKinematic", num != 0);
|
||||
}
|
||||
whipInteractable.gameObject.IBAICLIPHDI(DAJFOCGPHGP.StaticPhysics, DAJFOCGPHGP.DynamicPhysics);
|
||||
}
|
||||
if (this.whipInteractable.hasAuthority)
|
||||
{
|
||||
RigidbodyEx rigidbodyEx2 = this.whipInteractable.rigidbodyEx;
|
||||
float z = this.pullVelocityMultiplier.z;
|
||||
float z2 = FGEOANJKIBI.z;
|
||||
Vector3 vector;
|
||||
float z3 = vector.z;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06011233 RID: 70195 RVA: 0x0040BCCC File Offset: 0x00409ECC
|
||||
[Token(Token = "0x6011233")]
|
||||
[Address(RVA = "0x15D57E0", Offset = "0x15D41E0", VA = "0x1815D57E0")]
|
||||
public WhipPullable()
|
||||
{
|
||||
float z = Vector3.one.z;
|
||||
this.pullVelocityMultiplier.z = z;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400B657 RID: 46679
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400B657")]
|
||||
[SerializeField]
|
||||
private Vector3 pullVelocityMultiplier;
|
||||
|
||||
// Token: 0x0400B658 RID: 46680
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400B658")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private WhipInteractable whipInteractable;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user