Skip to content

Expose named turret targeting actions - #357

Open
sviyh wants to merge 1 commit into
SmashPhil:developfrom
sviyh:feat/named-turret-actions
Open

Expose named turret targeting actions#357
sviyh wants to merge 1 commit into
SmashPhil:developfrom
sviyh:feat/named-turret-actions

Conversation

@sviyh

@sviyh sviyh commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Refactor turret target cancellation and target commitment into named HaltTurret and CommitTarget methods.
  • Preserve the existing gizmo behavior while exposing stable action boundaries for Multiplayer compatibility.

Motivation

The turret gizmo currently performs these state changes through inline UI logic and an anonymous targeting callback. Multiplayer compatibility therefore has to intercept lower-level UI or closure machinery to synchronize the actions. Named methods let the compatibility patch register the intended actions directly and remove brittle callback/transpiler handling.

Test plan

  • Vehicle Framework Release build succeeds with no warnings or errors.
  • Vanilla Vehicles Expanded rebuilds against the PR assemblies.
  • Manual target commit: selecting a valid cell commits the target and starts the prefire timer without consuming ammunition.
  • Manual target cancel: cancelling the targeter leaves the turret idle and preserves ammunition/reload state.
  • Manual halt: halting an active target clears it and it remains cleared after subsequent ticks.
  • Deployed build manually smoke-tested in game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant