Skip to content

five-on-it / packages/ai/src/awareness / AWARENESS

Variable: AWARENESS ​

const AWARENESS: object

Defined in: packages/ai/src/awareness.ts:44

The numbers of noticing.

Type Declaration ​

breakNoise ​

readonly breakNoise: 25 = 25

How far a light piece knocked loose is heard (m).

crouchSight ​

readonly crouchSight: 0.35 = 0.35

Crouched behind low cover, a player is seen within this share of a watcher's range.

doorNoise ​

readonly doorNoise: 6 = 6

How far a door opening or shutting is heard (m).

eyeHeight ​

readonly eyeHeight: 0.6 = 0.6

Height of a guard's eyes above its centre (m).

farFactor ​

readonly farFactor: 0.3 = 0.3

At the edge of its range it sees a target this well (0..1).

nearShare ​

readonly nearShare: 0.35 = 0.35

Within this share of its range a watcher sees a target as well as it can.

runMargin ​

readonly runMargin: 0.8 = 0.8

Faster than walking by this much is running (m/s).

runNoise ​

readonly runNoise: 8 = 8

How far a player running is heard (m).