feat(ground-ai): add the trigger decision channel

Estimate hit probability and request movement speed from the weapon solution.
Use visible aim samples, stock shell penetration, and separate burst paths.
This commit is contained in:
N0VAN0M4LY committed 2026-12-06 01:11:55 +08:00
1 parent 1590a2fea9
commit 4e658cae9c
20 files changed
+693 -113

No files matched your search

@@ -269,12 +269,33 @@ export interface GroundAiConfig {
readonly stopSpeedMaxMps: number;
readonly longRangeWindowSec: number;
readonly baseAlignDeg: number;
readonly closeHitRadiusM: number;
readonly barrelSettleDegSec: number;
readonly closeSettleHoldSec: number;
readonly settleHoldSec: number;
readonly unstabilizedStopSpeedMps: number;
readonly stabilizedCreepSpeedMps: number;
readonly aimErrorDeg: number;
readonly moveErrDegPerMps: number;
readonly turnErrDegPerDegSec: number;
readonly stabErrFactor: number;
readonly targetHalfHeightM: number;
readonly fireThreshold: number;
readonly minFireThreshold: number;
readonly aimingThresholdBonus: number;
readonly closeThresholdBonus: number;
readonly enemyReloadThresholdBonus: number;
readonly enemyReloadSec: number;
readonly fleetingThresholdBonus: number;
readonly fleetingLateralMps: number;
readonly bigGunThresholdPenalty: number;
readonly retreatThresholdPenalty: number;
readonly minShotIntervalSec: number;
readonly autocannonAimSlack: number;
readonly burstSec: number;
readonly burstPauseSec: number;
readonly burstRecheckSec: number;
readonly autocannonReloadDetectSec: number;
readonly auxWeapons: boolean;
readonly auxMaxRangeM: number;
readonly auxFireAtArmor: boolean;
readonly friendlyCorridorM: number;
readonly ballisticStepMaxM: number;
readonly ballisticSweepRadiusM: number;
@@ -473,12 +494,33 @@ function collectConfigEntries(c: GroundAiConfig): readonly DasEntry[] {
['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],
['WTO_AI_FC_CLOSE_HIT_RADIUS_M', 'float', c.fireControl.closeHitRadiusM],
['WTO_AI_FC_BARREL_SETTLE_DEG_SEC', 'float', c.fireControl.barrelSettleDegSec],
['WTO_AI_FC_CLOSE_SETTLE_HOLD_SEC', 'float', c.fireControl.closeSettleHoldSec],
['WTO_AI_FC_SETTLE_HOLD_SEC', 'float', c.fireControl.settleHoldSec],
['WTO_AI_FC_UNSTAB_STOP_MPS', 'float', c.fireControl.unstabilizedStopSpeedMps],
['WTO_AI_FC_STAB_CREEP_MPS', 'float', c.fireControl.stabilizedCreepSpeedMps],
['WTO_AI_FC_AIM_ERROR_DEG', 'float', c.fireControl.aimErrorDeg],
['WTO_AI_FC_MOVE_ERR_DEG_PER_MPS', 'float', c.fireControl.moveErrDegPerMps],
['WTO_AI_FC_TURN_ERR_DEG_PER_DEG_SEC', 'float', c.fireControl.turnErrDegPerDegSec],
['WTO_AI_FC_STAB_ERR_FACTOR', 'float', c.fireControl.stabErrFactor],
['WTO_AI_FC_TARGET_HALF_HEIGHT_M', 'float', c.fireControl.targetHalfHeightM],
['WTO_AI_FC_FIRE_THRESHOLD', 'float', c.fireControl.fireThreshold],
['WTO_AI_FC_MIN_THRESHOLD', 'float', c.fireControl.minFireThreshold],
['WTO_AI_FC_AIMING_BONUS', 'float', c.fireControl.aimingThresholdBonus],
['WTO_AI_FC_CLOSE_BONUS', 'float', c.fireControl.closeThresholdBonus],
['WTO_AI_FC_ENEMY_RELOAD_BONUS', 'float', c.fireControl.enemyReloadThresholdBonus],
['WTO_AI_FC_ENEMY_RELOAD_SEC', 'float', c.fireControl.enemyReloadSec],
['WTO_AI_FC_FLEETING_BONUS', 'float', c.fireControl.fleetingThresholdBonus],
['WTO_AI_FC_FLEETING_LAT_MPS', 'float', c.fireControl.fleetingLateralMps],
['WTO_AI_FC_BIG_GUN_PENALTY', 'float', c.fireControl.bigGunThresholdPenalty],
['WTO_AI_FC_RETREAT_PENALTY', 'float', c.fireControl.retreatThresholdPenalty],
['WTO_AI_FC_MIN_SHOT_INTERVAL_SEC', 'float', c.fireControl.minShotIntervalSec],
['WTO_AI_FC_AC_AIM_SLACK', 'float', c.fireControl.autocannonAimSlack],
['WTO_AI_FC_BURST_SEC', 'float', c.fireControl.burstSec],
['WTO_AI_FC_BURST_PAUSE_SEC', 'float', c.fireControl.burstPauseSec],
['WTO_AI_FC_BURST_RECHECK_SEC', 'float', c.fireControl.burstRecheckSec],
['WTO_AI_FC_AC_RELOAD_DETECT_SEC', 'float', c.fireControl.autocannonReloadDetectSec],
['WTO_AI_FC_AUX_ENABLED', 'bool', c.fireControl.auxWeapons],
['WTO_AI_FC_AUX_MAX_RANGE_M', 'float', c.fireControl.auxMaxRangeM],
['WTO_AI_FC_AUX_FIRE_AT_ARMOR', 'bool', c.fireControl.auxFireAtArmor],
['WTO_AI_FC_FRIENDLY_CORRIDOR_M', 'float', c.fireControl.friendlyCorridorM],
['WTO_AI_FC_BALLISTIC_STEP_M', 'float', c.fireControl.ballisticStepMaxM],
['WTO_AI_FC_BALLISTIC_SWEEP_R_M', 'float', c.fireControl.ballisticSweepRadiusM],