scripts
This commit is contained in:
@@ -0,0 +1,279 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Realtime;
|
||||
using RecRoom.Core.DataStructures.Tokens;
|
||||
using RecRoom.Networking.SynchronizedFields;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Players
|
||||
{
|
||||
// Token: 0x020023E9 RID: 9193
|
||||
[Token(Token = "0x20023E9")]
|
||||
[StructLayout(3)]
|
||||
public class PlayerPersonalSpace : MonoBehaviour
|
||||
{
|
||||
// Token: 0x17002B49 RID: 11081
|
||||
// (get) Token: 0x0600FEB2 RID: 65202 RVA: 0x003BA254 File Offset: 0x003B8454
|
||||
[Token(Token = "0x17002B49")]
|
||||
public global::Player BDPNENBMDDB
|
||||
{
|
||||
[Token(Token = "0x600FEB2")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this._player;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002B4A RID: 11082
|
||||
// (get) Token: 0x0600FEB3 RID: 65203 RVA: 0x003BA268 File Offset: 0x003B8468
|
||||
// (set) Token: 0x0600FEB4 RID: 65204 RVA: 0x003BA2A4 File Offset: 0x003B84A4
|
||||
[Token(Token = "0x17002B4A")]
|
||||
public float IFEGNMIFMAK
|
||||
{
|
||||
[Token(Token = "0x600FEB3")]
|
||||
[Address(RVA = "0x1140F90", Offset = "0x113F990", VA = "0x181140F90")]
|
||||
get
|
||||
{
|
||||
if (!this._player.NGIJEPCANGH || this._player.MHEGHKNGOEG)
|
||||
{
|
||||
}
|
||||
return this.OFMDBIOMDNC.Get();
|
||||
}
|
||||
[Token(Token = "0x600FEB4")]
|
||||
[Address(RVA = "0x1141010", Offset = "0x113FA10", VA = "0x181141010")]
|
||||
set
|
||||
{
|
||||
SynchronizedPlayerField<float> ofmdbiomdnc = this.OFMDBIOMDNC;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600FEB5 RID: 65205 RVA: 0x003BA2C0 File Offset: 0x003B84C0
|
||||
[Token(Token = "0x600FEB5")]
|
||||
[Address(RVA = "0x1140150", Offset = "0x113EB50", VA = "0x181140150")]
|
||||
private void Awake()
|
||||
{
|
||||
Photon.Realtime.Player photonPlayer = this._player.DBAJDHGDPOL;
|
||||
Action action = new Action(this.NFBKMELAFFL);
|
||||
SynchronizedPlayerField<float> synchronizedPlayerField;
|
||||
this.OFMDBIOMDNC = synchronizedPlayerField;
|
||||
}
|
||||
|
||||
// Token: 0x0600FEB6 RID: 65206 RVA: 0x003BA2F4 File Offset: 0x003B84F4
|
||||
[Token(Token = "0x600FEB6")]
|
||||
[Address(RVA = "0x11409A0", Offset = "0x113F3A0", VA = "0x1811409A0")]
|
||||
private void Start()
|
||||
{
|
||||
LocalPlayerController instance;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
global::Player player = this._player;
|
||||
ActionEvent dlabekkgefp = PlayerPersonalSpace.DLABEKKGEFP;
|
||||
Action action = new Action(this.NFBKMELAFFL);
|
||||
PlayerPersonalSpace.DLABEKKGEFP = dlabekkgefp + action;
|
||||
this.NFBKMELAFFL();
|
||||
instance = SingletonMonoBehaviour.Instance;
|
||||
Action currentPlayerTypeChange = instance.CurrentPlayerTypeChange;
|
||||
Action action2 = new Action(this.CHBMMAMLJGM);
|
||||
@delegate = Delegate.Combine(currentPlayerTypeChange, action2);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
instance.CurrentPlayerTypeChange = @delegate;
|
||||
SettingsManager instance2 = SingletonMonoBehaviour.Instance;
|
||||
Action action3 = new Action(this.CHBMMAMLJGM);
|
||||
instance2.PNOFHGGCBPH += action3;
|
||||
global::Player player2 = this._player;
|
||||
SettingsManager instance3 = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
float personalSpaceDistance = instance3.IFEGNMIFMAK;
|
||||
bool flag = this.EAMDEOICHAI.AddValue(num, this, -1);
|
||||
string text = this.EAMDEOICHAI.ToString();
|
||||
SynchronizedPlayerField<float> ofmdbiomdnc = this.OFMDBIOMDNC;
|
||||
global::Player player3 = this._player;
|
||||
ActionEvent disablePersonalBubbleForFriendsChangedEvent = player3.DisablePersonalBubbleForFriendsChangedEvent;
|
||||
Action action4 = new Action(this.NFBKMELAFFL);
|
||||
ActionEvent actionEvent = disablePersonalBubbleForFriendsChangedEvent + action4;
|
||||
player3.DisablePersonalBubbleForFriendsChangedEvent = actionEvent;
|
||||
}
|
||||
|
||||
// Token: 0x0600FEB7 RID: 65207 RVA: 0x003BA400 File Offset: 0x003B8600
|
||||
[Token(Token = "0x600FEB7")]
|
||||
[Address(RVA = "0x11405E0", Offset = "0x113EFE0", VA = "0x1811405E0")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
LocalPlayerController instance4;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
global::Player player = this._player;
|
||||
ActionEvent disablePersonalBubbleForFriendsChangedEvent = player.DisablePersonalBubbleForFriendsChangedEvent;
|
||||
Action action = new Action(this.NFBKMELAFFL);
|
||||
ActionEvent actionEvent = disablePersonalBubbleForFriendsChangedEvent - action;
|
||||
player.DisablePersonalBubbleForFriendsChangedEvent = actionEvent;
|
||||
ActionEvent dlabekkgefp = PlayerPersonalSpace.DLABEKKGEFP;
|
||||
Action action2 = new Action(this.NFBKMELAFFL);
|
||||
PlayerPersonalSpace.DLABEKKGEFP = dlabekkgefp - action2;
|
||||
global::Player player2 = this._player;
|
||||
SettingsManager instance = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
if (instance != num)
|
||||
{
|
||||
SettingsManager instance2 = SingletonMonoBehaviour.Instance;
|
||||
Action action3 = new Action(this.CHBMMAMLJGM);
|
||||
instance2.PNOFHGGCBPH -= action3;
|
||||
}
|
||||
global::Player player3 = this._player;
|
||||
LocalPlayerController instance3 = SingletonMonoBehaviour.Instance;
|
||||
int num2 = 0;
|
||||
if (!(instance3 != num2))
|
||||
{
|
||||
return;
|
||||
}
|
||||
instance4 = SingletonMonoBehaviour.Instance;
|
||||
Action currentPlayerTypeChange = instance4.CurrentPlayerTypeChange;
|
||||
Action action4 = new Action(this.CHBMMAMLJGM);
|
||||
@delegate = Delegate.Remove(currentPlayerTypeChange, action4);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
instance4.CurrentPlayerTypeChange = @delegate;
|
||||
}
|
||||
|
||||
// Token: 0x0600FEB8 RID: 65208 RVA: 0x003BA4FC File Offset: 0x003B86FC
|
||||
[Token(Token = "0x600FEB8")]
|
||||
[Address(RVA = "0x1140080", Offset = "0x113EA80", VA = "0x181140080")]
|
||||
public void AddPersonalSpaceDistance(float OMLBPICLALA, object PIHIPPPPEBI, int JMHKMOACHDG)
|
||||
{
|
||||
ExplicitTokenMap<float> eamdeoichai = this.EAMDEOICHAI;
|
||||
string text = this.EAMDEOICHAI.ToString();
|
||||
SynchronizedPlayerField<float> ofmdbiomdnc = this.OFMDBIOMDNC;
|
||||
}
|
||||
|
||||
// Token: 0x0600FEB9 RID: 65209 RVA: 0x003BA52C File Offset: 0x003B872C
|
||||
[Token(Token = "0x600FEB9")]
|
||||
[Address(RVA = "0x11408F0", Offset = "0x113F2F0", VA = "0x1811408F0")]
|
||||
public void RemovePersonalSpaceDistance(object PIHIPPPPEBI)
|
||||
{
|
||||
bool flag = this.EAMDEOICHAI.RemoveValue(PIHIPPPPEBI);
|
||||
string text = this.EAMDEOICHAI.ToString();
|
||||
SynchronizedPlayerField<float> ofmdbiomdnc = this.OFMDBIOMDNC;
|
||||
}
|
||||
|
||||
// Token: 0x0600FEBA RID: 65210 RVA: 0x003BA560 File Offset: 0x003B8760
|
||||
[Token(Token = "0x600FEBA")]
|
||||
[Address(RVA = "0x1140220", Offset = "0x113EC20", VA = "0x181140220")]
|
||||
private void CHBMMAMLJGM()
|
||||
{
|
||||
global::Player player = this._player;
|
||||
SettingsManager instance = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
float personalSpaceDistance = instance.IFEGNMIFMAK;
|
||||
bool flag = this.EAMDEOICHAI.AddValue(num, this, -1);
|
||||
string text = this.EAMDEOICHAI.ToString();
|
||||
SynchronizedPlayerField<float> ofmdbiomdnc = this.OFMDBIOMDNC;
|
||||
}
|
||||
|
||||
// Token: 0x0600FEBB RID: 65211 RVA: 0x003BA5B0 File Offset: 0x003B87B0
|
||||
[Token(Token = "0x600FEBB")]
|
||||
[Address(RVA = "0x1140350", Offset = "0x113ED50", VA = "0x181140350")]
|
||||
private void NFBKMELAFFL()
|
||||
{
|
||||
global::Player player = this._player;
|
||||
float num = this.IFEGNMIFMAK;
|
||||
float num2 = this.IFEGNMIFMAK;
|
||||
num2 = num;
|
||||
num = Mathf.Max(num2, num2);
|
||||
num2 = num;
|
||||
float num3 = Mathf.Max(0.25f, num2);
|
||||
CapsuleCollider capsuleCollider = this.personalSpaceCollider;
|
||||
num = num3;
|
||||
float radius = capsuleCollider.radius;
|
||||
if (capsuleCollider != 0)
|
||||
{
|
||||
CapsuleCollider capsuleCollider2 = this.personalSpaceCollider;
|
||||
num2 = num;
|
||||
capsuleCollider2.radius = num2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600FEBC RID: 65212 RVA: 0x003BA630 File Offset: 0x003B8830
|
||||
[Token(Token = "0x600FEBC")]
|
||||
[Address(RVA = "0x1140D00", Offset = "0x113F700", VA = "0x181140D00")]
|
||||
private void Update()
|
||||
{
|
||||
global::Player player = this._player;
|
||||
CapsuleCollider capsuleCollider = this.personalSpaceCollider;
|
||||
int num = 0;
|
||||
if (!(capsuleCollider == num))
|
||||
{
|
||||
CapsuleCollider capsuleCollider2 = this.personalSpaceCollider;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
}
|
||||
bool flag3;
|
||||
bool flag2 = !flag3;
|
||||
capsuleCollider2.enabled = flag2;
|
||||
Transform transform = this.personalSpaceCollider.transform;
|
||||
global::Player player2 = this._player;
|
||||
Vector3 vector;
|
||||
float z = vector.z;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600FEBD RID: 65213 RVA: 0x003BA69C File Offset: 0x003B889C
|
||||
[Token(Token = "0x600FEBD")]
|
||||
[Address(RVA = "0x1140F30", Offset = "0x113F930", VA = "0x181140F30")]
|
||||
public PlayerPersonalSpace()
|
||||
{
|
||||
ExplicitTokenMap<float> explicitTokenMap = new ExplicitTokenMap();
|
||||
this.EAMDEOICHAI = explicitTokenMap;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600FEBE RID: 65214 RVA: 0x003BA6BC File Offset: 0x003B88BC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600FEBE")]
|
||||
[Address(RVA = "0x1140EB0", Offset = "0x113F8B0", VA = "0x181140EB0")]
|
||||
static PlayerPersonalSpace()
|
||||
{
|
||||
int num;
|
||||
ActionEvent actionEvent = new ActionEvent(32, num != 0);
|
||||
num = 0;
|
||||
PlayerPersonalSpace.DLABEKKGEFP = actionEvent;
|
||||
PlayerPersonalSpace.BFAGPPEPKED = "PLAYER_TELEPORT_BUFFER";
|
||||
}
|
||||
|
||||
// Token: 0x0400A919 RID: 43289
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400A919")]
|
||||
[SerializeField]
|
||||
private CapsuleCollider personalSpaceCollider;
|
||||
|
||||
// Token: 0x0400A91A RID: 43290
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400A91A")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private global::Player _player;
|
||||
|
||||
// Token: 0x0400A91B RID: 43291
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400A91B")]
|
||||
private SynchronizedPlayerField<float> OFMDBIOMDNC;
|
||||
|
||||
// Token: 0x0400A91C RID: 43292
|
||||
[Token(Token = "0x400A91C")]
|
||||
private static ActionEvent DLABEKKGEFP;
|
||||
|
||||
// Token: 0x0400A91D RID: 43293
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400A91D")]
|
||||
private ExplicitTokenMap<float> EAMDEOICHAI;
|
||||
|
||||
// Token: 0x0400A91E RID: 43294
|
||||
[Token(Token = "0x400A91E")]
|
||||
private static string BFAGPPEPKED = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user