717 lines
24 KiB
C#
717 lines
24 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Combat;
|
|
using RecRoom.Core.GameManagement;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.BattleRoyale
|
|
{
|
|
// Token: 0x02002BE6 RID: 11238
|
|
[Token(Token = "0x2002BE6")]
|
|
public class BattleRoyaleVisitorMap : MonoBehaviour
|
|
{
|
|
// Token: 0x06012EFE RID: 77566 RVA: 0x0045E338 File Offset: 0x0045C538
|
|
[Token(Token = "0x6012EFE")]
|
|
[Address(RVA = "0x878010", Offset = "0x876E10", VA = "0x180878010")]
|
|
private void Awake()
|
|
{
|
|
MFBGLIHGCGO<AGAJMBPABDL> oldcnlgocoh = KKPBCOOONNK.OLDCNLGOCOH;
|
|
Action<AGAJMBPABDL> action = new Action(this.OnPhotonPlayerConnected);
|
|
KKPBCOOONNK.OLDCNLGOCOH = MFBGLIHGCGO.BPJDFPACLMK(oldcnlgocoh, action);
|
|
MFBGLIHGCGO<AGAJMBPABDL> hphoojldkkm = KKPBCOOONNK.HPHOOJLDKKM;
|
|
Action<AGAJMBPABDL> action2 = new Action(this.OnPhotonPlayerDisconnected);
|
|
KKPBCOOONNK.HPHOOJLDKKM = MFBGLIHGCGO.BPJDFPACLMK(hphoojldkkm, action2);
|
|
OKNNKFGFODL staticPostConfigurationAppliedEvent = GameConfigurationTool.StaticPostConfigurationAppliedEvent;
|
|
Action action3 = new Action(this.LKDMBKNGKFE);
|
|
GameConfigurationTool.StaticPostConfigurationAppliedEvent = OKNNKFGFODL.BPJDFPACLMK(staticPostConfigurationAppliedEvent, action3);
|
|
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (instance != num)
|
|
{
|
|
GameManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Action action4 = new Action(this.NJGKEJCHADK);
|
|
instance2.NJGCGNDOMBJ += action4;
|
|
GameManager instance3 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Action action5 = new Action(this.OODEMNCOLED);
|
|
instance3.NHDKANAHJFM += action5;
|
|
GameCombatManager combatManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
int num2 = 0;
|
|
if (combatManager != num2)
|
|
{
|
|
GameCombatManager combatManager2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
GameCombatManager.ODCIMPCGPKE odcimpcgpke = new GameCombatManager.ODCIMPCGPKE(this.KDEGAPNPCOF);
|
|
combatManager2.DNLKLILOAIM += odcimpcgpke;
|
|
GameCombatManager combatManager3 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
Action<AGAJMBPABDL> action6 = new Action(this.OBAFPHHODAF);
|
|
combatManager3.DownButNotOutKilledPlayerEvent += action6;
|
|
GameCombatManager combatManager4 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
GameCombatManager.PKJNMGICNJK pkjnmgicnjk = new GameCombatManager.PKJNMGICNJK(this.NHPLHJKNMFA);
|
|
combatManager4.JPJCJEBNPME += pkjnmgicnjk;
|
|
}
|
|
}
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.NONE)
|
|
{
|
|
Collider collider = this.mapCollider;
|
|
int num3 = 0;
|
|
collider.enabled = num3 != 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012EFF RID: 77567 RVA: 0x0045E4A4 File Offset: 0x0045C6A4
|
|
[Token(Token = "0x6012EFF")]
|
|
[Address(RVA = "0x879C90", Offset = "0x878A90", VA = "0x180879C90")]
|
|
private void OnDestroy()
|
|
{
|
|
MFBGLIHGCGO<AGAJMBPABDL> oldcnlgocoh = KKPBCOOONNK.OLDCNLGOCOH;
|
|
Action<AGAJMBPABDL> action = new Action(this.OnPhotonPlayerConnected);
|
|
KKPBCOOONNK.OLDCNLGOCOH = MFBGLIHGCGO.GMNMHGMFGOL(oldcnlgocoh, action);
|
|
MFBGLIHGCGO<AGAJMBPABDL> hphoojldkkm = KKPBCOOONNK.HPHOOJLDKKM;
|
|
Action<AGAJMBPABDL> action2 = new Action(this.OnPhotonPlayerDisconnected);
|
|
KKPBCOOONNK.HPHOOJLDKKM = MFBGLIHGCGO.GMNMHGMFGOL(hphoojldkkm, action2);
|
|
OKNNKFGFODL staticPostConfigurationAppliedEvent = GameConfigurationTool.StaticPostConfigurationAppliedEvent;
|
|
Action action3 = new Action(this.LKDMBKNGKFE);
|
|
GameConfigurationTool.StaticPostConfigurationAppliedEvent = OKNNKFGFODL.GMNMHGMFGOL(staticPostConfigurationAppliedEvent, action3);
|
|
GameManager instance = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (instance != num)
|
|
{
|
|
GameManager instance2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Action action4 = new Action(this.NJGKEJCHADK);
|
|
instance2.NJGCGNDOMBJ -= action4;
|
|
GameManager instance3 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Action action5 = new Action(this.OODEMNCOLED);
|
|
instance3.NHDKANAHJFM -= action5;
|
|
GameCombatManager combatManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
int num2 = 0;
|
|
if (combatManager != num2)
|
|
{
|
|
GameCombatManager combatManager2 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
GameCombatManager.ODCIMPCGPKE odcimpcgpke = new GameCombatManager.ODCIMPCGPKE(this.KDEGAPNPCOF);
|
|
combatManager2.DNLKLILOAIM -= odcimpcgpke;
|
|
GameCombatManager combatManager3 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
Action<AGAJMBPABDL> action6 = new Action(this.OBAFPHHODAF);
|
|
combatManager3.DownButNotOutKilledPlayerEvent -= action6;
|
|
GameCombatManager combatManager4 = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.combatManager;
|
|
GameCombatManager.PKJNMGICNJK pkjnmgicnjk = new GameCombatManager.PKJNMGICNJK(this.NHPLHJKNMFA);
|
|
combatManager4.JPJCJEBNPME -= pkjnmgicnjk;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F00 RID: 77568 RVA: 0x0045E5F4 File Offset: 0x0045C7F4
|
|
[Token(Token = "0x6012F00")]
|
|
[Address(RVA = "0x879480", Offset = "0x878280", VA = "0x180879480")]
|
|
private void LKDMBKNGKFE()
|
|
{
|
|
if (this.mode != BattleRoyaleVisitorMap.KIGNMBLALJP.NONE)
|
|
{
|
|
int activePlayersMaxCount = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.teamManager.GetActivePlayersMaxCount();
|
|
this.FKBKEDOIOEF(activePlayersMaxCount);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F01 RID: 77569 RVA: 0x0045E628 File Offset: 0x0045C828
|
|
[Token(Token = "0x6012F01")]
|
|
[Address(RVA = "0x878C90", Offset = "0x877A90", VA = "0x180878C90")]
|
|
private void FKBKEDOIOEF(int FFAGIDMFPIF)
|
|
{
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
if (pnpofoldmjo != 0)
|
|
{
|
|
if (pnpofoldmjo.Length == FFAGIDMFPIF)
|
|
{
|
|
goto IL_EF;
|
|
}
|
|
if (pnpofoldmjo != 0)
|
|
{
|
|
goto IL_22;
|
|
}
|
|
}
|
|
BattleRoyaleVisitorMapToken[] array = new BattleRoyaleVisitorMapToken[0];
|
|
IL_22:
|
|
int num = Mathf.Max(pnpofoldmjo.Length, FFAGIDMFPIF);
|
|
BattleRoyaleVisitorMapToken[] array2 = new BattleRoyaleVisitorMapToken[FFAGIDMFPIF];
|
|
int num2 = 0;
|
|
this.PNPOFOLDMJO = array2;
|
|
if (num > 0)
|
|
{
|
|
if (pnpofoldmjo.Length > num2)
|
|
{
|
|
OMCHJHPFBDN.KGFPNIMJHIC(pnpofoldmjo[num2].gameObject);
|
|
}
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo2 = this.PNPOFOLDMJO;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken = pnpofoldmjo[num2];
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
IL_EF:
|
|
GameObject lmnjpjmikgi = this.LMNJPJMIKGI;
|
|
int num3 = 0;
|
|
if (lmnjpjmikgi == num3)
|
|
{
|
|
GameObject gameObject = this.beeRingVisualizerPrefab;
|
|
Transform transform = this.lowerLeftMapTransform;
|
|
GameObject gameObject2 = global::UnityEngine.Object.Instantiate<GameObject>(gameObject, transform);
|
|
this.LMNJPJMIKGI = gameObject2;
|
|
}
|
|
GameObject lmnjpjmikgi2 = this.LMNJPJMIKGI;
|
|
int num4 = 0;
|
|
lmnjpjmikgi2.SetActive(num4 != 0);
|
|
}
|
|
|
|
// Token: 0x06012F02 RID: 77570 RVA: 0x0045E778 File Offset: 0x0045C978
|
|
[Token(Token = "0x6012F02")]
|
|
[Address(RVA = "0x878FC0", Offset = "0x877DC0", VA = "0x180878FC0")]
|
|
private void IMKIDFPFGFA()
|
|
{
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
int num = 0;
|
|
int length = pnpofoldmjo.Length;
|
|
if (num < length)
|
|
{
|
|
GameObject gameObject = pnpofoldmjo[num].gameObject;
|
|
int num2 = 0;
|
|
gameObject.SetActive(num2 != 0);
|
|
num++;
|
|
}
|
|
GameObject lmnjpjmikgi = this.LMNJPJMIKGI;
|
|
int num3 = 0;
|
|
lmnjpjmikgi.SetActive(num3 != 0);
|
|
}
|
|
|
|
// Token: 0x06012F03 RID: 77571 RVA: 0x0045E7D0 File Offset: 0x0045C9D0
|
|
[Token(Token = "0x6012F03")]
|
|
[Address(RVA = "0x879380", Offset = "0x878180", VA = "0x180879380")]
|
|
private void KDEGAPNPCOF(AGAJMBPABDL LJGOHLFADDN, AGAJMBPABDL HMEIODIHDCL, Weapon GDIGKHINJCG, Player.GAHEJKDCLLE OAEAKADENEB, Vector3 BEOPNIAIJOM, Vector3 OKDCENHKDIP, int JJHKPNCCEFB, GameCombatManager.IGHLGLDPACI LCJBLMKOCLB)
|
|
{
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_PLAYER_DEATHS)
|
|
{
|
|
int num = this.LEEHMCMGODA(HMEIODIHDCL);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F04 RID: 77572 RVA: 0x0045E7F0 File Offset: 0x0045C9F0
|
|
[Token(Token = "0x6012F04")]
|
|
[Address(RVA = "0x879770", Offset = "0x878570", VA = "0x180879770")]
|
|
private void OBAFPHHODAF(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_PLAYER_DEATHS)
|
|
{
|
|
Transform transform = IEKDDPPNFPF.GPOMCJICJIH().head.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
int num = this.LEEHMCMGODA(IEKDDPPNFPF);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F05 RID: 77573 RVA: 0x0045E82C File Offset: 0x0045CA2C
|
|
[Token(Token = "0x6012F05")]
|
|
[Address(RVA = "0x8796C0", Offset = "0x8784C0", VA = "0x1808796C0")]
|
|
private void NHPLHJKNMFA(AGAJMBPABDL HMEIODIHDCL, Player.GAHEJKDCLLE OAEAKADENEB, Vector3 BEOPNIAIJOM, GameCombatManager.IGHLGLDPACI LCJBLMKOCLB)
|
|
{
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_PLAYER_DEATHS)
|
|
{
|
|
int num = this.LEEHMCMGODA(HMEIODIHDCL);
|
|
float z = BEOPNIAIJOM.z;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F06 RID: 77574 RVA: 0x0045E854 File Offset: 0x0045CA54
|
|
[Token(Token = "0x6012F06")]
|
|
[Address(RVA = "0x8793E0", Offset = "0x8781E0", VA = "0x1808793E0")]
|
|
private int LEEHMCMGODA(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
BattleRoyaleManager instance = BattleRoyaleManager.ONCPNMDGGKG;
|
|
GameScoreManager scoreManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.scoreManager;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012F07 RID: 77575 RVA: 0x0045E87C File Offset: 0x0045CA7C
|
|
[Token(Token = "0x6012F07")]
|
|
[Address(RVA = "0x878A70", Offset = "0x877870", VA = "0x180878A70")]
|
|
private void ECEGFLAFAKE(AGAJMBPABDL IEKDDPPNFPF, Vector3 FMAIPBJNAEP, int POICBKEFLBK)
|
|
{
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
int length = pnpofoldmjo.Length;
|
|
if (num2 < length)
|
|
{
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken = pnpofoldmjo[num];
|
|
AGAJMBPABDL <LCBGICCHKJE>k__BackingField = battleRoyaleVisitorMapToken.<LCBGICCHKJE>k__BackingField;
|
|
bool flag = <LCBGICCHKJE>k__BackingField == 0;
|
|
if (<LCBGICCHKJE>k__BackingField != 0 && IEKDDPPNFPF != 0)
|
|
{
|
|
int inpoaaaoahi = <LCBGICCHKJE>k__BackingField.INPOAAAOAHI;
|
|
}
|
|
if (!flag)
|
|
{
|
|
num++;
|
|
}
|
|
PlayerRankPositionSettings playerRankPositionSettings = this.settings;
|
|
battleRoyaleVisitorMapToken.SetRankedPlayerInfo(IEKDDPPNFPF, playerRankPositionSettings, POICBKEFLBK);
|
|
Transform transform = battleRoyaleVisitorMapToken.transform;
|
|
float z = FMAIPBJNAEP.z;
|
|
Vector3 vector;
|
|
float z2 = vector.z;
|
|
Transform transform2 = IEKDDPPNFPF.GPOMCJICJIH().head.transform;
|
|
Vector3 vector2;
|
|
float z3 = vector2.z;
|
|
Transform parent = battleRoyaleVisitorMapToken.playerMarkerRoot.transform.parent;
|
|
battleRoyaleVisitorMapToken.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F08 RID: 77576 RVA: 0x0045E948 File Offset: 0x0045CB48
|
|
[Token(Token = "0x6012F08")]
|
|
[Address(RVA = "0x878650", Offset = "0x877450", VA = "0x180878650")]
|
|
private void CBIFAOPPEDL()
|
|
{
|
|
BattleRoyaleManager instance = BattleRoyaleManager.ONCPNMDGGKG;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
GameTeamManager teamManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.teamManager;
|
|
AGAJMBPABDL[] array2;
|
|
string[] array = new string[array2.Length];
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if (num < array.Length)
|
|
{
|
|
string ohafdcgemef = array2[num2].OHAFDCGEMEF;
|
|
if (ohafdcgemef != 0)
|
|
{
|
|
}
|
|
num2++;
|
|
array[0] = ohafdcgemef;
|
|
}
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
int length = array2.Length;
|
|
if (num4 < length)
|
|
{
|
|
AGAJMBPABDL agajmbpabdl = array2[num3];
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken;
|
|
if (!BattleRoyaleManager.ONCPNMDGGKG.IsPlayerEliminated(agajmbpabdl))
|
|
{
|
|
Transform transform = agajmbpabdl.GPOMCJICJIH().head.transform;
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
int num5 = 0;
|
|
int length2 = pnpofoldmjo.Length;
|
|
if (num5 < length2)
|
|
{
|
|
battleRoyaleVisitorMapToken = pnpofoldmjo[num5];
|
|
AGAJMBPABDL <LCBGICCHKJE>k__BackingField = battleRoyaleVisitorMapToken.<LCBGICCHKJE>k__BackingField;
|
|
bool flag2 = <LCBGICCHKJE>k__BackingField == 0;
|
|
if (<LCBGICCHKJE>k__BackingField != 0 && agajmbpabdl != 0)
|
|
{
|
|
int inpoaaaoahi = <LCBGICCHKJE>k__BackingField.INPOAAAOAHI;
|
|
}
|
|
if (flag2)
|
|
{
|
|
goto IL_104;
|
|
}
|
|
num5++;
|
|
}
|
|
}
|
|
num3++;
|
|
IL_104:
|
|
string text = string.Join(", ", array);
|
|
PlayerRankPositionSettings playerRankPositionSettings = this.settings;
|
|
battleRoyaleVisitorMapToken.SetWinningTeamInfo(agajmbpabdl, text, playerRankPositionSettings);
|
|
Transform transform2 = battleRoyaleVisitorMapToken.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
Transform parent = battleRoyaleVisitorMapToken.playerMarkerRoot.transform.parent;
|
|
battleRoyaleVisitorMapToken.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F09 RID: 77577 RVA: 0x0045EAC8 File Offset: 0x0045CCC8
|
|
[Token(Token = "0x6012F09")]
|
|
[Address(RVA = "0x878440", Offset = "0x877240", VA = "0x180878440")]
|
|
private void BPNMEEDAACM()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
IEnumerable<AGAJMBPABDL> activePlayers = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.teamManager.GetActivePlayers();
|
|
if (activePlayers != 0)
|
|
{
|
|
if (num >= activePlayers)
|
|
{
|
|
goto IL_26;
|
|
}
|
|
num += num;
|
|
if (num != activePlayers)
|
|
{
|
|
num++;
|
|
goto IL_26;
|
|
}
|
|
goto IL_38;
|
|
IL_4A:
|
|
num++;
|
|
goto IL_4E;
|
|
IL_38:
|
|
int num2;
|
|
num2 += num2;
|
|
num += 19;
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken = pnpofoldmjo[num];
|
|
goto IL_4A;
|
|
IL_26:
|
|
pnpofoldmjo = this.PNPOFOLDMJO;
|
|
num2 = pnpofoldmjo.Length;
|
|
if (num < num2)
|
|
{
|
|
goto IL_38;
|
|
}
|
|
goto IL_4A;
|
|
}
|
|
IL_4E:
|
|
if (activePlayers != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x06012F0A RID: 77578 RVA: 0x0045EB4C File Offset: 0x0045CD4C
|
|
[Token(Token = "0x6012F0A")]
|
|
[Address(RVA = "0x87A0B0", Offset = "0x878EB0", VA = "0x18087A0B0")]
|
|
private void OnPhotonPlayerConnected(AGAJMBPABDL BJGOFOEKLMC)
|
|
{
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_LIVE_PLAYERS)
|
|
{
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
int num = 0;
|
|
int length = pnpofoldmjo.Length;
|
|
if (num < length)
|
|
{
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken = pnpofoldmjo[num];
|
|
if (battleRoyaleVisitorMapToken.<LCBGICCHKJE>k__BackingField != (ulong)0L)
|
|
{
|
|
num++;
|
|
}
|
|
battleRoyaleVisitorMapToken.SetPlayerInfo(BJGOFOEKLMC);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F0B RID: 77579 RVA: 0x0045EB9C File Offset: 0x0045CD9C
|
|
[Token(Token = "0x6012F0B")]
|
|
[Address(RVA = "0x87A120", Offset = "0x878F20", VA = "0x18087A120")]
|
|
private void OnPhotonPlayerDisconnected(AGAJMBPABDL BJGOFOEKLMC)
|
|
{
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_LIVE_PLAYERS)
|
|
{
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
int length = pnpofoldmjo.Length;
|
|
if (num < length)
|
|
{
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken = pnpofoldmjo[num2];
|
|
if (battleRoyaleVisitorMapToken.<LCBGICCHKJE>k__BackingField != BJGOFOEKLMC)
|
|
{
|
|
num2++;
|
|
}
|
|
battleRoyaleVisitorMapToken.<LCBGICCHKJE>k__BackingField = (ulong)0L;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F0C RID: 77580 RVA: 0x0045EBF4 File Offset: 0x0045CDF4
|
|
[Token(Token = "0x6012F0C")]
|
|
[Address(RVA = "0x879730", Offset = "0x878530", VA = "0x180879730")]
|
|
private void NJGKEJCHADK()
|
|
{
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_LIVE_PLAYERS)
|
|
{
|
|
this.BPNMEEDAACM();
|
|
this.HGIPFGAOPHI = (int)((ulong)0L);
|
|
this.GMGOCPPAGCI = true;
|
|
return;
|
|
}
|
|
this.HGIPFGAOPHI = (int)((ulong)0L);
|
|
this.GMGOCPPAGCI = true;
|
|
}
|
|
|
|
// Token: 0x06012F0D RID: 77581 RVA: 0x0045EC34 File Offset: 0x0045CE34
|
|
[Token(Token = "0x6012F0D")]
|
|
[Address(RVA = "0x879BE0", Offset = "0x8789E0", VA = "0x180879BE0")]
|
|
private void OODEMNCOLED()
|
|
{
|
|
BattleRoyaleVisitorMap.KIGNMBLALJP kignmblaljp = this.mode;
|
|
if (kignmblaljp != BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_LIVE_PLAYERS)
|
|
{
|
|
if (kignmblaljp != BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_PLAYER_DEATHS)
|
|
{
|
|
goto IL_5B;
|
|
}
|
|
this.CBIFAOPPEDL();
|
|
}
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
int num = 0;
|
|
int length = pnpofoldmjo.Length;
|
|
if (num < length)
|
|
{
|
|
GameObject gameObject = pnpofoldmjo[num].gameObject;
|
|
int num2 = 0;
|
|
gameObject.SetActive(num2 != 0);
|
|
num++;
|
|
}
|
|
GameObject lmnjpjmikgi = this.LMNJPJMIKGI;
|
|
int num3 = 0;
|
|
lmnjpjmikgi.SetActive(num3 != 0);
|
|
IL_5B:
|
|
this.GMGOCPPAGCI = false;
|
|
}
|
|
|
|
// Token: 0x06012F0E RID: 77582 RVA: 0x0045ECAC File Offset: 0x0045CEAC
|
|
[Token(Token = "0x6012F0E")]
|
|
[Address(RVA = "0x879050", Offset = "0x877E50", VA = "0x180879050")]
|
|
private Vector3 KCGDOCPELJG(Vector3 KPLDEODOJID)
|
|
{
|
|
BattleRoyaleMapManager <OCDLBPHJMOP>k__BackingField = BattleRoyaleMapManager.<OCDLBPHJMOP>k__BackingField;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
float z3 = Vector3.down.z;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
Vector3 vector3;
|
|
float z4 = vector3.z;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012F0F RID: 77583 RVA: 0x0045ECF4 File Offset: 0x0045CEF4
|
|
[Token(Token = "0x6012F0F")]
|
|
[Address(RVA = "0x879510", Offset = "0x878310", VA = "0x180879510")]
|
|
private float MABFHALDHOH(Vector3 DDHPAFKBMON)
|
|
{
|
|
Transform transform = this.lowerLeftMapTransform;
|
|
Vector3 down = Vector3.down;
|
|
Collider collider = this.mapCollider;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
}
|
|
Transform transform2 = this.lowerLeftMapTransform;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012F10 RID: 77584 RVA: 0x0045ED28 File Offset: 0x0045CF28
|
|
[Token(Token = "0x6012F10")]
|
|
[Address(RVA = "0x87A510", Offset = "0x879310", VA = "0x18087A510")]
|
|
private void Update()
|
|
{
|
|
if (this.mode != BattleRoyaleVisitorMap.KIGNMBLALJP.NONE)
|
|
{
|
|
int num = this.updateFrequency;
|
|
if (this.ILCBJMDIMJC(num))
|
|
{
|
|
GameObject lmnjpjmikgi = this.LMNJPJMIKGI;
|
|
int num2 = 0;
|
|
if (lmnjpjmikgi != num2)
|
|
{
|
|
this.OCEJNJAEOOE();
|
|
if (this.mode == BattleRoyaleVisitorMap.KIGNMBLALJP.BEES_AND_LIVE_PLAYERS && this.GMGOCPPAGCI)
|
|
{
|
|
this.PMIIDAPMGNG();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F11 RID: 77585 RVA: 0x0045ED84 File Offset: 0x0045CF84
|
|
[Token(Token = "0x6012F11")]
|
|
[Address(RVA = "0x879830", Offset = "0x878630", VA = "0x180879830")]
|
|
private void OCEJNJAEOOE()
|
|
{
|
|
BattleRoyaleGameplayZone <OCDLBPHJMOP>k__BackingField = BattleRoyaleGameplayZone.<OCDLBPHJMOP>k__BackingField;
|
|
int num = 0;
|
|
if (!(<OCDLBPHJMOP>k__BackingField != num))
|
|
{
|
|
}
|
|
bool ringsEnabled = BattleRoyaleGameplayZone.<OCDLBPHJMOP>k__BackingField.BKDOBCFKCJC;
|
|
this.LMNJPJMIKGI.gameObject.SetActive(ringsEnabled);
|
|
if (ringsEnabled)
|
|
{
|
|
BattleRoyaleMapManager <OCDLBPHJMOP>k__BackingField2 = BattleRoyaleMapManager.<OCDLBPHJMOP>k__BackingField;
|
|
float localRingRadius = BattleRoyaleGameplayZone.<OCDLBPHJMOP>k__BackingField.NLHFHBEGFNP;
|
|
float mapSpaceDistance = <OCDLBPHJMOP>k__BackingField2.GetMapSpaceDistance(localRingRadius);
|
|
Transform transform = this.LMNJPJMIKGI.transform;
|
|
BattleRoyaleGameplayZone <OCDLBPHJMOP>k__BackingField3 = BattleRoyaleGameplayZone.<OCDLBPHJMOP>k__BackingField;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Transform transform2 = this.LMNJPJMIKGI.transform;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F12 RID: 77586 RVA: 0x0045EE20 File Offset: 0x0045D020
|
|
[Token(Token = "0x6012F12")]
|
|
[Address(RVA = "0x87A1B0", Offset = "0x878FB0", VA = "0x18087A1B0")]
|
|
private void PMIIDAPMGNG()
|
|
{
|
|
int num = 0;
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo = this.PNPOFOLDMJO;
|
|
if (num < pnpofoldmjo.Length)
|
|
{
|
|
int num2 = this.HGIPFGAOPHI;
|
|
num2++;
|
|
num2 += num;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken;
|
|
AGAJMBPABDL <LCBGICCHKJE>k__BackingField = battleRoyaleVisitorMapToken.<LCBGICCHKJE>k__BackingField;
|
|
if (<LCBGICCHKJE>k__BackingField != 0)
|
|
{
|
|
BattleRoyaleManager instance = BattleRoyaleManager.ONCPNMDGGKG;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
goto IL_69;
|
|
}
|
|
}
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo2 = this.PNPOFOLDMJO;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken2;
|
|
GameObject gameObject = battleRoyaleVisitorMapToken2.gameObject;
|
|
int num3 = 0;
|
|
gameObject.SetActive(num3 != 0);
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo3 = this.PNPOFOLDMJO;
|
|
num++;
|
|
IL_69:
|
|
Transform transform = <LCBGICCHKJE>k__BackingField.GPOMCJICJIH().head.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo4 = this.PNPOFOLDMJO;
|
|
Transform transform2 = <LCBGICCHKJE>k__BackingField.GPOMCJICJIH().head.transform;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken3;
|
|
Transform parent = battleRoyaleVisitorMapToken3.playerMarkerRoot.transform.parent;
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo5 = this.PNPOFOLDMJO;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken4;
|
|
Transform transform3 = battleRoyaleVisitorMapToken4.transform;
|
|
BattleRoyaleVisitorMapToken[] pnpofoldmjo6 = this.PNPOFOLDMJO;
|
|
BattleRoyaleVisitorMapToken battleRoyaleVisitorMapToken5;
|
|
ulong num4;
|
|
battleRoyaleVisitorMapToken5.gameObject.SetActive(num4 != 0UL);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012F13 RID: 77587 RVA: 0x0045EF20 File Offset: 0x0045D120
|
|
[Token(Token = "0x6012F13")]
|
|
[Address(RVA = "0x87A5C0", Offset = "0x8793C0", VA = "0x18087A5C0")]
|
|
public BattleRoyaleVisitorMap()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C497 RID: 50327
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C497")]
|
|
[SerializeField]
|
|
[Tooltip("How frequently (in frames) to check whether to update token position (one token per update). Higher is more performant")]
|
|
private int updateFrequency = (int)((ulong)10L);
|
|
|
|
// Token: 0x0400C498 RID: 50328
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400C498")]
|
|
[SerializeField]
|
|
private GameObject mapTokenPrefab;
|
|
|
|
// Token: 0x0400C499 RID: 50329
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400C499")]
|
|
[SerializeField]
|
|
private GameObject beeRingVisualizerPrefab;
|
|
|
|
// Token: 0x0400C49A RID: 50330
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400C49A")]
|
|
[SerializeField]
|
|
[Tooltip("If/when to track players and bee movement on this map.")]
|
|
private BattleRoyaleVisitorMap.KIGNMBLALJP mode;
|
|
|
|
// Token: 0x0400C49B RID: 50331
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x400C49B")]
|
|
[SerializeField]
|
|
private PlayerRankPositionSettings settings;
|
|
|
|
// Token: 0x0400C49C RID: 50332
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400C49C")]
|
|
private BattleRoyaleVisitorMapToken[] PNPOFOLDMJO;
|
|
|
|
// Token: 0x0400C49D RID: 50333
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400C49D")]
|
|
private GameObject LMNJPJMIKGI;
|
|
|
|
// Token: 0x0400C49E RID: 50334
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400C49E")]
|
|
[SerializeField]
|
|
private Transform lowerLeftMapTransform;
|
|
|
|
// Token: 0x0400C49F RID: 50335
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400C49F")]
|
|
[SerializeField]
|
|
private Transform upperRightMapTransform;
|
|
|
|
// Token: 0x0400C4A0 RID: 50336
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400C4A0")]
|
|
[SerializeField]
|
|
private Collider mapCollider;
|
|
|
|
// Token: 0x0400C4A1 RID: 50337
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400C4A1")]
|
|
private float FEBDCEILMGO = 1.2f;
|
|
|
|
// Token: 0x0400C4A2 RID: 50338
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x400C4A2")]
|
|
private int HGIPFGAOPHI;
|
|
|
|
// Token: 0x0400C4A3 RID: 50339
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400C4A3")]
|
|
private bool GMGOCPPAGCI;
|
|
|
|
// Token: 0x02002BE7 RID: 11239
|
|
[Token(Token = "0x2002BE7")]
|
|
private enum KIGNMBLALJP
|
|
{
|
|
// Token: 0x0400C4A5 RID: 50341
|
|
[Token(Token = "0x400C4A5")]
|
|
NONE,
|
|
// Token: 0x0400C4A6 RID: 50342
|
|
[Token(Token = "0x400C4A6")]
|
|
BEES_AND_LIVE_PLAYERS,
|
|
// Token: 0x0400C4A7 RID: 50343
|
|
[Token(Token = "0x400C4A7")]
|
|
BEES_AND_PLAYER_DEATHS
|
|
}
|
|
}
|
|
}
|