383 lines
13 KiB
C#
383 lines
13 KiB
C#
using System;
|
|
using RecRoom.Tools.Weapons;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.AI
|
|
{
|
|
// Token: 0x02000B7C RID: 2940
|
|
public class EnemyProjectileMotionRangedWeapon : EnemyBulletProjectileRangedWeapon
|
|
{
|
|
// Token: 0x06016373 RID: 90995 RVA: 0x006252A8 File Offset: 0x006234A8
|
|
protected virtual void HFBPPIHGADN(Bullet CCPCPHGGOMF)
|
|
{
|
|
base.NCAPOEPCDCA(CCPCPHGGOMF);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
Vector3 position = CCPCPHGGOMF.transform.position;
|
|
base.DCIIDBJDHEH(this.splashParticles, position, Vector3.up);
|
|
AudioManager.Play3DSFX(this.splashAudio, base.transform, this.customAudioRolloff);
|
|
this.ANKLEFEMBKO.JBKJKMJCAKI(position, this.splashRadius, this.projectileImpactForce, this.NGDAMFKEBIC);
|
|
}
|
|
|
|
// Token: 0x06016374 RID: 90996 RVA: 0x0062531C File Offset: 0x0062351C
|
|
private void AEPJBEDKIFN(Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.HONGIOONIGM(EEPPNAIKGEO, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016375 RID: 90997 RVA: 0x00625328 File Offset: 0x00623528
|
|
protected override void EHMANJBEJHN(Bullet IPDEDKKMIKD, Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
if (EEPPNAIKGEO.OHGPCMJMFGC)
|
|
{
|
|
Weapon component = EEPPNAIKGEO.GetComponent<Weapon>();
|
|
if (component != null && component.JNFCPPPFGAM == FLDPCEKNKCA.MELEE_SHIELD)
|
|
{
|
|
this.NGDAMFKEBIC = EEPPNAIKGEO.CAAOEAAJAIL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016376 RID: 90998 RVA: 0x00625370 File Offset: 0x00623570
|
|
private void NONHLCCPDDP(Player IPLDGGMENKL, Player.HDOICGIKKAO OJCFELLMIFA, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.KEPABDJPHJD(IPLDGGMENKL, OJCFELLMIFA, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016377 RID: 90999 RVA: 0x0062537C File Offset: 0x0062357C
|
|
private void CCCEGPEBIFH(Player IPLDGGMENKL, Player.HDOICGIKKAO OJCFELLMIFA, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.KEPABDJPHJD(IPLDGGMENKL, OJCFELLMIFA, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016378 RID: 91000 RVA: 0x00625388 File Offset: 0x00623588
|
|
private void PMGHCLBCMEN()
|
|
{
|
|
if (this.JFCPOKLPDHP != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.incomingAudio, this.JFCPOKLPDHP.transform, this.customAudioRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016379 RID: 91001 RVA: 0x006253B8 File Offset: 0x006235B8
|
|
protected virtual void FHLPNOIIOBM(Bullet CCPCPHGGOMF)
|
|
{
|
|
base.NCAPOEPCDCA(CCPCPHGGOMF);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
Vector3 position = CCPCPHGGOMF.transform.position;
|
|
base.DCIIDBJDHEH(this.splashParticles, position, Vector3.up);
|
|
AudioManager.Play3DSFX(this.splashAudio, base.transform, this.customAudioRolloff);
|
|
this.ANKLEFEMBKO.CLPKDNCNGFG(position, this.splashRadius, this.projectileImpactForce, this.NGDAMFKEBIC);
|
|
}
|
|
|
|
// Token: 0x0601637A RID: 91002 RVA: 0x0062542C File Offset: 0x0062362C
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.ANKLEFEMBKO.NKLDFBAGLFJ += this.DKFODAPJNDG;
|
|
this.ANKLEFEMBKO.OELFEIGJEHI += this.PIDLKKFLBCM;
|
|
}
|
|
|
|
// Token: 0x0601637B RID: 91003 RVA: 0x00625464 File Offset: 0x00623664
|
|
private void GPMJLANIMNP(Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.HONGIOONIGM(EEPPNAIKGEO, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x0601637C RID: 91004 RVA: 0x00625470 File Offset: 0x00623670
|
|
protected override void JFIPKCICNCJ(Vector3 MMEBLCBANIL, float KMLDGGEMJHG)
|
|
{
|
|
this.NGDAMFKEBIC = null;
|
|
Vector3 vector = MMEBLCBANIL - this.projectileOriginTransform.position;
|
|
Vector3 vector2 = Vector3.ProjectOnPlane(vector, Vector3.up);
|
|
Vector3 normalized = vector2.normalized;
|
|
if (vector2.sqrMagnitude >= this.maxRange * this.maxRange)
|
|
{
|
|
vector = vector - vector2 + normalized * this.maxRange;
|
|
}
|
|
float sqrMagnitude = Physics.gravity.sqrMagnitude;
|
|
float num = ((KMLDGGEMJHG > 0f) ? KMLDGGEMJHG : this.projectileSpeed);
|
|
float num2 = num * num + Vector3.Dot(vector, Physics.gravity);
|
|
float num3 = num2 * num2 - sqrMagnitude * vector.sqrMagnitude;
|
|
float num6;
|
|
if (num3 < 0f)
|
|
{
|
|
float num4 = num * Mathf.Cos(0.5235988f);
|
|
float num5 = this.maxRange;
|
|
num6 = num5 / num4;
|
|
}
|
|
else
|
|
{
|
|
float num7 = Mathf.Sqrt(num3);
|
|
num6 = Mathf.Sqrt((num2 - num7) * 2f / sqrMagnitude);
|
|
}
|
|
Vector3 vector3 = vector / num6 - Physics.gravity * num6 / 2f;
|
|
this.JFCPOKLPDHP = base.IDBOGKCNKPM(this.projectileOriginTransform.position, vector3.normalized, vector3.magnitude);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
float num8 = num6 - this.incomingAudioDuration;
|
|
this.OJGCNNCEMIK = this.MMHGONPHLDM(num8, new Action(this.HEGBBEAELGD));
|
|
}
|
|
|
|
// Token: 0x0601637D RID: 91005 RVA: 0x006255F8 File Offset: 0x006237F8
|
|
protected virtual void PPOPAEBNGPC()
|
|
{
|
|
base.Awake();
|
|
this.ANKLEFEMBKO.EOLAGCPPIFN(new KBLFNOHNGAO.JJANGLANMOO(this.DKFODAPJNDG));
|
|
this.ANKLEFEMBKO.OEJDAJFICGK(new KBLFNOHNGAO.NJIPDNBCKJD(this.GPMJLANIMNP));
|
|
}
|
|
|
|
// Token: 0x0601637E RID: 91006 RVA: 0x00625630 File Offset: 0x00623830
|
|
protected override void NCAPOEPCDCA(Bullet CCPCPHGGOMF)
|
|
{
|
|
base.NCAPOEPCDCA(CCPCPHGGOMF);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
Vector3 position = CCPCPHGGOMF.transform.position;
|
|
base.DCIIDBJDHEH(this.splashParticles, position, Vector3.up);
|
|
AudioManager.Play3DSFX(this.splashAudio, base.transform, this.customAudioRolloff);
|
|
this.ANKLEFEMBKO.OEADIPKEOCP(position, this.splashRadius, this.projectileImpactForce, this.NGDAMFKEBIC);
|
|
}
|
|
|
|
// Token: 0x0601637F RID: 91007 RVA: 0x006256A4 File Offset: 0x006238A4
|
|
private void DCHIDIAEFNE(Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.HONGIOONIGM(EEPPNAIKGEO, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016380 RID: 91008 RVA: 0x006256B0 File Offset: 0x006238B0
|
|
private void DKFODAPJNDG(Player IPLDGGMENKL, Player.HDOICGIKKAO OJCFELLMIFA, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.KEPABDJPHJD(IPLDGGMENKL, OJCFELLMIFA, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016382 RID: 91010 RVA: 0x006256F0 File Offset: 0x006238F0
|
|
protected override void NHFFNGKGHLK(Bullet KACMOFHHALK, Player JEFGMHBLLKI, Player.HDOICGIKKAO ACAHIJEJKLC, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06016383 RID: 91011 RVA: 0x006256F4 File Offset: 0x006238F4
|
|
protected virtual void DOBFFEFDODJ(Bullet IPDEDKKMIKD, Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
if (EEPPNAIKGEO.OHGPCMJMFGC)
|
|
{
|
|
Weapon component = EEPPNAIKGEO.GetComponent<Weapon>();
|
|
if (component != null && component.JNFCPPPFGAM == (FLDPCEKNKCA)176)
|
|
{
|
|
this.NGDAMFKEBIC = EEPPNAIKGEO.NAABPMOIADH();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016384 RID: 91012 RVA: 0x0062573C File Offset: 0x0062393C
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
this.ANKLEFEMBKO.NKLDFBAGLFJ -= this.DKFODAPJNDG;
|
|
this.ANKLEFEMBKO.OELFEIGJEHI -= this.PIDLKKFLBCM;
|
|
}
|
|
|
|
// Token: 0x06016385 RID: 91013 RVA: 0x00625774 File Offset: 0x00623974
|
|
protected virtual void NMEHGHBPFJE(Bullet CCPCPHGGOMF)
|
|
{
|
|
base.NCAPOEPCDCA(CCPCPHGGOMF);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
Vector3 position = CCPCPHGGOMF.transform.position;
|
|
base.DCIIDBJDHEH(this.splashParticles, position, Vector3.up);
|
|
AudioManager.Play3DSFX(this.splashAudio, base.transform, this.customAudioRolloff);
|
|
this.ANKLEFEMBKO.DCKLKKCHOON(position, this.splashRadius, this.projectileImpactForce, this.NGDAMFKEBIC);
|
|
}
|
|
|
|
// Token: 0x06016386 RID: 91014 RVA: 0x006257E8 File Offset: 0x006239E8
|
|
protected virtual void ACFEHPJEFBO(Bullet CCPCPHGGOMF)
|
|
{
|
|
base.NCAPOEPCDCA(CCPCPHGGOMF);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
Vector3 position = CCPCPHGGOMF.transform.position;
|
|
base.DCIIDBJDHEH(this.splashParticles, position, Vector3.up);
|
|
AudioManager.Play3DSFX(this.splashAudio, base.transform, this.customAudioRolloff);
|
|
this.ANKLEFEMBKO.GODGOKCOCJO(position, this.splashRadius, this.projectileImpactForce, this.NGDAMFKEBIC);
|
|
}
|
|
|
|
// Token: 0x06016387 RID: 91015 RVA: 0x0062585C File Offset: 0x00623A5C
|
|
private void HEGBBEAELGD()
|
|
{
|
|
if (this.JFCPOKLPDHP != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.incomingAudio, this.JFCPOKLPDHP.transform, this.customAudioRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016388 RID: 91016 RVA: 0x0062588C File Offset: 0x00623A8C
|
|
private void NAMMEOPIFLI(Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.HONGIOONIGM(EEPPNAIKGEO, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016389 RID: 91017 RVA: 0x00625898 File Offset: 0x00623A98
|
|
protected virtual void BBOIJKLPABP()
|
|
{
|
|
base.Awake();
|
|
this.ANKLEFEMBKO.NKLDFBAGLFJ += this.ENDINIKKLBH;
|
|
this.ANKLEFEMBKO.CHBPCFCMFFI(new KBLFNOHNGAO.NJIPDNBCKJD(this.NAMMEOPIFLI));
|
|
}
|
|
|
|
// Token: 0x0601638A RID: 91018 RVA: 0x006258D0 File Offset: 0x00623AD0
|
|
protected override void MNIKOLCIOCD(Bullet IPDEDKKMIKD, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601638B RID: 91019 RVA: 0x006258D4 File Offset: 0x00623AD4
|
|
protected virtual void NGHJFABFAOA()
|
|
{
|
|
base.Awake();
|
|
this.ANKLEFEMBKO.EOLAGCPPIFN(new KBLFNOHNGAO.JJANGLANMOO(this.ENDINIKKLBH));
|
|
this.ANKLEFEMBKO.ALLEGGFBECF(new KBLFNOHNGAO.NJIPDNBCKJD(this.NAMMEOPIFLI));
|
|
}
|
|
|
|
// Token: 0x0601638C RID: 91020 RVA: 0x0062590C File Offset: 0x00623B0C
|
|
private void FLPECCKKHKE()
|
|
{
|
|
if (this.JFCPOKLPDHP != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.incomingAudio, this.JFCPOKLPDHP.transform, this.customAudioRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601638D RID: 91021 RVA: 0x0062593C File Offset: 0x00623B3C
|
|
protected virtual void HLNHCKJNCPE(Bullet KACMOFHHALK, Player JEFGMHBLLKI, Player.HDOICGIKKAO ACAHIJEJKLC, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601638E RID: 91022 RVA: 0x00625940 File Offset: 0x00623B40
|
|
protected virtual void BHCCOOKADBJ(Bullet IPDEDKKMIKD, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601638F RID: 91023 RVA: 0x00625944 File Offset: 0x00623B44
|
|
protected virtual void GLBJBDMMKEC(Bullet KACMOFHHALK, Player JEFGMHBLLKI, Player.HDOICGIKKAO ACAHIJEJKLC, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06016390 RID: 91024 RVA: 0x00625948 File Offset: 0x00623B48
|
|
private void JNMHNMMGMGI()
|
|
{
|
|
if (this.JFCPOKLPDHP != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.incomingAudio, this.JFCPOKLPDHP.transform, this.customAudioRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016391 RID: 91025 RVA: 0x00625978 File Offset: 0x00623B78
|
|
protected virtual void DGBGCIPEOOB(Bullet CCPCPHGGOMF)
|
|
{
|
|
base.NCAPOEPCDCA(CCPCPHGGOMF);
|
|
this.MAJNJMFPAEI(this.OJGCNNCEMIK);
|
|
Vector3 position = CCPCPHGGOMF.transform.position;
|
|
base.DCIIDBJDHEH(this.splashParticles, position, Vector3.up);
|
|
AudioManager.Play3DSFX(this.splashAudio, base.transform, this.customAudioRolloff);
|
|
this.ANKLEFEMBKO.EBLHLPOEPLB(position, this.splashRadius, this.projectileImpactForce, this.NGDAMFKEBIC);
|
|
}
|
|
|
|
// Token: 0x06016392 RID: 91026 RVA: 0x006259EC File Offset: 0x00623BEC
|
|
private void ENDINIKKLBH(Player IPLDGGMENKL, Player.HDOICGIKKAO OJCFELLMIFA, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.KEPABDJPHJD(IPLDGGMENKL, OJCFELLMIFA, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016393 RID: 91027 RVA: 0x006259F8 File Offset: 0x00623BF8
|
|
protected virtual void GBAKMLDADKN(Bullet KACMOFHHALK, Player JEFGMHBLLKI, Player.HDOICGIKKAO ACAHIJEJKLC, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06016394 RID: 91028 RVA: 0x006259FC File Offset: 0x00623BFC
|
|
protected virtual void PLHKCNHIOMA()
|
|
{
|
|
base.OnDestroy();
|
|
this.ANKLEFEMBKO.NNKMDELDKIG(new KBLFNOHNGAO.JJANGLANMOO(this.CCCEGPEBIFH));
|
|
this.ANKLEFEMBKO.LGHLGHOBFKB(new KBLFNOHNGAO.NJIPDNBCKJD(this.AEPJBEDKIFN));
|
|
}
|
|
|
|
// Token: 0x06016395 RID: 91029 RVA: 0x00625A34 File Offset: 0x00623C34
|
|
protected virtual void IABDGAJLFNK()
|
|
{
|
|
base.Awake();
|
|
this.ANKLEFEMBKO.NKLDFBAGLFJ += this.DKFODAPJNDG;
|
|
this.ANKLEFEMBKO.KAIDLOJPKEH(new KBLFNOHNGAO.NJIPDNBCKJD(this.NAMMEOPIFLI));
|
|
}
|
|
|
|
// Token: 0x06016396 RID: 91030 RVA: 0x00625A6C File Offset: 0x00623C6C
|
|
protected virtual void HNBLIGEOJOI()
|
|
{
|
|
base.OnDestroy();
|
|
this.ANKLEFEMBKO.IJIFCGKHOAM(new KBLFNOHNGAO.JJANGLANMOO(this.ENDINIKKLBH));
|
|
this.ANKLEFEMBKO.GNIELAHHMNM(new KBLFNOHNGAO.NJIPDNBCKJD(this.GPMJLANIMNP));
|
|
}
|
|
|
|
// Token: 0x06016397 RID: 91031 RVA: 0x00625AA4 File Offset: 0x00623CA4
|
|
private void EEGMOOFBLOG()
|
|
{
|
|
if (this.JFCPOKLPDHP != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.incomingAudio, this.JFCPOKLPDHP.transform, this.customAudioRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016398 RID: 91032 RVA: 0x00625AD4 File Offset: 0x00623CD4
|
|
private void PIDLKKFLBCM(Tool EEPPNAIKGEO, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
base.HONGIOONIGM(EEPPNAIKGEO, CACIBBKDNIH);
|
|
}
|
|
|
|
// Token: 0x06016399 RID: 91033 RVA: 0x00625AE0 File Offset: 0x00623CE0
|
|
private void NJHOKFIDOCD()
|
|
{
|
|
if (this.JFCPOKLPDHP != null)
|
|
{
|
|
AudioManager.Play3DSFX(this.incomingAudio, this.JFCPOKLPDHP.transform, this.customAudioRolloff);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601639A RID: 91034 RVA: 0x00625B10 File Offset: 0x00623D10
|
|
protected virtual void DGNFNDBDGIL(Bullet KACMOFHHALK, Player JEFGMHBLLKI, Player.HDOICGIKKAO ACAHIJEJKLC, IHEAKAOGCIF CACIBBKDNIH)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04003E53 RID: 15955
|
|
[SerializeField]
|
|
[Header("Physics")]
|
|
private float maxRange = 12f;
|
|
|
|
// Token: 0x04003E54 RID: 15956
|
|
[SerializeField]
|
|
[Header("Incoming Feedback")]
|
|
private float incomingAudioDuration = 1f;
|
|
|
|
// Token: 0x04003E55 RID: 15957
|
|
[SerializeField]
|
|
private RecRoomAudioClip incomingAudio;
|
|
|
|
// Token: 0x04003E56 RID: 15958
|
|
[SerializeField]
|
|
[Header("Splash")]
|
|
private PooledParticle splashParticles;
|
|
|
|
// Token: 0x04003E57 RID: 15959
|
|
[SerializeField]
|
|
private RecRoomAudioClip splashAudio;
|
|
|
|
// Token: 0x04003E58 RID: 15960
|
|
[SerializeField]
|
|
private float splashRadius = 2f;
|
|
|
|
// Token: 0x04003E59 RID: 15961
|
|
private KBLFNOHNGAO ANKLEFEMBKO = new KBLFNOHNGAO();
|
|
|
|
// Token: 0x04003E5A RID: 15962
|
|
private Bullet JFCPOKLPDHP;
|
|
|
|
// Token: 0x04003E5B RID: 15963
|
|
private Coroutine OJGCNNCEMIK;
|
|
|
|
// Token: 0x04003E5C RID: 15964
|
|
private Player NGDAMFKEBIC;
|
|
}
|
|
}
|