using System; using UnityEngine; // Token: 0x0200003C RID: 60 public class DiscGolfBumper : DiscGolfTriggerable { // Token: 0x06000C9F RID: 3231 RVA: 0x0004193C File Offset: 0x0003FB3C private void NAEAIHKDLOH(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.BHCCHBHNHCG && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 220f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1053f; float num2 = num * componentInParent.JLGBKELAENA().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.CCHAEPGJJLI = componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity; componentInParent.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.KFBGBHNOIEL().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Force); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("rw_dropped_frames_17plusp_perc"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CA0 RID: 3232 RVA: 0x00041B00 File Offset: 0x0003FD00 private void GPHDLIDHHOM(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.DFJFKOLLEMK() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 984f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1230f; float num2 = num * componentInParent.JLGBKELAENA().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.JLGBKELAENA().BOLBONELAEF.CCHAEPGJJLI = componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity; componentInParent.JLGBKELAENA().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.BKDFLNGCINH.BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("api/images/"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CA1 RID: 3233 RVA: 0x00041CC4 File Offset: 0x0003FEC4 protected virtual void NGHJFABFAOA() { base.Awake(); this.MOBLFPLECAH = base.GetComponentInChildren(); if (this.MOBLFPLECAH != null) { this.MOBLFPLECAH.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.BGOOMAOHKLG)); } } // Token: 0x06000CA2 RID: 3234 RVA: 0x00041D00 File Offset: 0x0003FF00 protected virtual void JLOMELEDCLK() { base.Awake(); this.MOBLFPLECAH = base.GetComponentInChildren(); if (this.MOBLFPLECAH != null) { this.MOBLFPLECAH.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.BGOOMAOHKLG)); } } // Token: 0x06000CA3 RID: 3235 RVA: 0x00041D3C File Offset: 0x0003FF3C protected virtual void BBOIJKLPABP() { base.Awake(); this.MOBLFPLECAH = base.GetComponentInChildren(); if (this.MOBLFPLECAH != null) { this.MOBLFPLECAH.DLJLJBPKIEJ += this.DILPLOENKBB; } } // Token: 0x06000CA4 RID: 3236 RVA: 0x00041D78 File Offset: 0x0003FF78 private void OnTriggerEnter(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.BHCCHBHNHCG && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 2f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGHJDIPABHE; Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 2f; float num2 = num * componentInParent.BKDFLNGCINH.BOLBONELAEF.IKNNJEPEBLN; vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI = componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity; componentInParent.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.BKDFLNGCINH.BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("Bump"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CA5 RID: 3237 RVA: 0x00041F3C File Offset: 0x0004013C private void JFGCKGFNCHD(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.GANDPDNCOKF() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 22f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1473f; float num2 = num * componentInParent.GLGBBCBLOMD().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.PDJMHMHFKIA(componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity); componentInParent.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.BKDFLNGCINH.BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("/"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CA6 RID: 3238 RVA: 0x00042100 File Offset: 0x00040300 protected virtual void BACNJJKPEOO() { base.Awake(); this.MOBLFPLECAH = base.GetComponentInChildren(); if (this.MOBLFPLECAH != null) { this.MOBLFPLECAH.DLJLJBPKIEJ += this.JIMHELDEALE; } } // Token: 0x06000CA7 RID: 3239 RVA: 0x0004213C File Offset: 0x0004033C private void OEANAFOEOIF(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.DGLOKLCEMLH() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 491f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1968f; float num2 = num * componentInParent.BKDFLNGCINH.BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.BKADEFKCPMC(componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity); componentInParent.JLGBKELAENA().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.JLGBKELAENA().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("RpcOnScore"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CA8 RID: 3240 RVA: 0x00042300 File Offset: 0x00040500 protected override void DLCHNOFPONJ() { base.Awake(); this.MOBLFPLECAH = base.GetComponentInChildren(); if (this.MOBLFPLECAH != null) { this.MOBLFPLECAH.DLJLJBPKIEJ += this.BGOOMAOHKLG; } } // Token: 0x06000CA9 RID: 3241 RVA: 0x0004233C File Offset: 0x0004053C private void JIMHELDEALE(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.JNOCCMDBMIO() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 1818f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 253f; float num2 = num * componentInParent.KFBGBHNOIEL().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.CCHAEPGJJLI = componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.JLGBKELAENA().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("Obscured Cheating Detector"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CAA RID: 3242 RVA: 0x00042500 File Offset: 0x00040700 protected override void Awake() { base.Awake(); this.MOBLFPLECAH = base.GetComponentInChildren(); if (this.MOBLFPLECAH != null) { this.MOBLFPLECAH.DLJLJBPKIEJ += this.OnTriggerEnter; } } // Token: 0x06000CAB RID: 3243 RVA: 0x0004253C File Offset: 0x0004073C private void DILPLOENKBB(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.DFJFKOLLEMK() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 1888f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1606f; float num2 = num * componentInParent.KFBGBHNOIEL().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.CCHAEPGJJLI = componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity; componentInParent.KFBGBHNOIEL().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.JLGBKELAENA().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("null message string {0}"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CAD RID: 3245 RVA: 0x00042720 File Offset: 0x00040920 private void LGOMEMGMPAE(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.DFJFKOLLEMK() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 298f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGHJDIPABHE; Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 947f; float num2 = num * componentInParent.KFBGBHNOIEL().BOLBONELAEF.IKNNJEPEBLN; vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.BKDFLNGCINH.BOLBONELAEF.PDJMHMHFKIA(componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity); componentInParent.GLGBBCBLOMD().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.JLGBKELAENA().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("Narchon"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CAE RID: 3246 RVA: 0x000428E4 File Offset: 0x00040AE4 private void BGOOMAOHKLG(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.DGLOKLCEMLH() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 1405f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGHJDIPABHE; Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 162f; float num2 = num * componentInParent.BKDFLNGCINH.BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.JLGBKELAENA().BOLBONELAEF.PDJMHMHFKIA(componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity); componentInParent.GLGBBCBLOMD().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.JLGBKELAENA().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Force); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("api/presence/"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CAF RID: 3247 RVA: 0x00042AA8 File Offset: 0x00040CA8 private void NONMIFJKBOB(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.JNOCCMDBMIO() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 1916f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGHJDIPABHE; Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1717f; float num2 = num * componentInParent.KFBGBHNOIEL().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.JLGBKELAENA().BOLBONELAEF.CCHAEPGJJLI = componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity; componentInParent.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.KFBGBHNOIEL().BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Force); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("oncomplete"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x06000CB0 RID: 3248 RVA: 0x00042C6C File Offset: 0x00040E6C private void NLFPCKCGGHO(Collider GGGBDENGHFM) { if (base.HHEECLBGLCE) { DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent(); if (componentInParent != null && componentInParent.JNOCCMDBMIO() && Time.time - this.ABJMEILCMGH > this.bumpCooldown) { if (this.aimAssisted && this.AimAssistTarget != null) { float magnitude = (this.AimAssistTarget.position - componentInParent.transform.position).magnitude; float num = 1398f * magnitude / DiscGolfDisc.MaxVelocity; Vector3 vector = -Physics.gravity * componentInParent.GGNMMFGHHEO(); Vector3 vector2 = Physics.gravity + vector; Vector3 vector3 = (this.AimAssistTarget.position - componentInParent.transform.position) / num - vector2 * num / 1609f; float num2 = num * componentInParent.KFBGBHNOIEL().BOLBONELAEF.OKBAEPLAILA(); vector3 += num2 * vector3.normalized; componentInParent.transform.rotation = Quaternion.identity; componentInParent.JLGBKELAENA().BOLBONELAEF.BKADEFKCPMC(componentInParent.transform.up * DiscGolfDisc.MaxAngularVelocity); componentInParent.GLGBBCBLOMD().BOLBONELAEF.IGOFELJMFOF = vector3; } else { componentInParent.BKDFLNGCINH.BOLBONELAEF.AddForce(base.transform.forward * this.bumpForce, ForceMode.Impulse); } if (this.gizmoAnimator != null) { this.gizmoAnimator.SetTrigger("INVINCIBILITY_END_TIME"); } this.ABJMEILCMGH = Time.time; } } } // Token: 0x040001C1 RID: 449 [Header("Bumper")] [SerializeField] private float bumpForce = 1f; // Token: 0x040001C2 RID: 450 [SerializeField] private float bumpCooldown = 1.1f; // Token: 0x040001C3 RID: 451 [SerializeField] [Header("Aim Assist")] private bool aimAssisted; // Token: 0x040001C4 RID: 452 public Transform AimAssistTarget; // Token: 0x040001C5 RID: 453 private float ABJMEILCMGH; // Token: 0x040001C6 RID: 454 private CollisionForwarder MOBLFPLECAH; }