Skip to content

five-on-it / packages/ai/src/police-snipers / SNIPERS

Variable: SNIPERS ​

const SNIPERS: object

Defined in: packages/ai/src/police-snipers.ts:95

The snipers' numbers.

Type Declaration ​

againTicks ​

readonly againTicks: 1800 = 1800

A sniper shot down is replaced after this long (ticks: thirty seconds), its body taken away then.

apart ​

readonly apart: 6 = 6

Two snipers stand at least this far apart (m).

edge ​

readonly edge: 0.6 = 0.6

How far in from a roof's edge a sniper stands (m): right at it, to see down past it.

eye ​

readonly eye: 0.6 = 0.6

Where a sniper's eye is over its centre (m).

minHeight ​

readonly minHeight: 6 = 6

A roof at least this high over the ground the player stands on (m).

reach ​

readonly reach: 150 = 150

A roof this near the player (m, over the ground) is one a sniper takes.