five-on-it / packages/ai/src/crowd / CROWD
Variable: CROWD
constCROWD:object
Defined in: packages/ai/src/crowd.ts:92
The numbers of the crowd.
Type Declaration
despawn
readonlydespawn:160=160
Pedestrians farther than this from every player go (m).
dogBeside
readonlydogBeside:0.8=0.8
A dog comes out this far from its walker, along the pavement (m)…
dogNear
readonlydogNear:20=20
…and a walker taken off the street takes a dog off its lead with it when it is this near (m).
doorAway
readonlydoorAway:2700=2700
A door left by its shopkeeper stays empty this long (ticks): 45 s.
maxPeople
readonlymaxPeople:96=96
Pedestrians wanted at most.
minPart
readonlyminPart:6=6
Pavements in pieces smaller than this (nodes) get nobody.
spawnClear
readonlyspawnClear:3=3
Nobody else this near a new pedestrian (m).
spawnMax
readonlyspawnMax:120=120
…and at most (m).
spawnMin
readonlyspawnMin:30=30
New pedestrians appear this far from the nearest player at least… (m)
spawnTries
readonlyspawnTries:6=6
Spots tried per tick for a new pedestrian.
strayPer
readonlystrayPer:8=8
…one for every so many people the hour wants.
strays
readonlystrays:3=3
Stray dogs kept at most, where the level has pavements…