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 × sseconds. - Sub-shot at step
i(0-indexed) fires at timei × safter fire-event start, whenpattern[i] === 1.
Worked example for a [1, 1, 1, 0, 0, 0, 0, 0, 0, 0] pattern at cadenceStepSec = 0.06:
| Step | Time (s) | Pattern value | Sub-shot |
|---|---|---|---|
| 0 | 0.00 | 1 | yes |
| 1 | 0.06 | 1 | yes |
| 2 | 0.12 | 1 | yes |
| 3 | 0.18 | 0 | no |
| 4 | 0.24 | 0 | no |
| 5 | 0.30 | 0 | no |
| 6 | 0.36 | 0 | no |
| 7 | 0.42 | 0 | no |
| 8 | 0.48 | 0 | no |
| 9 | 0.54 | 0 | no |
Worked example for a [1, 1, 0, 1, 1, 0, 1, 0] pattern at cadenceStepSec = 0.06:
| Step | Time (s) | Pattern value | Sub-shot |
|---|---|---|---|
| 0 | 0.00 | 1 | yes |
| 1 | 0.06 | 1 | yes |
| 2 | 0.12 | 0 | no |
| 3 | 0.18 | 1 | yes |
| 4 | 0.24 | 1 | yes |
| 5 | 0.30 | 0 | no |
| 6 | 0.36 | 1 | yes |
| 7 | 0.42 | 0 | no |
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
| Weapon | Pattern | Step (s) | Cycle (s) | Sub-shots / cycle |
|---|---|---|---|---|
| Cannon | [1, 0, 0, 0, 1, 0, 0, 0] | 0.25 | 2.00 | 2 |
| Disc | [1, 0, 0, 1, 0, 0] | 0.18 | 1.08 | 2 |
| Fire Ring | [1, 1, 1, 1] | 0.08 | 0.32 | 4 |
| Flame | [1, 1, 1, 1] | 0.04 | 0.16 | 4 |
| Lightning | [1, 0, 1, 0, 0, 1, 0, 0] | 0.15 | 1.20 | 3 |
| Missile | [1, 0, 0, 0, 1, 0, 0, 0] | 0.25 | 2.00 | 2 |
| Mortar | [1, 1, 1, 0, 0, 0, 0, 0] | 0.12 | 0.96 | 3 |
| Railgun | [1, 0, 0, 0, 0, 0, 0, 0] | 0.40 | 3.20 | 1 |
| Revolver | [1, 1, 0, 1, 1, 0, 1, 0] | 0.06 | 0.48 | 5 |
| Auto Rifle | [1, 1, 1, 1, 1, 1, 1, 1] | 0.12 | 0.96 | 8 |
| Shotgun | [1, 0, 0, 0, 1, 0, 0, 0] | 0.20 | 1.60 | 2 |
| Sweep | [1, 1, 1, 1] | 0.08 | 0.32 | 4 |
| Mega Bullet | [1, 1, 1, 0, 0, 0, 0, 0, 0, 0] | 0.06 | 0.60 | 3 |
| 4-Way Burst | [1, 1, 1, 1, 1] | 0.06 | 0.30 | 5 |
| Wave Gun | [1, 1, 1, 1, 1, 1, 1, 1] | 0.04 | 0.32 | 8 |
| Trailblazer | [1, 1, 1, 1, 1, 1, 1, 1] | 0.05 | 0.40 | 8 |
| Plasma Mortar | [1, 0, 0, 0, 0, 0, 0, 0] | 0.08 | 0.64 | 1 |
| Barrier | [1] | 0.10 | 0.10 | 1 |
| Burst | [1] | 0.00 | 0.00 | 1 |
| Coilgun | [1] | 0.10 | 0.10 | 1 |
| Defy | [1] | 0.02 | 0.02 | 1 |
| Fire Trail | [1] | 0.10 | 0.10 | 1 |
| Line | [1] | 0.10 | 0.10 | 1 |
| Magnetar | [1] | 0.10 | 0.10 | 1 |
| Hellrain | [1] | 0.00 | 0.00 | 1 |
| Star Halo | [1] | 0.00 | 0.00 | 1 |
| Phoenix | [1] | 0.00 | 0.00 | 1 |
| Railstorm | [1] | 0.00 | 0.00 | 1 |
| Carpet Bomber | [1] | 0.00 | 0.00 | 1 |