five-on-it / packages/ai/src/police-cameras
packages/ai/src/police-cameras
The city's cameras as the police's eyes (GAME_DESIGN §12, five stars: face recognition, satire of the smart city): every security camera of the level that is on (stealth's, @foi/sim's cameras.ts, sweeping its cone on its plan) and every traffic camera, one over each signalled junction of the road graph looking all round from its lamps' height, counts as a police sighting of a wanted player it sees (awareness.ts' sightOf: within its range, shortened by the dark and the weather where the player stands, its cone, a clear ray). A traffic camera sees POLICE_CAMERAS.trafficRange metres. The tell is a camera icon pulsing on the minimap where the camera is (police-tells.ts), and a "face match" on the radio, once a camera every POLICE_CAMERAS.radioTicks. The counters: shoot the security camera, cut its power at a fuse box (devices.ts), stay out of a junction's sight, or keep under the stars that switch them on. Pure but for the radio.