Cadence Pattern

What it is

A cadence pattern is an array of 1s and 0s that gates the sub-shots inside a single fire event. The pattern is stepped at a fixed interval (cadenceStepSec); each 1 releases a sub-shot at that step, each 0 is silence. The full pattern plays once per fire event, after which the weapon waits for its normal fire-rate cooldown before starting again.

Math

For a weapon with pattern length P and step time s:

  • Total cycle duration = P × s seconds.
  • Sub-shot at step i (0-indexed) fires at time i × s after fire-event start, when pattern[i] === 1.

Worked example for a [1, 1, 1, 0, 0, 0, 0, 0, 0, 0] pattern at cadenceStepSec = 0.06:

StepTime (s)Pattern valueSub-shot
00.001yes
10.061yes
20.121yes
30.180no
40.240no
50.300no
60.360no
70.420no
80.480no
90.540no

Worked example for a [1, 1, 0, 1, 1, 0, 1, 0] pattern at cadenceStepSec = 0.06:

StepTime (s)Pattern valueSub-shot
00.001yes
10.061yes
20.120no
30.181yes
40.241yes
50.300no
60.361yes
70.420no

A pattern of [1] with any step time is the canonical “single shot per fire event” — no internal cadence — and is the default for weapons that do not use cadence.

Which weapons use it

WeaponPatternStep (s)Cycle (s)Sub-shots / cycle
Cannon[1, 0, 0, 0, 1, 0, 0, 0]0.252.002
Disc[1, 0, 0, 1, 0, 0]0.181.082
Fire Ring[1, 1, 1, 1]0.080.324
Flame[1, 1, 1, 1]0.040.164
Lightning[1, 0, 1, 0, 0, 1, 0, 0]0.151.203
Missile[1, 0, 0, 0, 1, 0, 0, 0]0.252.002
Mortar[1, 1, 1, 0, 0, 0, 0, 0]0.120.963
Railgun[1, 0, 0, 0, 0, 0, 0, 0]0.403.201
Revolver[1, 1, 0, 1, 1, 0, 1, 0]0.060.485
Auto Rifle[1, 1, 1, 1, 1, 1, 1, 1]0.120.968
Shotgun[1, 0, 0, 0, 1, 0, 0, 0]0.201.602
Sweep[1, 1, 1, 1]0.080.324
Mega Bullet[1, 1, 1, 0, 0, 0, 0, 0, 0, 0]0.060.603
4-Way Burst[1, 1, 1, 1, 1]0.060.305
Wave Gun[1, 1, 1, 1, 1, 1, 1, 1]0.040.328
Trailblazer[1, 1, 1, 1, 1, 1, 1, 1]0.050.408
Plasma Mortar[1, 0, 0, 0, 0, 0, 0, 0]0.080.641
Barrier[1]0.100.101
Burst[1]0.000.001
Coilgun[1]0.100.101
Defy[1]0.020.021
Fire Trail[1]0.100.101
Line[1]0.100.101
Magnetar[1]0.100.101
Hellrain[1]0.000.001
Star Halo[1]0.000.001
Phoenix[1]0.000.001
Railstorm[1]0.000.001
Carpet Bomber[1]0.000.001