Summary
Every AI soldier gets his own marksmanship ability, drawn once for life. It sets how tightly he shoots and how well he reads wind, in place of vanilla's one-size skill dial.
Description
Every AI soldier gets his own marksmanship ability, drawn once for life, and that one number decides both how tightly he shoots and how well he reads wind.
WHAT IT REPLACES
• Vanilla grades AI shooting with a six-step dial on the character prefab, from noob to cylon, where cylon is an exact zero error and cannot miss.
• Every shipped prefab is left on the middle step and the Game Master attribute that would change it was never finished, so in practice every AI in the game aims with one identical width.
• Vanilla has no wind term at all. AI rounds drift downwind uncorrected at every range, in every weather preset.
AIMING
• The dial is replaced by a per-soldier width: his role sets the tier, his own ability spreads him around it.
• Line infantry sit exactly on vanilla's regular setting, so ordinary riflemen shoot as they always did and everyone above them is better.
• Neither end of the vanilla ladder is reachable. Nobody is perfect, nobody is hopeless.
• Measured headless, one squad prefab spawned three times at the same range with the same rifle: riflemen hit 4% of their rounds, team leaders 7%, marksmen 15%. The order held across three runs with the tiers rotated between positions, and the best soldier the curve can produce reached 29.8%.
• It overrides whatever anything else asks for - the prefab default, a scenario skill action, a server's own choice. Nothing has to be set to anything for it to work.
WIND
• Each soldier forms his own estimate of the wind speed and then holds off fully and correctly for the wind he believes is there. The error is entirely in the judgement.
• Drift is computed from each projectile's own shipped constants - muzzle velocity, mass and drag - as the lag between the round's real flight time and its vacuum flight time, times the crosswind.
• The worst estimate still removes 40% of the drift and the wildest over-read never doubles it.
• He re-reads the wind about every three quarters of a second, the game's own firing-solution cadence, so a burst lands as a group that is consistently off rather than spraying.
• Rifles, carbines, machine guns, pistols and 40 mm grenades, which hang in moving air for seconds and drift metres where a bullet drifts one. Rocket launchers are excluded: they accelerate under thrust for most of their flight, which the model does not describe.
• Matches drift measured from rounds actually fired in game within a few percent, from 930 m/s rifle rounds down to 77 m/s grenades.
THE ABILITY CURVE, and how it was built
• One draw per soldier: a standard normal, positive meaning better, tails cut at two and a half sigma. Every expression of his ability is that number scaled by his tier's own value.
• Three tiers, read off the prefab's own role: line infantry, leadership, and precision roles plus special forces. Rank is not used - the field defaults to private and exactly five shipped prefabs override it, so it carries nothing the role does not.
• Individual variation is a fraction of the tier value rather than a flat figure. A flat spread is sensible variation for a rifleman and larger than the entire tier value for a marksman, which in an earlier build scattered marksmen across the whole ladder.
• The overlap is deliberate and bounded both ways: a rifleman out-reads his team leader about one time in six, a leader out-reads a marksman about one in thirty. Too little is a caste; too much makes the tier meaningless.
• Correlation is the point. Under-read, judgement scatter and aiming width all come from the same draw, so ability is never charged twice against the same shot.
• Everything mechanical came out of the game's own shipped data: the skill enum and its widths, the aiming error's distance and illumination factors, the projectile constants, the role tokens on every character prefab. Real-world marksmanship and wind-reading figures were used only as tuning anchors for those numbers.
• The statistics are asserted rather than eyeballed - 1844 checks per run over populations of thousands per tier, bounding the centre, the spread, the overlap, the correlation and the size of the near-perfect tail. Several of those exist because an earlier version passed every check while the behaviour was visibly wrong.
SETTINGS, optional, via $profile:CSU_AI_Marksmanship.json
• enabled - turn the addon off without removing it.
• aimError - leave vanilla's aiming error alone and mod only the wind hold-off.
• aimScale / scale - multiply the aiming width or the wind correction, for taste.
• verbose - log every firing solution. Loud.
• reversed - flip the wind vector if a patch ever changes the engine's convention.
COMPATIBILITY
• No dependencies. Singleplayer, Game Master and dedicated servers, computed on the authority.
• Frame time is indistinguishable with the addon on and off, against a baseline run of the same scene.
License
Arma Public License (APL)