Skip to content

five-on-it / packages/ai/src/profiles

packages/ai/src/profiles ​

Behaviour profiles: the one place an NPC is tuned, in the style of the vehicle classes. A profile says what a chaser perceives (sight, hearing, how long it remembers), how it moves (speed, how near it comes, whether it runs, jumps or takes a car), whether and how it shoots, how it drives when it chases in a car and what its crew does there (shoot out of the windows, ram, get out and fight), how long it runs from whoever carjacks it, and how tough it is. Four presets cover the range from a tail that keeps its distance to a guard with the view cone the client draws; a partial profile is completed and clamped by clampProfile. The police officer (POLICE) is a profile of its own, outside the presets the legend offers, turned up with the Wanted level by policeProfile.

Interfaces ​

Type Aliases ​

Variables ​

Functions ​