five-on-it / packages/ai/src/police / POLICE_RESPONSE
Variable: POLICE_RESPONSE
constPOLICE_RESPONSE:object
Defined in: packages/ai/src/police.ts:78
The numbers of the police's response.
Type Declaration
arrestRange
readonlyarrestRange:5=5
An officer this near a player on foot can arrest them (m)…
arrestStill
readonlyarrestStill:1=1
…standing this still (m/s)…
arrestTicks
readonlyarrestTicks:45=45
…for this many ticks.
cars
readonlycars: readonly [0,1,2,4]
Police cars after a player, by stars.
crew
readonlycrew: readonly [0,1,1,2]
Officers in each car, by stars.
dispatchTicks
readonlydispatchTicks:90=90
Ticks between two cars sent.
downTicks
readonlydownTicks:180=180
Down within this many ticks of a police hit is knocked down by the police.
leaveRange
readonlyleaveRange:60=60
…or once this far from every player (m).
leaveTicks
readonlyleaveTicks:600=600
A unit that gave up is gone after this many ticks…
maxCars
readonlymaxCars:8=8
The most police cars out in a room.
muzzleReach
readonlymuzzleReach:1.5=1.5
A shot from within this distance of an officer is the officer's (m).
ramReach
readonlyramReach:6=6
A crash within this distance of a police car is the police car's doing (m).
spawnClear
readonlyspawnClear:6=6
A spot this near another car is taken (m).
spawnMax
readonlyspawnMax:120=120
spawnMin
readonlyspawnMin:45=45
A car is sent this far from its player at least, at most, and preferably (m).
spawnPreferred
readonlyspawnPreferred:70=70
spawnStep
readonlyspawnStep:8=8
The roads are sampled this often for a spot (m).