Guest User

Untitled

a guest
Jan 17th, 2024
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.74 KB | None | 0 0
  1.     public override void DetectNoise(Vector3 noisePosition, float noiseLoudness, int timesPlayedInOneSpot = 0, int noiseID = 0)
  2.     {
  3.         //IL_0013: Unknown result type (might be due to invalid IL or missing references)
  4.         //IL_001d: Unknown result type (might be due to invalid IL or missing references)
  5.         //IL_0024: Unknown result type (might be due to invalid IL or missing references)
  6.         //IL_0029: Unknown result type (might be due to invalid IL or missing references)
  7.         //IL_0033: Unknown result type (might be due to invalid IL or missing references)
  8.         //IL_0038: Unknown result type (might be due to invalid IL or missing references)
  9.         //IL_005d: Unknown result type (might be due to invalid IL or missing references)
  10.         //IL_0064: Unknown result type (might be due to invalid IL or missing references)
  11.         //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
  12.         if (!base.IsOwner || isEnemyDead)
  13.         {
  14.             return;
  15.         }
  16.         base.DetectNoise(noisePosition, noiseLoudness, timesPlayedInOneSpot, noiseID);
  17.         if (Vector3.Distance(noisePosition, ((Component)this).transform.position + Vector3.up * 0.4f) < 0.75f || noiseID == 1105 || noiseID == 24751)
  18.         {
  19.             return;
  20.         }
  21.         float num = Vector3.Distance(noisePosition, ((Component)this).transform.position);
  22.         float num2 = noiseLoudness / num;
  23.         if (eyesClosed)
  24.         {
  25.             num2 *= 0.75f;
  26.         }
  27.         if (num2 < 0.12f && peekTimer >= 0f && focusLevel > 0)
  28.         {
  29.             return;
  30.         }
  31.         if (focusLevel >= 3)
  32.         {
  33.             if (num > 3f || num2 <= 0.06f)
  34.             {
  35.                 return;
  36.             }
  37.         }
  38.         else if (focusLevel == 2)
  39.         {
  40.             if (num > 25f || num2 <= 0.05f)
  41.             {
  42.                 return;
  43.             }
  44.         }
  45.         else if (focusLevel == 1 && (num > 40f || num2 <= 0.05f))
  46.         {
  47.             return;
  48.         }
  49.         PingBaboonInterest(noisePosition, focusLevel);
  50.     }
Advertisement
Add Comment
Please, Sign In to add comment