Pages

Native weapon abilities

A TA mod can optionally bind an existing weapon definition to a native AEX ability using weapon-abilities.toml at its mounted root. This works with legacy mods and mods with a mod.toml. The shared engine and bridge weapon loader applies bindings after reading TA weapon definitions and before normalizing them for combat.

version = 1

[[weapon]]
name = "ASPID_STOMP"
ability = "stomp"

name is the TDF weapon block identifier, compared without ASCII case, not its display name or a unit name. Every unit slot referencing that weapon definition receives the ability. The original slot still owns its script callbacks, aiming, burst scheduling, resource costs and reload.

Version 1 accepts "stomp" and "none". "stomp" is a native weapon fired at the emitter's ground contact through the normal firing and impact paths. Its damage, area of effect, range, reload, effects and sounds continue to come from the weapon's TA data. It has no flight and adds no weapontimer windup: each committed shot applies its blast on the projectile tick's first active update. Script aiming and weapon cadence determine when shots are committed. A large unit does not gain movement-based crushing from this binding.

"none" keeps the weapon's ordinary behavior and explicitly opts it out of mod compatibility mappings, including bundled mappings. A conflicting selection for an already authored native ability is an error. An identical selection preserves that authored ability.

Legacy content recognition belongs to the compatibility library, which resolves its profiles and this file together at load time. Explicit bindings require no legacy matcher signature. The mapping adds no numerical tuning fields, bypasses no scripts, and does not load native content/weapons/ packs into matches; that loader's runtime status is covered by the creator reference.

The binding applies to the definition in every positional weapon slot that references it. The slot contract covers numbered FBI bindings and their category lists. Checkpoints preserve native slots; historical TA demo export reports its external encoding limits explicitly.

Validation and layering

The file must contain integer version = 1 and one or more [[weapon]] tables. Each table requires nonempty string name and string ability. Unknown fields or tables, wrong types, duplicate weapon names ignoring ASCII case, unknown weapon definitions, unsupported versions, unsupported abilities and malformed TOML are errors.

The file is validated as part of the compatibility transaction before any definition changes. Invalid files log diagnostics naming their field or TOML location and prevent match loading. A missing file is normal and adds no bindings.

The file uses ordinary mounted VFS priority: the highest-priority copy wins as a whole. Entries from lower-priority copies are not merged, and an invalid winning copy does not fall back to a different mapping. All peers must mount the same gameplay data, including this file.