Repository navigation
Conversation
…ble outside AnimationSystem - no behaviour change - AnimationEffectPlayer (Adapters/Animations) plays a track instance's *eventSFX/*eventPFX/*eventPFXStop; AnimationSystem owns one (one-off particles, as before), mobs will own one that builds each effect once and replays it - AnimationSampling (Models/Animations, static, Burst) holds the frame interpolation and Nlerp of AnimationPoseJob - IVirtualObject.IsHingeMob(): the door/chest rule of the VR grab (MobInteractionService.ShouldHandleGrab) in one place Co-Authored-By: Claude Opus 5.5 <[email protected]>
…) - no behaviour change UseMob's last back transition, AI_StandUp(Quick) and AiHandler.ReEnableNpc cleared the mob, slot, state and body state each on their own. The mob's own animation will stop there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ads (MobAnimationService) - MobAnimationService (Services/Vobs): which mobs animate (an oCMobInter family member with an .MDS visual - no doors, chests, beds, fireplaces), the track names of a state change (T_S0_2_S1, S_S1, T_S1_2_S0) in the mob's own model script, one-shot logs for missing models/tracks (missing tracks Editor only) - At WorldSceneLoaded the world's mob models are baked and their sounds decoded (P3), with an Editor log of the tracks found per model - IMobAnimator / IMobAnimatorFactory: the port the MobAnimator adapter will implement - AnimationService.GetSkeleton also takes the hierarchy from an .MDL (hierarchy and mesh in one file), like the mesh builder Co-Authored-By: Claude Opus 5.5 <[email protected]>
…icles (MobAnimator) - nothing calls it yet - MobAnimator (Adapters/Vob, added on first use by MobAnimatorFactory): maps the model's nodes once, samples the rigid nodes on the CPU (AnimationSampling), plays a transition then the state's loop, events through its own AnimationEffectPlayer (one 3D sound, linear to the event's range; particles built once and replayed); Update only while something plays - users per mob (slots): the last one leaving lets a running transition end, plays the way back (T_S1_2_S0) and rests - safety net once per loop round: a user that is gone, culled, dead or no longer at the mob stops it - MobAnimationService: OnStateChanged / Stop / StartHeroUse / StopHeroUse / IsStillUsing; IMobAnimatorFactory bound in ReflexProjectInstaller Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e an NPC or the hero uses them - the smithy rings, sparks and steams - UseMob: every transition of the user also plays the mob's own (T_S0_2_S1 then S_S1, ...) - NpcService.ReleaseMob stops it; ReleaseMob now also runs at death (NpcDeathDomain.Die - a killed smith frees the anvil) and when a culled NPC is moved to its routine waypoint (AiHandler.DisableNpc, like ReEnableNpc: mob state -1) - the hero: levers/wheels swing into their new state (trigger branch 0 <-> 1); a mob with a dialog (anvil, grindstone, rune table) works while its dialog is open (new GlobalEventDispatcher.MobDialogEnded, raised where DialogService drops the mob dialog anchor); without a dialog (the forge's item swap) it works once, there and back - the safety net also stops for a knocked out user (IsDown) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bs' own animations (Docs/mobs.md, ADR) - Docs/mobs.md: MobState writers (UseMob, AiHandler, MobInteractionService, VRMobHinge, MobStatesSaveSection), NpcService.ReleaseMob as the one end of a usage, the animation classes and data flow, the light player, follow-ups, a "where does my change go" table - architecture.md: "Where does my code go?" row and principle 8 point to Docs/mobs.md - ADR 2026-11-25-mob-animations: why mobs animate, the hero's smithy, no doors/chests/beds, no forge light, no switch, the own light player (not AnimationSystem per mob) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y on import) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e fire no longer roars on after the smith walked away A lever pull without a user still lets its sound play out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t user's release resets the mob state in NpcService.ReleaseMob Wld_GetMobState then reads 0 and a save no longer keeps the anvil as used. Before, only a culled NPC reset it (AiHandler). An NPC only walking to the mob doesn't touch its state. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ared (MobInteractionService) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…en when the world is left (MobAnimationService) A mob that isn't loaded yet gets no animator - the hero's lever pull then plays no animation, now with an Editor log. On a world change or a loaded game the hero's mob dialog use is cleared, so it never points at a destroyed mob. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
Design and reviewDesign. Built with the
Author's decisions: all used mobs except doors, chests and beds; the hero's own forging animates the mob; no extra forge light; G1+G2, VR+Flat, no flag. Review of the build. Architecture: fits with concerns, plan followed. Gothic: no blocking bug. Fixed:
Kept on purpose: an NPC that is culled frees its mob at once. Follow-ups: #576. Editor check (G2 Khorinis):
|
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Mobs now play their own state animations, with their sounds and particles, while an NPC or the hero uses them, like in the engine. In Khorinis' smithy (G2):
FORGE_ANVIL,ANVIL_SPARKS);FORGE_SHARPEN,SHARPSTONE_SPARKS);FIRE_HOT,FORGE_FIRE);FORGE_WATER,WATERVAPOUR).Stoves, pans, barbecues, levers, wheels, the water pipe and the rune maker work the same way: every mob with an MDS that has
T_S0_2_S1/S_S1/T_S1_2_S0. On the G2 world that is 12 models, baked during the load in 115 ms (editor).The behaviour:
MobAnimatorturns itself off), and particle effects are built once per mob and replayed.Technical:
MobAnimationService(Services/Vobs) with theIMobAnimator/IMobAnimatorFactoryport, andMobAnimator(Adapters/Vob), a CPU player for a mob's few rigid nodes.AnimationEffectPlayer(SFX/PFX events) andAnimationSamplingare extracted fromAnimationSystem/AnimationPoseJob, shared by NPCs and mobs, with no behaviour change for NPCs.NpcService.ReleaseMobis now the one place an NPC lets go of a mob:AI_StandUp, death, culling, starting over. The last user's release resets the mob state, so a smith killed at the anvil leaves it free.IsHingeMobholds the rule now shared by the VR grab and this service.GlobalEventDispatcher.MobDialogEnded(the hero's mob dialog closed).Docs/mobs.md(who writes the mob state, saving, animations), plus a row in "Where does my code go?".Stacked on #574. The sound effect code moved into
AnimationEffectPlayer, which now calls #574'sAudioService.GetSfxRangeMeters. Merge #574 first.Why
Playtest (G2 Khorinis): the smithy was silent and still, with no sparks, a grindstone that didn't turn, and no forge sounds. The mobs' own MDS animations, which carry them, were never played.
How to test manually
[MobAnimation] <model>: T_S0_2_S1, T_S1_2_S0, S_S1per model andAnimations of N mob models baked in X ms.Save/load
Nothing new is saved: the mob state already is (
MobStatesSaveSection), and a mob's animation starts again with the next use after a load.Known gaps / follow-ups
Docs/adr/2026-11-25-mob-animations.md🤖 Generated with Claude Code