Skip to content

Vision system #5

@EIREXE

Description

@EIREXE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions