Pages

Native weapon ballistics

A weapon's normalized ballistic arc policy selects which root its TA ballistic solver may use. This capability changes the aim, reach and firing solve together; it does not change damage, range, velocity, gravity, reload time or energy cost. The original weapon and unit scripts still aim and fire the shot.

  • low-arc is the default stock TA policy.
  • high-arc-fallback preserves the flat-root test and accepts the fallback root only when its pitch is above both the authored minbarrelangle and 45 degrees. It reproduces the verified patched-executable branch described in mod compatibility mappings.

The selected policy is native weapon data, not a unit-name convention or an inference from a positive minimum barrel angle. The separate Enhanced trajectory solver retains its existing behavior.

Author a binding or opt out

Place weapon-ballistics.toml at the mounted content root. Normal VFS precedence selects one file:

version = 1

[[weapon]]
name = "MY_CANNON"
arc = "high-arc-fallback"

[[weapon]]
name = "MY_OTHER_CANNON"
arc = "low-arc"

Names resolve case-insensitively to loaded weapon definitions. An explicit low-arc binding opts that weapon out of inferred ballistic compatibility. Bindings are independent of weapon-abilities.toml: a weapon may select an ability and an arc policy without one suppressing the other.

Validation rejects unknown tables or fields, unsupported versions or arc values, unknown weapon names, duplicate names, and conflicts with an authored nondefault native policy. The full weapon compatibility transaction is atomic: an invalid ballistics or ability binding file changes neither selection.

Content-derived selections are recomputed when mounted content is resolved again. Removing a native binding removes its override; an applicable verified profile can then select the weapon. Native selections, explicit opt-outs and applied profile revisions enter the canonical compatibility identity.