Skip to content

five-on-it / packages/ai/src/police-cops / COPS

Variable: COPS ​

const COPS: object

Defined in: packages/ai/src/police-cops.ts:89

The cops' numbers (P1, P2).

Type Declaration ​

budgetMax ​

readonly budgetMax: 100 = 100

A team's dispatch budget: at most, and what it starts with (points).

budgetStart ​

readonly budgetStart: 60 = 60

buildingReach ​

readonly buildingReach: 30 = 30

…and this from a building for SWAT (m).

cooldown ​

readonly cooldown: Record<CopOrderKind, number>

A team's order of a kind is theirs again this long after the last (ticks).

cost ​

readonly cost: Record<CopOrderKind, number>

What each order costs (points).

cuffCarRange ​

readonly cuffCarRange: 3.5 = 3.5

cuffRange ​

readonly cuffRange: 2 = 2

The cuffs: a robber on foot this near (m), one in a stopped car this near its car (m).

cuffTicks ​

readonly cuffTicks: 90 = 90

How long the interaction key is held for the cuffs (ticks: a second and a half).

keepTicks ​

readonly keepTicks: Record<CopOrderKind, number>

Backup a cop called stays out this long whatever the stars ask for (ticks).

orderGapTicks ​

readonly orderGapTicks: number

One order of a cop's at most this often (ticks: half a second).

refillTicks ​

readonly refillTicks: number

A point back this often (ticks: two seconds).

roadReach ​

readonly roadReach: 40 = 40

A dispatcher's point on the map: no further than this from a road for a roadblock or a cruiser (m).

stoppedSpeed ​

readonly stoppedSpeed: 1 = 1

A robber slower than this stands still, a car slower than this is stopped (m/s).