Skip to content

five-on-it / packages/ai/src/police / POLICE_RESPONSE

Variable: POLICE_RESPONSE ​

const POLICE_RESPONSE: object

Defined in: packages/ai/src/police.ts:121

The numbers of the police's response that are not the ladder's (police-ladder.ts).

Type Declaration ​

arrestRange ​

readonly arrestRange: 5 = 5

An officer this near a player on foot (and within VERTICAL_REACH of their height) can arrest them (m)…

arrestStill ​

readonly arrestStill: 1 = 1

…standing this still (m/s)…

arrestTicks ​

readonly arrestTicks: 45 = 45

…for this many ticks.

dispatchTicks ​

readonly dispatchTicks: 90 = 90

Ticks between two cars sent.

downTicks ​

readonly downTicks: 180 = 180

Down within this many ticks of a police hit is knocked down by the police.

leaveRange ​

readonly leaveRange: 60 = 60

…or once this far from every player (m).

leaveTicks ​

readonly leaveTicks: 600 = 600

A unit that gave up is gone after this many ticks…

maxActors ​

readonly maxActors: 24 = 24

The most police actors out in a room: every officer, police car and drone (a cruiser and its crew, a roadblock's two cars and two officers, a nail strip's car and officer).

maxCars ​

readonly maxCars: 12 = 12

The most police cars out in a room, after every player.

muzzleReach ​

readonly muzzleReach: 1.5 = 1.5

A shot from within this distance of an officer is the officer's (m).

ramReach ​

readonly ramReach: 6 = 6

A crash within this distance of a police car is the police car's doing (m).

spawnClear ​

readonly spawnClear: 6 = 6

A spot this near another car is taken (m).

spawnMax ​

readonly spawnMax: 120 = 120

spawnMin ​

readonly spawnMin: 45 = 45

A car is sent this far from its player at least, at most, and preferably (m).

spawnPreferred ​

readonly spawnPreferred: 70 = 70

spawnStep ​

readonly spawnStep: 8 = 8

The roads are sampled this often for a spot (m).