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:
1 parent
1590a2fea9
commit
4e658cae9c
20 files changed
+693
-113
No files matched your search
@@ -413,6 +413,11 @@ function readFireControlSection(fc: TuningReader): GroundAiTuning['fireControl']
|
||||
if (pointBlankMaxSpeedKmh < closeRangeMaxSpeedKmh) {
|
||||
throw new TuningError('tuning file ground-ai.jsonc: fireControl.pointBlankMaxSpeedKmh must be >= closeRangeMaxSpeedKmh');
|
||||
}
|
||||
const fireThreshold = fc.number('fireThreshold', { min: 0.05, max: 0.95 });
|
||||
const minFireThreshold = fc.number('minFireThreshold', { min: 0.01, max: 0.9 });
|
||||
if (minFireThreshold > fireThreshold) {
|
||||
throw new TuningError('tuning file ground-ai.jsonc: fireControl.minFireThreshold must be <= fireThreshold');
|
||||
}
|
||||
return {
|
||||
maxEngageRangeM: fc.number('maxEngageRangeM', { min: 150, max: 3000 }),
|
||||
closeRangeM,
|
||||
@@ -425,12 +430,33 @@ function readFireControlSection(fc: TuningReader): GroundAiTuning['fireControl']
|
||||
stopSpeedMaxMps: fc.number('stopSpeedMaxMps', { min: 0.1, max: 2.0 }),
|
||||
longRangeWindowSec: fc.number('longRangeWindowSec', { min: 1.0, max: 15.0 }),
|
||||
baseAlignDeg: fc.number('baseAlignDeg', { min: 0.1, max: 3.0 }),
|
||||
closeHitRadiusM: fc.number('closeHitRadiusM', { min: 0.25, max: 2.2 }),
|
||||
barrelSettleDegSec: fc.number('barrelSettleDegSec', { min: 0.2, max: 12.0 }),
|
||||
closeSettleHoldSec: fc.number('closeSettleHoldSec', { min: 0.02, max: 0.5 }),
|
||||
settleHoldSec: fc.number('settleHoldSec', { min: 0.05, max: 1.5 }),
|
||||
unstabilizedStopSpeedMps: fc.number('unstabilizedStopSpeedMps', { min: 0.1, max: 3.0 }),
|
||||
stabilizedCreepSpeedMps: fc.number('stabilizedCreepSpeedMps', { min: 1.5, max: 15.0 }),
|
||||
aimErrorDeg: fc.number('aimErrorDeg', { min: 0.01, max: 2 }),
|
||||
moveErrDegPerMps: fc.number('moveErrDegPerMps', { min: 0, max: 3 }),
|
||||
turnErrDegPerDegSec: fc.number('turnErrDegPerDegSec', { min: 0, max: 0.5 }),
|
||||
stabErrFactor: fc.number('stabErrFactor', { min: 0.02, max: 1 }),
|
||||
targetHalfHeightM: fc.number('targetHalfHeightM', { min: 0.3, max: 2 }),
|
||||
fireThreshold,
|
||||
minFireThreshold,
|
||||
aimingThresholdBonus: fc.number('aimingThresholdBonus', { min: 0, max: 0.5 }),
|
||||
closeThresholdBonus: fc.number('closeThresholdBonus', { min: 0, max: 0.5 }),
|
||||
enemyReloadThresholdBonus: fc.number('enemyReloadThresholdBonus', { min: 0, max: 0.5 }),
|
||||
enemyReloadSec: fc.number('enemyReloadSec', { min: 0, max: 15 }),
|
||||
fleetingThresholdBonus: fc.number('fleetingThresholdBonus', { min: 0, max: 0.5 }),
|
||||
fleetingLateralMps: fc.number('fleetingLateralMps', { min: 0.5, max: 15 }),
|
||||
bigGunThresholdPenalty: fc.number('bigGunThresholdPenalty', { min: 0, max: 0.5 }),
|
||||
retreatThresholdPenalty: fc.number('retreatThresholdPenalty', { min: 0, max: 0.6 }),
|
||||
minShotIntervalSec: fc.number('minShotIntervalSec', { min: 0.1, max: 5 }),
|
||||
autocannonAimSlack: fc.number('autocannonAimSlack', { min: 1, max: 10 }),
|
||||
burstSec: fc.number('burstSec', { min: 0.2, max: 6 }),
|
||||
burstPauseSec: fc.number('burstPauseSec', { min: 0, max: 5 }),
|
||||
burstRecheckSec: fc.number('burstRecheckSec', { min: 0.05, max: 2 }),
|
||||
autocannonReloadDetectSec: fc.number('autocannonReloadDetectSec', { min: 0.1, max: 3 }),
|
||||
auxWeapons: fc.bool('auxWeapons'),
|
||||
auxMaxRangeM: fc.number('auxMaxRangeM', { min: 30, max: 1500 }),
|
||||
auxFireAtArmor: fc.bool('auxFireAtArmor'),
|
||||
friendlyCorridorM: fc.number('friendlyCorridorM', { min: 1.0, max: 10.0 }),
|
||||
ballisticStepMaxM: fc.number('ballisticStepMaxM', { min: 5.0, max: 80.0 }),
|
||||
ballisticSweepRadiusM: fc.number('ballisticSweepRadiusM', { min: 0.02, max: 0.5 }),
|
||||
|
||||
Reference in new issue
Block a user