1121 lines
36 KiB
C#
1121 lines
36 KiB
C#
using System;
|
|
using Photon;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.Arena
|
|
{
|
|
// Token: 0x02000007 RID: 7
|
|
[RequireComponent(typeof(Tool))]
|
|
public class ArenaEMP : global::Photon.MonoBehaviour
|
|
{
|
|
// Token: 0x06000149 RID: 329 RVA: 0x00007FA4 File Offset: 0x000061A4
|
|
private void HABGMOBCBEH(float DGEDLOOOIFF)
|
|
{
|
|
if (this.NHEPJCCAEFB.HFOKKCOENOF())
|
|
{
|
|
if (this.warningBeepAudio != null && this.warningBeepAudio.audioClip != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.warningBeepAudio, base.transform, this.warningAudioRolloff);
|
|
}
|
|
float num = this.warningFrequencyCurve.Evaluate(DGEDLOOOIFF);
|
|
float num2 = Mathf.Lerp(this.minWarningFrequency, this.maxWarningFrequency, num);
|
|
float num3 = 1037f / num2;
|
|
this.NHEPJCCAEFB.MPFFEDHBFMA(num3);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600014A RID: 330 RVA: 0x00008030 File Offset: 0x00006230
|
|
private void EAKGKEKHPOI()
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.JCMBOJLEKOD(this.tool);
|
|
this.MPBOONGEHDM.FLHFCMCNLEK(this, 1);
|
|
}
|
|
|
|
// Token: 0x0600014B RID: 331 RVA: 0x00008050 File Offset: 0x00006250
|
|
private void DBNNBONKAKN()
|
|
{
|
|
this.PHNGPNMHIHA();
|
|
this.BHEIOKECMLO = AudioManager.StartLooping3DSFX(this.buttonHoldAudio, base.transform, null);
|
|
}
|
|
|
|
// Token: 0x0600014C RID: 332 RVA: 0x00008070 File Offset: 0x00006270
|
|
private void LJKKJKOLNOL(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = true;
|
|
}
|
|
this.ILOFENDAFLM.KIIHAHDMJDH = this.disarmDuration;
|
|
this.ILOFENDAFLM.CCBINFLCILA = "DISARM";
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = true;
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
this.DBEMCGAFLLC.BJOJLPHBGMN(this.detonateDelay);
|
|
}
|
|
this.IMNGPNOLLIF();
|
|
if (ArenaEMP.ArmEvent != null)
|
|
{
|
|
ArenaEMP.ArmEvent(this, base.ECHJNDDOIBD);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600014D RID: 333 RVA: 0x00008118 File Offset: 0x00006318
|
|
protected virtual void CNMLMFAHLOP()
|
|
{
|
|
base.KHMLCKHNNNJ();
|
|
this.tool.PLPIAOHJBOB -= this.BJBALMILJHH;
|
|
this.ILOFENDAFLM.CEPHGDILNOI(new ChargePhysicalButton.AMALDKNKLCP(this.MOKBGJAOOLF));
|
|
this.FCIMJLIACOH();
|
|
this.PHNGPNMHIHA();
|
|
}
|
|
|
|
// Token: 0x0600014E RID: 334 RVA: 0x00008168 File Offset: 0x00006368
|
|
private void IJFKFKHEJJP(ushort OIMHGOONBEB, ushort LPFGCCKCIEB)
|
|
{
|
|
this.FCIMJLIACOH();
|
|
}
|
|
|
|
// Token: 0x0600014F RID: 335 RVA: 0x00008170 File Offset: 0x00006370
|
|
private bool KLJBDNHBDHI(out Vector3 CEAEFOGAPLA, out Quaternion DBPILKBKKAF)
|
|
{
|
|
CEAEFOGAPLA = base.transform.position;
|
|
DBPILKBKKAF = base.transform.rotation;
|
|
int num = Physics.OverlapBoxNonAlloc(this.attachmentSearchVolume.HHOHKINLMMH(), this.attachmentSearchVolume.IDNMFAKMNMI() / 1095f, ArenaEMP.CPIKEEAKOKM, this.attachmentSearchVolume.transform.rotation);
|
|
for (int i = 1; i < num; i++)
|
|
{
|
|
ArenaMainframe component = ArenaEMP.CPIKEEAKOKM[i].gameObject.GetComponent<ArenaMainframe>();
|
|
if (!(component == null))
|
|
{
|
|
CEAEFOGAPLA = Physics.ClosestPoint(base.transform.position, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation);
|
|
if (CEAEFOGAPLA == base.transform.position)
|
|
{
|
|
Vector3 vector;
|
|
float num2;
|
|
if (Physics.ComputePenetration(this.attachmentSnapCollider, this.attachmentSnapCollider.transform.position, this.attachmentSnapCollider.transform.rotation, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation, out vector, out num2))
|
|
{
|
|
CEAEFOGAPLA += vector * num2;
|
|
DBPILKBKKAF = Quaternion.LookRotation(vector, base.transform.up);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Vector3 normalized = (base.transform.position - CEAEFOGAPLA).normalized;
|
|
DBPILKBKKAF = Quaternion.LookRotation(normalized, base.transform.up);
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000150 RID: 336 RVA: 0x00008338 File Offset: 0x00006538
|
|
private void FFJNLMBFECI(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = true;
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "DEFUSED";
|
|
this.ILOFENDAFLM.CCBINFLCILA = "DEFUSED";
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = false;
|
|
this.HKDODGNGMKJ();
|
|
AudioManager.Play3DSFX(this.defusedAudio, base.transform, null);
|
|
if (ArenaEMP.DefuseEvent != null)
|
|
{
|
|
ArenaEMP.DefuseEvent(this, base.ECHJNDDOIBD);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000151 RID: 337 RVA: 0x000083D4 File Offset: 0x000065D4
|
|
private void JBMGGIMHMEJ(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.NMIAPBBENFC(true);
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.ILOFENDAFLM.PDCEECKLFNO("Mouse ScrollWheel");
|
|
this.ILOFENDAFLM.CKHJNIMMEGH(" (eye)");
|
|
this.ILOFENDAFLM.OCLKNFKJFJO(false);
|
|
this.HKDODGNGMKJ();
|
|
AudioManager.Play3DSFX(this.defusedAudio, base.transform, null);
|
|
if (ArenaEMP.DefuseEvent != null)
|
|
{
|
|
ArenaEMP.DefuseEvent(this, base.KNFBAEDFDAP());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000152 RID: 338 RVA: 0x00008470 File Offset: 0x00006670
|
|
private void KBAFKBPNPMI(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
bool flag = this.NPFBIGBAEBO(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
this.DAOBOGMHKFC.NMIAPBBENFC(flag);
|
|
}
|
|
this.ILOFENDAFLM.BECJFIFHJDO("_FadeCenter");
|
|
this.ILOFENDAFLM.KLDKFEKBPLI(" ms");
|
|
this.ILOFENDAFLM.OCLKNFKJFJO(false);
|
|
this.HKDODGNGMKJ();
|
|
}
|
|
|
|
// Token: 0x06000153 RID: 339 RVA: 0x000084DC File Offset: 0x000066DC
|
|
private void DPDFJOEGOEP(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.JCEKECLPBNA(false);
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.ILOFENDAFLM.KLDKFEKBPLI("HTTPConnection");
|
|
this.ILOFENDAFLM.GFBLAKIGIED(false);
|
|
this.ILOFENDAFLM.KIIHAHDMJDH = this.armDuration;
|
|
AudioManager.Play3DSFX(this.onMainframeAttachAudio, base.transform, null);
|
|
this.KJPODPBLCBD();
|
|
}
|
|
|
|
// Token: 0x06000154 RID: 340 RVA: 0x00008560 File Offset: 0x00006760
|
|
private void FCLDHLAEPND()
|
|
{
|
|
if (base.BHCCHBHNHCG && !this.ILOFENDAFLM.OKHNCNODJKG)
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(3, 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000155 RID: 341 RVA: 0x0000858C File Offset: 0x0000678C
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
this.tool.PLPIAOHJBOB -= this.BJBALMILJHH;
|
|
this.ILOFENDAFLM.PFPBAKHLIAB -= this.MOKBGJAOOLF;
|
|
this.FCIMJLIACOH();
|
|
this.DMFNBCJIICL();
|
|
}
|
|
|
|
// Token: 0x06000156 RID: 342 RVA: 0x000085DC File Offset: 0x000067DC
|
|
private void KABBHJIPAPG()
|
|
{
|
|
if (this.ILOFENDAFLM.OKHNCNODJKG && this.ILOFENDAFLM.PCAAFOILPGA.IPFPJCPGENH)
|
|
{
|
|
if (!base.BHCCHBHNHCG)
|
|
{
|
|
base.OMNGGJICBBI.TransferOwnership(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(3, 1);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000157 RID: 343 RVA: 0x00008638 File Offset: 0x00006838
|
|
private void NHOJBELBCMN()
|
|
{
|
|
if (this.detonationParticlePrefab != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.detonationParticlePrefab);
|
|
if (pooledParticle != null)
|
|
{
|
|
pooledParticle.Play(base.transform.position, Quaternion.identity, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000158 RID: 344 RVA: 0x0000868C File Offset: 0x0000688C
|
|
private void KDEKGFJLKHK(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "Rooms";
|
|
this.DBNNBONKAKN();
|
|
}
|
|
|
|
// Token: 0x06000159 RID: 345 RVA: 0x000086A4 File Offset: 0x000068A4
|
|
private void FCIMJLIACOH()
|
|
{
|
|
if (this.AGCCFPGCOPE != null)
|
|
{
|
|
AudioManager.StopLoopingSFX(this.AGCCFPGCOPE);
|
|
this.AGCCFPGCOPE = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600015A RID: 346 RVA: 0x000086CC File Offset: 0x000068CC
|
|
private bool CKMFMEBHMNF(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.CINLOIHJMOM != null && this.CINLOIHJMOM.NKCBOCMOBCA.GJKMIJMGDCC(JEFGMHBLLKI, this.CINLOIHJMOM.BMEFJCFHNFH);
|
|
}
|
|
|
|
// Token: 0x0600015B RID: 347 RVA: 0x00008704 File Offset: 0x00006904
|
|
private void BMGNEPHNIBO(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = true;
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.ILOFENDAFLM.CCBINFLCILA = "ARM";
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = true;
|
|
this.ILOFENDAFLM.KIIHAHDMJDH = this.armDuration;
|
|
AudioManager.Play3DSFX(this.onMainframeAttachAudio, base.transform, null);
|
|
this.KJPODPBLCBD();
|
|
}
|
|
|
|
// Token: 0x0600015C RID: 348 RVA: 0x00008788 File Offset: 0x00006988
|
|
private void MEBNIGHBFCO(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "DISARMING...";
|
|
this.KPIKNOJAFHI();
|
|
}
|
|
|
|
// Token: 0x0600015D RID: 349 RVA: 0x000087A0 File Offset: 0x000069A0
|
|
private bool CLEMCPOGOED(ChargePhysicalButton ILOFENDAFLM, LNJFBGIBLHA NLEHDCGGAKK, PlayerHand EBMFKPBDFON)
|
|
{
|
|
return this.CINLOIHJMOM == null || (!this.CINLOIHJMOM.NKCBOCMOBCA.IALADJLKIFN(NLEHDCGGAKK) && this.CINLOIHJMOM.DPOLNGGBMDH.AKDEIFDDDDJ(NLEHDCGGAKK));
|
|
}
|
|
|
|
// Token: 0x0600015E RID: 350 RVA: 0x000087F4 File Offset: 0x000069F4
|
|
private bool NPFBIGBAEBO(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.CINLOIHJMOM != null && this.CINLOIHJMOM.NKCBOCMOBCA.GJKMIJMGDCC(JEFGMHBLLKI, this.CINLOIHJMOM.BMEFJCFHNFH);
|
|
}
|
|
|
|
// Token: 0x06000160 RID: 352 RVA: 0x0000889C File Offset: 0x00006A9C
|
|
private void FOHLKPCJIKK()
|
|
{
|
|
if (base.DGLKKANNBPD() && !this.ILOFENDAFLM.CMDBDKOONNH())
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(5, 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000161 RID: 353 RVA: 0x000088C8 File Offset: 0x00006AC8
|
|
public bool CELHPCMIGHI()
|
|
{
|
|
return this.MPBOONGEHDM.BHMLLHLEAFF == 3;
|
|
}
|
|
|
|
// Token: 0x06000162 RID: 354 RVA: 0x000088D8 File Offset: 0x00006AD8
|
|
private void DMFNBCJIICL()
|
|
{
|
|
if (this.BHEIOKECMLO != null)
|
|
{
|
|
AudioManager.StopLoopingSFX(this.BHEIOKECMLO);
|
|
this.BHEIOKECMLO = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000163 RID: 355 RVA: 0x00008900 File Offset: 0x00006B00
|
|
public void Initialize(ArenaManager CINLOIHJMOM)
|
|
{
|
|
this.CINLOIHJMOM = CINLOIHJMOM;
|
|
}
|
|
|
|
// Token: 0x06000164 RID: 356 RVA: 0x0000890C File Offset: 0x00006B0C
|
|
private void NDLKAOGMGGI()
|
|
{
|
|
if (base.BHCCHBHNHCG && !this.ILOFENDAFLM.CMDBDKOONNH())
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(1, 1);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000165 RID: 357 RVA: 0x00008938 File Offset: 0x00006B38
|
|
private void GOPKNJIHFFB(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
this.ILOFENDAFLM.BECJFIFHJDO("session_start");
|
|
this.DBNNBONKAKN();
|
|
}
|
|
|
|
// Token: 0x06000166 RID: 358 RVA: 0x00008950 File Offset: 0x00006B50
|
|
private bool DBFAEFAAGLH(out Vector3 CEAEFOGAPLA, out Quaternion DBPILKBKKAF)
|
|
{
|
|
CEAEFOGAPLA = base.transform.position;
|
|
DBPILKBKKAF = base.transform.rotation;
|
|
int num = Physics.OverlapBoxNonAlloc(this.attachmentSearchVolume.FGNNFNNIILF(), this.attachmentSearchVolume.CEBKDFBAPBM() / 1088f, ArenaEMP.CPIKEEAKOKM, this.attachmentSearchVolume.transform.rotation);
|
|
for (int i = 0; i < num; i += 0)
|
|
{
|
|
ArenaMainframe component = ArenaEMP.CPIKEEAKOKM[i].gameObject.GetComponent<ArenaMainframe>();
|
|
if (!(component == null))
|
|
{
|
|
CEAEFOGAPLA = Physics.ClosestPoint(base.transform.position, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation);
|
|
if (CEAEFOGAPLA == base.transform.position)
|
|
{
|
|
Vector3 vector;
|
|
float num2;
|
|
if (Physics.ComputePenetration(this.attachmentSnapCollider, this.attachmentSnapCollider.transform.position, this.attachmentSnapCollider.transform.rotation, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation, out vector, out num2))
|
|
{
|
|
CEAEFOGAPLA += vector * num2;
|
|
DBPILKBKKAF = Quaternion.LookRotation(vector, base.transform.up);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Vector3 normalized = (base.transform.position - CEAEFOGAPLA).normalized;
|
|
DBPILKBKKAF = Quaternion.LookRotation(normalized, base.transform.up);
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06000167 RID: 359 RVA: 0x00008B18 File Offset: 0x00006D18
|
|
private void AINILDFIAMM()
|
|
{
|
|
if (base.BHCCHBHNHCG && !this.ILOFENDAFLM.OKHNCNODJKG)
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(2, 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000168 RID: 360 RVA: 0x00008B44 File Offset: 0x00006D44
|
|
private void MDLMOPHNPBJ(ushort OIMHGOONBEB, ushort LPFGCCKCIEB)
|
|
{
|
|
this.DMFNBCJIICL();
|
|
}
|
|
|
|
// Token: 0x17000007 RID: 7
|
|
// (get) Token: 0x06000169 RID: 361 RVA: 0x00008B4C File Offset: 0x00006D4C
|
|
public bool BLDJBGBJDLO
|
|
{
|
|
get
|
|
{
|
|
return this.MPBOONGEHDM.BHMLLHLEAFF == 3;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600016A RID: 362 RVA: 0x00008B5C File Offset: 0x00006D5C
|
|
private void KJPODPBLCBD()
|
|
{
|
|
this.PDPCLFKOPJA(this.glowColor);
|
|
}
|
|
|
|
// Token: 0x0600016B RID: 363 RVA: 0x00008B6C File Offset: 0x00006D6C
|
|
private void HPNCGKAGNDP(float DGEDLOOOIFF)
|
|
{
|
|
if (this.NHEPJCCAEFB.HFOKKCOENOF())
|
|
{
|
|
if (this.warningBeepAudio != null && this.warningBeepAudio.audioClip != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.warningBeepAudio, base.transform, this.warningAudioRolloff);
|
|
}
|
|
float num = this.warningFrequencyCurve.Evaluate(DGEDLOOOIFF);
|
|
float num2 = Mathf.Lerp(this.minWarningFrequency, this.maxWarningFrequency, num);
|
|
float num3 = 1560f / num2;
|
|
this.NHEPJCCAEFB.KLIANKEOBGC(num3);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600016C RID: 364 RVA: 0x00008BF8 File Offset: 0x00006DF8
|
|
private void DIDMHLADBJP(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = true;
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.ILOFENDAFLM.CCBINFLCILA = ", opaque=\"";
|
|
this.ILOFENDAFLM.OCLKNFKJFJO(false);
|
|
this.ILOFENDAFLM.KIIHAHDMJDH = this.armDuration;
|
|
AudioManager.Play3DSFX(this.onMainframeAttachAudio, base.transform, null);
|
|
this.KJPODPBLCBD();
|
|
}
|
|
|
|
// Token: 0x0600016D RID: 365 RVA: 0x00008C7C File Offset: 0x00006E7C
|
|
private void MFGEPCOOPNO(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "ARMED";
|
|
AudioManager.Play3DSFX(this.onArmAudio, base.transform, null);
|
|
}
|
|
|
|
// Token: 0x0600016E RID: 366 RVA: 0x00008CA4 File Offset: 0x00006EA4
|
|
private void JAKAKGLKNIL()
|
|
{
|
|
if (base.BHCCHBHNHCG && this.tool.OHGPCMJMFGC)
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(1);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600016F RID: 367 RVA: 0x00008CD0 File Offset: 0x00006ED0
|
|
private bool PCKGDIMNJLI(out Vector3 CEAEFOGAPLA, out Quaternion DBPILKBKKAF)
|
|
{
|
|
CEAEFOGAPLA = base.transform.position;
|
|
DBPILKBKKAF = base.transform.rotation;
|
|
int num = Physics.OverlapBoxNonAlloc(this.attachmentSearchVolume.MLCIBGEMPEB, this.attachmentSearchVolume.ENGNCGNOBHI / 2f, ArenaEMP.CPIKEEAKOKM, this.attachmentSearchVolume.transform.rotation);
|
|
for (int i = 0; i < num; i++)
|
|
{
|
|
ArenaMainframe component = ArenaEMP.CPIKEEAKOKM[i].gameObject.GetComponent<ArenaMainframe>();
|
|
if (!(component == null))
|
|
{
|
|
CEAEFOGAPLA = Physics.ClosestPoint(base.transform.position, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation);
|
|
if (CEAEFOGAPLA == base.transform.position)
|
|
{
|
|
Vector3 vector;
|
|
float num2;
|
|
if (Physics.ComputePenetration(this.attachmentSnapCollider, this.attachmentSnapCollider.transform.position, this.attachmentSnapCollider.transform.rotation, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation, out vector, out num2))
|
|
{
|
|
CEAEFOGAPLA += vector * num2;
|
|
DBPILKBKKAF = Quaternion.LookRotation(vector, base.transform.up);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Vector3 normalized = (base.transform.position - CEAEFOGAPLA).normalized;
|
|
DBPILKBKKAF = Quaternion.LookRotation(normalized, base.transform.up);
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000170 RID: 368 RVA: 0x00008E98 File Offset: 0x00007098
|
|
private void FOIDIOGANMK(ushort OIMHGOONBEB, ushort LPFGCCKCIEB)
|
|
{
|
|
this.DMFNBCJIICL();
|
|
}
|
|
|
|
// Token: 0x06000171 RID: 369 RVA: 0x00008EA0 File Offset: 0x000070A0
|
|
private bool NPOOMBOOOJN(out Vector3 CEAEFOGAPLA, out Quaternion DBPILKBKKAF)
|
|
{
|
|
CEAEFOGAPLA = base.transform.position;
|
|
DBPILKBKKAF = base.transform.rotation;
|
|
int num = Physics.OverlapBoxNonAlloc(this.attachmentSearchVolume.ABPEDNNKDMG(), this.attachmentSearchVolume.LPBJKBPBJPF() / 1900f, ArenaEMP.CPIKEEAKOKM, this.attachmentSearchVolume.transform.rotation);
|
|
for (int i = 1; i < num; i++)
|
|
{
|
|
ArenaMainframe component = ArenaEMP.CPIKEEAKOKM[i].gameObject.GetComponent<ArenaMainframe>();
|
|
if (!(component == null))
|
|
{
|
|
CEAEFOGAPLA = Physics.ClosestPoint(base.transform.position, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation);
|
|
if (CEAEFOGAPLA == base.transform.position)
|
|
{
|
|
Vector3 vector;
|
|
float num2;
|
|
if (Physics.ComputePenetration(this.attachmentSnapCollider, this.attachmentSnapCollider.transform.position, this.attachmentSnapCollider.transform.rotation, ArenaEMP.CPIKEEAKOKM[i], ArenaEMP.CPIKEEAKOKM[i].transform.position, ArenaEMP.CPIKEEAKOKM[i].transform.rotation, out vector, out num2))
|
|
{
|
|
CEAEFOGAPLA += vector * num2;
|
|
DBPILKBKKAF = Quaternion.LookRotation(vector, base.transform.up);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Vector3 normalized = (base.transform.position - CEAEFOGAPLA).normalized;
|
|
DBPILKBKKAF = Quaternion.LookRotation(normalized, base.transform.up);
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x06000172 RID: 370 RVA: 0x00009068 File Offset: 0x00007268
|
|
private void JDEOCDGPDIM(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.PHEGNPDFEFK(true);
|
|
}
|
|
this.ILOFENDAFLM.KIIHAHDMJDH = this.disarmDuration;
|
|
this.ILOFENDAFLM.BCADOJKBMFF("/");
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = true;
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
if (base.IGIPCHFCFNN())
|
|
{
|
|
this.DBEMCGAFLLC.OOEPCEFMAKA(this.detonateDelay);
|
|
}
|
|
this.IMNGPNOLLIF();
|
|
if (ArenaEMP.ArmEvent != null)
|
|
{
|
|
ArenaEMP.ArmEvent(this, base.PCJHKOOLCKM());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000173 RID: 371 RVA: 0x00009110 File Offset: 0x00007310
|
|
private void GIGLOLPFOFE(ushort OIMHGOONBEB, ushort LPFGCCKCIEB)
|
|
{
|
|
this.DMFNBCJIICL();
|
|
}
|
|
|
|
// Token: 0x06000174 RID: 372 RVA: 0x00009118 File Offset: 0x00007318
|
|
private void JBBIJJFAFMF(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
bool flag = this.NPFBIGBAEBO(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = !flag;
|
|
}
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "STICK TO MAINFRAME";
|
|
this.ILOFENDAFLM.CCBINFLCILA = "ARM";
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = false;
|
|
this.KJPODPBLCBD();
|
|
if (this.tool.OHGPCMJMFGC && this.tool.CAAOEAAJAIL != null && this.tool.CAAOEAAJAIL.NHDDPGADJPJ)
|
|
{
|
|
this.tool.EHFOKGIGIMF.Vibrate(500, 1000);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000175 RID: 373 RVA: 0x000091D8 File Offset: 0x000073D8
|
|
public bool LEJLMKGIOJL()
|
|
{
|
|
return this.MPBOONGEHDM.BHMLLHLEAFF == 5;
|
|
}
|
|
|
|
// Token: 0x06000176 RID: 374 RVA: 0x000091E8 File Offset: 0x000073E8
|
|
private void BJBALMILJHH(Tool ENBMEDIFBLM)
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
if (base.BHCCHBHNHCG && this.MPBOONGEHDM.BHMLLHLEAFF == 1 && this.PCKGDIMNJLI(out vector, out quaternion))
|
|
{
|
|
base.transform.position = vector;
|
|
base.transform.rotation = quaternion;
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(2, 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000177 RID: 375 RVA: 0x00009248 File Offset: 0x00007448
|
|
private void BLOKAGHAPEI()
|
|
{
|
|
if (this.detonationParticlePrefab != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.detonationParticlePrefab);
|
|
if (pooledParticle != null)
|
|
{
|
|
pooledParticle.Play(base.transform.position, Quaternion.identity, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000178 RID: 376 RVA: 0x0000929C File Offset: 0x0000749C
|
|
private void FHKKKNBFLIB(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
bool flag = this.NPFBIGBAEBO(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = !flag;
|
|
}
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "TAKE TO MAINFRAME";
|
|
this.ILOFENDAFLM.CCBINFLCILA = "ARM";
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = false;
|
|
this.HKDODGNGMKJ();
|
|
}
|
|
|
|
// Token: 0x06000179 RID: 377 RVA: 0x00009308 File Offset: 0x00007508
|
|
private bool HOEBCJFGANH(ChargePhysicalButton ILOFENDAFLM, LNJFBGIBLHA NLEHDCGGAKK, PlayerHand EBMFKPBDFON)
|
|
{
|
|
return !(this.CINLOIHJMOM == null) && (this.CINLOIHJMOM.NKCBOCMOBCA.IALADJLKIFN(NLEHDCGGAKK) || !this.CINLOIHJMOM.DPOLNGGBMDH.AKDEIFDDDDJ(NLEHDCGGAKK));
|
|
}
|
|
|
|
// Token: 0x0600017A RID: 378 RVA: 0x0000935C File Offset: 0x0000755C
|
|
private bool DDOGAEHOBFK(Tool COMHEONOMBA, Player OAKJPHFELHD, bool AABHBODJBNP)
|
|
{
|
|
if (!(OAKJPHFELHD != null) || !this.NPFBIGBAEBO(OAKJPHFELHD.LNJFBGIBLHA))
|
|
{
|
|
return false;
|
|
}
|
|
ArenaEMP.FBBMOMHACLA fbbmomhacla = (ArenaEMP.FBBMOMHACLA)this.MPBOONGEHDM.BHMLLHLEAFF;
|
|
return fbbmomhacla == ArenaEMP.FBBMOMHACLA.NOT_IN_EMP_SITE || fbbmomhacla == ArenaEMP.FBBMOMHACLA.IN_EMP_SITE || (fbbmomhacla == ArenaEMP.FBBMOMHACLA.ATTACHED_TO_MAINFRAME && this.MPBOONGEHDM.OPEKLGMGMBE == 0);
|
|
}
|
|
|
|
// Token: 0x0600017B RID: 379 RVA: 0x000093C4 File Offset: 0x000075C4
|
|
private void NNGPBGKLBOA(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.HFICMLDMAKE = true;
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "BOOM!";
|
|
this.ILOFENDAFLM.CCBINFLCILA = "BOOM";
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = false;
|
|
this.HKDODGNGMKJ();
|
|
AudioManager.Play2DSFX(this.detonationAudio);
|
|
this.NHEPJCCAEFB.PILGANMENPF();
|
|
this.NHEPJCCAEFB.FOOCJOGHIJF(this.detonationParticlesDelay, new KPFHBPCEMMD.NMMLKLGJHFG(this.BLOKAGHAPEI));
|
|
}
|
|
|
|
// Token: 0x0600017C RID: 380 RVA: 0x00009468 File Offset: 0x00007668
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.tool.AddCustomPickupCondition(new Tool.CFIAHKNGIKI(this.DDOGAEHOBFK));
|
|
this.tool.PLPIAOHJBOB += this.BJBALMILJHH;
|
|
this.DAOBOGMHKFC = base.GetComponent<ToolPlayerAttractor>();
|
|
this.ILOFENDAFLM = base.GetComponentInChildren<ChargePhysicalButton>();
|
|
this.ILOFENDAFLM.PFPBAKHLIAB += this.MOKBGJAOOLF;
|
|
this.ILOFENDAFLM.JEDEPNJOOMF = this.buttonDischargeDuration;
|
|
this.ILOFENDAFLM.AddCustomChargeCondition(new ChargePhysicalButton.OJHOCJBGCJD(this.CLEMCPOGOED));
|
|
this.NHEPJCCAEFB = new KPFHBPCEMMD();
|
|
this.DBEMCGAFLLC = new AONMNAEOJAL(this, "TIMER", IKCAJLLAFML.AUTHORITY);
|
|
this.MPBOONGEHDM = new PNONBEAIBHA("SSM", IKCAJLLAFML.AUTHORITY);
|
|
this.MPBOONGEHDM.AGLMMKOFICI(0, new ANMJLCILKDJ.NCMAEMHOHDG(this.FHKKKNBFLIB), null, new ANMJLCILKDJ.PLBLFEEANOO(this.BAICDOKIOOO));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(1, new ANMJLCILKDJ.NCMAEMHOHDG(this.JBBIJJFAFMF), null, new ANMJLCILKDJ.PLBLFEEANOO(this.OJPEPBMDINF));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(2, new ANMJLCILKDJ.NCMAEMHOHDG(this.BMGNEPHNIBO), null, new ANMJLCILKDJ.PLBLFEEANOO(this.JAKAKGLKNIL));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(2, 0, new ANMJLCILKDJ.NCMAEMHOHDG(this.IKACDAGOHIF), null, new ANMJLCILKDJ.PLBLFEEANOO(this.CFHBADDNLKG));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(2, 1, new ANMJLCILKDJ.NCMAEMHOHDG(this.DEBGMLFIHNP), new ANMJLCILKDJ.NCMAEMHOHDG(this.GIGLOLPFOFE), new ANMJLCILKDJ.PLBLFEEANOO(this.AINILDFIAMM));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(3, new ANMJLCILKDJ.NCMAEMHOHDG(this.LJKKJKOLNOL), new ANMJLCILKDJ.NCMAEMHOHDG(this.IJFKFKHEJJP), new ANMJLCILKDJ.PLBLFEEANOO(this.ONBDGKNGEHF));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(3, 0, new ANMJLCILKDJ.NCMAEMHOHDG(this.MFGEPCOOPNO), null, new ANMJLCILKDJ.PLBLFEEANOO(this.KABBHJIPAPG));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(3, 1, new ANMJLCILKDJ.NCMAEMHOHDG(this.MEBNIGHBFCO), new ANMJLCILKDJ.NCMAEMHOHDG(this.FOIDIOGANMK), new ANMJLCILKDJ.PLBLFEEANOO(this.FCLDHLAEPND));
|
|
this.MPBOONGEHDM.AGLMMKOFICI(4, new ANMJLCILKDJ.NCMAEMHOHDG(this.NNGPBGKLBOA), null, null);
|
|
this.MPBOONGEHDM.AGLMMKOFICI(5, new ANMJLCILKDJ.NCMAEMHOHDG(this.FFJNLMBFECI), null, null);
|
|
}
|
|
|
|
// Token: 0x0600017D RID: 381 RVA: 0x000096B0 File Offset: 0x000078B0
|
|
private void DEBGMLFIHNP(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "ARMING...";
|
|
this.KPIKNOJAFHI();
|
|
}
|
|
|
|
// Token: 0x0600017E RID: 382 RVA: 0x000096C8 File Offset: 0x000078C8
|
|
private void JPLLGJNOJCE(Tool ENBMEDIFBLM)
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
if (base.DFJFKOLLEMK() && this.MPBOONGEHDM.BHMLLHLEAFF == 1 && this.NPOOMBOOOJN(out vector, out quaternion))
|
|
{
|
|
base.transform.position = vector;
|
|
base.transform.rotation = quaternion;
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(8, 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600017F RID: 383 RVA: 0x00009728 File Offset: 0x00007928
|
|
private void IMNGPNOLLIF()
|
|
{
|
|
this.DMFNBCJIICL();
|
|
this.AGCCFPGCOPE = AudioManager.StartLooping3DSFX(this.loopingArmedAudio, base.transform, null);
|
|
}
|
|
|
|
// Token: 0x06000180 RID: 384 RVA: 0x00009748 File Offset: 0x00007948
|
|
private void Start()
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(this.tool);
|
|
this.MPBOONGEHDM.FLHFCMCNLEK(this, 0);
|
|
}
|
|
|
|
// Token: 0x06000181 RID: 385 RVA: 0x00009768 File Offset: 0x00007968
|
|
private void KHIBGDCOFJI(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
this.DAOBOGMHKFC.EKMENLJBHMN(false);
|
|
}
|
|
this.tool.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "ON";
|
|
this.ILOFENDAFLM.AAMJMFHFEDM("No secret in authentication response.");
|
|
this.ILOFENDAFLM.GJGLHLCKDBO = false;
|
|
this.HKDODGNGMKJ();
|
|
AudioManager.ANNMKBOAOJJ(this.detonationAudio);
|
|
this.NHEPJCCAEFB.LPLPLFCNAOI();
|
|
this.NHEPJCCAEFB.IDLJOJFLGIH(this.detonationParticlesDelay, new KPFHBPCEMMD.NMMLKLGJHFG(this.NHOJBELBCMN));
|
|
}
|
|
|
|
// Token: 0x06000182 RID: 386 RVA: 0x0000980C File Offset: 0x00007A0C
|
|
private void Update()
|
|
{
|
|
this.MPBOONGEHDM.DLBPEOILIFL();
|
|
this.DBEMCGAFLLC.KHJKJGDBPMF();
|
|
this.NHEPJCCAEFB.KHJKJGDBPMF();
|
|
}
|
|
|
|
// Token: 0x06000183 RID: 387 RVA: 0x00009830 File Offset: 0x00007A30
|
|
private void JIBJEDFBBLD()
|
|
{
|
|
float num = Time.time % 1f;
|
|
float num2 = Mathf.Lerp(0f, 6.2831855f, num);
|
|
float num3 = Mathf.Sin(num2);
|
|
this.PDPCLFKOPJA(Color.Lerp(this.dimColor, this.glowColor, num3));
|
|
}
|
|
|
|
// Token: 0x06000184 RID: 388 RVA: 0x0000987C File Offset: 0x00007A7C
|
|
private void OJPEPBMDINF()
|
|
{
|
|
if (base.BHCCHBHNHCG && !ArenaEMPSite.IsInEMPSite(this))
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(0);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000185 RID: 389 RVA: 0x000098A4 File Offset: 0x00007AA4
|
|
private bool DFJNPMLMDEA(ChargePhysicalButton ILOFENDAFLM, LNJFBGIBLHA NLEHDCGGAKK, PlayerHand EBMFKPBDFON)
|
|
{
|
|
return this.CINLOIHJMOM == null || this.CINLOIHJMOM.NKCBOCMOBCA.IALADJLKIFN(NLEHDCGGAKK) || this.CINLOIHJMOM.DPOLNGGBMDH.AGGHJBNIMKN(NLEHDCGGAKK) || true;
|
|
}
|
|
|
|
// Token: 0x06000186 RID: 390 RVA: 0x000098F8 File Offset: 0x00007AF8
|
|
private void HKDODGNGMKJ()
|
|
{
|
|
this.PDPCLFKOPJA(this.dimColor);
|
|
}
|
|
|
|
// Token: 0x06000187 RID: 391 RVA: 0x00009908 File Offset: 0x00007B08
|
|
private void EOIDGLNLMOJ()
|
|
{
|
|
if (this.AGCCFPGCOPE != null)
|
|
{
|
|
AudioManager.StopLoopingSFX(this.AGCCFPGCOPE);
|
|
this.AGCCFPGCOPE = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000188 RID: 392 RVA: 0x00009930 File Offset: 0x00007B30
|
|
private void IKACDAGOHIF(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
this.ILOFENDAFLM.GIMBBAACKCP = "READY TO ARM";
|
|
}
|
|
|
|
// Token: 0x17000008 RID: 8
|
|
// (get) Token: 0x06000189 RID: 393 RVA: 0x00009944 File Offset: 0x00007B44
|
|
public bool GFPENHIECBH
|
|
{
|
|
get
|
|
{
|
|
return this.MPBOONGEHDM.BHMLLHLEAFF == 4;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600018A RID: 394 RVA: 0x00009954 File Offset: 0x00007B54
|
|
private bool CHIBADBLECK(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.CINLOIHJMOM != null && this.CINLOIHJMOM.NKCBOCMOBCA.GJKMIJMGDCC(JEFGMHBLLKI, this.CINLOIHJMOM.BMEFJCFHNFH);
|
|
}
|
|
|
|
// Token: 0x17000009 RID: 9
|
|
// (get) Token: 0x0600018B RID: 395 RVA: 0x0000998C File Offset: 0x00007B8C
|
|
public bool NKPHFPHBLLI
|
|
{
|
|
get
|
|
{
|
|
return this.MPBOONGEHDM.BHMLLHLEAFF == 5;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600018C RID: 396 RVA: 0x0000999C File Offset: 0x00007B9C
|
|
private void PHNGPNMHIHA()
|
|
{
|
|
if (this.BHEIOKECMLO != null)
|
|
{
|
|
AudioManager.StopLoopingSFX(this.BHEIOKECMLO);
|
|
this.BHEIOKECMLO = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600018D RID: 397 RVA: 0x000099C4 File Offset: 0x00007BC4
|
|
private void PDPCLFKOPJA(Color HNOPCLEFEIG)
|
|
{
|
|
this.glowRenderer.Material.SetColor(this.FFIAONBLKMM, HNOPCLEFEIG);
|
|
}
|
|
|
|
// Token: 0x0600018E RID: 398 RVA: 0x000099E0 File Offset: 0x00007BE0
|
|
private void KPIKNOJAFHI()
|
|
{
|
|
this.DMFNBCJIICL();
|
|
this.BHEIOKECMLO = AudioManager.StartLooping3DSFX(this.buttonHoldAudio, base.transform, null);
|
|
}
|
|
|
|
// Token: 0x0600018F RID: 399 RVA: 0x00009A00 File Offset: 0x00007C00
|
|
private void KAJOILDOCBI(float DGEDLOOOIFF)
|
|
{
|
|
if (this.NHEPJCCAEFB.CGELFKLLMBA)
|
|
{
|
|
if (this.warningBeepAudio != null && this.warningBeepAudio.audioClip != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.warningBeepAudio, base.transform, this.warningAudioRolloff);
|
|
}
|
|
float num = this.warningFrequencyCurve.Evaluate(DGEDLOOOIFF);
|
|
float num2 = Mathf.Lerp(this.minWarningFrequency, this.maxWarningFrequency, num);
|
|
float num3 = 1f / num2;
|
|
this.NHEPJCCAEFB.BJOJLPHBGMN(num3);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000190 RID: 400 RVA: 0x00009A8C File Offset: 0x00007C8C
|
|
private void MOKBGJAOOLF(ChargePhysicalButton ILOFENDAFLM)
|
|
{
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
ArenaEMP.FBBMOMHACLA fbbmomhacla = (ArenaEMP.FBBMOMHACLA)this.MPBOONGEHDM.BHMLLHLEAFF;
|
|
if (fbbmomhacla == ArenaEMP.FBBMOMHACLA.ATTACHED_TO_MAINFRAME)
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(3, 0);
|
|
return;
|
|
}
|
|
if (fbbmomhacla == ArenaEMP.FBBMOMHACLA.ARMED)
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(5);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000191 RID: 401 RVA: 0x00009AE4 File Offset: 0x00007CE4
|
|
private bool PMIHNGOABMK(LNJFBGIBLHA JEFGMHBLLKI)
|
|
{
|
|
return JEFGMHBLLKI != null && this.CINLOIHJMOM != null && this.CINLOIHJMOM.NKCBOCMOBCA.GJKMIJMGDCC(JEFGMHBLLKI, this.CINLOIHJMOM.BMEFJCFHNFH);
|
|
}
|
|
|
|
// Token: 0x06000192 RID: 402 RVA: 0x00009B1C File Offset: 0x00007D1C
|
|
private void ANCMOICJJEA(float DGEDLOOOIFF)
|
|
{
|
|
if (this.NHEPJCCAEFB.OAJDHNPMNCN())
|
|
{
|
|
if (this.warningBeepAudio != null && this.warningBeepAudio.audioClip != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.warningBeepAudio, base.transform, this.warningAudioRolloff);
|
|
}
|
|
float num = this.warningFrequencyCurve.Evaluate(DGEDLOOOIFF);
|
|
float num2 = Mathf.Lerp(this.minWarningFrequency, this.maxWarningFrequency, num);
|
|
float num3 = 1186f / num2;
|
|
this.NHEPJCCAEFB.PBDGDJIFMOK(num3);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000193 RID: 403 RVA: 0x00009BA8 File Offset: 0x00007DA8
|
|
public void PKFIPPDFCIO(ArenaManager CINLOIHJMOM)
|
|
{
|
|
this.CINLOIHJMOM = CINLOIHJMOM;
|
|
}
|
|
|
|
// Token: 0x06000194 RID: 404 RVA: 0x00009BB4 File Offset: 0x00007DB4
|
|
private void CFHBADDNLKG()
|
|
{
|
|
if (this.ILOFENDAFLM.OKHNCNODJKG && this.ILOFENDAFLM.PCAAFOILPGA.IPFPJCPGENH)
|
|
{
|
|
if (!base.BHCCHBHNHCG)
|
|
{
|
|
base.OMNGGJICBBI.TransferOwnership(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
}
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(2, 1);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000195 RID: 405 RVA: 0x00009C10 File Offset: 0x00007E10
|
|
private void BAICDOKIOOO()
|
|
{
|
|
if (base.BHCCHBHNHCG && ArenaEMPSite.IsInEMPSite(this))
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(1);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000196 RID: 406 RVA: 0x00009C38 File Offset: 0x00007E38
|
|
private void OnDisable()
|
|
{
|
|
this.FCIMJLIACOH();
|
|
this.DMFNBCJIICL();
|
|
}
|
|
|
|
// Token: 0x06000198 RID: 408 RVA: 0x00009C64 File Offset: 0x00007E64
|
|
private void HAGEFGHDFHF(ushort CHJBIHILBFO, ushort BNCBHHCPCLE)
|
|
{
|
|
if (this.DAOBOGMHKFC != null)
|
|
{
|
|
bool flag = this.CKMFMEBHMNF(IHFKMIAHBFP.JEFGMHBLLKI);
|
|
this.DAOBOGMHKFC.MALHCFLBAJA(!flag);
|
|
}
|
|
this.ILOFENDAFLM.BBGJFKAIPAE("CrcCheckEnabled");
|
|
this.ILOFENDAFLM.BCADOJKBMFF("room_created");
|
|
this.ILOFENDAFLM.OCLKNFKJFJO(true);
|
|
this.KJPODPBLCBD();
|
|
if (this.tool.OHGPCMJMFGC && this.tool.CAAOEAAJAIL != null && this.tool.CAAOEAAJAIL.PCGELLFCMPB())
|
|
{
|
|
this.tool.EHFOKGIGIMF.Vibrate(-126, 134);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000199 RID: 409 RVA: 0x00009D24 File Offset: 0x00007F24
|
|
private void ONBDGKNGEHF()
|
|
{
|
|
float num = Mathf.InverseLerp(this.detonateDelay, 0f, this.DBEMCGAFLLC.GDGNJGAADLK);
|
|
this.KAJOILDOCBI(num);
|
|
this.JIBJEDFBBLD();
|
|
if (base.BHCCHBHNHCG && this.DBEMCGAFLLC.CGELFKLLMBA)
|
|
{
|
|
this.MPBOONGEHDM.BKBFIGCPIMI(4);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000038 RID: 56
|
|
[Header("Arming")]
|
|
[SerializeField]
|
|
private float armDuration = 10f;
|
|
|
|
// Token: 0x04000039 RID: 57
|
|
[Header("Mainframe Attaching")]
|
|
[SerializeField]
|
|
private SimpleVolume attachmentSearchVolume;
|
|
|
|
// Token: 0x0400003A RID: 58
|
|
[SerializeField]
|
|
private BoxCollider attachmentSnapCollider;
|
|
|
|
// Token: 0x0400003B RID: 59
|
|
[Header("Detonate")]
|
|
[SerializeField]
|
|
private float detonateDelay = 40f;
|
|
|
|
// Token: 0x0400003C RID: 60
|
|
[SerializeField]
|
|
[Header("Disarm")]
|
|
private float disarmDuration = 10f;
|
|
|
|
// Token: 0x0400003D RID: 61
|
|
[SerializeField]
|
|
[Header("Misc Button")]
|
|
private float buttonDischargeDuration = 4f;
|
|
|
|
// Token: 0x0400003E RID: 62
|
|
[SerializeField]
|
|
[Header("EMP Site Feedback")]
|
|
private RendererMaterialPair glowRenderer;
|
|
|
|
// Token: 0x0400003F RID: 63
|
|
[SerializeField]
|
|
private Color dimColor;
|
|
|
|
// Token: 0x04000040 RID: 64
|
|
[SerializeField]
|
|
private Color glowColor;
|
|
|
|
// Token: 0x04000041 RID: 65
|
|
[SerializeField]
|
|
[Header("Mainframe Attach Feedback")]
|
|
private RecRoomAudioClip onMainframeAttachAudio;
|
|
|
|
// Token: 0x04000042 RID: 66
|
|
[SerializeField]
|
|
[Header("Button Feedback")]
|
|
private RecRoomAudioClip buttonHoldAudio;
|
|
|
|
// Token: 0x04000043 RID: 67
|
|
[SerializeField]
|
|
[Header("Warning Feedback")]
|
|
private float minWarningFrequency = 2f;
|
|
|
|
// Token: 0x04000044 RID: 68
|
|
[SerializeField]
|
|
private float maxWarningFrequency = 6f;
|
|
|
|
// Token: 0x04000045 RID: 69
|
|
[SerializeField]
|
|
private AnimationCurve warningFrequencyCurve;
|
|
|
|
// Token: 0x04000046 RID: 70
|
|
[SerializeField]
|
|
private RecRoomAudioClip warningBeepAudio;
|
|
|
|
// Token: 0x04000047 RID: 71
|
|
[SerializeField]
|
|
private AudioRolloff warningAudioRolloff;
|
|
|
|
// Token: 0x04000048 RID: 72
|
|
[SerializeField]
|
|
[Header("Armed Feedback")]
|
|
private RecRoomAudioClip onArmAudio;
|
|
|
|
// Token: 0x04000049 RID: 73
|
|
[SerializeField]
|
|
private RecRoomAudioClip loopingArmedAudio;
|
|
|
|
// Token: 0x0400004A RID: 74
|
|
[SerializeField]
|
|
[Header("Detonation Feedback")]
|
|
private RecRoomAudioClip detonationAudio;
|
|
|
|
// Token: 0x0400004B RID: 75
|
|
[SerializeField]
|
|
private float detonationParticlesDelay = 0.77f;
|
|
|
|
// Token: 0x0400004C RID: 76
|
|
[SerializeField]
|
|
private PooledParticle detonationParticlePrefab;
|
|
|
|
// Token: 0x0400004D RID: 77
|
|
[Header("Defused Feedback")]
|
|
[SerializeField]
|
|
private RecRoomAudioClip defusedAudio;
|
|
|
|
// Token: 0x0400004E RID: 78
|
|
[SerializeField]
|
|
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
|
private Tool tool;
|
|
|
|
// Token: 0x0400004F RID: 79
|
|
private KPFHBPCEMMD NHEPJCCAEFB;
|
|
|
|
// Token: 0x04000050 RID: 80
|
|
private AONMNAEOJAL DBEMCGAFLLC;
|
|
|
|
// Token: 0x04000051 RID: 81
|
|
private PNONBEAIBHA MPBOONGEHDM;
|
|
|
|
// Token: 0x04000052 RID: 82
|
|
private ToolPlayerAttractor DAOBOGMHKFC;
|
|
|
|
// Token: 0x04000053 RID: 83
|
|
private ChargePhysicalButton ILOFENDAFLM;
|
|
|
|
// Token: 0x04000054 RID: 84
|
|
private SFXAudioSource BHEIOKECMLO;
|
|
|
|
// Token: 0x04000055 RID: 85
|
|
private SFXAudioSource AGCCFPGCOPE;
|
|
|
|
// Token: 0x04000056 RID: 86
|
|
private ArenaManager CINLOIHJMOM;
|
|
|
|
// Token: 0x04000057 RID: 87
|
|
private int FFIAONBLKMM = Shader.PropertyToID("_EmissionColor");
|
|
|
|
// Token: 0x04000058 RID: 88
|
|
private static Collider[] CPIKEEAKOKM = new Collider[16];
|
|
|
|
// Token: 0x04000059 RID: 89
|
|
public static ArenaEMP.KICDCLBKGEG ArmEvent = null;
|
|
|
|
// Token: 0x0400005A RID: 90
|
|
public static ArenaEMP.KICDCLBKGEG DefuseEvent = null;
|
|
|
|
// Token: 0x02000008 RID: 8
|
|
// (Invoke) Token: 0x0600019B RID: 411
|
|
public delegate void KICDCLBKGEG(ArenaEMP JOIBNEHPIPM, LNJFBGIBLHA JEFGMHBLLKI);
|
|
|
|
// Token: 0x02000009 RID: 9
|
|
private enum FBBMOMHACLA
|
|
{
|
|
// Token: 0x0400005C RID: 92
|
|
NOT_IN_EMP_SITE,
|
|
// Token: 0x0400005D RID: 93
|
|
IN_EMP_SITE,
|
|
// Token: 0x0400005E RID: 94
|
|
ATTACHED_TO_MAINFRAME,
|
|
// Token: 0x0400005F RID: 95
|
|
ARMED,
|
|
// Token: 0x04000060 RID: 96
|
|
DETONATED,
|
|
// Token: 0x04000061 RID: 97
|
|
DEFUSED
|
|
}
|
|
|
|
// Token: 0x0200000A RID: 10
|
|
private enum IIDGOCOHJEE
|
|
{
|
|
// Token: 0x04000063 RID: 99
|
|
READY_TO_ARM,
|
|
// Token: 0x04000064 RID: 100
|
|
ARMING
|
|
}
|
|
|
|
// Token: 0x0200000B RID: 11
|
|
private enum IMHEBOKOEGN
|
|
{
|
|
// Token: 0x04000066 RID: 102
|
|
ARMED,
|
|
// Token: 0x04000067 RID: 103
|
|
DISARMING
|
|
}
|
|
}
|
|
}
|