Native sneak producers and helper lifecycle
Source-only REA step6. Inputs are maintained client/game/*/*.c, inert
client/data/*_dll.c and retained source ledgers. No original PE/DLL reads,
analysis sessions/exports, native or guest execution, clients/servers, tracked
edits or delegation occurred. function-ledger.md and functions.json retain
90 complete bodies with exact source paths/lines and source/body SHA256.
metadata.json binds initialized dispatch, callback RTTI, imports and constants.
verify_sources.py checks those identities and the finite transition examples.
The helper26/32 physical and presentation contract is separable from the public sneak request: special action19 sends CharacterAction163; native actor event162 emits movement26. The historical server decision connecting them is unresolved. Do not infer unconditional concealment, skill success, visibility policy or a new external movement whitelist from helper acceptance.
Producers and UI
- EER
sub_2D0010D0(client/game/eer.dll/lifted-0000.c; exact manifest path is infunctions.json) registers logical496 ->sub_2D006090at2D00164C..1656. The callback checks engine global2D01752C then tail-calls IAT2D00947C, bound toN3Msg_SneakToggle360E2940. This maintained exported body is a single return. This source chain therefore supplies no entry request or physical transition. It does not establish a working canonical key binding. - Owned special action19 goes through36057630/36057680. The action must exist
in the manager and entry+1C bit1 must be clear; otherwise the method returns
false with the initialized unavailable-action message. Initialized selectors
360578BC/36057884 map19 ->360577D7 ->
N3Msg_TryEnterSneakMode3602CE50. That method constructs CharacterAction163 through3607D4B0 and sends it withn3Dynel_t::SendIIRToObservers(IAT3617004C). It has no local skill roll, helper/state/combat check or direct movement26 call. - The SimpleChar CharacterAction receiver3607D640 calls virtual+A4, bound to 3606FA30. Its initialized event163 target is default36070BCF (no operation); event162 target360709D9 calls3605A9A0, which sends MovementChanged26 with scalar0. This distinguishes request and acknowledgement; it does not recover the server acceptance or skill policy.
- Special action79 maps360577E7 ->MovementChanged32 with scalar0. Feature-entry helper3604D910 toggles the owned action from19 to79; feature-exit3604D970 toggles79 to19.36057990 finds the paired action, clears its first enabled byte and sets the selected byte in the manager lookup. UI operations and localized start/end messages are conditional on IsClientChar (IAT361700D4); feature-bit mutation also occurs for other actors.
- Concrete internal32 producers:36057C40 tests Features224 mask128 before sending32. Its callers include DropItem3602A520,3605E4E0 and360614E0; the latter additionally rejects byte94==1 and identity type50000, and requests32 only for an owned actor. These call sites do not prove every item/attack/UI action universally exits sneak.
Admission layers and preferred mode
The ordinary MovementChanged sender36022FC0 suppresses action26 when actual
helper primary8. This is a producer guard, even though helper8 itself permits26.
The common CharDCMove receiver36043C50 additionally rejects26 unless
actor->WeaponHolder(+16C)->state(+50)==1 and effective stat410(InFight)<=0,
before its normal controlled-owner/pass-on/pose rules. WeaponHolder class
identity is bound through initialized vtable36171500, not inferred from the
field name. Other paths that submit helpers directly do not acquire this
CharDCMove-specific guard automatically.
| Existing primary | helper predicate26 | helper predicate32 |
|---|---|---|
| 1 frozen | reject | reject |
| 2 walk | allow | allow |
| 3 run | allow | allow |
| 4 swim | reject | reject |
| 5 | allow | allow |
| 6 sneak | allow | allow |
| 7 fly | reject | allow |
| 8 sit | allow | reject |
These are predicate results before builder. Builder360447C0 has no additional state condition for26/32: initialized action26 branch36044F5F selects primary6 and callback36170C58+4=36046630; action32 branch36044F93 selects preferred+30 and callback36170C4C+4=36046740. Submit commits NEW helper state before Run. Neither26 nor32 changes preferred. Player-helper constructor360445D0 initializes preferred2; ordinary22 callback saves2,23 builder/callback saves3. Do not save old primary into preferred on entry26.
All existing helper pairs/secondary are retained except the generic accepted builder copy quirk E.state=OLD S.state. No full stop is part of26/32. Primary6's predicate permits every action ID, but the builder still rejects unsupported IDs; that does not authorize their network provenance. Ordinary directional movement does not inherently stand/leave sneak. Follow posture permits6 (separate helper1/8/9 exclusion; retained follow ledger).
Exact callback effects and seated entry
Enter26 36046630 runs in this order:
- Refresh36047E60: mass/max-speed/max-force/brake parameters and raw173=NEW helper primary6. Primary6's initialized refresh dispatch36048010 selects default36047F7E, base speed1.5, then36047A20. It does not select the swim/stat138 speed branch36047D60. Existing encumbrance adjustment remains in360479B0/E0/F0. SetMaxVel42011C40 updates max-speed and its derived threshold, not current V or q; other complete physical setters are retained too.
- Resolve actor, its lazy controller36071DD0 and enter-feature3604D910.
- Inspect NEW F.state: if3 schedule moving sneak animation using controller metadata3606C640 and animation mode2. Otherwise inspect NEW S.state: if1 schedule its idle animation with mode4. Both clear animation controller+5C and use360492F0 for playback rate. There is no OLD-primary8 special branch.
Exit32 36046740: Refresh36047E60 using the already restored preferred primary;
resolve actor ->36071DD0 ->3604D970; rebuild current-mode animation36044470.
Neither callback directly writes raw425/430, SetStationary, cached controls
324/328/32C/330, current V, independent q, falling-enabled, falling state, or Halt.
No gravity suspension or general kernel pause is introduced by sneak. Player
longitudinal steering3604BA20 only excludes1/8/9;6 continues ordinary steering.
Lateral3604BAC0 and turn3604BC20 do not add a sneak exclusion.
In particular helper-only26 applied from8 does NOT invoke LeaveSit, restore 425100/4300, clear inputs or Halt. It retains seated raw42525/4302, with raw173 now6. The ordinary sender prevents this specific request from8; do not silently replace this difference with a universal stand-before-sneak callback. If restored preferred2/3 already coexists with retained4302,32 likewise does not reset430. The separate raw-stat/snapshot ledger establishes direct430 writes do not select helper8.
Features128, recursion, restrictions and other exits
3604D910 queries Features224 &128. Only when absent it calls36059930(mask128),
which increments that bit's signed reference counter and sets raw224 when the
counter becomes positive. It then updates owned action19->79 and emits initialized
You start sneaking.. Repeated entry with the bit present skips this block.
3604D970 symmetrically acts only when the bit is present:36059A80(mask128)
decrements the counter, clears the bit when its counter is nonpositive, then
updates owned action79->19 and emits You end sneaking..
36059A80 computes changed bits after the raw stat write. Only if bit128 actually changed AND the live vehicle helper is6 does it Submit32. Thus:
- Ordinary32 has committed preferred2/3 before3604D970 removes128; the callback sees live2/3, so no recursive32 is submitted.
- Calling3604D970 while still6 clears128, submits32 once; nested LeaveSneak sees the now-clear bit and returns. The outer exit performs the owned UI/message.
- Direct restriction application clearing128 while6 also submits32 once, but nested3604D970 sees a clear bit and skips its UI/message block. Do not assume that every feature-bit removal emits the same UI message.
- If a counter remains positive and the bit does not change, no32 is submitted. Do not replace these helpers with an unconditional raw XOR.
RestrictAction handler360C17F0 uses argument73 as mask; context+1C bit0 selects removal36059930, otherwise application36059A80. A real movement-permission4 application can Submit21; frozen callback36046D60 removes sneak when OLD6. Accepted walk22/run23/swim24/fly27/sit28 callbacks also call3604D970 for OLD6. Their NEW primary is already committed, so ordinary exits do not restore a second mode over that transition. Sit28 retains its independent movement-state admission, Halt, raw425/430 and animation rules in the posture ledger.
WeaponHolder constructor360783E0 initializes state50=1. Its36078FC0 path calls 3604D970 on the actor (and on an owned target in its guarded branch), and stores state50=2 later. Other concrete controller/nano action paths3604CCC0, 360654A0 and36078A40/BC6/C52 also remove sneak, with their full guards retained. This establishes these source exits, not a universal historical server combat/concealment policy or a guaranteed concealment success formula.
Snapshots and relay
Player snapshot reader3604BDB0 ->36049220 ->36047160 ->360496B0 copies the ten helper bytes (primary,pairs,secondary), then a signed32 preferred value into+30, followed by four float controls324/328/32C/330. This bypasses transition Run. SCFU36082AD0 invokes virtual9C at36082D50, then parameter refresh; the outer 360821D0 invokes360480E0(false) at36082846. Its presentation36046F80 sees helper6 and calls3604D910 at360470A5 to establish Features128 and sneak animation. It does not initialize425/430 for6. FullCharacter's later raw stat lists and controlled refresh are separately bound in the retained snapshots ledger; raw173 is refreshed from helper, while retained425/430 survive.
Existing actors are not reconstructed by another SCFU. A normal admitted live CharDCMove26/32 applies pose first, cancels follow for non20, then submits the same action. It does not roll back earlier pose/follow changes if helper Submit rejects, and it does not translate26/32 into other wire IDs.26's WeaponHolder and InFight guard applies to receivers as well as local replay. Keep admission, authoritative server state and observer delivery separate; do not blindly relay otherwise unsupported external action IDs.
Bounded missing public policy
The maintained client establishes the physical callbacks, UI requests, local entry guards and concrete exit paths. It does not establish the historical server's CharacterAction163->162 decision, concealment/perception rolls, skill thresholds/cooldowns, opponent detection/visibility, authoritative combat policy, or a successful ordinary496 producer (its export is empty). These remain public sneak lifecycle gaps. A physical helper callback milestone can be implemented and tested independently without declaring that public request fully supported.