five-on-it / packages/sim/src/spawners
packages/sim/src/spawners
The level's vehicle spawners (GAME_DESIGN §5.5, LevelData.spawners): parking bays where a car stands, of the spawner's class or of the next class of its mix, owned by nobody or an NPC, locked unless the spawner says not, its key the spawner's tag. Once the car is gone (driven more than SPAWNER's distance away, wrecked, removed), the next is put there the spawner's respawn seconds later, when the bay is clear (no car in it, nobody where the car would stand); never with a respawn of 0.
The server runs them, not the clients' prediction worlds (which never spawn anything: their twins come from the snapshots): startSpawners with the level, spawnerSystem every tick before the step. Their state is hashed with the world's.