five-on-it / packages/ai/src/police-cops / COPS
Variable: COPS
constCOPS:object
Defined in: packages/ai/src/police-cops.ts:89
The cops' numbers (P1, P2).
Type Declaration
budgetMax
readonlybudgetMax:100=100
A team's dispatch budget: at most, and what it starts with (points).
budgetStart
readonlybudgetStart:60=60
buildingReach
readonlybuildingReach:30=30
…and this from a building for SWAT (m).
cooldown
readonlycooldown:Record<CopOrderKind,number>
A team's order of a kind is theirs again this long after the last (ticks).
cost
readonlycost:Record<CopOrderKind,number>
What each order costs (points).
cuffCarRange
readonlycuffCarRange:3.5=3.5
cuffRange
readonlycuffRange:2=2
The cuffs: a robber on foot this near (m), one in a stopped car this near its car (m).
cuffTicks
readonlycuffTicks:90=90
How long the interaction key is held for the cuffs (ticks: a second and a half).
keepTicks
readonlykeepTicks:Record<CopOrderKind,number>
Backup a cop called stays out this long whatever the stars ask for (ticks).
orderGapTicks
readonlyorderGapTicks:number
One order of a cop's at most this often (ticks: half a second).
refillTicks
readonlyrefillTicks:number
A point back this often (ticks: two seconds).
roadReach
readonlyroadReach:40=40
A dispatcher's point on the map: no further than this from a road for a roadblock or a cruiser (m).
stoppedSpeed
readonlystoppedSpeed:1=1
A robber slower than this stands still, a car slower than this is stopped (m/s).