fix(ground-ai): improve firing on the move
Share a distance-based speed cap between tactics and the fire gate. Brake toward it and try a short halt when speed or aim keeps blocking a ready shot. Measure tracking drift relative to the aim direction and use the close-range alignment window for quick shots. Expose the controls in the launcher and record measured and permitted speeds in diagnostics. Verified both TypeScript typechecks, 2.61.0.58 and 2.61.0.60 patch checks and builds, and daScript loading in the guarded 2.61.0.58 client.
This commit is contained in:
1 parent
0167c3ea7d
commit
688406bb76
17 files changed
+218
-114
No files matched your search
@@ -91,6 +91,7 @@ export interface GroundAiConfig {
|
||||
readonly deadEchoSec: number;
|
||||
readonly controlTimeoutSec: number;
|
||||
readonly cornerBrakeAccel: number;
|
||||
readonly movingFireSpeedRampMps: number;
|
||||
readonly pivotAngleDeg: number;
|
||||
readonly stuckWindowSec: number;
|
||||
readonly stuckMinMoveM: number;
|
||||
@@ -111,6 +112,7 @@ export interface GroundAiConfig {
|
||||
};
|
||||
readonly stateMachine: {
|
||||
readonly preaimAngleDeg: number;
|
||||
readonly movingShotWaitSec: number;
|
||||
readonly shortHaltMaxSec: number;
|
||||
readonly shortHaltCooldownSec: number;
|
||||
readonly turnLaunchSpeedMps: number;
|
||||
@@ -155,6 +157,8 @@ export interface GroundAiConfig {
|
||||
readonly longRangeM: number;
|
||||
readonly midSlowSpeedRatio: number;
|
||||
readonly midSlowMaxMps: number;
|
||||
readonly closeRangeMaxSpeedKmh: number;
|
||||
readonly pointBlankMaxSpeedKmh: number;
|
||||
readonly stopSpeedMaxMps: number;
|
||||
readonly longRangeWindowSec: number;
|
||||
readonly baseAlignDeg: number;
|
||||
@@ -271,6 +275,7 @@ function collectConfigEntries(c: GroundAiConfig): readonly DasEntry[] {
|
||||
['WTO_AI_NAV_DEAD_ECHO_SEC', 'float', c.navigation.deadEchoSec],
|
||||
['WTO_AI_NAV_CONTROL_TIMEOUT_SEC', 'float', c.navigation.controlTimeoutSec],
|
||||
['WTO_AI_NAV_CORNER_BRAKE_ACCEL', 'float', c.navigation.cornerBrakeAccel],
|
||||
['WTO_AI_NAV_MOVING_FIRE_SPEED_RAMP_MPS', 'float', c.navigation.movingFireSpeedRampMps],
|
||||
['WTO_AI_NAV_PIVOT_ANGLE_DEG', 'float', c.navigation.pivotAngleDeg],
|
||||
['WTO_AI_NAV_STUCK_WINDOW_SEC', 'float', c.navigation.stuckWindowSec],
|
||||
['WTO_AI_NAV_STUCK_MIN_MOVE_M', 'float', c.navigation.stuckMinMoveM],
|
||||
@@ -287,6 +292,7 @@ function collectConfigEntries(c: GroundAiConfig): readonly DasEntry[] {
|
||||
['WTO_AI_PERC_FRONT_CONE_DEG', 'float', c.perception.frontConeHalfDeg],
|
||||
['WTO_AI_PERC_PERIPH_CLOSE_M', 'float', c.perception.peripheralCloseM],
|
||||
['WTO_AI_SM_PREAIM_DEG', 'float', c.stateMachine.preaimAngleDeg],
|
||||
['WTO_AI_SM_MOVING_SHOT_WAIT_SEC', 'float', c.stateMachine.movingShotWaitSec],
|
||||
['WTO_AI_SM_SHORT_HALT_MAX_SEC', 'float', c.stateMachine.shortHaltMaxSec],
|
||||
['WTO_AI_SM_SHORT_HALT_COOLDOWN_SEC', 'float', c.stateMachine.shortHaltCooldownSec],
|
||||
['WTO_AI_SM_TURN_LAUNCH_MPS', 'float', c.stateMachine.turnLaunchSpeedMps],
|
||||
@@ -325,6 +331,8 @@ function collectConfigEntries(c: GroundAiConfig): readonly DasEntry[] {
|
||||
['WTO_AI_FC_LONG_RANGE_M', 'float', c.fireControl.longRangeM],
|
||||
['WTO_AI_FC_MID_SLOW_RATIO', 'float', c.fireControl.midSlowSpeedRatio],
|
||||
['WTO_AI_FC_MID_SLOW_MAX_MPS', 'float', c.fireControl.midSlowMaxMps],
|
||||
['WTO_AI_FC_CLOSE_MAX_MPS', 'float', c.fireControl.closeRangeMaxSpeedKmh / 3.6],
|
||||
['WTO_AI_FC_POINT_BLANK_MAX_MPS', 'float', c.fireControl.pointBlankMaxSpeedKmh / 3.6],
|
||||
['WTO_AI_FC_STOP_SPEED_MAX_MPS', 'float', c.fireControl.stopSpeedMaxMps],
|
||||
['WTO_AI_FC_LONG_WINDOW_SEC', 'float', c.fireControl.longRangeWindowSec],
|
||||
['WTO_AI_FC_BASE_ALIGN_DEG', 'float', c.fireControl.baseAlignDeg],
|
||||
|
||||
Reference in new issue
Block a user