Gates › Gameplay › 2x2 Cannon

2x2 Cannon

Internal / physical Gameplay 17 in 1 out ⬚ 2x2

Spawns projectiles in a chosen brick-local direction while the Fire wire input is held. Use Fire Rate to control how often the burst repeats while held; 0 fires once per rising edge.

Brick summary: Fires projectiles upon receiving a wire signal.

Diagram

Ports drawn from the source data: inputs left, outputs right, config inside.

How it's used

Structural overview — derived from this gate's ports, not from tested behavior. Takes 17 wire inputs: Enabled (bool), Enforce Fire Rate (bool), Spread Biased Towards Center (bool), Damage Multiplier (float), Direction (int), Fire Rate (float), Fire Sound (any), Instigator (entity), Number Of Shots (int), Projectile Class (any), Scale Multiplier (float), Spawn Location (int), Spawn Margin (float), Spawn Offset Bias (float), Speed Multiplier (float), Spread Cone Angle (float), Target Entity (entity). Produces 1 output: On Fired (exec).

No curated example for this gate yet. The shape above is accurate (from the inventory); what it does in practice should be confirmed in-game.

Wire inputs

Wires you feed into the gate.

Display name Type Tooltip
Enabled (bEnabled) bool No tooltip in source
Enforce Fire Rate (bEnforceFireRate) bool No tooltip in source
Spread Biased Towards Center (bSpreadBiasedTowardsCenter) bool No tooltip in source
Damage Multiplier (DamageMultiplier) float No tooltip in source
Direction int No tooltip in source
Fire Rate (FireRate) float No tooltip in source
Fire Sound (FireSound) any No tooltip in source
Instigator entity No tooltip in source
Number Of Shots (NumberOfShots) int No tooltip in source
Projectile Class (ProjectileClass) any No tooltip in source
Scale Multiplier (ScaleMultiplier) float No tooltip in source
Spawn Location (SpawnLocation) int No tooltip in source
Spawn Margin (SpawnMargin) float No tooltip in source
Spawn Offset Bias (SpawnOffsetBias) float No tooltip in source
Speed Multiplier (SpeedMultiplier) float No tooltip in source
Spread Cone Angle (SpreadConeAngle) float No tooltip in source
Target Entity (TargetEntity) entity No tooltip in source

Wire outputs

Wires the gate produces.

Display name Type Tooltip
On Fired (OnFired) exec No tooltip in source

Source details

Brick asset
B_2x2_Cannon
Component class
Component_Internal_ProjectileSpawner_Cannon
Kind
internal
Family
ProjectileSpawner
Half size
10 × 10 × 40

From logic_gate_inventory.simple.json @ 9660107. Documented behavior, not independently tested.