Skip to content

five-on-it / packages/ai/src/sentry / STEALTH

Variable: STEALTH ​

const STEALTH: object

Defined in: packages/ai/src/sentry.ts:69

The numbers of a sentry's alert phases.

Type Declaration ​

bodyRange ​

readonly bodyRange: 12 = 12

How far a guard sees a body (m).

bodyReach ​

readonly bodyReach: 1.2 = 1.2

Within this distance of a body it shakes it (m).

bodyStareSeconds ​

readonly bodyStareSeconds: 2 = 2

Seconds a guard who finds a body stares at it, alarmed, before it walks over.

breakHalfAngle ​

readonly breakHalfAngle: number

breakSightShare ​

readonly breakSightShare: 0.4 = 0.4

On a break, off guard: the share of its sight range it sees, and its cone's half-width (rad).

callRadius ​

readonly callRadius: 25 = 25

How far an alert sentry's call carries (m).

callSeconds ​

readonly callSeconds: 1 = 1

Seconds between two calls while it still sees the player.

cautionSeconds ​

readonly cautionSeconds: 25 = 25

Seconds of caution after a search.

cautionShare ​

readonly cautionShare: 0.85 = 0.85

fleeSeconds ​

readonly fleeSeconds: 6 = 6

Seconds a civilian runs from what alarmed it.

lookSeconds ​

readonly lookSeconds: 1.5 = 1.5

Seconds it looks around at each point of a search.

loseSightSeconds ​

readonly loseSightSeconds: 4 = 4

Seconds out of sight before an alert sentry searches.

patrolShare ​

readonly patrolShare: 0.5 = 0.5

Share of the walking speed on its rounds, and on caution.

pointReach ​

readonly pointReach: 1 = 1

Within this distance of a patrol point it heads for the next (m).

postLookSeconds ​

readonly postLookSeconds: 3 = 3

Seconds a post looks one way before turning.

searchRadius ​

readonly searchRadius: 6 = 6

How far around the spot a search sweeps (m).

searchSeconds ​

readonly searchSeconds: 14 = 14

Seconds a search lasts.

suspicionDecay ​

readonly suspicionDecay: 0.25 = 0.25

How fast it drains out of sight (per second).

suspicionRate ​

readonly suspicionRate: object

How fast suspicion fills at full sight (per second), by the phase it is in.

suspicionRate.alert ​

readonly alert: 0 = 0

suspicionRate.caution ​

readonly caution: 1.8 = 1.8

suspicionRate.normal ​

readonly normal: 0.9 = 0.9

readonly search: 4 = 4

suspicionRate.suspicious ​

readonly suspicious: 1.3 = 1.3

suspiciousSeconds ​

readonly suspiciousSeconds: 6 = 6

Seconds a suspicious sentry keeps at it after the last stimulus.

turnSeconds ​

readonly turnSeconds: 0.8 = 0.8

Seconds a suspicious sentry turns to the stimulus before walking to it.