mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
A 1.12.1 SpellVisualKit has nine effect columns that hang on attachments (+0x0C to +0x2C) and a tenth, +0x30, that the world plants on the ground. PlayUnitSpellVisualKit (0x0060EDF0) makes a CEffect for it and PlantEffect (0x0061FCF0) puts it at the unit's position (the unit's vtable +0x14) or at the point it is given; with a spell that has a root aura (26) in one of its three effects the effect gets flag 0x4000 and follows the unit. Frost Nova's state kit 285 keeps its ice there (Frost_Nova_state.mdx), so a frozen actor showed only the head glow. A scene actor's kit now plants that effect: a model of its own in the scene at the actor's position, lit as an entity like the area shards (LightAsEntity), shown and animated in the actor's link, placed in its place pass, its light settled in its update, and released with the kit. SetSpellVisualKit carries no spell, so the effect stays where it was planted, as the world's does without flag 0x4000. A lasting effect also ended up re-forming. The world gives a state kit's effects (kind 2) KitEffectHoldCallback (0x005FF170): when the first sequence ends cleanly, a model with animation 158, Hold, plays it under KitEffectDecayCallback (0x005FF1D0), which plays Hold again until the effect's end time; a state kit leaves that time at 0, so the effect holds until its aura goes. Our kits used only the channel kits' loop (KitEffectLoopCallback 0x0060ED00), which replays the first sequence. A non-one-shot kit effect now holds Hold when its model has it and replays its sequence otherwise, so Frost Nova's ice forms once and stays, while a precast glow without Hold loops as before. Animation 158 was named ANIM_DYNAMIC_OBJECT_LOOP for the ground areas' use; it is ANIM_HOLD now, its AnimationData name, with both readers in its comment. docs/API.md describes the ground effect and the hold under SetSpellVisualKit.