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: 0x02002CCF RID: 11471
|
|
[Token(Token = "0x2002CCF")]
|
|
public class BattleRoyaleVisitorMap : MonoBehaviour
|
|
{
|
|
// Token: 0x0601333F RID: 78655 RVA: 0x004680CC File Offset: 0x004662CC
|
|
[Token(Token = "0x601333F")]
|
|
[Address(RVA = "0x138B720", Offset = "0x138A720", VA = "0x18138B720")]
|
|
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: 0x06013340 RID: 78656 RVA: 0x00468238 File Offset: 0x00466438
|
|
[Token(Token = "0x6013340")]
|
|
[Address(RVA = "0x138D3A0", Offset = "0x138C3A0", VA = "0x18138D3A0")]
|
|
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: 0x06013341 RID: 78657 RVA: 0x00468388 File Offset: 0x00466588
|
|
[Token(Token = "0x6013341")]
|
|
[Address(RVA = "0x138CB90", Offset = "0x138BB90", VA = "0x18138CB90")]
|
|
private void LKDMBKNGKFE()
|
|
{
|
|
if (this.mode != BattleRoyaleVisitorMap.KIGNMBLALJP.NONE)
|
|
{
|
|
int activePlayersMaxCount = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.teamManager.GetActivePlayersMaxCount();
|
|
this.FKBKEDOIOEF(activePlayersMaxCount);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013342 RID: 78658 RVA: 0x004683BC File Offset: 0x004665BC
|
|
[Token(Token = "0x6013342")]
|
|
[Address(RVA = "0x138C3A0", Offset = "0x138B3A0", VA = "0x18138C3A0")]
|
|
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: 0x06013343 RID: 78659 RVA: 0x0046850C File Offset: 0x0046670C
|
|
[Token(Token = "0x6013343")]
|
|
[Address(RVA = "0x138C6D0", Offset = "0x138B6D0", VA = "0x18138C6D0")]
|
|
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: 0x06013344 RID: 78660 RVA: 0x00468564 File Offset: 0x00466764
|
|
[Token(Token = "0x6013344")]
|
|
[Address(RVA = "0x138CA90", Offset = "0x138BA90", VA = "0x18138CA90")]
|
|
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: 0x06013345 RID: 78661 RVA: 0x00468584 File Offset: 0x00466784
|
|
[Token(Token = "0x6013345")]
|
|
[Address(RVA = "0x138CE80", Offset = "0x138BE80", VA = "0x18138CE80")]
|
|
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: 0x06013346 RID: 78662 RVA: 0x004685C0 File Offset: 0x004667C0
|
|
[Token(Token = "0x6013346")]
|
|
[Address(RVA = "0x138CDD0", Offset = "0x138BDD0", VA = "0x18138CDD0")]
|
|
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: 0x06013347 RID: 78663 RVA: 0x004685E8 File Offset: 0x004667E8
|
|
[Token(Token = "0x6013347")]
|
|
[Address(RVA = "0x138CAF0", Offset = "0x138BAF0", VA = "0x18138CAF0")]
|
|
private int LEEHMCMGODA(AGAJMBPABDL IEKDDPPNFPF)
|
|
{
|
|
BattleRoyaleManager instance = BattleRoyaleManager.ONCPNMDGGKG;
|
|
GameScoreManager scoreManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.scoreManager;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06013348 RID: 78664 RVA: 0x00468610 File Offset: 0x00466810
|
|
[Token(Token = "0x6013348")]
|
|
[Address(RVA = "0x138C180", Offset = "0x138B180", VA = "0x18138C180")]
|
|
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: 0x06013349 RID: 78665 RVA: 0x004686DC File Offset: 0x004668DC
|
|
[Token(Token = "0x6013349")]
|
|
[Address(RVA = "0x138BD60", Offset = "0x138AD60", VA = "0x18138BD60")]
|
|
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: 0x0601334A RID: 78666 RVA: 0x0046885C File Offset: 0x00466A5C
|
|
[Token(Token = "0x601334A")]
|
|
[Address(RVA = "0x138BB50", Offset = "0x138AB50", VA = "0x18138BB50")]
|
|
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: 0x0601334B RID: 78667 RVA: 0x004688E0 File Offset: 0x00466AE0
|
|
[Token(Token = "0x601334B")]
|
|
[Address(RVA = "0x138D7C0", Offset = "0x138C7C0", VA = "0x18138D7C0")]
|
|
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: 0x0601334C RID: 78668 RVA: 0x00468930 File Offset: 0x00466B30
|
|
[Token(Token = "0x601334C")]
|
|
[Address(RVA = "0x138D830", Offset = "0x138C830", VA = "0x18138D830")]
|
|
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: 0x0601334D RID: 78669 RVA: 0x00468988 File Offset: 0x00466B88
|
|
[Token(Token = "0x601334D")]
|
|
[Address(RVA = "0x138CE40", Offset = "0x138BE40", VA = "0x18138CE40")]
|
|
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: 0x0601334E RID: 78670 RVA: 0x004689C8 File Offset: 0x00466BC8
|
|
[Token(Token = "0x601334E")]
|
|
[Address(RVA = "0x138D2F0", Offset = "0x138C2F0", VA = "0x18138D2F0")]
|
|
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: 0x0601334F RID: 78671 RVA: 0x00468A40 File Offset: 0x00466C40
|
|
[Token(Token = "0x601334F")]
|
|
[Address(RVA = "0x138C760", Offset = "0x138B760", VA = "0x18138C760")]
|
|
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: 0x06013350 RID: 78672 RVA: 0x00468A88 File Offset: 0x00466C88
|
|
[Token(Token = "0x6013350")]
|
|
[Address(RVA = "0x138CC20", Offset = "0x138BC20", VA = "0x18138CC20")]
|
|
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: 0x06013351 RID: 78673 RVA: 0x00468ABC File Offset: 0x00466CBC
|
|
[Token(Token = "0x6013351")]
|
|
[Address(RVA = "0x138DC20", Offset = "0x138CC20", VA = "0x18138DC20")]
|
|
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: 0x06013352 RID: 78674 RVA: 0x00468B18 File Offset: 0x00466D18
|
|
[Token(Token = "0x6013352")]
|
|
[Address(RVA = "0x138CF40", Offset = "0x138BF40", VA = "0x18138CF40")]
|
|
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: 0x06013353 RID: 78675 RVA: 0x00468BB4 File Offset: 0x00466DB4
|
|
[Token(Token = "0x6013353")]
|
|
[Address(RVA = "0x138D8C0", Offset = "0x138C8C0", VA = "0x18138D8C0")]
|
|
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: 0x06013354 RID: 78676 RVA: 0x00468CB4 File Offset: 0x00466EB4
|
|
[Token(Token = "0x6013354")]
|
|
[Address(RVA = "0x138DCD0", Offset = "0x138CCD0", VA = "0x18138DCD0")]
|
|
public BattleRoyaleVisitorMap()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C6AB RID: 50859
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C6AB")]
|
|
[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: 0x0400C6AC RID: 50860
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400C6AC")]
|
|
[SerializeField]
|
|
private GameObject mapTokenPrefab;
|
|
|
|
// Token: 0x0400C6AD RID: 50861
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400C6AD")]
|
|
[SerializeField]
|
|
private GameObject beeRingVisualizerPrefab;
|
|
|
|
// Token: 0x0400C6AE RID: 50862
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400C6AE")]
|
|
[SerializeField]
|
|
[Tooltip("If/when to track players and bee movement on this map.")]
|
|
private BattleRoyaleVisitorMap.KIGNMBLALJP mode;
|
|
|
|
// Token: 0x0400C6AF RID: 50863
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x400C6AF")]
|
|
[SerializeField]
|
|
private PlayerRankPositionSettings settings;
|
|
|
|
// Token: 0x0400C6B0 RID: 50864
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400C6B0")]
|
|
private BattleRoyaleVisitorMapToken[] PNPOFOLDMJO;
|
|
|
|
// Token: 0x0400C6B1 RID: 50865
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400C6B1")]
|
|
private GameObject LMNJPJMIKGI;
|
|
|
|
// Token: 0x0400C6B2 RID: 50866
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400C6B2")]
|
|
[SerializeField]
|
|
private Transform lowerLeftMapTransform;
|
|
|
|
// Token: 0x0400C6B3 RID: 50867
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400C6B3")]
|
|
[SerializeField]
|
|
private Transform upperRightMapTransform;
|
|
|
|
// Token: 0x0400C6B4 RID: 50868
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400C6B4")]
|
|
[SerializeField]
|
|
private Collider mapCollider;
|
|
|
|
// Token: 0x0400C6B5 RID: 50869
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400C6B5")]
|
|
private float FEBDCEILMGO = 1.2f;
|
|
|
|
// Token: 0x0400C6B6 RID: 50870
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x400C6B6")]
|
|
private int HGIPFGAOPHI;
|
|
|
|
// Token: 0x0400C6B7 RID: 50871
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400C6B7")]
|
|
private bool GMGOCPPAGCI;
|
|
|
|
// Token: 0x02002CD0 RID: 11472
|
|
[Token(Token = "0x2002CD0")]
|
|
private enum KIGNMBLALJP
|
|
{
|
|
// Token: 0x0400C6B9 RID: 50873
|
|
[Token(Token = "0x400C6B9")]
|
|
NONE,
|
|
// Token: 0x0400C6BA RID: 50874
|
|
[Token(Token = "0x400C6BA")]
|
|
BEES_AND_LIVE_PLAYERS,
|
|
// Token: 0x0400C6BB RID: 50875
|
|
[Token(Token = "0x400C6BB")]
|
|
BEES_AND_PLAYER_DEATHS
|
|
}
|
|
}
|
|
}
|