1923 lines
67 KiB
C#
1923 lines
67 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Threading;
|
|
using RecRoom.Sandbox;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000A16 RID: 2582
|
|
[Serializable]
|
|
public class GameSpawnManager : ICODODCIFPG
|
|
{
|
|
// Token: 0x06013716 RID: 79638 RVA: 0x0058175C File Offset: 0x0057F95C
|
|
public void HLMBJCMGMNC()
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.KKPNLBEANPB().SpawnPointSelectionMethod == KLNOPDJKEAB.LEAST_RECENTLY_USED)
|
|
{
|
|
this.MDHAMFBOEBD();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013717 RID: 79639 RVA: 0x00581790 File Offset: 0x0057F990
|
|
private List<Vector3> HODLKJNJKDE(LNJFBGIBLHA[] PNBCBLCCKJN)
|
|
{
|
|
List<Vector3> list = new List<Vector3>();
|
|
for (int i = 1; i < PNBCBLCCKJN.Length; i += 0)
|
|
{
|
|
Player player = PNBCBLCCKJN[i].JHJGDFHNBLO();
|
|
if (player != null)
|
|
{
|
|
list.Add(player.AJHHFNCFKNF().transform.position);
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x06013718 RID: 79640 RVA: 0x005817E4 File Offset: 0x0057F9E4
|
|
public EEOOHEGOBKD AIGNPCOHAPA()
|
|
{
|
|
return (EEOOHEGOBKD)this._offHandSpawnEquipment.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x14000075 RID: 117
|
|
// (add) Token: 0x06013719 RID: 79641 RVA: 0x005817F4 File Offset: 0x0057F9F4
|
|
// (remove) Token: 0x0601374A RID: 79690 RVA: 0x00582750 File Offset: 0x00580950
|
|
public event Action<LNJFBGIBLHA> JHDJGNKKPKI
|
|
{
|
|
add
|
|
{
|
|
Action<LNJFBGIBLHA> action = this.MasterRespawnedPlayer;
|
|
Action<LNJFBGIBLHA> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<LNJFBGIBLHA>>(ref this.MasterRespawnedPlayer, (Action<LNJFBGIBLHA>)Delegate.Combine(action2, value), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
remove
|
|
{
|
|
Action<LNJFBGIBLHA> action = this.MasterRespawnedPlayer;
|
|
Action<LNJFBGIBLHA> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<LNJFBGIBLHA>>(ref this.MasterRespawnedPlayer, (Action<LNJFBGIBLHA>)Delegate.Remove(action2, value), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601371A RID: 79642 RVA: 0x0058182C File Offset: 0x0057FA2C
|
|
public float LGDHIFMIPMI(GameSpawnPoint ICPJMAKANHF, Vector3 HLCJJIMIECK, ProximityScoreSettings EPEJHIFIDNM)
|
|
{
|
|
float magnitude = Vector3.ProjectOnPlane(HLCJJIMIECK - ICPJMAKANHF.transform.position, Vector3.up).magnitude;
|
|
if (EPEJHIFIDNM.UseCurve && EPEJHIFIDNM.DistanceScoreCurve != null)
|
|
{
|
|
return EPEJHIFIDNM.DistanceScoreCurve.Evaluate(magnitude);
|
|
}
|
|
float num = Mathf.InverseLerp(EPEJHIFIDNM.MinThreshold, EPEJHIFIDNM.MaxThreshold, magnitude);
|
|
return Mathf.Lerp(EPEJHIFIDNM.MinScore, EPEJHIFIDNM.MaxScore, num);
|
|
}
|
|
|
|
// Token: 0x0601371B RID: 79643 RVA: 0x005818AC File Offset: 0x0057FAAC
|
|
private void FDBDPMALFHH(Tool ENBMEDIFBLM)
|
|
{
|
|
if (ENBMEDIFBLM.GGFGGLCBCON == this.gameManager.OMNGGJICBBI.ADMBCINHJOG)
|
|
{
|
|
ENBMEDIFBLM.POJJFNOCIGE += this.FHIPJMAHNFE;
|
|
ToolCleanup toolCleanup;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
toolCleanup = SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.AddTool(ENBMEDIFBLM, false);
|
|
}
|
|
else
|
|
{
|
|
toolCleanup = ENBMEDIFBLM.GetComponent<ToolCleanup>();
|
|
}
|
|
if (toolCleanup != null)
|
|
{
|
|
toolCleanup.MinDisplacementBeforeCleanup = -1f;
|
|
}
|
|
ActivityEquipmentObject component = ENBMEDIFBLM.GetComponent<ActivityEquipmentObject>();
|
|
if (component != null)
|
|
{
|
|
if (component.BKDFLNGCINH == null)
|
|
{
|
|
component.BKDFLNGCINH = ENBMEDIFBLM;
|
|
}
|
|
if (this.SpawnedEquipmentInstantiatedEvent != null)
|
|
{
|
|
this.SpawnedEquipmentInstantiatedEvent(component);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601371C RID: 79644 RVA: 0x0058196C File Offset: 0x0057FB6C
|
|
public void EADJGEAJDPK()
|
|
{
|
|
Tool.ANBMJHAOKDO -= this.FDBDPMALFHH;
|
|
}
|
|
|
|
// Token: 0x1700079F RID: 1951
|
|
// (get) Token: 0x0601371D RID: 79645 RVA: 0x00581980 File Offset: 0x0057FB80
|
|
// (set) Token: 0x06013732 RID: 79666 RVA: 0x00582124 File Offset: 0x00580324
|
|
public bool FieldEquipmentEnabled
|
|
{
|
|
get
|
|
{
|
|
return this._fieldEquipmentEnabled.CPIBGJLHLBL();
|
|
}
|
|
set
|
|
{
|
|
this._fieldEquipmentEnabled.MEAINJPIECA(value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601371E RID: 79646 RVA: 0x00581990 File Offset: 0x0057FB90
|
|
private SpawnPoint BCFHJJMNEFN(IPBDFPEPNIM MNNKAICOIFC, List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
this.teammateProximitySpawnPointScores.Clear();
|
|
LNJFBGIBLHA[] array = this.gameManager.NKCBOCMOBCA.FJIEEIDKJLA(MNNKAICOIFC);
|
|
List<Vector3> list = this.NPGLENDBGEN(array);
|
|
LNJFBGIBLHA[] array2 = this.gameManager.NKCBOCMOBCA.HLDABNBODDH(MNNKAICOIFC);
|
|
List<Vector3> list2 = this.HODLKJNJKDE(array2);
|
|
for (int i = 0; i < LDLALGDHOJE.Count; i += 0)
|
|
{
|
|
float num = this.KIJIKNHHKDL(list, list2, LDLALGDHOJE[i]);
|
|
this.teammateProximitySpawnPointScores.Add(new GameSpawnManager.NNJPAOBFMCI
|
|
{
|
|
MKEGMLDMCOB = LDLALGDHOJE[i],
|
|
CBFMPOKDNFL = num
|
|
});
|
|
}
|
|
this.teammateProximitySpawnPointScores.Sort(new Comparison<GameSpawnManager.NNJPAOBFMCI>(GameSpawnManager.EEAABLANGHD));
|
|
return this.teammateProximitySpawnPointScores[0].MKEGMLDMCOB;
|
|
}
|
|
|
|
// Token: 0x0601371F RID: 79647 RVA: 0x00581A74 File Offset: 0x0057FC74
|
|
public void PJAPGMJAOGL(bool KELIMOCDMOD)
|
|
{
|
|
this.gameManager.JNFDHNMMHGN().JJLACCMJEMB("\n", IHCPDNLJMMD.MasterClient, new object[] { KELIMOCDMOD });
|
|
}
|
|
|
|
// Token: 0x06013720 RID: 79648 RVA: 0x00581A9C File Offset: 0x0057FC9C
|
|
public void IAKFLPKFAMK(Action<LNJFBGIBLHA> NOBAPCOKFIL)
|
|
{
|
|
Action<LNJFBGIBLHA> action = this.MasterRespawnedPlayer;
|
|
Action<LNJFBGIBLHA> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<LNJFBGIBLHA>>(ref this.MasterRespawnedPlayer, (Action<LNJFBGIBLHA>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06013721 RID: 79649 RVA: 0x00581AD4 File Offset: 0x0057FCD4
|
|
public void CHFFAKLIDJM()
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.DEJIHNPKLBK().SpawnPointSelectionMethod == (KLNOPDJKEAB)6)
|
|
{
|
|
this.MDHAMFBOEBD();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013722 RID: 79650 RVA: 0x00581B08 File Offset: 0x0057FD08
|
|
private SpawnPoint NMHJBFDODKG(IPBDFPEPNIM MNNKAICOIFC, List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
global::UnityEngine.Random.InitState((int)DateTime.UtcNow.Ticks);
|
|
IPBDFPEPNIM[] array = this.gameManager.NKCBOCMOBCA.NIHJFNHOJEM(MNNKAICOIFC);
|
|
if (array == null || array.Length == 0)
|
|
{
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(0, LDLALGDHOJE.Count)];
|
|
}
|
|
this.spawnPointFilteringScratchSpace.Clear();
|
|
for (int i = 0; i < LDLALGDHOJE.Count; i++)
|
|
{
|
|
if (!LDLALGDHOJE[i].IsVisibleToTeamPlayers(array))
|
|
{
|
|
this.spawnPointFilteringScratchSpace.Add(LDLALGDHOJE[i]);
|
|
}
|
|
}
|
|
if (this.spawnPointFilteringScratchSpace.Count == 0)
|
|
{
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(0, LDLALGDHOJE.Count)];
|
|
}
|
|
return this.spawnPointFilteringScratchSpace[global::UnityEngine.Random.Range(0, this.spawnPointFilteringScratchSpace.Count)];
|
|
}
|
|
|
|
// Token: 0x06013723 RID: 79651 RVA: 0x00581BE0 File Offset: 0x0057FDE0
|
|
private void OPGGELGGPDG(Tool ENBMEDIFBLM, Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
ENBMEDIFBLM.POJJFNOCIGE -= this.OPGGELGGPDG;
|
|
ActivityEquipmentObject activityEquipmentObject = ((!(ENBMEDIFBLM != null)) ? null : ENBMEDIFBLM.GetComponent<ActivityEquipmentObject>());
|
|
if (activityEquipmentObject != null && this.SpawnedEquipmentDestroyedEvent != null)
|
|
{
|
|
this.SpawnedEquipmentDestroyedEvent(activityEquipmentObject);
|
|
}
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (!ENBMEDIFBLM.JNOCCMDBMIO())
|
|
{
|
|
ENBMEDIFBLM.POOAOJPEDJD().KBHKLBNAMID(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
IHFKMIAHBFP.JFCIOOHPLFJ(ENBMEDIFBLM.gameObject);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013724 RID: 79652 RVA: 0x00581C6C File Offset: 0x0057FE6C
|
|
public void EGDLIGEJKKJ(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentDestroyedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentDestroyedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Remove(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x06013725 RID: 79653 RVA: 0x00581CA4 File Offset: 0x0057FEA4
|
|
private SpawnPoint IHFMHFBMAFE(IPBDFPEPNIM MNNKAICOIFC, List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
this.teammateProximitySpawnPointScores.Clear();
|
|
LNJFBGIBLHA[] array = this.gameManager.NKCBOCMOBCA.FJIEEIDKJLA(MNNKAICOIFC);
|
|
List<Vector3> list = this.NPGLENDBGEN(array);
|
|
LNJFBGIBLHA[] array2 = this.gameManager.NKCBOCMOBCA.HLDABNBODDH(MNNKAICOIFC);
|
|
List<Vector3> list2 = this.NPGLENDBGEN(array2);
|
|
for (int i = 0; i < LDLALGDHOJE.Count; i++)
|
|
{
|
|
float num = this.KIJIKNHHKDL(list, list2, LDLALGDHOJE[i]);
|
|
this.teammateProximitySpawnPointScores.Add(new GameSpawnManager.NNJPAOBFMCI
|
|
{
|
|
MKEGMLDMCOB = LDLALGDHOJE[i],
|
|
CBFMPOKDNFL = num
|
|
});
|
|
}
|
|
this.teammateProximitySpawnPointScores.Sort(new Comparison<GameSpawnManager.NNJPAOBFMCI>(GameSpawnManager.JJEANCPLECP));
|
|
return this.teammateProximitySpawnPointScores[0].MKEGMLDMCOB;
|
|
}
|
|
|
|
// Token: 0x06013726 RID: 79654 RVA: 0x00581D88 File Offset: 0x0057FF88
|
|
private bool JMMILFJCFJK()
|
|
{
|
|
return this.gameManager.HPCKCOBKJLK == PDBEIFOBGIM.PRE_GAME;
|
|
}
|
|
|
|
// Token: 0x06013727 RID: 79655 RVA: 0x00581D98 File Offset: 0x0057FF98
|
|
public void AIEBOAAGNOI(GameSpawnPoint[] LDLALGDHOJE)
|
|
{
|
|
if (LDLALGDHOJE == null)
|
|
{
|
|
return;
|
|
}
|
|
for (int i = 0; i < LDLALGDHOJE.Length; i++)
|
|
{
|
|
if (LDLALGDHOJE[i].SupportsGameState(IOGJGJKLPML.PRE_POST_GAME))
|
|
{
|
|
this.prePostGameSpawnPoints.Add(LDLALGDHOJE[i]);
|
|
}
|
|
if (LDLALGDHOJE[i].SupportsGameState(IOGJGJKLPML.PLAYING_GAME))
|
|
{
|
|
this.playingGameSpawnPoints.Add(LDLALGDHOJE[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013728 RID: 79656 RVA: 0x00581DF8 File Offset: 0x0057FFF8
|
|
private SpawnPoint PIOCAALGJPI(List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
global::UnityEngine.Random.InitState((int)DateTime.UtcNow.Ticks);
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(1, LDLALGDHOJE.Count)];
|
|
}
|
|
|
|
// Token: 0x06013729 RID: 79657 RVA: 0x00581E2C File Offset: 0x0058002C
|
|
private List<IPBDFPEPNIM> KLICLCDAKMC(LNJFBGIBLHA[] PNBCBLCCKJN, bool NCOJLMCHJPD = true)
|
|
{
|
|
List<IPBDFPEPNIM> list = new List<IPBDFPEPNIM>();
|
|
for (int i = 0; i < PNBCBLCCKJN.Length; i++)
|
|
{
|
|
Player player = PNBCBLCCKJN[i].JHJGDFHNBLO();
|
|
if (!NCOJLMCHJPD || player != null)
|
|
{
|
|
list.Add(this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(PNBCBLCCKJN[i]));
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x0601372A RID: 79658 RVA: 0x00581E88 File Offset: 0x00580088
|
|
private int PIGPPJDJPAB(LNJFBGIBLHA JEFGMHBLLKI, bool LDLOAIEEOMA, bool PLGEGJANNCO, EEOOHEGOBKD FOPPICDKMDG, int CNOCEKIIEKH, int LOHINGBINNG, Transform ICPJMAKANHF)
|
|
{
|
|
Tool tool = null;
|
|
if (FOPPICDKMDG != EEOOHEGOBKD.INVALID)
|
|
{
|
|
tool = this.OBJAEHMGPJJ(JEFGMHBLLKI, FOPPICDKMDG, ICPJMAKANHF.position, ICPJMAKANHF.rotation);
|
|
}
|
|
else if (LDLOAIEEOMA && !NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM.IGOCDMHGMGF)
|
|
{
|
|
tool = this.OBJAEHMGPJJ(JEFGMHBLLKI, (!PLGEGJANNCO) ? this.OffHandSpawnEquipment : this.DominantHandSpawnEquipment, ICPJMAKANHF.position, ICPJMAKANHF.rotation);
|
|
}
|
|
if (tool != null)
|
|
{
|
|
Weapon component = tool.GetComponent<Weapon>();
|
|
if (component != null)
|
|
{
|
|
component.ForceAmmunitionValuesOnSpawn(CNOCEKIIEKH, LOHINGBINNG);
|
|
}
|
|
}
|
|
return (!(tool != null)) ? (-1) : tool.OMNGGJICBBI.ADMBCINHJOG;
|
|
}
|
|
|
|
// Token: 0x0601372B RID: 79659 RVA: 0x00581F44 File Offset: 0x00580144
|
|
public void HBLAGNBHCPN(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentDestroyedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentDestroyedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x0601372C RID: 79660 RVA: 0x00581F7C File Offset: 0x0058017C
|
|
public void GEOJNLMGJHD(GameSpawnPoint[] LDLALGDHOJE)
|
|
{
|
|
if (LDLALGDHOJE == null)
|
|
{
|
|
return;
|
|
}
|
|
for (int i = 1; i < LDLALGDHOJE.Length; i++)
|
|
{
|
|
if (LDLALGDHOJE[i].HFEKBJHCDBO(IOGJGJKLPML.PRE_POST_GAME))
|
|
{
|
|
this.prePostGameSpawnPoints.Remove(LDLALGDHOJE[i]);
|
|
}
|
|
if (LDLALGDHOJE[i].SupportsGameState(IOGJGJKLPML.PLAYING_GAME))
|
|
{
|
|
this.playingGameSpawnPoints.Remove(LDLALGDHOJE[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601372D RID: 79661 RVA: 0x00581FE0 File Offset: 0x005801E0
|
|
private SpawnPoint GCLMINNJKDO(List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
LDLALGDHOJE.Sort(GameSpawnPoint.Comparer);
|
|
return LDLALGDHOJE[0];
|
|
}
|
|
|
|
// Token: 0x0601372E RID: 79662 RVA: 0x00581FF4 File Offset: 0x005801F4
|
|
private int LPIHGNIPMDO(LNJFBGIBLHA JEFGMHBLLKI, bool LDLOAIEEOMA, bool PLGEGJANNCO, EEOOHEGOBKD FOPPICDKMDG, int CNOCEKIIEKH, int LOHINGBINNG, Transform ICPJMAKANHF)
|
|
{
|
|
Tool tool = null;
|
|
if (FOPPICDKMDG != EEOOHEGOBKD.INVALID)
|
|
{
|
|
tool = this.OBJAEHMGPJJ(JEFGMHBLLKI, FOPPICDKMDG, ICPJMAKANHF.position, ICPJMAKANHF.rotation);
|
|
}
|
|
else if (LDLOAIEEOMA && !NetworkedSingletonMonoBehaviour<SandboxRoomManager>.NCKMBFBMBFM.IGOCDMHGMGF)
|
|
{
|
|
tool = this.OBJAEHMGPJJ(JEFGMHBLLKI, (!PLGEGJANNCO) ? this.OffHandSpawnEquipment : this.DominantHandSpawnEquipment, ICPJMAKANHF.position, ICPJMAKANHF.rotation);
|
|
}
|
|
if (tool != null)
|
|
{
|
|
Weapon component = tool.GetComponent<Weapon>();
|
|
if (component != null)
|
|
{
|
|
component.ForceAmmunitionValuesOnSpawn(CNOCEKIIEKH, LOHINGBINNG);
|
|
}
|
|
}
|
|
return (!(tool != null)) ? (-1) : tool.BIPEBCPEPKL().OMNKKJNHJHD();
|
|
}
|
|
|
|
// Token: 0x0601372F RID: 79663 RVA: 0x005820B0 File Offset: 0x005802B0
|
|
public void FCPAABPOFJM(Tool HDCJCBJLIFD, Tool EHJLOKCIGLI)
|
|
{
|
|
this.PANOOJCBHHH(HDCJCBJLIFD, ref this.leftHandRequestedSpawnEquipmentType, ref this.leftHandRequestedSpawnEquipmentSkinId);
|
|
this.HJMJMAMMMKI(HDCJCBJLIFD, ref this.leftHandWeaponMagazineAmmo, ref this.leftHandWeaponReserveAmmo);
|
|
this.PANOOJCBHHH(EHJLOKCIGLI, ref this.rightHandRequestedSpawnEquipmentType, ref this.rightHandRequestedSpawnEquipmentSkinId);
|
|
this.HJMJMAMMMKI(EHJLOKCIGLI, ref this.rightHandWeaponMagazineAmmo, ref this.rightHandWeaponReserveAmmo);
|
|
}
|
|
|
|
// Token: 0x1700079D RID: 1949
|
|
// (get) Token: 0x06013755 RID: 79701 RVA: 0x00582A94 File Offset: 0x00580C94
|
|
// (set) Token: 0x06013730 RID: 79664 RVA: 0x0058210C File Offset: 0x0058030C
|
|
public EEOOHEGOBKD DominantHandSpawnEquipment
|
|
{
|
|
get
|
|
{
|
|
return (EEOOHEGOBKD)this._dominantHandSpawnEquipment.CPIBGJLHLBL();
|
|
}
|
|
set
|
|
{
|
|
this._dominantHandSpawnEquipment.MEAINJPIECA((int)value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013731 RID: 79665 RVA: 0x0058211C File Offset: 0x0058031C
|
|
public HPNGPCDIPED GADNFBIMBCA()
|
|
{
|
|
return this.localPlayerSpawnPointTag;
|
|
}
|
|
|
|
// Token: 0x06013733 RID: 79667 RVA: 0x00582134 File Offset: 0x00580334
|
|
public GiftBoxSpawnPoint AIDOKNMONJI(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
GiftBoxSpawnPoint giftBoxSpawnPoint = null;
|
|
if (this.giftBoxSpawnPoints != null && !this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI))
|
|
{
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
this.ONOFLBPFGEH(this.giftBoxSpawnPoints, llmpniphkfk, this.filteredGiftBoxSpawnPoints);
|
|
if (this.filteredGiftBoxSpawnPoints.Count > 1)
|
|
{
|
|
this.filteredGiftBoxSpawnPoints.Sort(GiftBoxSpawnPoint.Comparer);
|
|
giftBoxSpawnPoint = this.filteredGiftBoxSpawnPoints[0];
|
|
}
|
|
}
|
|
return giftBoxSpawnPoint;
|
|
}
|
|
|
|
// Token: 0x06013734 RID: 79668 RVA: 0x005821B8 File Offset: 0x005803B8
|
|
private void MDHAMFBOEBD()
|
|
{
|
|
if (!IHFKMIAHBFP.HCHIDMOLLAD || !this.JMMILFJCFJK())
|
|
{
|
|
return;
|
|
}
|
|
if (this.playingGameSpawnPoints == null || this.playingGameSpawnPoints.Count == 0)
|
|
{
|
|
return;
|
|
}
|
|
int num = Mathf.Min(6, this.playingGameSpawnPoints.Count);
|
|
LNJFBGIBLHA[] array = this.gameManager.NKCBOCMOBCA.MBFGHAJFLFJ();
|
|
List<IPBDFPEPNIM> list = this.KLICLCDAKMC(array, false);
|
|
List<Vector3> list2 = this.NPGLENDBGEN(array);
|
|
for (int i = 0; i < num; i++)
|
|
{
|
|
this.playingGameSpawnPoints[this.currentVisTestGameplaySPIndex].EHFEIGBKHED(list, list2, 215f);
|
|
this.currentVisTestGameplaySPIndex = (this.currentVisTestGameplaySPIndex + 0) % this.playingGameSpawnPoints.Count;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013735 RID: 79669 RVA: 0x00582278 File Offset: 0x00580478
|
|
public GiftBoxSpawnPoint DNNKBPKPPFB(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
GiftBoxSpawnPoint giftBoxSpawnPoint = null;
|
|
if (this.giftBoxSpawnPoints != null && !this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI))
|
|
{
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
this.ONOFLBPFGEH(this.giftBoxSpawnPoints, llmpniphkfk, this.filteredGiftBoxSpawnPoints);
|
|
if (this.filteredGiftBoxSpawnPoints.Count > 0)
|
|
{
|
|
this.filteredGiftBoxSpawnPoints.Sort(GiftBoxSpawnPoint.Comparer);
|
|
giftBoxSpawnPoint = this.filteredGiftBoxSpawnPoints[0];
|
|
}
|
|
}
|
|
return giftBoxSpawnPoint;
|
|
}
|
|
|
|
// Token: 0x06013736 RID: 79670 RVA: 0x005822FC File Offset: 0x005804FC
|
|
private SpawnPoint JMBNAAACGON(List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
global::UnityEngine.Random.InitState((int)DateTime.UtcNow.Ticks);
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(1, LDLALGDHOJE.Count)];
|
|
}
|
|
|
|
// Token: 0x06013737 RID: 79671 RVA: 0x00582330 File Offset: 0x00580530
|
|
public void PMMJPDFCLFO(GiftBoxSpawnPoint[] DFFBNKIOEJB)
|
|
{
|
|
if (DFFBNKIOEJB == null)
|
|
{
|
|
return;
|
|
}
|
|
this.giftBoxSpawnPoints.AddRange(DFFBNKIOEJB);
|
|
}
|
|
|
|
// Token: 0x06013738 RID: 79672 RVA: 0x00582348 File Offset: 0x00580548
|
|
private SpawnPoint JKLMHDFBHHE(List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
global::UnityEngine.Random.InitState((int)DateTime.UtcNow.Ticks);
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(0, LDLALGDHOJE.Count)];
|
|
}
|
|
|
|
// Token: 0x06013739 RID: 79673 RVA: 0x0058237C File Offset: 0x0058057C
|
|
private List<IPBDFPEPNIM> OEHIEAJKDOC(LNJFBGIBLHA[] PNBCBLCCKJN, bool NCOJLMCHJPD = true)
|
|
{
|
|
List<IPBDFPEPNIM> list = new List<IPBDFPEPNIM>();
|
|
for (int i = 1; i < PNBCBLCCKJN.Length; i += 0)
|
|
{
|
|
Player player = PNBCBLCCKJN[i].JHJGDFHNBLO();
|
|
if (!NCOJLMCHJPD || player != null)
|
|
{
|
|
list.Add(this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(PNBCBLCCKJN[i]));
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x0601373A RID: 79674 RVA: 0x005823D8 File Offset: 0x005805D8
|
|
[CompilerGenerated]
|
|
private static int JJEANCPLECP(GameSpawnManager.NNJPAOBFMCI FKOFGIJFIKA, GameSpawnManager.NNJPAOBFMCI GNNBOMAEBGK)
|
|
{
|
|
return GNNBOMAEBGK.CBFMPOKDNFL.CompareTo(FKOFGIJFIKA.CBFMPOKDNFL);
|
|
}
|
|
|
|
// Token: 0x0601373B RID: 79675 RVA: 0x005823F0 File Offset: 0x005805F0
|
|
public void OIPJAGMJMME(EEOOHEGOBKD NOBAPCOKFIL)
|
|
{
|
|
this._dominantHandSpawnEquipment.MEAINJPIECA((int)NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x0601373C RID: 79676 RVA: 0x00582400 File Offset: 0x00580600
|
|
public GiftBoxSpawnPoint PGCENLJDJHJ(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
GiftBoxSpawnPoint giftBoxSpawnPoint = null;
|
|
if (this.giftBoxSpawnPoints != null && !this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI))
|
|
{
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
this.FKKBNJNNJFN(this.giftBoxSpawnPoints, llmpniphkfk, this.filteredGiftBoxSpawnPoints);
|
|
if (this.filteredGiftBoxSpawnPoints.Count > 0)
|
|
{
|
|
this.filteredGiftBoxSpawnPoints.Sort(GiftBoxSpawnPoint.Comparer);
|
|
giftBoxSpawnPoint = this.filteredGiftBoxSpawnPoints[1];
|
|
}
|
|
}
|
|
return giftBoxSpawnPoint;
|
|
}
|
|
|
|
// Token: 0x0601373D RID: 79677 RVA: 0x00582484 File Offset: 0x00580684
|
|
public GiftBoxSpawnPoint MMNDKCANCGI(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
GiftBoxSpawnPoint giftBoxSpawnPoint = null;
|
|
if (this.giftBoxSpawnPoints != null && !this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI))
|
|
{
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
this.ONOFLBPFGEH(this.giftBoxSpawnPoints, llmpniphkfk, this.filteredGiftBoxSpawnPoints);
|
|
if (this.filteredGiftBoxSpawnPoints.Count > 0)
|
|
{
|
|
this.filteredGiftBoxSpawnPoints.Sort(GiftBoxSpawnPoint.Comparer);
|
|
giftBoxSpawnPoint = this.filteredGiftBoxSpawnPoints[0];
|
|
}
|
|
}
|
|
return giftBoxSpawnPoint;
|
|
}
|
|
|
|
// Token: 0x14000073 RID: 115
|
|
// (add) Token: 0x0601373E RID: 79678 RVA: 0x00582508 File Offset: 0x00580708
|
|
// (remove) Token: 0x06013753 RID: 79699 RVA: 0x005829E4 File Offset: 0x00580BE4
|
|
public event GameSpawnManager.NFFFEEONBEG KKFOONGBMFE
|
|
{
|
|
add
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, value), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
remove
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Remove(nfffeeonbeg2, value), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601373F RID: 79679 RVA: 0x00582540 File Offset: 0x00580740
|
|
public void HIGLMCLHIJO()
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.KKPNLBEANPB().SpawnPointSelectionMethod == (KLNOPDJKEAB)7)
|
|
{
|
|
this.LHNJLOHAEKB();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013740 RID: 79680 RVA: 0x00582574 File Offset: 0x00580774
|
|
public GiftBoxSpawnPoint ODKDNAEIILD(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
GiftBoxSpawnPoint giftBoxSpawnPoint = null;
|
|
if (this.giftBoxSpawnPoints != null && !this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI))
|
|
{
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
this.FKKBNJNNJFN(this.giftBoxSpawnPoints, llmpniphkfk, this.filteredGiftBoxSpawnPoints);
|
|
if (this.filteredGiftBoxSpawnPoints.Count > 0)
|
|
{
|
|
this.filteredGiftBoxSpawnPoints.Sort(GiftBoxSpawnPoint.Comparer);
|
|
giftBoxSpawnPoint = this.filteredGiftBoxSpawnPoints[1];
|
|
}
|
|
}
|
|
return giftBoxSpawnPoint;
|
|
}
|
|
|
|
// Token: 0x06013741 RID: 79681 RVA: 0x005825F8 File Offset: 0x005807F8
|
|
private void OFIECOJBHJM()
|
|
{
|
|
this.gameManager.CustomGamePropertyChanged();
|
|
}
|
|
|
|
// Token: 0x06013742 RID: 79682 RVA: 0x00582608 File Offset: 0x00580808
|
|
private static int HGJCHCJCHND(GameSpawnManager.NNJPAOBFMCI FKOFGIJFIKA, GameSpawnManager.NNJPAOBFMCI GNNBOMAEBGK)
|
|
{
|
|
return GNNBOMAEBGK.CBFMPOKDNFL.CompareTo(FKOFGIJFIKA.CBFMPOKDNFL);
|
|
}
|
|
|
|
// Token: 0x06013743 RID: 79683 RVA: 0x00582620 File Offset: 0x00580820
|
|
public HPNGPCDIPED KEABMNJJCFH()
|
|
{
|
|
return this.localPlayerSpawnPointTag;
|
|
}
|
|
|
|
// Token: 0x06013744 RID: 79684 RVA: 0x00582628 File Offset: 0x00580828
|
|
public void CNPAJOKNMPF()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013745 RID: 79685 RVA: 0x0058262C File Offset: 0x0058082C
|
|
public void ODFMOHKMBNH(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013746 RID: 79686 RVA: 0x00582630 File Offset: 0x00580830
|
|
private void ONOFLBPFGEH(List<GiftBoxSpawnPoint> KOOKGECCHPC, LLMPNIPHKFK DDNLHFDGECG, List<GiftBoxSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 0; i < KOOKGECCHPC.Count; i++)
|
|
{
|
|
if (!(KOOKGECCHPC[i] == null))
|
|
{
|
|
if (KOOKGECCHPC[i].SpawnPointEnabled)
|
|
{
|
|
if (KOOKGECCHPC[i].MABHCKEJIDH == DDNLHFDGECG)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013747 RID: 79687 RVA: 0x005826AC File Offset: 0x005808AC
|
|
private SpawnPoint GDDFBKNGJLB(List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
global::UnityEngine.Random.InitState((int)DateTime.UtcNow.Ticks);
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(1, LDLALGDHOJE.Count)];
|
|
}
|
|
|
|
// Token: 0x06013748 RID: 79688 RVA: 0x005826E0 File Offset: 0x005808E0
|
|
public void PAEAMGPDKEK(bool KELIMOCDMOD)
|
|
{
|
|
this.FieldEquipmentEnabled = KELIMOCDMOD;
|
|
}
|
|
|
|
// Token: 0x06013749 RID: 79689 RVA: 0x005826EC File Offset: 0x005808EC
|
|
private void NLGFEMOEBFN(List<GameSpawnPoint> KOOKGECCHPC, List<GameSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 0; i < KOOKGECCHPC.Count; i++)
|
|
{
|
|
if (!KOOKGECCHPC[i].HBEJNMIIMHO)
|
|
{
|
|
if (!KOOKGECCHPC[i].PHDOGOFKNHF)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601374B RID: 79691 RVA: 0x00582788 File Offset: 0x00580988
|
|
public void OMOFNDGJDLA()
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.NHLEDJIICNG.SpawnPointSelectionMethod == KLNOPDJKEAB.RANDOM_WITHOUT_OPPONENT_VISIBILITY)
|
|
{
|
|
this.OIMKMFPFMJK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601374C RID: 79692 RVA: 0x005827BC File Offset: 0x005809BC
|
|
private void LHLPJAKNDDJ()
|
|
{
|
|
this.gameManager.CustomGamePropertyChanged();
|
|
}
|
|
|
|
// Token: 0x0601374D RID: 79693 RVA: 0x005827CC File Offset: 0x005809CC
|
|
private float KIJIKNHHKDL(List<Vector3> CCBCDJEEKJB, List<Vector3> IDKGFHAJIIB, GameSpawnPoint ICPJMAKANHF)
|
|
{
|
|
float num = this.JJHKEIEBOJL(ICPJMAKANHF, CCBCDJEEKJB, this.gameManager.PNOOBNCKAMJ.NHLEDJIICNG.TeammateProximityScoreSettings);
|
|
float num2 = this.JJHKEIEBOJL(ICPJMAKANHF, IDKGFHAJIIB, this.gameManager.PNOOBNCKAMJ.NHLEDJIICNG.EnemyProximityScoreSettings);
|
|
return num + num2;
|
|
}
|
|
|
|
// Token: 0x0601374E RID: 79694 RVA: 0x00582820 File Offset: 0x00580A20
|
|
private static int LDONJLKLGKP(GameSpawnManager.NNJPAOBFMCI FKOFGIJFIKA, GameSpawnManager.NNJPAOBFMCI GNNBOMAEBGK)
|
|
{
|
|
return GNNBOMAEBGK.CBFMPOKDNFL.CompareTo(FKOFGIJFIKA.CBFMPOKDNFL);
|
|
}
|
|
|
|
// Token: 0x0601374F RID: 79695 RVA: 0x00582838 File Offset: 0x00580A38
|
|
private void EGPFCFNHEPI(List<GameSpawnPoint> KOOKGECCHPC, IPBDFPEPNIM MPMNFEKLKNE, LLMPNIPHKFK DDNLHFDGECG, HPNGPCDIPED AEGLGMIKBPB, bool CMLCABIIIJN, IEFCMNJDPII JIBFNDOLKHH, List<GameSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 0; i < KOOKGECCHPC.Count; i += 0)
|
|
{
|
|
if (KOOKGECCHPC[i].SpawnPointEnabled)
|
|
{
|
|
if (KOOKGECCHPC[i].JCBHDILMDJN(JIBFNDOLKHH))
|
|
{
|
|
if ((!CMLCABIIIJN || KOOKGECCHPC[i].MLKAIHAGCHC()) && (CMLCABIIIJN || !KOOKGECCHPC[i].CAJDFMJCAHE()))
|
|
{
|
|
if (MPMNFEKLKNE == IPBDFPEPNIM.INVALID || KOOKGECCHPC[i].DDAPGGKKMNC() == IPBDFPEPNIM.INVALID || KOOKGECCHPC[i].DDAPGGKKMNC() == MPMNFEKLKNE)
|
|
{
|
|
if (DDNLHFDGECG == LLMPNIPHKFK.ANY_INDEX || KOOKGECCHPC[i].MHAIDBOHKFO() == LLMPNIPHKFK.ANY_INDEX || KOOKGECCHPC[i].JIJGFAHHLKB() == DDNLHFDGECG)
|
|
{
|
|
if (AEGLGMIKBPB == HPNGPCDIPED.DEFAULT || KOOKGECCHPC[i].ACCJDIABLLP() == HPNGPCDIPED.DEFAULT || KOOKGECCHPC[i].FCGOFGBJPNN() == AEGLGMIKBPB)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013750 RID: 79696 RVA: 0x00582968 File Offset: 0x00580B68
|
|
public EEOOHEGOBKD PGAHPABMPOL()
|
|
{
|
|
return (EEOOHEGOBKD)this._offHandSpawnEquipment.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06013751 RID: 79697 RVA: 0x00582978 File Offset: 0x00580B78
|
|
private SpawnPoint GLBNPKFBCFB(List<GameSpawnPoint> LDLALGDHOJE)
|
|
{
|
|
global::UnityEngine.Random.InitState((int)DateTime.UtcNow.Ticks);
|
|
return LDLALGDHOJE[global::UnityEngine.Random.Range(1, LDLALGDHOJE.Count)];
|
|
}
|
|
|
|
// Token: 0x06013752 RID: 79698 RVA: 0x005829AC File Offset: 0x00580BAC
|
|
public void LNPFLCJCNPD(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x06013754 RID: 79700 RVA: 0x00582A1C File Offset: 0x00580C1C
|
|
public void EOLCMCIOBIE()
|
|
{
|
|
GameSpawnPoint[] array = global::UnityEngine.Object.FindObjectsOfType<GameSpawnPoint>();
|
|
for (int i = 0; i < array.Length; i++)
|
|
{
|
|
if (array[i].SupportsGameState(IOGJGJKLPML.PRE_POST_GAME))
|
|
{
|
|
this.prePostGameSpawnPoints.Add(array[i]);
|
|
}
|
|
if (array[i].SupportsGameState(IOGJGJKLPML.PLAYING_GAME))
|
|
{
|
|
this.playingGameSpawnPoints.Add(array[i]);
|
|
}
|
|
}
|
|
GiftBoxSpawnPoint[] array2 = global::UnityEngine.Object.FindObjectsOfType<GiftBoxSpawnPoint>();
|
|
if (array2 != null)
|
|
{
|
|
this.giftBoxSpawnPoints.AddRange(array2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013756 RID: 79702 RVA: 0x00582AA4 File Offset: 0x00580CA4
|
|
private List<IPBDFPEPNIM> HHDCPHJCEIA(LNJFBGIBLHA[] PNBCBLCCKJN, bool NCOJLMCHJPD = true)
|
|
{
|
|
List<IPBDFPEPNIM> list = new List<IPBDFPEPNIM>();
|
|
for (int i = 0; i < PNBCBLCCKJN.Length; i++)
|
|
{
|
|
Player player = PNBCBLCCKJN[i].JHJGDFHNBLO();
|
|
if (!NCOJLMCHJPD || player != null)
|
|
{
|
|
list.Add(this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(PNBCBLCCKJN[i]));
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x06013757 RID: 79703 RVA: 0x00582B00 File Offset: 0x00580D00
|
|
public void CJFAFMNDNHG(HPNGPCDIPED KPOAMFIAODF)
|
|
{
|
|
this.localPlayerSpawnPointTag = KPOAMFIAODF;
|
|
}
|
|
|
|
// Token: 0x06013758 RID: 79704 RVA: 0x00582B0C File Offset: 0x00580D0C
|
|
private static int EEAABLANGHD(GameSpawnManager.NNJPAOBFMCI FKOFGIJFIKA, GameSpawnManager.NNJPAOBFMCI GNNBOMAEBGK)
|
|
{
|
|
return GNNBOMAEBGK.CBFMPOKDNFL.CompareTo(FKOFGIJFIKA.CBFMPOKDNFL);
|
|
}
|
|
|
|
// Token: 0x170007A0 RID: 1952
|
|
// (get) Token: 0x06013759 RID: 79705 RVA: 0x00582B24 File Offset: 0x00580D24
|
|
private bool IsGameRunning
|
|
{
|
|
get
|
|
{
|
|
return this.gameManager.HPCKCOBKJLK == PDBEIFOBGIM.GAME_RUNNING;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601375A RID: 79706 RVA: 0x00582B34 File Offset: 0x00580D34
|
|
public float KGLPFNPBOIG(GameSpawnPoint ICPJMAKANHF, List<Vector3> EHDKGIIBOJG, ProximityScoreSettings EPEJHIFIDNM)
|
|
{
|
|
float num = 809f;
|
|
for (int i = 1; i < EHDKGIIBOJG.Count; i++)
|
|
{
|
|
float num2 = this.ABLCJLJKHFI(ICPJMAKANHF, EHDKGIIBOJG[i], EPEJHIFIDNM);
|
|
num += num2;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0601375B RID: 79707 RVA: 0x00582B74 File Offset: 0x00580D74
|
|
private void CKDIBOHJIHD(Tool ENBMEDIFBLM, Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
ENBMEDIFBLM.POJJFNOCIGE -= this.BJMJPKHLDDC;
|
|
ActivityEquipmentObject activityEquipmentObject = ((!(ENBMEDIFBLM != null)) ? null : ENBMEDIFBLM.GetComponent<ActivityEquipmentObject>());
|
|
if (activityEquipmentObject != null && this.SpawnedEquipmentDestroyedEvent != null)
|
|
{
|
|
this.SpawnedEquipmentDestroyedEvent(activityEquipmentObject);
|
|
}
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (!ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
ENBMEDIFBLM.POOAOJPEDJD().TransferOwnership(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
IHFKMIAHBFP.JFCIOOHPLFJ(ENBMEDIFBLM.gameObject);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601375C RID: 79708 RVA: 0x00582C00 File Offset: 0x00580E00
|
|
public void BCCDINFONLC(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Remove(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x0601375D RID: 79709 RVA: 0x00582C38 File Offset: 0x00580E38
|
|
private SpawnPoint BEPLCMMGGKP(LNJFBGIBLHA JEFGMHBLLKI, HPNGPCDIPED DCCIPCPFBGA)
|
|
{
|
|
List<GameSpawnPoint> list = ((!this.JMMILFJCFJK()) ? this.prePostGameSpawnPoints : this.playingGameSpawnPoints);
|
|
if (list.Count == 0)
|
|
{
|
|
global::UnityEngine.Debug.LogError("position" + this.gameManager.name + ((!this.IsGameRunning) ? "partyId" : "Reset"));
|
|
return null;
|
|
}
|
|
IEFCMNJDPII modeType = this.gameManager.PNOOBNCKAMJ.ModeType;
|
|
IPBDFPEPNIM ipbdfpepnim = this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
bool flag = this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI);
|
|
this.KAOKFFNAHEI(list, ipbdfpepnim, llmpniphkfk, DCCIPCPFBGA, flag, modeType, this.spawnPointsRequirementFiltered);
|
|
if (this.spawnPointsRequirementFiltered.Count == 0)
|
|
{
|
|
global::UnityEngine.Debug.Log("No Hand Hovering");
|
|
return list[0];
|
|
}
|
|
this.NLGFEMOEBFN(this.spawnPointsRequirementFiltered, this.spawnPointsOverlapFiltered);
|
|
List<GameSpawnPoint> list2;
|
|
if (this.spawnPointsOverlapFiltered.Count > 0)
|
|
{
|
|
list2 = this.spawnPointsOverlapFiltered;
|
|
}
|
|
else
|
|
{
|
|
global::UnityEngine.Debug.Log("summer_banner2");
|
|
list2 = this.spawnPointsRequirementFiltered;
|
|
}
|
|
switch ((!this.JMMILFJCFJK()) ? KLNOPDJKEAB.WEIGHTED_TEAM_PROXIMITY : this.gameManager.PNOOBNCKAMJ.MMNGCIFDPDC().SpawnPointSelectionMethod)
|
|
{
|
|
case KLNOPDJKEAB.WEIGHTED_TEAM_PROXIMITY:
|
|
return this.IHFMHFBMAFE(ipbdfpepnim, list2);
|
|
case KLNOPDJKEAB.RANDOM:
|
|
return this.GDDFBKNGJLB(list2);
|
|
case KLNOPDJKEAB.RANDOM_WITHOUT_OPPONENT_VISIBILITY:
|
|
return this.NMHJBFDODKG(ipbdfpepnim, list2);
|
|
}
|
|
return this.GCLMINNJKDO(list2);
|
|
}
|
|
|
|
// Token: 0x0601375E RID: 79710 RVA: 0x00582DF0 File Offset: 0x00580FF0
|
|
public void CMBEDBCPNIA()
|
|
{
|
|
Tool.ANBMJHAOKDO -= this.FDBDPMALFHH;
|
|
}
|
|
|
|
// Token: 0x0601375F RID: 79711 RVA: 0x00582E04 File Offset: 0x00581004
|
|
private void BJMJPKHLDDC(Tool ENBMEDIFBLM, Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
ENBMEDIFBLM.POJJFNOCIGE -= this.CKDIBOHJIHD;
|
|
ActivityEquipmentObject activityEquipmentObject = ((!(ENBMEDIFBLM != null)) ? null : ENBMEDIFBLM.GetComponent<ActivityEquipmentObject>());
|
|
if (activityEquipmentObject != null && this.SpawnedEquipmentDestroyedEvent != null)
|
|
{
|
|
this.SpawnedEquipmentDestroyedEvent(activityEquipmentObject);
|
|
}
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (!ENBMEDIFBLM.DFJFKOLLEMK())
|
|
{
|
|
ENBMEDIFBLM.OMNGGJICBBI.EJBOGPNBGHI(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
IHFKMIAHBFP.JFCIOOHPLFJ(ENBMEDIFBLM.gameObject);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013760 RID: 79712 RVA: 0x00582E90 File Offset: 0x00581090
|
|
private static int BMOGFFCLKGL(GameSpawnManager.NNJPAOBFMCI FKOFGIJFIKA, GameSpawnManager.NNJPAOBFMCI GNNBOMAEBGK)
|
|
{
|
|
return GNNBOMAEBGK.CBFMPOKDNFL.CompareTo(FKOFGIJFIKA.CBFMPOKDNFL);
|
|
}
|
|
|
|
// Token: 0x06013761 RID: 79713 RVA: 0x00582EA8 File Offset: 0x005810A8
|
|
public void FMDHFFKIDAI(GiftBoxSpawnPoint[] DFFBNKIOEJB)
|
|
{
|
|
if (DFFBNKIOEJB == null)
|
|
{
|
|
return;
|
|
}
|
|
for (int i = 0; i < DFFBNKIOEJB.Length; i++)
|
|
{
|
|
this.giftBoxSpawnPoints.Remove(DFFBNKIOEJB[i]);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013762 RID: 79714 RVA: 0x00582EE0 File Offset: 0x005810E0
|
|
public void FNPHNCDHKPH(LNJFBGIBLHA JEFGMHBLLKI, HPNGPCDIPED KPOAMFIAODF, bool DGMJGABBCFP, bool LHBDDGJHGJD, bool ILJKAGLEFEJ, EEOOHEGOBKD GDDLCOANFPN, string MMHKDCGJPCH, int JEIIBNAJOGB, int NPIOAPCAHPC, EEOOHEGOBKD BCBJDFEGHBB, string ALKJDMCLFEO, int FAEMICLOIKI, int DFMOIPCCEOD, bool DMDPGGPKEMN)
|
|
{
|
|
if (!IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
SpawnPoint spawnPoint = this.BEPLCMMGGKP(JEFGMHBLLKI, KPOAMFIAODF);
|
|
if (spawnPoint == null)
|
|
{
|
|
global::UnityEngine.Debug.LogError("RpcOnLootCollect" + JEFGMHBLLKI.JFCNNPBCMMN());
|
|
return;
|
|
}
|
|
spawnPoint.MasterUse();
|
|
int num = this.PIGPPJDJPAB(JEFGMHBLLKI, ILJKAGLEFEJ, LHBDDGJHGJD, GDDLCOANFPN, JEIIBNAJOGB, NPIOAPCAHPC, spawnPoint.transform);
|
|
int num2 = this.PIGPPJDJPAB(JEFGMHBLLKI, ILJKAGLEFEJ, !LHBDDGJHGJD, BCBJDFEGHBB, FAEMICLOIKI, DFMOIPCCEOD, spawnPoint.transform);
|
|
PhotonView photonView = this.gameManager.BIPEBCPEPKL();
|
|
string text = "Player.PlayerLocomotion";
|
|
object[] array = new object[1];
|
|
array[1] = spawnPoint.transform.position;
|
|
array[1] = spawnPoint.transform.rotation;
|
|
array[3] = DGMJGABBCFP;
|
|
array[5] = num;
|
|
array[7] = MMHKDCGJPCH;
|
|
array[3] = num2;
|
|
array[7] = ALKJDMCLFEO;
|
|
array[8] = DMDPGGPKEMN;
|
|
photonView.OENNPPGINLI(text, JEFGMHBLLKI, array);
|
|
Action<LNJFBGIBLHA> masterRespawnedPlayer = this.MasterRespawnedPlayer;
|
|
if (masterRespawnedPlayer != null)
|
|
{
|
|
masterRespawnedPlayer(JEFGMHBLLKI);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013763 RID: 79715 RVA: 0x00582FE8 File Offset: 0x005811E8
|
|
public float JJHKEIEBOJL(GameSpawnPoint ICPJMAKANHF, List<Vector3> EHDKGIIBOJG, ProximityScoreSettings EPEJHIFIDNM)
|
|
{
|
|
float num = 0f;
|
|
for (int i = 0; i < EHDKGIIBOJG.Count; i++)
|
|
{
|
|
float num2 = this.LGDHIFMIPMI(ICPJMAKANHF, EHDKGIIBOJG[i], EPEJHIFIDNM);
|
|
num += num2;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x14000074 RID: 116
|
|
// (add) Token: 0x06013795 RID: 79765 RVA: 0x0058419C File Offset: 0x0058239C
|
|
// (remove) Token: 0x06013764 RID: 79716 RVA: 0x00583028 File Offset: 0x00581228
|
|
public event GameSpawnManager.NFFFEEONBEG LLPMKAHCPBJ
|
|
{
|
|
add
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentDestroyedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentDestroyedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, value), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
remove
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentDestroyedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentDestroyedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Remove(nfffeeonbeg2, value), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013765 RID: 79717 RVA: 0x00583060 File Offset: 0x00581260
|
|
public EEOOHEGOBKD LIOAGOPLNGB(bool JONNKEMOAPB)
|
|
{
|
|
return (!JONNKEMOAPB) ? this.OffHandSpawnEquipment : this.DominantHandSpawnEquipment;
|
|
}
|
|
|
|
// Token: 0x06013766 RID: 79718 RVA: 0x0058307C File Offset: 0x0058127C
|
|
public void JEODKNCBPEB(Action<LNJFBGIBLHA> NOBAPCOKFIL)
|
|
{
|
|
Action<LNJFBGIBLHA> action = this.MasterRespawnedPlayer;
|
|
Action<LNJFBGIBLHA> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<LNJFBGIBLHA>>(ref this.MasterRespawnedPlayer, (Action<LNJFBGIBLHA>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06013767 RID: 79719 RVA: 0x005830B4 File Offset: 0x005812B4
|
|
private void KAOKFFNAHEI(List<GameSpawnPoint> KOOKGECCHPC, IPBDFPEPNIM MPMNFEKLKNE, LLMPNIPHKFK DDNLHFDGECG, HPNGPCDIPED AEGLGMIKBPB, bool CMLCABIIIJN, IEFCMNJDPII JIBFNDOLKHH, List<GameSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 0; i < KOOKGECCHPC.Count; i++)
|
|
{
|
|
if (KOOKGECCHPC[i].SpawnPointEnabled)
|
|
{
|
|
if (KOOKGECCHPC[i].SupportsGameMode(JIBFNDOLKHH))
|
|
{
|
|
if ((!CMLCABIIIJN || KOOKGECCHPC[i].BAMKDFLDIPC) && (CMLCABIIIJN || !KOOKGECCHPC[i].BAMKDFLDIPC))
|
|
{
|
|
if (MPMNFEKLKNE == IPBDFPEPNIM.INVALID || KOOKGECCHPC[i].IPBDFPEPNIM == IPBDFPEPNIM.INVALID || KOOKGECCHPC[i].IPBDFPEPNIM == MPMNFEKLKNE)
|
|
{
|
|
if (DDNLHFDGECG == LLMPNIPHKFK.ANY_INDEX || KOOKGECCHPC[i].LLMPNIPHKFK == LLMPNIPHKFK.ANY_INDEX || KOOKGECCHPC[i].LLMPNIPHKFK == DDNLHFDGECG)
|
|
{
|
|
if (AEGLGMIKBPB == HPNGPCDIPED.DEFAULT || KOOKGECCHPC[i].NAIJNCAEBHO == HPNGPCDIPED.DEFAULT || KOOKGECCHPC[i].NAIJNCAEBHO == AEGLGMIKBPB)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013768 RID: 79720 RVA: 0x005831E4 File Offset: 0x005813E4
|
|
public void PFNEGHLIKJI(GameManager FMBELJHPBCG)
|
|
{
|
|
this.gameManager = FMBELJHPBCG;
|
|
Tool.ANBMJHAOKDO += this.FDBDPMALFHH;
|
|
int num = -1;
|
|
int num2 = -1;
|
|
if (FMBELJHPBCG.KBAMBINPBLN != null)
|
|
{
|
|
num = (int)FMBELJHPBCG.KBAMBINPBLN.DefaultEquipmentSpawnSettings.DominantHandTool;
|
|
num2 = (int)FMBELJHPBCG.KBAMBINPBLN.DefaultEquipmentSpawnSettings.OffHandTool;
|
|
}
|
|
this._dominantHandSpawnEquipment = new LHLLJPPCDKA<int>(FMBELJHPBCG, "DH_EQUP", num, IKCAJLLAFML.MASTER, new Action(this.LHLPJAKNDDJ));
|
|
this._offHandSpawnEquipment = new LHLLJPPCDKA<int>(FMBELJHPBCG, "OH_EQUP", num2, IKCAJLLAFML.MASTER, new Action(this.LHLPJAKNDDJ));
|
|
this._fieldEquipmentEnabled = new LHLLJPPCDKA<bool>(FMBELJHPBCG, "FE_EQUP", this.DefaultFieldEquipmentEnabled, IKCAJLLAFML.MASTER, new Action(this.OFIECOJBHJM));
|
|
}
|
|
|
|
// Token: 0x06013769 RID: 79721 RVA: 0x0058329C File Offset: 0x0058149C
|
|
public void HAHOCEJOIIG(bool KELIMOCDMOD)
|
|
{
|
|
this.FieldEquipmentEnabled = KELIMOCDMOD;
|
|
}
|
|
|
|
// Token: 0x0601376A RID: 79722 RVA: 0x005832A8 File Offset: 0x005814A8
|
|
public void EKJOIMMGJBO(Tool HDCJCBJLIFD, Tool EHJLOKCIGLI)
|
|
{
|
|
this.PANOOJCBHHH(HDCJCBJLIFD, ref this.leftHandRequestedSpawnEquipmentType, ref this.leftHandRequestedSpawnEquipmentSkinId);
|
|
this.HJMJMAMMMKI(HDCJCBJLIFD, ref this.leftHandWeaponMagazineAmmo, ref this.leftHandWeaponReserveAmmo);
|
|
this.PANOOJCBHHH(EHJLOKCIGLI, ref this.rightHandRequestedSpawnEquipmentType, ref this.rightHandRequestedSpawnEquipmentSkinId);
|
|
this.HJMJMAMMMKI(EHJLOKCIGLI, ref this.rightHandWeaponMagazineAmmo, ref this.rightHandWeaponReserveAmmo);
|
|
}
|
|
|
|
// Token: 0x0601376B RID: 79723 RVA: 0x00583304 File Offset: 0x00581504
|
|
public void DJGMGIACKAB(bool KELIMOCDMOD)
|
|
{
|
|
this.FieldEquipmentEnabled = KELIMOCDMOD;
|
|
}
|
|
|
|
// Token: 0x0601376C RID: 79724 RVA: 0x00583310 File Offset: 0x00581510
|
|
public void EHNICDMIEHL(bool LIEGPIPEAPJ)
|
|
{
|
|
this.CJFAFMNDNHG(HPNGPCDIPED.DEFAULT);
|
|
this.leftHandRequestedSpawnEquipmentType = EEOOHEGOBKD.INVALID;
|
|
this.leftHandRequestedSpawnEquipmentSkinId = null;
|
|
this.leftHandWeaponMagazineAmmo = 0;
|
|
this.leftHandWeaponReserveAmmo = 0;
|
|
this.rightHandRequestedSpawnEquipmentType = EEOOHEGOBKD.INVALID;
|
|
this.rightHandRequestedSpawnEquipmentSkinId = null;
|
|
this.rightHandWeaponMagazineAmmo = 0;
|
|
this.rightHandWeaponReserveAmmo = 0;
|
|
}
|
|
|
|
// Token: 0x0601376D RID: 79725 RVA: 0x0058335C File Offset: 0x0058155C
|
|
public void MDMKEMLNEBG(bool KELIMOCDMOD)
|
|
{
|
|
this.gameManager.CEGDLFAENEJ().PKOHKPEKJCJ("scale", (IHCPDNLJMMD)7, new object[] { KELIMOCDMOD });
|
|
}
|
|
|
|
// Token: 0x0601376E RID: 79726 RVA: 0x00583384 File Offset: 0x00581584
|
|
public void DOJHBACECML(bool KELIMOCDMOD)
|
|
{
|
|
this.FieldEquipmentEnabled = KELIMOCDMOD;
|
|
}
|
|
|
|
// Token: 0x0601376F RID: 79727 RVA: 0x00583390 File Offset: 0x00581590
|
|
public void EEBOMPBOMGE(LNJFBGIBLHA JEFGMHBLLKI, HPNGPCDIPED KPOAMFIAODF, bool DGMJGABBCFP, bool LHBDDGJHGJD, bool ILJKAGLEFEJ, EEOOHEGOBKD GDDLCOANFPN, string MMHKDCGJPCH, int JEIIBNAJOGB, int NPIOAPCAHPC, EEOOHEGOBKD BCBJDFEGHBB, string ALKJDMCLFEO, int FAEMICLOIKI, int DFMOIPCCEOD, bool DMDPGGPKEMN)
|
|
{
|
|
if (!IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
return;
|
|
}
|
|
if (JEFGMHBLLKI == null)
|
|
{
|
|
return;
|
|
}
|
|
SpawnPoint spawnPoint = this.AIEGGCLINBD(JEFGMHBLLKI, KPOAMFIAODF);
|
|
if (spawnPoint == null)
|
|
{
|
|
global::UnityEngine.Debug.LogError("Spawn Point is null. Cannot spawn player " + JEFGMHBLLKI.KODHOHBEAOP);
|
|
return;
|
|
}
|
|
spawnPoint.MasterUse();
|
|
int num = this.PIGPPJDJPAB(JEFGMHBLLKI, ILJKAGLEFEJ, LHBDDGJHGJD, GDDLCOANFPN, JEIIBNAJOGB, NPIOAPCAHPC, spawnPoint.transform);
|
|
int num2 = this.PIGPPJDJPAB(JEFGMHBLLKI, ILJKAGLEFEJ, !LHBDDGJHGJD, BCBJDFEGHBB, FAEMICLOIKI, DFMOIPCCEOD, spawnPoint.transform);
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcRespawnPlayer", JEFGMHBLLKI, new object[]
|
|
{
|
|
spawnPoint.transform.position,
|
|
spawnPoint.transform.rotation,
|
|
DGMJGABBCFP,
|
|
num,
|
|
MMHKDCGJPCH,
|
|
num2,
|
|
ALKJDMCLFEO,
|
|
DMDPGGPKEMN
|
|
});
|
|
Action<LNJFBGIBLHA> masterRespawnedPlayer = this.MasterRespawnedPlayer;
|
|
if (masterRespawnedPlayer != null)
|
|
{
|
|
masterRespawnedPlayer(JEFGMHBLLKI);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013770 RID: 79728 RVA: 0x00583498 File Offset: 0x00581698
|
|
public float ABLCJLJKHFI(GameSpawnPoint ICPJMAKANHF, Vector3 HLCJJIMIECK, ProximityScoreSettings EPEJHIFIDNM)
|
|
{
|
|
float magnitude = Vector3.ProjectOnPlane(HLCJJIMIECK - ICPJMAKANHF.transform.position, Vector3.up).magnitude;
|
|
if (EPEJHIFIDNM.UseCurve && EPEJHIFIDNM.DistanceScoreCurve != null)
|
|
{
|
|
return EPEJHIFIDNM.DistanceScoreCurve.Evaluate(magnitude);
|
|
}
|
|
float num = Mathf.InverseLerp(EPEJHIFIDNM.MinThreshold, EPEJHIFIDNM.MaxThreshold, magnitude);
|
|
return Mathf.Lerp(EPEJHIFIDNM.MinScore, EPEJHIFIDNM.MaxScore, num);
|
|
}
|
|
|
|
// Token: 0x06013771 RID: 79729 RVA: 0x00583518 File Offset: 0x00581718
|
|
private void FHIPJMAHNFE(Tool ENBMEDIFBLM, Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO, Vector3 BEDLPFBGLLP, bool MDMECJBCECO)
|
|
{
|
|
ENBMEDIFBLM.POJJFNOCIGE -= this.FHIPJMAHNFE;
|
|
ActivityEquipmentObject activityEquipmentObject = ((!(ENBMEDIFBLM != null)) ? null : ENBMEDIFBLM.GetComponent<ActivityEquipmentObject>());
|
|
if (activityEquipmentObject != null && this.SpawnedEquipmentDestroyedEvent != null)
|
|
{
|
|
this.SpawnedEquipmentDestroyedEvent(activityEquipmentObject);
|
|
}
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (!ENBMEDIFBLM.BHCCHBHNHCG)
|
|
{
|
|
ENBMEDIFBLM.OMNGGJICBBI.TransferOwnership(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
IHFKMIAHBFP.JFCIOOHPLFJ(ENBMEDIFBLM.gameObject);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013772 RID: 79730 RVA: 0x005835A4 File Offset: 0x005817A4
|
|
public void GPBPMGIPEAF(GameSpawnPoint[] LDLALGDHOJE)
|
|
{
|
|
if (LDLALGDHOJE == null)
|
|
{
|
|
return;
|
|
}
|
|
for (int i = 0; i < LDLALGDHOJE.Length; i++)
|
|
{
|
|
if (LDLALGDHOJE[i].GEJHLJIPADC(IOGJGJKLPML.PLAYING_GAME))
|
|
{
|
|
this.prePostGameSpawnPoints.Remove(LDLALGDHOJE[i]);
|
|
}
|
|
if (LDLALGDHOJE[i].EIIHAAAKHBG(IOGJGJKLPML.PRE_POST_GAME))
|
|
{
|
|
this.playingGameSpawnPoints.Remove(LDLALGDHOJE[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013773 RID: 79731 RVA: 0x00583608 File Offset: 0x00581808
|
|
public void NKCADDBNJJN()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06013774 RID: 79732 RVA: 0x0058360C File Offset: 0x0058180C
|
|
private void PANOOJCBHHH(Tool ENBMEDIFBLM, ref EEOOHEGOBKD PIBJBBLMIBL, ref string AIJGBGLAMGJ)
|
|
{
|
|
PIBJBBLMIBL = EEOOHEGOBKD.INVALID;
|
|
AIJGBGLAMGJ = null;
|
|
if (ENBMEDIFBLM != null)
|
|
{
|
|
PIBJBBLMIBL = ENBMEDIFBLM.JPGLEPHGLPE;
|
|
if (ENBMEDIFBLM.NLNJOJLDEAE != null)
|
|
{
|
|
if (!string.IsNullOrEmpty(ENBMEDIFBLM.NLNJOJLDEAE.MBCKEOINBKH))
|
|
{
|
|
AIJGBGLAMGJ = ENBMEDIFBLM.NLNJOJLDEAE.MBCKEOINBKH;
|
|
}
|
|
AIJGBGLAMGJ = ENBMEDIFBLM.NLNJOJLDEAE.CIJGNBIPOCJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013775 RID: 79733 RVA: 0x00583674 File Offset: 0x00581874
|
|
private void HJMJMAMMMKI(Tool ENBMEDIFBLM, ref int EPIBMJEAKKK, ref int LANJHLIMAGD)
|
|
{
|
|
EPIBMJEAKKK = 0;
|
|
LANJHLIMAGD = 0;
|
|
if (ENBMEDIFBLM != null)
|
|
{
|
|
Weapon component = ENBMEDIFBLM.gameObject.GetComponent<Weapon>();
|
|
if (component != null)
|
|
{
|
|
EPIBMJEAKKK = component.DNAHKKOMMDH;
|
|
LANJHLIMAGD = component.JAMEBLEFBCA;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013776 RID: 79734 RVA: 0x005836BC File Offset: 0x005818BC
|
|
private List<Vector3> NPGLENDBGEN(LNJFBGIBLHA[] PNBCBLCCKJN)
|
|
{
|
|
List<Vector3> list = new List<Vector3>();
|
|
for (int i = 0; i < PNBCBLCCKJN.Length; i++)
|
|
{
|
|
Player player = PNBCBLCCKJN[i].JHJGDFHNBLO();
|
|
if (player != null)
|
|
{
|
|
list.Add(player.BGOGBEPJGPJ.transform.position);
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x06013777 RID: 79735 RVA: 0x00583710 File Offset: 0x00581910
|
|
public void CMBBMEIKHAF(bool JONNKEMOAPB, EEOOHEGOBKD LAFAHPMBKCL)
|
|
{
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD)
|
|
{
|
|
if (JONNKEMOAPB)
|
|
{
|
|
this.DominantHandSpawnEquipment = LAFAHPMBKCL;
|
|
}
|
|
else
|
|
{
|
|
this.OffHandSpawnEquipment = LAFAHPMBKCL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013778 RID: 79736 RVA: 0x00583738 File Offset: 0x00581938
|
|
private void HEDIBJJIOBL(List<GameSpawnPoint> KOOKGECCHPC, IPBDFPEPNIM MPMNFEKLKNE, LLMPNIPHKFK DDNLHFDGECG, HPNGPCDIPED AEGLGMIKBPB, bool CMLCABIIIJN, IEFCMNJDPII JIBFNDOLKHH, List<GameSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 1; i < KOOKGECCHPC.Count; i += 0)
|
|
{
|
|
if (KOOKGECCHPC[i].SpawnPointEnabled)
|
|
{
|
|
if (KOOKGECCHPC[i].JFPBCEOCHJB(JIBFNDOLKHH))
|
|
{
|
|
if ((!CMLCABIIIJN || KOOKGECCHPC[i].MLKAIHAGCHC()) && (CMLCABIIIJN || !KOOKGECCHPC[i].CAJDFMJCAHE()))
|
|
{
|
|
if (MPMNFEKLKNE == IPBDFPEPNIM.INVALID || KOOKGECCHPC[i].FDIHEKKLJKC() == IPBDFPEPNIM.INVALID || KOOKGECCHPC[i].FDIHEKKLJKC() == MPMNFEKLKNE)
|
|
{
|
|
if (DDNLHFDGECG == LLMPNIPHKFK.ANY_INDEX || KOOKGECCHPC[i].MJFJMKNBGHA() == LLMPNIPHKFK.ANY_INDEX || KOOKGECCHPC[i].KGAKIOPMIFJ() == DDNLHFDGECG)
|
|
{
|
|
if (AEGLGMIKBPB == HPNGPCDIPED.DEFAULT || KOOKGECCHPC[i].FCGOFGBJPNN() == HPNGPCDIPED.DEFAULT || KOOKGECCHPC[i].FCGOFGBJPNN() == AEGLGMIKBPB)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013779 RID: 79737 RVA: 0x00583868 File Offset: 0x00581A68
|
|
public void PIMDIHBLFNB(bool JONNKEMOAPB, EEOOHEGOBKD LAFAHPMBKCL)
|
|
{
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcMasterRequestSetSpawnEquipmentForHand", IHCPDNLJMMD.MasterClient, new object[]
|
|
{
|
|
JONNKEMOAPB,
|
|
(int)LAFAHPMBKCL
|
|
});
|
|
}
|
|
|
|
// Token: 0x0601377A RID: 79738 RVA: 0x00583898 File Offset: 0x00581A98
|
|
private void BEINNOCAKBN()
|
|
{
|
|
if (!IHFKMIAHBFP.HCHIDMOLLAD || !this.JMMILFJCFJK())
|
|
{
|
|
return;
|
|
}
|
|
if (this.playingGameSpawnPoints == null || this.playingGameSpawnPoints.Count == 0)
|
|
{
|
|
return;
|
|
}
|
|
int num = Mathf.Min(5, this.playingGameSpawnPoints.Count);
|
|
LNJFBGIBLHA[] array = this.gameManager.NKCBOCMOBCA.MBFGHAJFLFJ();
|
|
List<IPBDFPEPNIM> list = this.KLICLCDAKMC(array, true);
|
|
List<Vector3> list2 = this.NPGLENDBGEN(array);
|
|
for (int i = 1; i < num; i += 0)
|
|
{
|
|
this.playingGameSpawnPoints[this.currentVisTestGameplaySPIndex].PBNPPGFGJDC(list, list2, 346f);
|
|
this.currentVisTestGameplaySPIndex = (this.currentVisTestGameplaySPIndex + 1) % this.playingGameSpawnPoints.Count;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601377B RID: 79739 RVA: 0x00583958 File Offset: 0x00581B58
|
|
public void GDENCECNHDD(Tool HDCJCBJLIFD, Tool EHJLOKCIGLI)
|
|
{
|
|
this.PANOOJCBHHH(HDCJCBJLIFD, ref this.leftHandRequestedSpawnEquipmentType, ref this.leftHandRequestedSpawnEquipmentSkinId);
|
|
this.HJMJMAMMMKI(HDCJCBJLIFD, ref this.leftHandWeaponMagazineAmmo, ref this.leftHandWeaponReserveAmmo);
|
|
this.PANOOJCBHHH(EHJLOKCIGLI, ref this.rightHandRequestedSpawnEquipmentType, ref this.rightHandRequestedSpawnEquipmentSkinId);
|
|
this.HJMJMAMMMKI(EHJLOKCIGLI, ref this.rightHandWeaponMagazineAmmo, ref this.rightHandWeaponReserveAmmo);
|
|
}
|
|
|
|
// Token: 0x1700079E RID: 1950
|
|
// (get) Token: 0x0601377E RID: 79742 RVA: 0x00583A5C File Offset: 0x00581C5C
|
|
// (set) Token: 0x0601377C RID: 79740 RVA: 0x005839B4 File Offset: 0x00581BB4
|
|
public EEOOHEGOBKD OffHandSpawnEquipment
|
|
{
|
|
get
|
|
{
|
|
return (EEOOHEGOBKD)this._offHandSpawnEquipment.CPIBGJLHLBL();
|
|
}
|
|
set
|
|
{
|
|
this._offHandSpawnEquipment.MEAINJPIECA((int)value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601377F RID: 79743 RVA: 0x00583A6C File Offset: 0x00581C6C
|
|
private Tool OBJAEHMGPJJ(LNJFBGIBLHA JEFGMHBLLKI, EEOOHEGOBKD LJHKFPCPGPM, Vector3 CIFHNCGLFKB, Quaternion IALBLHLNFND)
|
|
{
|
|
Tool tool = null;
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.IsGameRunning && (!this.SpawnToolRestrictedByTeam || this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(JEFGMHBLLKI) == this.SpawnToolSupportedTeam) && (!this.SpawnToolRestrictedByTeamPlayerIndex || this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI) == this.SpawnToolSupportedTeamPlayerIndex))
|
|
{
|
|
tool = this.KPPIBGOLDND(LJHKFPCPGPM, CIFHNCGLFKB, IALBLHLNFND);
|
|
}
|
|
return tool;
|
|
}
|
|
|
|
// Token: 0x06013780 RID: 79744 RVA: 0x00583AEC File Offset: 0x00581CEC
|
|
public bool ADFEBLFOFNF()
|
|
{
|
|
return this._fieldEquipmentEnabled.CPIBGJLHLBL();
|
|
}
|
|
|
|
// Token: 0x06013781 RID: 79745 RVA: 0x00583AFC File Offset: 0x00581CFC
|
|
public void BEDHDJGBHMA(GiftBoxSpawnPoint[] DFFBNKIOEJB)
|
|
{
|
|
if (DFFBNKIOEJB == null)
|
|
{
|
|
return;
|
|
}
|
|
for (int i = 0; i < DFFBNKIOEJB.Length; i++)
|
|
{
|
|
this.giftBoxSpawnPoints.Remove(DFFBNKIOEJB[i]);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013782 RID: 79746 RVA: 0x00583B34 File Offset: 0x00581D34
|
|
public Tool KPPIBGOLDND(EEOOHEGOBKD LAFAHPMBKCL, Vector3 CIFHNCGLFKB, Quaternion IALBLHLNFND)
|
|
{
|
|
Tool tool = null;
|
|
if (LAFAHPMBKCL != EEOOHEGOBKD.INVALID)
|
|
{
|
|
tool = Tool.PhotonInstantiateForRoom(KIJLHDGENIC.JECDCJEAMDI(LAFAHPMBKCL), CIFHNCGLFKB, IALBLHLNFND, this.gameManager.OMNGGJICBBI.ADMBCINHJOG, null);
|
|
}
|
|
return tool;
|
|
}
|
|
|
|
// Token: 0x06013783 RID: 79747 RVA: 0x00583B6C File Offset: 0x00581D6C
|
|
private Tool OHKOCIJMJFM(LNJFBGIBLHA JEFGMHBLLKI, EEOOHEGOBKD LJHKFPCPGPM, Vector3 CIFHNCGLFKB, Quaternion IALBLHLNFND)
|
|
{
|
|
Tool tool = null;
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.JMMILFJCFJK() && (!this.SpawnToolRestrictedByTeam || this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(JEFGMHBLLKI) == this.SpawnToolSupportedTeam) && (!this.SpawnToolRestrictedByTeamPlayerIndex || this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI) == this.SpawnToolSupportedTeamPlayerIndex))
|
|
{
|
|
tool = this.KPPIBGOLDND(LJHKFPCPGPM, CIFHNCGLFKB, IALBLHLNFND);
|
|
}
|
|
return tool;
|
|
}
|
|
|
|
// Token: 0x06013784 RID: 79748 RVA: 0x00583BEC File Offset: 0x00581DEC
|
|
private SpawnPoint AIEGGCLINBD(LNJFBGIBLHA JEFGMHBLLKI, HPNGPCDIPED DCCIPCPFBGA)
|
|
{
|
|
List<GameSpawnPoint> list = ((!this.IsGameRunning) ? this.prePostGameSpawnPoints : this.playingGameSpawnPoints);
|
|
if (list.Count == 0)
|
|
{
|
|
global::UnityEngine.Debug.LogError("Missing spawn points for " + this.gameManager.name + ((!this.IsGameRunning) ? " in pre/post game state" : " in playing game state"));
|
|
return null;
|
|
}
|
|
IEFCMNJDPII modeType = this.gameManager.PNOOBNCKAMJ.ModeType;
|
|
IPBDFPEPNIM ipbdfpepnim = this.gameManager.NKCBOCMOBCA.KKPAEEHBNGE(JEFGMHBLLKI);
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
bool flag = this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI);
|
|
this.KAOKFFNAHEI(list, ipbdfpepnim, llmpniphkfk, DCCIPCPFBGA, flag, modeType, this.spawnPointsRequirementFiltered);
|
|
if (this.spawnPointsRequirementFiltered.Count == 0)
|
|
{
|
|
global::UnityEngine.Debug.Log("Filtered out all possible spawn points due to spawn point requirement tests. Falling back to arbitrary spawn point.");
|
|
return list[0];
|
|
}
|
|
this.COCDIPDPDLE(this.spawnPointsRequirementFiltered, this.spawnPointsOverlapFiltered);
|
|
List<GameSpawnPoint> list2;
|
|
if (this.spawnPointsOverlapFiltered.Count > 0)
|
|
{
|
|
list2 = this.spawnPointsOverlapFiltered;
|
|
}
|
|
else
|
|
{
|
|
global::UnityEngine.Debug.Log("Filtered out all possible spawn points due to spawn point overlap test. Falling back to overlapping spawn points.");
|
|
list2 = this.spawnPointsRequirementFiltered;
|
|
}
|
|
switch ((!this.IsGameRunning) ? KLNOPDJKEAB.LEAST_RECENTLY_USED : this.gameManager.PNOOBNCKAMJ.NHLEDJIICNG.SpawnPointSelectionMethod)
|
|
{
|
|
case KLNOPDJKEAB.WEIGHTED_TEAM_PROXIMITY:
|
|
return this.IHFMHFBMAFE(ipbdfpepnim, list2);
|
|
case KLNOPDJKEAB.RANDOM:
|
|
return this.JKLMHDFBHHE(list2);
|
|
case KLNOPDJKEAB.RANDOM_WITHOUT_OPPONENT_VISIBILITY:
|
|
return this.NMHJBFDODKG(ipbdfpepnim, list2);
|
|
}
|
|
return this.GCLMINNJKDO(list2);
|
|
}
|
|
|
|
// Token: 0x06013785 RID: 79749 RVA: 0x00583DA4 File Offset: 0x00581FA4
|
|
public void HOAEMHHAICH(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x06013786 RID: 79750 RVA: 0x00583DDC File Offset: 0x00581FDC
|
|
public void INDIHMLAOHP()
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.NHLEDJIICNG.SpawnPointSelectionMethod == KLNOPDJKEAB.RANDOM_WITHOUT_OPPONENT_VISIBILITY)
|
|
{
|
|
this.EKNAGABCHMG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013787 RID: 79751 RVA: 0x00583E10 File Offset: 0x00582010
|
|
public void HIJNEDKOJFP(EEOOHEGOBKD NOBAPCOKFIL)
|
|
{
|
|
this._offHandSpawnEquipment.MEAINJPIECA((int)NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06013788 RID: 79752 RVA: 0x00583E20 File Offset: 0x00582020
|
|
public void PAFDCJGDGHN(HPNGPCDIPED KPOAMFIAODF)
|
|
{
|
|
this.localPlayerSpawnPointTag = KPOAMFIAODF;
|
|
}
|
|
|
|
// Token: 0x06013789 RID: 79753 RVA: 0x00583E2C File Offset: 0x0058202C
|
|
private void EKNAGABCHMG()
|
|
{
|
|
if (!IHFKMIAHBFP.HCHIDMOLLAD || !this.IsGameRunning)
|
|
{
|
|
return;
|
|
}
|
|
if (this.playingGameSpawnPoints == null || this.playingGameSpawnPoints.Count == 0)
|
|
{
|
|
return;
|
|
}
|
|
int num = Mathf.Min(4, this.playingGameSpawnPoints.Count);
|
|
LNJFBGIBLHA[] array = this.gameManager.NKCBOCMOBCA.MBFGHAJFLFJ();
|
|
List<IPBDFPEPNIM> list = this.KLICLCDAKMC(array, true);
|
|
List<Vector3> list2 = this.NPGLENDBGEN(array);
|
|
for (int i = 0; i < num; i++)
|
|
{
|
|
this.playingGameSpawnPoints[this.currentVisTestGameplaySPIndex].UpdateTeamPlayerVisibility(list, list2, 1.8f);
|
|
this.currentVisTestGameplaySPIndex = (this.currentVisTestGameplaySPIndex + 1) % this.playingGameSpawnPoints.Count;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601378A RID: 79754 RVA: 0x00583EEC File Offset: 0x005820EC
|
|
public void PINHEDHEGBJ(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601378B RID: 79755 RVA: 0x00583EF0 File Offset: 0x005820F0
|
|
public GiftBoxSpawnPoint PMOICGKCGBB(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
GiftBoxSpawnPoint giftBoxSpawnPoint = null;
|
|
if (this.giftBoxSpawnPoints != null && !this.gameManager.NKCBOCMOBCA.IALADJLKIFN(JEFGMHBLLKI))
|
|
{
|
|
LLMPNIPHKFK llmpniphkfk = this.gameManager.NKCBOCMOBCA.EDDJCNIDNMM(JEFGMHBLLKI);
|
|
this.FKKBNJNNJFN(this.giftBoxSpawnPoints, llmpniphkfk, this.filteredGiftBoxSpawnPoints);
|
|
if (this.filteredGiftBoxSpawnPoints.Count > 0)
|
|
{
|
|
this.filteredGiftBoxSpawnPoints.Sort(GiftBoxSpawnPoint.Comparer);
|
|
giftBoxSpawnPoint = this.filteredGiftBoxSpawnPoints[1];
|
|
}
|
|
}
|
|
return giftBoxSpawnPoint;
|
|
}
|
|
|
|
// Token: 0x0601378C RID: 79756 RVA: 0x00583F74 File Offset: 0x00582174
|
|
public void PPCCKMMADGK()
|
|
{
|
|
Tool.ANBMJHAOKDO -= this.FDBDPMALFHH;
|
|
}
|
|
|
|
// Token: 0x0601378D RID: 79757 RVA: 0x00583F88 File Offset: 0x00582188
|
|
public void CFJPABEHFDD(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x0601378E RID: 79758 RVA: 0x00583FC0 File Offset: 0x005821C0
|
|
public void DANEJKFFLKE()
|
|
{
|
|
if (this.gameManager.PNOOBNCKAMJ.MMNGCIFDPDC().SpawnPointSelectionMethod == (KLNOPDJKEAB)5)
|
|
{
|
|
this.MDHAMFBOEBD();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601378F RID: 79759 RVA: 0x00583FF4 File Offset: 0x005821F4
|
|
public void IHDIIDPPLEM(GameSpawnPoint[] LDLALGDHOJE)
|
|
{
|
|
if (LDLALGDHOJE == null)
|
|
{
|
|
return;
|
|
}
|
|
for (int i = 0; i < LDLALGDHOJE.Length; i++)
|
|
{
|
|
if (LDLALGDHOJE[i].SupportsGameState(IOGJGJKLPML.PRE_POST_GAME))
|
|
{
|
|
this.prePostGameSpawnPoints.Remove(LDLALGDHOJE[i]);
|
|
}
|
|
if (LDLALGDHOJE[i].SupportsGameState(IOGJGJKLPML.PLAYING_GAME))
|
|
{
|
|
this.playingGameSpawnPoints.Remove(LDLALGDHOJE[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013790 RID: 79760 RVA: 0x00584058 File Offset: 0x00582258
|
|
private void COCDIPDPDLE(List<GameSpawnPoint> KOOKGECCHPC, List<GameSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 0; i < KOOKGECCHPC.Count; i++)
|
|
{
|
|
if (!KOOKGECCHPC[i].HBEJNMIIMHO)
|
|
{
|
|
if (!KOOKGECCHPC[i].PHDOGOFKNHF)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013791 RID: 79761 RVA: 0x005840BC File Offset: 0x005822BC
|
|
private void MOALNJEKBJH()
|
|
{
|
|
this.gameManager.CustomGamePropertyChanged();
|
|
}
|
|
|
|
// Token: 0x06013792 RID: 79762 RVA: 0x005840CC File Offset: 0x005822CC
|
|
private void LHNJLOHAEKB()
|
|
{
|
|
this.currentVisTestGameplaySPIndex = 0;
|
|
if (this.playingGameSpawnPoints != null && this.playingGameSpawnPoints.Count > 0)
|
|
{
|
|
for (int i = 0; i < this.playingGameSpawnPoints.Count; i += 0)
|
|
{
|
|
this.playingGameSpawnPoints[i].LBBCHEPLGHP();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013793 RID: 79763 RVA: 0x0058412C File Offset: 0x0058232C
|
|
private void OIMKMFPFMJK()
|
|
{
|
|
this.currentVisTestGameplaySPIndex = 0;
|
|
if (this.playingGameSpawnPoints != null && this.playingGameSpawnPoints.Count > 0)
|
|
{
|
|
for (int i = 0; i < this.playingGameSpawnPoints.Count; i++)
|
|
{
|
|
this.playingGameSpawnPoints[i].ClearTeamPlayerVisibility();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06013794 RID: 79764 RVA: 0x0058418C File Offset: 0x0058238C
|
|
public void EIGKAIBNKLJ(EEOOHEGOBKD NOBAPCOKFIL)
|
|
{
|
|
this._offHandSpawnEquipment.MEAINJPIECA((int)NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06013796 RID: 79766 RVA: 0x005841D4 File Offset: 0x005823D4
|
|
public void LNJOPCNIDKO(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentDestroyedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentDestroyedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Remove(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x06013797 RID: 79767 RVA: 0x0058420C File Offset: 0x0058240C
|
|
public void AEDFKFFNBLM(bool KELIMOCDMOD)
|
|
{
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcMasterRequestSetFieldEquipmentEnabled", IHCPDNLJMMD.MasterClient, new object[] { KELIMOCDMOD });
|
|
}
|
|
|
|
// Token: 0x06013798 RID: 79768 RVA: 0x00584234 File Offset: 0x00582434
|
|
public void NEIDMMLPDPG(HPNGPCDIPED KPOAMFIAODF)
|
|
{
|
|
this.localPlayerSpawnPointTag = KPOAMFIAODF;
|
|
}
|
|
|
|
// Token: 0x06013799 RID: 79769 RVA: 0x00584240 File Offset: 0x00582440
|
|
public void CJLMAHBMPFO(GameSpawnManager.NFFFEEONBEG NOBAPCOKFIL)
|
|
{
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg = this.SpawnedEquipmentInstantiatedEvent;
|
|
GameSpawnManager.NFFFEEONBEG nfffeeonbeg2;
|
|
do
|
|
{
|
|
nfffeeonbeg2 = nfffeeonbeg;
|
|
nfffeeonbeg = Interlocked.CompareExchange<GameSpawnManager.NFFFEEONBEG>(ref this.SpawnedEquipmentInstantiatedEvent, (GameSpawnManager.NFFFEEONBEG)Delegate.Combine(nfffeeonbeg2, NOBAPCOKFIL), nfffeeonbeg);
|
|
}
|
|
while (nfffeeonbeg != nfffeeonbeg2);
|
|
}
|
|
|
|
// Token: 0x0601379A RID: 79770 RVA: 0x00584278 File Offset: 0x00582478
|
|
public HPNGPCDIPED DPEABKOOJPL()
|
|
{
|
|
return this.localPlayerSpawnPointTag;
|
|
}
|
|
|
|
// Token: 0x0601379B RID: 79771 RVA: 0x00584280 File Offset: 0x00582480
|
|
public void CAHIBCONCCH(bool DGMJGABBCFP = true, bool DMDPGGPKEMN = false)
|
|
{
|
|
bool flag = DGMJGABBCFP || ((Player.LocalPlayer.BGIBHPOALJG == null || !Player.LocalPlayer.BGIBHPOALJG.NGMCOGJDNKC) && (Player.LocalPlayer.KEJBPANGFKK == null || !Player.LocalPlayer.KEJBPANGFKK.NGMCOGJDNKC));
|
|
bool flag2 = Player.LocalPlayer.MONEMFCPHDE.EEAOGJHMFII == PlayerHand.HMMEBFHABKA.Left;
|
|
this.gameManager.OMNGGJICBBI.RPC("RpcMasterRequestPlayerRespawn", IHCPDNLJMMD.MasterClient, new object[]
|
|
{
|
|
IHFKMIAHBFP.JEFGMHBLLKI.BADMPMDONAH,
|
|
(int)this.DPEABKOOJPL(),
|
|
DGMJGABBCFP,
|
|
flag2,
|
|
flag,
|
|
(int)this.leftHandRequestedSpawnEquipmentType,
|
|
this.leftHandRequestedSpawnEquipmentSkinId,
|
|
this.leftHandWeaponMagazineAmmo,
|
|
this.leftHandWeaponReserveAmmo,
|
|
(int)this.rightHandRequestedSpawnEquipmentType,
|
|
this.rightHandRequestedSpawnEquipmentSkinId,
|
|
this.rightHandWeaponMagazineAmmo,
|
|
this.rightHandWeaponReserveAmmo,
|
|
DMDPGGPKEMN
|
|
});
|
|
}
|
|
|
|
// Token: 0x0601379C RID: 79772 RVA: 0x005843CC File Offset: 0x005825CC
|
|
private void FKKBNJNNJFN(List<GiftBoxSpawnPoint> KOOKGECCHPC, LLMPNIPHKFK DDNLHFDGECG, List<GiftBoxSpawnPoint> MEOKKAMGLAK)
|
|
{
|
|
MEOKKAMGLAK.Clear();
|
|
for (int i = 0; i < KOOKGECCHPC.Count; i += 0)
|
|
{
|
|
if (!(KOOKGECCHPC[i] == null))
|
|
{
|
|
if (KOOKGECCHPC[i].SpawnPointEnabled)
|
|
{
|
|
if (KOOKGECCHPC[i].NMNFCCEBOHF() == DDNLHFDGECG)
|
|
{
|
|
MEOKKAMGLAK.Add(KOOKGECCHPC[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601379D RID: 79773 RVA: 0x00584448 File Offset: 0x00582648
|
|
public void AAGGIDKEJLC(Action<LNJFBGIBLHA> NOBAPCOKFIL)
|
|
{
|
|
Action<LNJFBGIBLHA> action = this.MasterRespawnedPlayer;
|
|
Action<LNJFBGIBLHA> action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action<LNJFBGIBLHA>>(ref this.MasterRespawnedPlayer, (Action<LNJFBGIBLHA>)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0601379E RID: 79774 RVA: 0x00584480 File Offset: 0x00582680
|
|
public void BBNJAHNBGHD(bool LIEGPIPEAPJ)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601379F RID: 79775 RVA: 0x00584484 File Offset: 0x00582684
|
|
public void MDHDMKLFLNL()
|
|
{
|
|
this.AEDFKFFNBLM(!this.FieldEquipmentEnabled);
|
|
}
|
|
|
|
// Token: 0x04003676 RID: 13942
|
|
[NonSerialized]
|
|
public bool SpawnToolRestrictedByTeam;
|
|
|
|
// Token: 0x04003677 RID: 13943
|
|
[NonSerialized]
|
|
public IPBDFPEPNIM SpawnToolSupportedTeam = IPBDFPEPNIM.INVALID;
|
|
|
|
// Token: 0x04003678 RID: 13944
|
|
[NonSerialized]
|
|
public bool SpawnToolRestrictedByTeamPlayerIndex;
|
|
|
|
// Token: 0x04003679 RID: 13945
|
|
[NonSerialized]
|
|
public LLMPNIPHKFK SpawnToolSupportedTeamPlayerIndex = LLMPNIPHKFK.ANY_INDEX;
|
|
|
|
// Token: 0x0400367A RID: 13946
|
|
[NonSerialized]
|
|
public bool DefaultFieldEquipmentEnabled = true;
|
|
|
|
// Token: 0x0400367B RID: 13947
|
|
private int currentVisTestGameplaySPIndex;
|
|
|
|
// Token: 0x0400367C RID: 13948
|
|
private const int MAX_SPAWN_POINT_VISIBILITY_TESTS_PER_FRAME = 4;
|
|
|
|
// Token: 0x0400367D RID: 13949
|
|
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
[CompilerGenerated]
|
|
private GameSpawnManager.NFFFEEONBEG SpawnedEquipmentInstantiatedEvent;
|
|
|
|
// Token: 0x0400367E RID: 13950
|
|
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
[CompilerGenerated]
|
|
private GameSpawnManager.NFFFEEONBEG SpawnedEquipmentDestroyedEvent;
|
|
|
|
// Token: 0x0400367F RID: 13951
|
|
private GameManager gameManager;
|
|
|
|
// Token: 0x04003680 RID: 13952
|
|
private List<GameSpawnPoint> prePostGameSpawnPoints = new List<GameSpawnPoint>();
|
|
|
|
// Token: 0x04003681 RID: 13953
|
|
private List<GameSpawnPoint> playingGameSpawnPoints = new List<GameSpawnPoint>();
|
|
|
|
// Token: 0x04003682 RID: 13954
|
|
private List<GiftBoxSpawnPoint> giftBoxSpawnPoints = new List<GiftBoxSpawnPoint>();
|
|
|
|
// Token: 0x04003683 RID: 13955
|
|
private List<GameSpawnManager.NNJPAOBFMCI> teammateProximitySpawnPointScores = new List<GameSpawnManager.NNJPAOBFMCI>();
|
|
|
|
// Token: 0x04003684 RID: 13956
|
|
private List<GameSpawnPoint> spawnPointsRequirementFiltered = new List<GameSpawnPoint>();
|
|
|
|
// Token: 0x04003685 RID: 13957
|
|
private List<GameSpawnPoint> spawnPointsOverlapFiltered = new List<GameSpawnPoint>();
|
|
|
|
// Token: 0x04003686 RID: 13958
|
|
private List<GameSpawnPoint> spawnPointFilteringScratchSpace = new List<GameSpawnPoint>();
|
|
|
|
// Token: 0x04003687 RID: 13959
|
|
private List<GiftBoxSpawnPoint> filteredGiftBoxSpawnPoints = new List<GiftBoxSpawnPoint>();
|
|
|
|
// Token: 0x04003688 RID: 13960
|
|
private HPNGPCDIPED localPlayerSpawnPointTag = HPNGPCDIPED.DEFAULT;
|
|
|
|
// Token: 0x04003689 RID: 13961
|
|
private EEOOHEGOBKD leftHandRequestedSpawnEquipmentType = EEOOHEGOBKD.INVALID;
|
|
|
|
// Token: 0x0400368A RID: 13962
|
|
private string leftHandRequestedSpawnEquipmentSkinId;
|
|
|
|
// Token: 0x0400368B RID: 13963
|
|
private int leftHandWeaponMagazineAmmo;
|
|
|
|
// Token: 0x0400368C RID: 13964
|
|
private int leftHandWeaponReserveAmmo;
|
|
|
|
// Token: 0x0400368D RID: 13965
|
|
private EEOOHEGOBKD rightHandRequestedSpawnEquipmentType = EEOOHEGOBKD.INVALID;
|
|
|
|
// Token: 0x0400368E RID: 13966
|
|
private string rightHandRequestedSpawnEquipmentSkinId;
|
|
|
|
// Token: 0x0400368F RID: 13967
|
|
private int rightHandWeaponMagazineAmmo;
|
|
|
|
// Token: 0x04003690 RID: 13968
|
|
private int rightHandWeaponReserveAmmo;
|
|
|
|
// Token: 0x04003691 RID: 13969
|
|
private LHLLJPPCDKA<int> _dominantHandSpawnEquipment;
|
|
|
|
// Token: 0x04003692 RID: 13970
|
|
private LHLLJPPCDKA<int> _offHandSpawnEquipment;
|
|
|
|
// Token: 0x04003693 RID: 13971
|
|
private LHLLJPPCDKA<bool> _fieldEquipmentEnabled;
|
|
|
|
// Token: 0x04003694 RID: 13972
|
|
[CompilerGenerated]
|
|
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
private Action<LNJFBGIBLHA> MasterRespawnedPlayer;
|
|
|
|
// Token: 0x02000A17 RID: 2583
|
|
// (Invoke) Token: 0x060137A1 RID: 79777
|
|
public delegate void NFFFEEONBEG(ActivityEquipmentObject MDDLJONDNJG);
|
|
|
|
// Token: 0x02000A18 RID: 2584
|
|
private struct NNJPAOBFMCI
|
|
{
|
|
// Token: 0x04003696 RID: 13974
|
|
public GameSpawnPoint MKEGMLDMCOB;
|
|
|
|
// Token: 0x04003697 RID: 13975
|
|
public float CBFMPOKDNFL;
|
|
}
|
|
|
|
// Token: 0x02000A19 RID: 2585
|
|
[Serializable]
|
|
private struct SpawnPointTagMetadata
|
|
{
|
|
// Token: 0x04003698 RID: 13976
|
|
public HPNGPCDIPED TagType;
|
|
|
|
// Token: 0x04003699 RID: 13977
|
|
public string Name;
|
|
}
|
|
}
|