Skip to content

five-on-it / packages/sim/src/vehicle-classes / SonicDef

Interface: SonicDef ​

Defined in: packages/sim/src/vehicle-classes.ts:273

A sonic cannon (C26, sonic.ts): a long-range acoustic device on a roof that winds up with a hum, then throws back and stuns whoever stands in its cone in the open.

Properties ​

cooldownSeconds ​

cooldownSeconds: number

Defined in: packages/sim/src/vehicle-classes.ts:289

How long before it winds up again (s).


halfAngle ​

halfAngle: number

Defined in: packages/sim/src/vehicle-classes.ts:279

Half the width of its cone (rad).


muzzleY ​

muzzleY: number

Defined in: packages/sim/src/vehicle-classes.ts:281

How high over the chassis centre it sits (m).


push ​

push: number

Defined in: packages/sim/src/vehicle-classes.ts:287

How hard it throws them back: the speed it gives them away from it (m/s).


range ​

range: number

Defined in: packages/sim/src/vehicle-classes.ts:277

How far its cone reaches (m).


seat ​

seat: number

Defined in: packages/sim/src/vehicle-classes.ts:275

The seat that works it (its operator's); the driver works it while that seat is empty.


stunSeconds ​

stunSeconds: number

Defined in: packages/sim/src/vehicle-classes.ts:285

How long whoever it reaches lies stunned (s).


windupSeconds ​

windupSeconds: number

Defined in: packages/sim/src/vehicle-classes.ts:283

How long it hums before it goes (s): the tell.