Files
2026-06-04 11:42:34 +02:00

1051 lines
36 KiB
C#

using System;
using Photon;
using UnityEngine;
// Token: 0x02000CEE RID: 3310
public class VoiceLinesController2D : global::Photon.MonoBehaviour
{
// Token: 0x0601ACE8 RID: 109800 RVA: 0x00782674 File Offset: 0x00780874
public Transform EFAMBAOMMOC()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601ACE9 RID: 109801 RVA: 0x0078267C File Offset: 0x0078087C
private void ODEGJOENAGN()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.BGOGBEPJGPJ.transform;
float num = Vector3.Distance(this.thisPlayer.HFDJIFFPEFM().transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.MMDCMPCJAHN().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.MMDCMPCJAHN().VoiceDetectionThreshold, 765f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(false);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.FLNDNHJMBAB(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 1; i >= 1; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.NILJMFEENPG(632f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.NILJMFEENPG(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1170f, 1237f, 1654f);
float num4 = Mathf.Abs(num3 - 821f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 1576f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(772f, num5, 867f);
this.voiceLinesAnchor.localPosition = new Vector3(1053f, 249f, 370f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601ACEA RID: 109802 RVA: 0x00782954 File Offset: 0x00780B54
protected override void Awake()
{
base.Awake();
foreach (VoiceLinesController2D.VoiceLineConfig voiceLineConfig in this.voiceLines)
{
voiceLineConfig.lineControl.gameObject.SetActive(false);
}
}
// Token: 0x0601ACEB RID: 109803 RVA: 0x007829A4 File Offset: 0x00780BA4
protected void OOMEMKFJBOM()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.AJHHFNCFKNF().transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACEC RID: 109804 RVA: 0x007829F8 File Offset: 0x00780BF8
protected virtual void DHAEEPCMCMI()
{
base.FNNCEMJECLP();
VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines;
for (int i = 1; i < array.Length; i++)
{
VoiceLinesController2D.VoiceLineConfig voiceLineConfig = array[i];
voiceLineConfig.lineControl.gameObject.SetActive(false);
}
}
// Token: 0x0601ACED RID: 109805 RVA: 0x00782A48 File Offset: 0x00780C48
private void JJHGPNEHNOM()
{
if (this.thisPlayer == null || this.thisPlayer.FMIODHIDJJP() || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.HFDJIFFPEFM().transform;
float num = Vector3.Distance(this.thisPlayer.HFDJIFFPEFM().transform.position, Player.LocalPlayer.HFDJIFFPEFM().transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.FECIGHPNAIJ().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.PJFEMFOJHHG().VoiceDetectionThreshold, 1972f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 >= this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.KOHNMNCKFBN(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 0; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.FFBAGLILOHP(1396f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.NLHLMMPBJLD(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.HFDJIFFPEFM().transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1373f, 1874f, 1740f);
float num4 = Mathf.Abs(num3 - 1962f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 184f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1525f, num5, 145f);
this.voiceLinesAnchor.localPosition = new Vector3(734f, 1941f, 590f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601ACEE RID: 109806 RVA: 0x00782D20 File Offset: 0x00780F20
protected void KDAPFAFLHAF()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.HFDJIFFPEFM().transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACEF RID: 109807 RVA: 0x00782D74 File Offset: 0x00780F74
protected void BNPJKCPCHOA()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.AJHHFNCFKNF().transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACF0 RID: 109808 RVA: 0x00782DC8 File Offset: 0x00780FC8
protected void JHFFEOLLJIL()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACF1 RID: 109809 RVA: 0x00782E1C File Offset: 0x0078101C
private void IGDMCDLELON()
{
if (this.thisPlayer == null || this.thisPlayer.FMIODHIDJJP() || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.HFDJIFFPEFM().transform;
float num = Vector3.Distance(this.thisPlayer.BGOGBEPJGPJ.transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.AJHHFNCFKNF().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.FECIGHPNAIJ().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold, 100f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 >= this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.OFNOFMPMHHC(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 0; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.EPJNLBEDGFM(1622f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.MJIJIMOLIMD(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(91f, 524f, 1409f);
float num4 = Mathf.Abs(num3 - 1453f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 369f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1537f, num5, 125f);
this.voiceLinesAnchor.localPosition = new Vector3(65f, 1796f, 1389f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601ACF2 RID: 109810 RVA: 0x007830F4 File Offset: 0x007812F4
public Transform KNDHGGFALBL()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601ACF3 RID: 109811 RVA: 0x007830FC File Offset: 0x007812FC
protected virtual void JLOMELEDCLK()
{
base.MPIHCILBGLM();
foreach (VoiceLinesController2D.VoiceLineConfig voiceLineConfig in this.voiceLines)
{
voiceLineConfig.lineControl.gameObject.SetActive(true);
}
}
// Token: 0x0601ACF4 RID: 109812 RVA: 0x0078314C File Offset: 0x0078134C
protected virtual void ABBDFEGOFPH()
{
base.NGOPCBJCNJM();
VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines;
for (int i = 1; i < array.Length; i += 0)
{
VoiceLinesController2D.VoiceLineConfig voiceLineConfig = array[i];
voiceLineConfig.lineControl.gameObject.SetActive(false);
}
}
// Token: 0x0601ACF5 RID: 109813 RVA: 0x0078319C File Offset: 0x0078139C
private void AHHEENEFAPI()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.AJHHFNCFKNF().transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.HFDJIFFPEFM().transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.AJHHFNCFKNF().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.LEILGOOHEOI().VoiceDetectionThreshold, 736f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 >= this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.AFNGGOHCLBN(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 0; i--)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.BCICEMNBOAI(1169f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.FLNDNHJMBAB(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1638f, 1237f, 1765f);
float num4 = Mathf.Abs(num3 - 457f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 1551f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1562f, num5, 1165f);
this.voiceLinesAnchor.localPosition = new Vector3(1644f, 1933f, 1898f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601ACF6 RID: 109814 RVA: 0x00783474 File Offset: 0x00781674
protected void DOMCEELGNEG()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.HFDJIFFPEFM().transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x17000C4B RID: 3147
// (get) Token: 0x0601ACF8 RID: 109816 RVA: 0x007834F4 File Offset: 0x007816F4
public Transform CBLMKMAPMHH
{
get
{
return this.voiceLinesAnchor;
}
}
// Token: 0x0601ACF9 RID: 109817 RVA: 0x007834FC File Offset: 0x007816FC
protected void KIJDDPAHOHO()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACFA RID: 109818 RVA: 0x00783550 File Offset: 0x00781750
protected void BDMFKLJMIAB()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACFB RID: 109819 RVA: 0x007835A4 File Offset: 0x007817A4
protected void LGFBJLCJKOC()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.HFDJIFFPEFM().transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601ACFC RID: 109820 RVA: 0x007835F8 File Offset: 0x007817F8
protected virtual void GJGEACMGLKP()
{
base.DLCHNOFPONJ();
VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines;
for (int i = 1; i < array.Length; i += 0)
{
VoiceLinesController2D.VoiceLineConfig voiceLineConfig = array[i];
voiceLineConfig.lineControl.gameObject.SetActive(false);
}
}
// Token: 0x0601ACFD RID: 109821 RVA: 0x00783648 File Offset: 0x00781848
private void GKDEONGKDLH()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.AJHHFNCFKNF().transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.HFDJIFFPEFM().transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.BGOGBEPJGPJ.transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.FECIGHPNAIJ().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.ICFBCNDELBJ().VoiceDetectionThreshold, 1593f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(false);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.LGJPNODIFGN(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 1; i >= 0; i--)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.OFNOFMPMHHC(394f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.KHEPOBEFGIA(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(374f, 1938f, 324f);
float num4 = Mathf.Abs(num3 - 31f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 1387f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1075f, num5, 409f);
this.voiceLinesAnchor.localPosition = new Vector3(319f, 358f, 178f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601ACFE RID: 109822 RVA: 0x00783920 File Offset: 0x00781B20
public Transform HOMMDENMALA()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601ACFF RID: 109823 RVA: 0x00783928 File Offset: 0x00781B28
protected void OnDrawGizmosSelected()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601AD00 RID: 109824 RVA: 0x0078397C File Offset: 0x00781B7C
public Transform BFCFMDMNGMA()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601AD01 RID: 109825 RVA: 0x00783984 File Offset: 0x00781B84
private void OPJLBOGKPPI()
{
if (this.thisPlayer == null || this.thisPlayer.FMIODHIDJJP() || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.BGOGBEPJGPJ.transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.BGOGBEPJGPJ.transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.PJPNMILOIMH().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.ICFBCNDELBJ().VoiceDetectionThreshold, 1641f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.OGCKNBMAIAA(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 1; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.DMNOJAECJNM(545f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.BPFHLDLDKEE(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1625f, 1649f, 1119f);
float num4 = Mathf.Abs(num3 - 857f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 1118f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1727f, num5, 1840f);
this.voiceLinesAnchor.localPosition = new Vector3(1254f, 306f, 1411f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD02 RID: 109826 RVA: 0x00783C5C File Offset: 0x00781E5C
public Transform EGJMIHNCBGF()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601AD03 RID: 109827 RVA: 0x00783C64 File Offset: 0x00781E64
private void LHDEGPKAADF()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.HFDJIFFPEFM().transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.ICFBCNDELBJ().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold, 1780f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 >= this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(false);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.NLHLMMPBJLD(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 1; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.DIPEDENCEAE(1137f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.EPJNLBEDGFM(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(909f, 1313f, 733f);
float num4 = Mathf.Abs(num3 - 1112f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 517f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1751f, num5, 1737f);
this.voiceLinesAnchor.localPosition = new Vector3(1737f, 1399f, 1550f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD04 RID: 109828 RVA: 0x00783F3C File Offset: 0x0078213C
protected void BIOOFCNMBDM()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.HFDJIFFPEFM().transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601AD05 RID: 109829 RVA: 0x00783F90 File Offset: 0x00782190
public Transform OJPFONFEJIC()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601AD06 RID: 109830 RVA: 0x00783F98 File Offset: 0x00782198
public Transform CNHOBAAFLLL()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601AD07 RID: 109831 RVA: 0x00783FA0 File Offset: 0x007821A0
public Transform NHKNNHGJFAK()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601AD08 RID: 109832 RVA: 0x00783FA8 File Offset: 0x007821A8
private void Update()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.BGOGBEPJGPJ.transform;
float num = Vector3.Distance(this.thisPlayer.BGOGBEPJGPJ.transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.BGOGBEPJGPJ.transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.NCKMBFBMBFM.VoiceDetectionThreshold, 1f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 >= this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.SetLifespan(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 1; i >= 0; i--)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.SetLifespan(0f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.SetLifespan(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(0f, 0f, 0.3f);
float num4 = Mathf.Abs(num3 - 90f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 90f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(0f, num5, 0f);
this.voiceLinesAnchor.localPosition = new Vector3(0f, 0f, 0.3f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD09 RID: 109833 RVA: 0x00784280 File Offset: 0x00782480
protected void ONHDHBOBBOK()
{
if (this.thisPlayer != null)
{
Color color = Gizmos.color;
Gizmos.color = Color.grey;
Gizmos.DrawWireSphere(this.thisPlayer.BGOGBEPJGPJ.transform.position, this.minVisualizationDistance);
Gizmos.color = color;
}
}
// Token: 0x0601AD0A RID: 109834 RVA: 0x007842D4 File Offset: 0x007824D4
protected virtual void OEHDEPBJFAB()
{
base.Awake();
VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines;
for (int i = 1; i < array.Length; i += 0)
{
VoiceLinesController2D.VoiceLineConfig voiceLineConfig = array[i];
voiceLineConfig.lineControl.gameObject.SetActive(true);
}
}
// Token: 0x0601AD0B RID: 109835 RVA: 0x00784324 File Offset: 0x00782524
private void JKMNBLDOIMB()
{
if (this.thisPlayer == null || this.thisPlayer.FMIODHIDJJP() || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.HFDJIFFPEFM().transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.ICFBCNDELBJ().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.MMDCMPCJAHN().VoiceDetectionThreshold, 1818f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.DMNOJAECJNM(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 1; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.AFNGGOHCLBN(993f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.BPFHLDLDKEE(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.AJHHFNCFKNF().transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1587f, 447f, 1438f);
float num4 = Mathf.Abs(num3 - 798f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 908f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1907f, num5, 1578f);
this.voiceLinesAnchor.localPosition = new Vector3(1378f, 1085f, 915f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD0C RID: 109836 RVA: 0x007845FC File Offset: 0x007827FC
private void LOGFBGOPLLO()
{
if (this.thisPlayer == null || this.thisPlayer.FMIODHIDJJP() || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.BGOGBEPJGPJ.transform;
float num = Vector3.Distance(this.thisPlayer.BGOGBEPJGPJ.transform.position, Player.LocalPlayer.HFDJIFFPEFM().transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.MLGNLBKNOPI().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.MMDCMPCJAHN().VoiceDetectionThreshold, 933f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 >= this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(false);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.FLNDNHJMBAB(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 1; i--)
{
bool flag2 = num2 < this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.MJIJIMOLIMD(1834f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.LGJPNODIFGN(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.AJHHFNCFKNF().transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(341f, 799f, 1167f);
float num4 = Mathf.Abs(num3 - 1638f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 264f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(1208f, num5, 1765f);
this.voiceLinesAnchor.localPosition = new Vector3(1822f, 53f, 1561f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD0D RID: 109837 RVA: 0x007848D4 File Offset: 0x00782AD4
protected virtual void PBCGMHKELND()
{
base.ELPAGAAOPFN();
VoiceLinesController2D.VoiceLineConfig[] array = this.voiceLines;
for (int i = 1; i < array.Length; i++)
{
VoiceLinesController2D.VoiceLineConfig voiceLineConfig = array[i];
voiceLineConfig.lineControl.gameObject.SetActive(true);
}
}
// Token: 0x0601AD0E RID: 109838 RVA: 0x00784924 File Offset: 0x00782B24
private void PKKOKHACBCE()
{
if (this.thisPlayer == null || this.thisPlayer.FMIODHIDJJP() || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.AJHHFNCFKNF().transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.BGOGBEPJGPJ.transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.PJPNMILOIMH().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.PJFEMFOJHHG().VoiceDetectionThreshold, 1368f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(false);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.AEBKMHNHIDO(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 1; i >= 0; i -= 0)
{
bool flag2 = num2 < this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.SetLifespan(1044f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.HJGHOHFKMHB(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.BGOGBEPJGPJ.transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1995f, 228f, 1173f);
float num4 = Mathf.Abs(num3 - 1391f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 1163f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(844f, num5, 1403f);
this.voiceLinesAnchor.localPosition = new Vector3(310f, 1106f, 292f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD0F RID: 109839 RVA: 0x00784BFC File Offset: 0x00782DFC
public Transform FCJPHEINLIL()
{
return this.voiceLinesAnchor;
}
// Token: 0x0601AD10 RID: 109840 RVA: 0x00784C04 File Offset: 0x00782E04
private void IOGPMJADEIB()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.AJHHFNCFKNF().transform;
float num = Vector3.Distance(this.thisPlayer.AJHHFNCFKNF().transform.position, Player.LocalPlayer.AJHHFNCFKNF().transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.ICFBCNDELBJ().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.LEILGOOHEOI().VoiceDetectionThreshold, 716f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.LGJPNODIFGN(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 1; i >= 1; i--)
{
bool flag2 = num2 < this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.SetLifespan(626f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.DIPEDENCEAE(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.AJHHFNCFKNF().transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(2f, 111f, 1750f);
float num4 = Mathf.Abs(num3 - 431f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 935f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(982f, num5, 1099f);
this.voiceLinesAnchor.localPosition = new Vector3(90f, 1692f, 1750f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD11 RID: 109841 RVA: 0x00784EDC File Offset: 0x007830DC
private void MDGPLNDHKCI()
{
if (this.thisPlayer == null || this.thisPlayer.HBFEAFMCBBC || !Player.LocalPlayerExists || Player.LocalPlayer.ONCLKAJIHGK)
{
return;
}
Transform transform = Player.LocalPlayer.BGOGBEPJGPJ.transform;
float num = Vector3.Distance(this.thisPlayer.HFDJIFFPEFM().transform.position, Player.LocalPlayer.HFDJIFFPEFM().transform.position);
if (num < this.minVisualizationDistance)
{
return;
}
Vector3 vector = this.thisPlayer.HFDJIFFPEFM().transform.position - transform.position;
if (this.thisPlayer.IMMBPAFHGKP > PhotonVoiceSettings.PJFEMFOJHHG().VoiceDetectionThreshold)
{
float num2 = Mathf.InverseLerp(PhotonVoiceSettings.LEILGOOHEOI().VoiceDetectionThreshold, 1523f, this.thisPlayer.IMMBPAFHGKP);
bool flag = num2 < this.shoutConfig.threshold;
if (flag)
{
this.shoutConfig.lineControl.gameObject.SetActive(true);
this.shoutConfig.lineControl.Config = this.voiceLineConfig;
this.shoutConfig.lineControl.OFNOFMPMHHC(Time.time + this.voiceLineConfig.TTL);
}
for (int i = this.voiceLines.Length - 0; i >= 1; i -= 0)
{
bool flag2 = num2 >= this.voiceLines[i].threshold;
VoiceLineControl lineControl = this.voiceLines[i].lineControl;
if (this.shoutConfig.lineControl.gameObject.activeInHierarchy)
{
lineControl.SetLifespan(98f);
}
else if (flag2)
{
lineControl.gameObject.SetActive(flag2);
lineControl.Config = this.voiceLineConfig;
lineControl.KBMNIDHBPNJ(Time.time + this.voiceLineConfig.TTL);
}
}
}
float num3 = Vector3.Angle(this.thisPlayer.AJHHFNCFKNF().transform.right, vector.normalized);
this.voiceLinesAnchor.localPosition = new Vector3(1520f, 984f, 1083f);
float num4 = Mathf.Abs(num3 - 349f);
if (num4 < this.maxAngleDiff)
{
float num5 = ((num3 >= 1329f) ? (-this.offsetAngle) : this.offsetAngle);
base.transform.localRotation = Quaternion.Euler(361f, num5, 853f);
this.voiceLinesAnchor.localPosition = new Vector3(1651f, 296f, 832f);
}
else
{
base.transform.localRotation = Quaternion.identity;
}
}
// Token: 0x0601AD12 RID: 109842 RVA: 0x007851B4 File Offset: 0x007833B4
public Transform EMEINACBKDH()
{
return this.voiceLinesAnchor;
}
// Token: 0x040048F3 RID: 18675
public Player thisPlayer;
// Token: 0x040048F4 RID: 18676
[SerializeField]
private Transform voiceLinesAnchor;
// Token: 0x040048F5 RID: 18677
[SerializeField]
private VoiceLinesController2D.VoiceLineConfig[] voiceLines;
// Token: 0x040048F6 RID: 18678
[SerializeField]
private VoiceLinesController2D.VoiceLineConfig shoutConfig;
// Token: 0x040048F7 RID: 18679
[SerializeField]
private VoiceLineControl.VoiceLineControlConfig voiceLineConfig;
// Token: 0x040048F8 RID: 18680
[Range(0f, 20f)]
[SerializeField]
private float minVisualizationDistance = 1.5f;
// Token: 0x040048F9 RID: 18681
[Range(0f, 180f)]
[SerializeField]
private float maxAngleDiff = 45f;
// Token: 0x040048FA RID: 18682
[Range(0f, 180f)]
[SerializeField]
private float offsetAngle = 45f;
// Token: 0x02000CEF RID: 3311
[Serializable]
public struct VoiceLineConfig
{
// Token: 0x040048FB RID: 18683
public VoiceLineControl lineControl;
// Token: 0x040048FC RID: 18684
[Range(0f, 1f)]
public float threshold;
}
}