Skip to content

five-on-it / packages/ai/src/police-extraction

packages/ai/src/police-extraction ​

The ways out at the top of the ladder (GAME_DESIGN §12): the extraction (M3) and the safe houses (R31).

  • Extraction. At nine stars and up only an extraction ends the chase (the stars stop at nine: police-lockdown.ts' cooling). The extraction points are the police's places of that kind (a harbour boat, a tunnel out of the map, a helipad: a level's or a game's). A player who reaches one, within EXTRACTION.reach of it, starts its survival timer: EXTRACTION.seconds there against everything, the police told where they are every second. Leaving the point (EXTRACTION.hold), dying or dropping below nine stars (an arrest) calls it off, a knockdown does not; surviving it loses the police for good: the stars at none, a legendary escape counted (the HUD's banner) and reported to the server, which pays the reward (takeEscapes).
  • Safe houses. Rented hideouts, the police's places of that kind (their door). A player on foot at the door with the rent in Cash rents it (SAFEHOUSE.rent, for SAFEHOUSE.rentTicks). Inside it (in the building, near its door) and unseen, the Heat cools three times as fast (police-lockdown.ts' coolingOf). From six stars the landlord talks: after SAFEHOUSE.raidTicks inside, the police are told the door (the radio's raid), and the SWAT team's breach-and-clear comes to it (police-swat.ts): a breather, not an exit.

Deterministic: the players in the police's order, the book's lists in the order they were made.

Interfaces ​

Variables ​

Functions ​