Page MenuHomeFeedback Tracker

[Request] Script command to override turret stabilization config
New, NormalPublic

Description

We recently received the new enableDirectionStabilization command, which allows us to override one kind of turret stabilization - the lock-on-target autostabilization used by e.g. UAV cameras. This provides an exciting glimpse into what else could be possible - the ability to override the stabilization used by e.g. tank turrets.

This stabilization is controlled by the config parameter stabilizedInAxes in the turret config, with the values available being 0 (no stabilization), 1 (elevation stabilization), 2 (traverse stabilization), and 3 (both). A command to override it could allow any value to be specified, or it could be a simple on/off between the config value and no stabilization.

Such a command would be very useful for simulating advanced damage systems, dynamic vehicle upgrades, vehicle balancing, and so on.

Proposed command:
vehicle enableGunStabilization [false,[0]]
where vehicle is a vehicle, false is a bool or number value to use, and [0] is the turret path to apply the override to.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

NikkoJT created this task.Nov 24 2021, 7:01 AM
dedmen set Ref Ticket to AIII-55255.Jul 6 2022, 2:38 PM

If it's decided to let the command accept a number value rather than just on/off, it would be useful to also allow a "whatever the config value is" number in addition to the specific modes, e.g. -1. This would make it easy to let type-agnostic scripts switch between config and override values without needing to know the config value for every potential turret.

R3vo added a subscriber: R3vo.EditedDec 22 2023, 3:44 PM

Another huge advantage would be accessability. Some players have a hard time playing tanks in 1st person without stabilization due to becoming motion sick.

A command to toggle stabilization would make modding these vehicles redundant.

honger added a subscriber: honger.Dec 22 2023, 3:52 PM