Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision system #5

Open
EIREXE opened this issue Dec 17, 2024 · 0 comments
Open

Vision system #5

EIREXE opened this issue Dec 17, 2024 · 0 comments
Labels

Comments

@EIREXE
Copy link
Contributor

EIREXE commented Dec 17, 2024

Relatively tied to the alert system (#4).

NPCs have a vision cone, this vision cone will be of 65 degrees for the time being.

NPCs have three vision rings, far medium and near, for reference these are around:

  • Far: 40m
  • Medium: 25m
  • Near: 10m

NPCs have two meters, the suspicion meter and the alert meter.

The fill rate of these meters will depend on various things, such as the ring and the status of the player.

Suspicion meter

Once filled the NPC will begin investigating a potential threat, if given enough time it will try to notify HQ of this investigation.

A simple table to illustrate example suspicion meter fill rates are:

Close (10m) Mid(25m) Far (40m)
Prone 1.0x 0.0x 0.0x
Crouch 1.5x 0.5x 0.0x
Standing/Crouch walk Instant fill 3.0x 0.0x
Moving (standing) Instant fill Instant fill 2.0x

(Values are illustrative, actual values will have to be fine tuned from testing)

Alert meter

Once filled the NPC will raise an alarm, that will notify the other NPCs of the location of the player, after a grace period.

However, if the player is currently in evasion state, there will be no grace period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant