Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void DetectNoise(Vector3 noisePosition, float noiseLoudness, int timesPlayedInOneSpot = 0, int noiseID = 0)
- {
- //IL_0013: Unknown result type (might be due to invalid IL or missing references)
- //IL_001d: Unknown result type (might be due to invalid IL or missing references)
- //IL_0024: Unknown result type (might be due to invalid IL or missing references)
- //IL_0029: Unknown result type (might be due to invalid IL or missing references)
- //IL_0033: Unknown result type (might be due to invalid IL or missing references)
- //IL_0038: Unknown result type (might be due to invalid IL or missing references)
- //IL_005d: Unknown result type (might be due to invalid IL or missing references)
- //IL_0064: Unknown result type (might be due to invalid IL or missing references)
- //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
- if (!base.IsOwner || isEnemyDead)
- {
- return;
- }
- base.DetectNoise(noisePosition, noiseLoudness, timesPlayedInOneSpot, noiseID);
- if (Vector3.Distance(noisePosition, ((Component)this).transform.position + Vector3.up * 0.4f) < 0.75f || noiseID == 1105 || noiseID == 24751)
- {
- return;
- }
- float num = Vector3.Distance(noisePosition, ((Component)this).transform.position);
- float num2 = noiseLoudness / num;
- if (eyesClosed)
- {
- num2 *= 0.75f;
- }
- if (num2 < 0.12f && peekTimer >= 0f && focusLevel > 0)
- {
- return;
- }
- if (focusLevel >= 3)
- {
- if (num > 3f || num2 <= 0.06f)
- {
- return;
- }
- }
- else if (focusLevel == 2)
- {
- if (num > 25f || num2 <= 0.05f)
- {
- return;
- }
- }
- else if (focusLevel == 1 && (num > 40f || num2 <= 0.05f))
- {
- return;
- }
- PingBaboonInterest(noisePosition, focusLevel);
- }
Advertisement
Add Comment
Please, Sign In to add comment