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:78

The numbers of the police's response.

Type Declaration ​

arrestRange ​

readonly arrestRange: 5 = 5

An officer this near a player on foot can arrest them (m)…

arrestStill ​

readonly arrestStill: 1 = 1

…standing this still (m/s)…

arrestTicks ​

readonly arrestTicks: 45 = 45

…for this many ticks.

cars ​

readonly cars: readonly [0, 1, 2, 4]

Police cars after a player, by stars.

crew ​

readonly crew: readonly [0, 1, 1, 2]

Officers in each car, by stars.

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…

maxCars ​

readonly maxCars: 8 = 8

The most police cars out in a room.

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).