Skip to content

five-on-it / packages/sim/src/marksman

packages/sim/src/marksman ​

The police's marksmen (C23 rooftop snipers and C14's door gunner, GAME_DESIGN §12 at seven stars): what their round does, as against an ordinary rifle's. A marksman's rifle reaches MARKSMAN.range, goes straight where it is aimed and deals a person MARKSMAN.damage (a car's engine its carDamage), and a round in a car pops the tyre nearest where it hit (a run-flat limps instead, mods.ts). A rooftop sniper is a character marked a marksman (setMarksman) that fires its rifle as anyone does, through its input (weapons.ts' fireWeapon reads the mark); the helicopter's door gunner fires from the flyer (marksmanShot, flyers.ts). When they fire is the AI's (@foi/ai's laser rule: a laser on the target a second and a half first, the round only when the line held).

Variables ​

Functions ​