aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


docs/aimed-shot.md (6762B)


Aimed Shot and PvE concealment

Aimed Shot (151) now executes for the issued Agent Solar Powered Rifle (121568) and stocked QL5/10 Gripo-Com AKR 1K20 (123976). It requires a supported main-hand weapon with Can bit14, an approved sneak state and an unsuspecting creature. This completes the demonstrated A5 weapon-special rejection. Full historical stealth and player-versus-player concealment remain deferred.

Evidence and provisional rules

The original cd_image/text/help/How do I play this Game in a Team.txt describes a concealed puller's opening Aimed Shot against an unsuspecting target. The Solar rifle tip describes equipping the rifle and placing its special from the Command View on a shortcut. Its Q-then-special instructions do not establish the concealment admission rule. The tested alpha path starts with Sneak, selects the target, and presses O without first starting ordinary combat.

Retained native evidence is in docs/research-notes/player-frozen/research/sneak/README.md. The original KKR SHA256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Special action19 sends CharacterAction163; acknowledgement162 causes the owner to send movement26. Movement26 enters primary6, and movement32 restores preferred walking2/running3. The callbacks retain rest, velocity, controls and gravity; Features224 bit128 and command presentation follow the transition. Exact lifted helpers are client/game/kkr.dll/lifted-0022.c, sub_36046630 and sub_36046740. The exported SneakToggle function is an empty stub; the native Command View is the verified input route. The command icon mapping is retained in local/old/fast-attack-research/native/0x10056cf0-procedure_pseudo_code-aae70120.txt: entry19 uses icon49575, exit79 uses82476.

The original 100aaf10 supplies Can bit14. The 100ab060 recharge helper gives RechargeDelay210 * 40 - AimedShot151 * 3 centiseconds, floored at1000. The server rounds up to seconds and applies the shared SkillLockModifier382 conversion. As with Burst, the observed client caller discards the return value; adopting this arithmetic as authoritative server timing is provisional.

The following are explicit alpha rules, not recovered original server code:

Atomic outcome and native presentation

Damage, skill151's deadline, contribution, corpse/loot and XP commit together. Only then does the server reveal the shooter, start ordinary combat against a surviving target, and publish the named special result and lock. This provides the opening shot's native animation path. Existing idle presentation limitations for other specials are unchanged. Failed writes preserve concealment as well as all live and durable combat/reward state. Retries and reconnect cannot bypass the independent cooldown.

Verification

TestAimedShot* covers the opening damage/reveal/combat transition, persistent lock and target HP, independent skill multiplier and recharge floor, invalid concealment/alertness/equipment/session requests, and failed or ignored lock, health, loot and XP writes followed by successful retry. TestSneak* covers request/acknowledgement admission, forged movement refusal, retained walking/run preference, movement while sneaking, explicit exit, combat/cast reveal to owner and observer, and preservation through both clinic permission expiry paths.

TestBrowserAimedShot uses real inventory equip, Command View Sneak, target selection and O. It compares native HP and Features224 with server state, checks the opening fight and cooldown, retries the action, reconnects, and cold-loads the damage, inventory and lock. The Solar case is an ordinary level-one Agent. The Gripo case uses the existing cap-checked level-ten fixture and stocked QL10 rifle with eight rounds. A nearby controlled Leet has1000HP and ordinary swings are held to isolate the special. These are input/recovery checks, not earned progression or affordability evidence.

November5: 145 distinct selected server test roots pass across the broad run and focused rerun, including all nine new Aimed Shot/sneak roots. The broad run's sole failure was the new reveal assertion reading the compact movement format incorrectly; the corrected assertion verifies the raw correction byte0xa0 for both owner and observer. JavaScript syntax, diff checks and go vet ./server also pass. Logs are local/alpha-aimed-shot/{regressions,final-focused,vet}.log.

The native Solar case passes with12 damage and the Gripo with88, preserving all eight Gripo rounds. Reconnect and cold recovery retain damage and cooldown. Solar evidence is local/alpha-aimed-shot/20261105-174109/solar/; final Gripo evidence is local/alpha-aimed-shot/20261105-174413/gripo/. Each contains verification.json, screenshots and native traces. The browser command-window wait now observes the actual command grid before interacting. Both successful cases took about20seconds. Test browsers and isolated servers exited.

No new historical search was needed: this change uses the bounded retained native evidence and makes the remaining balance/detection assumptions explicit. It closes A5's named Aimed Shot dependency, not the remaining profession requirements or A7's faction/progression matrix.