scripts
This commit is contained in:
@@ -0,0 +1,284 @@
|
||||
using System;
|
||||
using RecRoom;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000B8B RID: 2955
|
||||
[RequireComponent(typeof(NavMeshRegion))]
|
||||
public class EnemySpawnNavMeshRegion : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06016525 RID: 91429 RVA: 0x0062F578 File Offset: 0x0062D778
|
||||
public Vector3 CGCBFANIFEO()
|
||||
{
|
||||
return this.region.transform.position + this.region.transform.up * this.region.AHNCHMADPJK() / 410f;
|
||||
}
|
||||
|
||||
// Token: 0x06016527 RID: 91431 RVA: 0x0062F5D8 File Offset: 0x0062D7D8
|
||||
public bool LIPJNEHDHOJ(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.ELHDPMJHGBK(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06016528 RID: 91432 RVA: 0x0062F654 File Offset: 0x0062D854
|
||||
public bool ICDPLIMMDHK(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.JKMDMJAGDOL(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06016529 RID: 91433 RVA: 0x0062F6D0 File Offset: 0x0062D8D0
|
||||
public bool JMCHOCNAIED(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.CAGBAKJONGI(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601652A RID: 91434 RVA: 0x0062F74C File Offset: 0x0062D94C
|
||||
public bool GNGGGKIBBJO(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.TryGetRandomPoint(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601652C RID: 91436 RVA: 0x0062F830 File Offset: 0x0062DA30
|
||||
public bool JKPFGLPANGO(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.ONMHHCEKHLP(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601652D RID: 91437 RVA: 0x0062F8AC File Offset: 0x0062DAAC
|
||||
public bool DDOEIEOHDJH(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.DNCLBOOFOOP(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601652E RID: 91438 RVA: 0x0062F928 File Offset: 0x0062DB28
|
||||
public bool TryGetSpawnPositionAndRotation(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.TryGetRandomPoint(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601652F RID: 91439 RVA: 0x0062F9A4 File Offset: 0x0062DBA4
|
||||
public bool EOFJPPIPLDD(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.ONMHHCEKHLP(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x06016530 RID: 91440 RVA: 0x0062FA20 File Offset: 0x0062DC20
|
||||
public bool EGFLNLBOCNL(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.JKMDMJAGDOL(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06016531 RID: 91441 RVA: 0x0062FA9C File Offset: 0x0062DC9C
|
||||
public Vector3 CDAGOIKDCIA()
|
||||
{
|
||||
return this.region.transform.position + this.region.transform.up * this.region.PLECBPFBBPF() / 1520f;
|
||||
}
|
||||
|
||||
// Token: 0x06016532 RID: 91442 RVA: 0x0062FAE8 File Offset: 0x0062DCE8
|
||||
public Vector3 FAHMGLIJMOP()
|
||||
{
|
||||
return this.region.transform.position + this.region.transform.up * this.region.NMKIPAILIHF() / 773f;
|
||||
}
|
||||
|
||||
// Token: 0x06016533 RID: 91443 RVA: 0x0062FB34 File Offset: 0x0062DD34
|
||||
public bool BLANNJALCLD(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.TryGetRandomPoint(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06016534 RID: 91444 RVA: 0x0062FBB0 File Offset: 0x0062DDB0
|
||||
public bool ECOMEKLPOPE(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.TryGetRandomPoint(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06016535 RID: 91445 RVA: 0x0062FC2C File Offset: 0x0062DE2C
|
||||
public bool MCJNIGNDOBO(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.ONMHHCEKHLP(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x17000975 RID: 2421
|
||||
// (get) Token: 0x06016536 RID: 91446 RVA: 0x0062FCA8 File Offset: 0x0062DEA8
|
||||
public Vector3 MOPJKBAFHNJ
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.region.transform.position + this.region.transform.up * this.region.LBFLDJLPGGK / 2f;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06016537 RID: 91447 RVA: 0x0062FCF4 File Offset: 0x0062DEF4
|
||||
public Vector3 MALCJMNNPMM()
|
||||
{
|
||||
return this.region.transform.position + this.region.transform.up * this.region.GJNLCMPKFED() / 123f;
|
||||
}
|
||||
|
||||
// Token: 0x06016538 RID: 91448 RVA: 0x0062FD40 File Offset: 0x0062DF40
|
||||
public bool FFAHDEMNJDK(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.IDHNCPLKCNK(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06016539 RID: 91449 RVA: 0x0062FDBC File Offset: 0x0062DFBC
|
||||
public bool NKKACJNEFLN(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.JKMDMJAGDOL(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0601653A RID: 91450 RVA: 0x0062FE38 File Offset: 0x0062E038
|
||||
public bool DCOKKFFOMHO(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.CAGBAKJONGI(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return true;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0601653B RID: 91451 RVA: 0x0062FEB4 File Offset: 0x0062E0B4
|
||||
public bool HLJDBFNONOH(out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
||||
{
|
||||
if (!this.region.DNCLBOOFOOP(out CIGPHKLAAOD))
|
||||
{
|
||||
IJGPPOIJDKO = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
Vector3 normalized = Vector3.ProjectOnPlane(base.transform.forward, Vector3.up).normalized;
|
||||
float num = global::UnityEngine.Random.Range(-this.maxRandomSpawnAngleFromForward, this.maxRandomSpawnAngleFromForward);
|
||||
IJGPPOIJDKO = Quaternion.AngleAxis(num, Vector3.up) * Quaternion.LookRotation(normalized);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x04003E8F RID: 16015
|
||||
[SerializeField]
|
||||
[ENMFCLPAKBJ(FOGKDGELKHN.Self, false)]
|
||||
private NavMeshRegion region;
|
||||
|
||||
// Token: 0x04003E90 RID: 16016
|
||||
[SerializeField]
|
||||
private float maxRandomSpawnAngleFromForward = 30f;
|
||||
|
||||
// Token: 0x04003E91 RID: 16017
|
||||
private static readonly Color IOHOGELJOLP = new Color(0f, 1f, 0f, 1f);
|
||||
|
||||
// Token: 0x04003E92 RID: 16018
|
||||
private static readonly Color HBHDDDEFHLG = new Color(0f, 0.3f, 0.8f, 1f);
|
||||
|
||||
// Token: 0x04003E93 RID: 16019
|
||||
private static readonly Color DDCCAMIMGIP = new Color(0.13f, 0.84f, 0.94f, 0.4f);
|
||||
}
|
||||
Reference in New Issue
Block a user