five-on-it / packages/ai/src/sentry / STEALTH
Variable: STEALTH
constSTEALTH:object
Defined in: packages/ai/src/sentry.ts:69
The numbers of a sentry's alert phases.
Type Declaration
bodyRange
readonlybodyRange:12=12
How far a guard sees a body (m).
bodyReach
readonlybodyReach:1.2=1.2
Within this distance of a body it shakes it (m).
bodyStareSeconds
readonlybodyStareSeconds:2=2
Seconds a guard who finds a body stares at it, alarmed, before it walks over.
breakHalfAngle
readonlybreakHalfAngle:number
breakSightShare
readonlybreakSightShare: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
readonlycallRadius:25=25
How far an alert sentry's call carries (m).
callSeconds
readonlycallSeconds:1=1
Seconds between two calls while it still sees the player.
cautionSeconds
readonlycautionSeconds:25=25
Seconds of caution after a search.
cautionShare
readonlycautionShare:0.85=0.85
fleeSeconds
readonlyfleeSeconds:6=6
Seconds a civilian runs from what alarmed it.
lookSeconds
readonlylookSeconds:1.5=1.5
Seconds it looks around at each point of a search.
loseSightSeconds
readonlyloseSightSeconds:4=4
Seconds out of sight before an alert sentry searches.
patrolShare
readonlypatrolShare:0.5=0.5
Share of the walking speed on its rounds, and on caution.
pointReach
readonlypointReach:1=1
Within this distance of a patrol point it heads for the next (m).
postLookSeconds
readonlypostLookSeconds:3=3
Seconds a post looks one way before turning.
searchRadius
readonlysearchRadius:6=6
How far around the spot a search sweeps (m).
searchSeconds
readonlysearchSeconds:14=14
Seconds a search lasts.
suspicionDecay
readonlysuspicionDecay:0.25=0.25
How fast it drains out of sight (per second).
suspicionRate
readonlysuspicionRate:object
How fast suspicion fills at full sight (per second), by the phase it is in.
suspicionRate.alert
readonlyalert:0=0
suspicionRate.caution
readonlycaution:1.8=1.8
suspicionRate.normal
readonlynormal:0.9=0.9
suspicionRate.search
readonlysearch:4=4
suspicionRate.suspicious
readonlysuspicious:1.3=1.3
suspiciousSeconds
readonlysuspiciousSeconds:6=6
Seconds a suspicious sentry keeps at it after the last stimulus.
turnSeconds
readonlyturnSeconds:0.8=0.8
Seconds a suspicious sentry turns to the stimulus before walking to it.