|
Storm Game Framework 2.0.0
User guide
|
StormAnimationNative animates a stock Unreal ACharacter. Movement owns the capsule, collision and replication. A component on the character prepares a frame of movement state on the game thread. An Animation Blueprint derived from UStormNativeAnimInstance plays it through Storm's animation nodes, which choose clips by tag, match distance and speed, and place the feet.
| Module | What it supplies |
|---|---|
| StormAnimationNative | The movement component, the animation component, the host Animation Blueprint parent, the catalogues, the animation nodes' runtime, hit reactions and the ShowDebug categories. |
| StormAnimationNativeEditor | The Storm nodes in the Animation Blueprint graph editor. |
| StormCharactersNative | AStormNativeHumanoid, a ready character with the animation, camera, first-person and reaction components. |
| StormCombatAnimationAdapter, StormBodyAnimationAdapter, StormWeaponsAnimationAdapter | Optional adapters that turn StormCombat resolutions, StormBody region changes and StormWeapons shots into hit reactions. |
| StormItemsAnimationAdapter | An optional adapter that gives a character's held items their overlays and support-hand grips. |
| StormTraversalNativeAdapter | An optional adapter that runs StormTraversal's crossings on native movement's traversal motor. |
In the Content Browser, enable Settings > Show Plugin Content to see these folders.
| Folder | What it holds |
|---|---|
| /SGF/StormAnimation | The framework: the host template ABP_StormLocomotionHost, its layer interface ALI_StormLocomotionHost, the overlay layer template ABP_StormOverlayLayer and the character Blueprint BP_StormNativeHumanoid. It holds no clips. See Start from SGF's framework. |
| /SGF/Characters/Animation | The Humanoid's animation: its host ABP_Humanoid, its catalogue DA_HumanoidLocomotion, its clip set CS_Humanoid_Stand and 33 A_* clips. |
| /SGF/Characters/Mannequins | The UE5 template mannequin: the skeleton SK_Mannequin, the meshes SKM_Manny_Simple and SKM_Quinn_Simple, the physics asset PA_Mannequin, the control rig CR_Mannequin_Body, their materials and textures, and the unarmed clips the Humanoid plays. |
The Humanoid's host and catalogue. ABP_Humanoid is a child of ABP_StormLocomotionHost on SK_Mannequin, and /SGF/Characters/BP_Humanoid plays it on SKM_Manny_Simple. Its catalogue, DA_HumanoidLocomotion, has a standing entry, Storm.Characters.Locomotion.Humanoid.Stand, and a crouching entry, Storm.Characters.Locomotion.Humanoid.Crouch. Both play CS_Humanoid_Stand, so a crouching Humanoid lowers its capsule but plays the standing clips.
The Humanoid's clip set. CS_Humanoid_Stand is an octant clip set with a walk tier and a jog tier:
BP_Humanoid's movement walks and runs at the speeds the walk and jog cycles were authored for, and crouches at the walk speed. Its Run Stop Distance and Max Acceleration are set from the distances the jog stop and start cover.
What SGF does not ship. There are no turn-in-place clips, turning starts, leans, crouch clips, locomotion transitions, overlay or weapon clips, hit reactions, mantles or get-ups. The rest of this page says how to author and add them.
The framework under /SGF/StormAnimation holds no clips. Use it with your own skeleton and clips, and look at ABP_Humanoid for a working example on the template mannequin.
| Asset | What it is |
|---|---|
| ABP_StormLocomotionHost | The host Animation Blueprint, already built as below, as an Animation Blueprint Template with no skeleton. Its nodes find their bones by name when it runs. |
| ALI_StormLocomotionHost | Its layer interface: Locomotion, Overlay and LimbIK. |
| ABP_StormOverlayLayer | An overlay layer template for a weapon. It plays a hold pose through an Aim Offset, driven by Aim Yaw and Aim Pitch, then a Storm Layering node over the layer's input pose. Both players are empty. |
| BP_StormNativeHumanoid | A Blueprint on AStormNativeHumanoid whose mesh plays the host template, placed as the UE5 mannequins expect. Its mesh, catalogues, reactions, mantle profiles and first-person profile are empty, and mantling is off. |
To build a character on it with your own clips:
Add reactions, mantles and first person as you need them:
See Hit reactions and Mantle.
To change the host itself, make a child of the template on your skeleton and set it as the mesh's animation class, or build your own host as below.
Use the native Humanoid. Make a child of SGF's BP_StormNativeHumanoid, above, or a Blueprint derived from AStormNativeHumanoid. It already carries:
Assign your skeletal mesh and your host Animation Blueprint on its mesh, then set the animation component's catalogue. Select AStormNativeHumanoidController in the game mode and bind ToggleHumanoidView to your input to switch views. Placed characters can use stock AI possession.
For a character with abilities, inventory, equipment, appearance and ready-made input as well, start from /SGF/Characters/BP_Humanoid instead. See Which Humanoid?.
Or use your own C++ character. Replace the movement subobject and add the animation component:
Add StormAnimationNative to the module's Build.cs and include StormNativeCharacterMovement.h and StormNativeAnimationComponent.h. Declare StormAnimation as a UPROPERTY object pointer. A movement subclass should keep the base prediction hooks: gait uses FLAG_Custom_0 and FLAG_Custom_1, and the mantle uses custom movement mode 1.
Configure the animation component.
| Setting | Use it to |
|---|---|
| Catalogue | Choose what each locomotion tag plays on this character. |
| Default Locomotion Tag | Present an entry before any request, and when a request cannot be presented locally. |
| Overlay Catalogue | Choose the layer each overlay tag links into the host's Overlay slot. |
| Intent Source | Choose where observers read movement intent: Storm's own compact value, the default, or the engine's acceleration replication, which needs p.EnableCharacterAccelerationReplication. |
| Enable Inverse Kinematics | Turn limb IK on or off for the character. Gameplay can also call SetIKSuppressed with a reason tag on authority. |
| LimbIK Layer | Optionally link your own Animation Blueprint into the LimbIK slot in place of Storm's. |
Request a locomotion family or entry with RequestLocomotionTag. The catalogue must accept it and have an entry for every stance. On a client the request goes to the server for validation, and every copy presents the entry for the stance its movement is in.
Configure movement. On UStormNativeCharacterMovement:
Use the same defaults on every peer, since prediction replays moves with them.
Restrict movement. To stop a character carrying two-handed cargo from sprinting, jumping or mantling, call AddMovementRestriction on the server with a source tag of your own and a Storm Movement Restriction:
Restrictions from several sources, such as cargo and an injury, apply together, and the strictest of each option wins. Lift one with RemoveMovementRestriction. They replicate to every copy, and the owner predicts with them once they arrive, so a change can cost the owner one small correction. For held items, a Storm Items Animation Profile entry can carry the restriction instead: see StormItemsAnimationAdapter.
A character either faces its view or turns toward its movement. The view direction is the default and suits a shooter's player. The velocity direction suits AI, such as wandering or chasing enemies, and third-person players who steer the body.
| Mode | Tag | The body |
|---|---|---|
| View direction | Storm.RotationMode.ViewDirection | Faces the view. Moves in eight directions relative to it, and turns in place when the view turns away at rest. |
| Velocity direction | Storm.RotationMode.VelocityDirection | Turns toward its movement and plays forward. Turn in place is off, and free look turns the head toward the movement input. |
Set the mode. Call Set Desired Rotation Mode with one of the tags, and set Default Rotation Mode for a character's starting mode. Call it on the owning client, which predicts it, or on the server, for AI or to impose a mode on a remote player.
Tune the turn.
A switch to view direction, or to aiming, while moving turns the capsule onto the view at twice that rate rather than snapping. At rest the capsule snaps and the body turns after it in place.
AI. Path following moves the character by a requested velocity, not input. The native movement reads either, so AI shows its starts, stops and turns on every client. An AI controller's focus does not turn a character under velocity direction.
Turning starts. Under velocity direction, setting off toward input to the side or behind plays a Turning start from the clip set's band, if it has one. The body follows the clip's own turn while the capsule turns underneath.
| Order | Node | Notes |
|---|---|---|
| 1 | Linked Anim Layer Locomotion | The base pose. |
| 2 | Storm Lean | Adds the clip set's acceleration lean before inertialisation. |
| 3 | Inertialization | Blends the Locomotion node's state changes and layer relinks. |
| 4 | Storm Action (Full Body) | Full-body actions, mantles, staggers and knockbacks, and transitions between locomotion tags. Locks the root. |
| 5 | Save Cached Pose | The pose beneath the overlay. Use it twice, as below. |
| 6 | Linked Anim Layer Overlay | Fed from the cached pose. |
| 7 | Storm Action (Regional) | Regional actions, such as an overlay's enter and exit, from spine_01 down. |
| 8 | Layered blend per bone | Base pose: the regional action. Blend pose 0: the cached pose. Branch filter spine_01 at depth 0, weight ArmOwnershipWeight, curves from the base pose. A full-body action takes the arms from the overlay here. |
| 9 | Inertialization | Blends overlay relinks. |
| 10 | Storm Overlay Grip | Records the overlay's grip before anything moves the arms. |
| 11 | Storm Reaction | Additive and upper-body hit reactions, above the overlay. |
| 12 | Local To Component, Storm Turn In Place, Storm Look, Component To Local | The visual root yaw, then the chest and head turned to the aim. |
| 13 | Linked Anim Layer LimbIK | Feet and hands, last. Then the Output Pose. |
Optional nodes. In row 12, Storm Turn In Place is needed only for turn in place, and a host without turn clips leaves it out. Storm Look is needed for the chest and head to follow the aim. A host without row 12 passes the reaction node's pose straight to the LimbIK layer.
Bone names. The nodes' bone defaults use the UE5 mannequin names, such as root, pelvis, spine_01, spine_03, thigh_l, foot_l and hand_l. Set the node references for a compatible rig.
The built-in host's foot sampling and turn plants also require ankle bones named foot_l and foot_r. Changing node references alone does not remap those samples, so another ankle naming scheme needs host sampling of your own.
The full-body action channel needs no montage slot: the host plays no montages.
A UStormLocomotionCatalogue maps locomotion tags to entries. Each entry names a movement System and a Clips clip set, or a Custom Layer: an Animation Blueprint that implements Locomotion itself.
A cardinal clip set, UStormCardinalClipSet, holds speed Tiers. Each tier has the ground Speed its cycles were authored for, four cycles, and optional starts, footed stops and pivots in forward, right, backward, left order. An octant clip set adds Diagonals for each tier. Every clip set can also carry:
Curves and markers. Author every clip in place.
DA_HumanoidLocomotion and CS_Humanoid_Stand, under /SGF/Characters/Animation, are a working catalogue and clip set to compare against.
Overlays. An overlay catalogue entry names:
Equipment or ability code sets Overlay Tag and Priority on an authority-owned UStormNativeOverlayComponent and calls SetOverlayEnabled. The highest priority wins; among equal priorities, the earliest request.
ClaimOverlay on the animation component takes the Overlay slot on that copy for an action's layer, without changing the overlay tag, until ReleaseOverlayClaim. The highest claim is linked; among equal priorities, the newest.
Actions. StartAction plays an action spec's clip on this copy, on the full-body or regional channel, and returns a handle for StopAction. A request interrupts the channel's action only at a higher priority.
StartReplicatedAction, called on the owning client or the server, plays it at once and has the server record it, so observers and late joiners join it at its age. A full-body action that owns the arms takes them from the overlay over Arm Ownership Blend Time.
Regional ownership. A regional action with explicit Owned Regions changes only those regions within the node's Mask Root subtree.
Additive recoil. A regional action may use a local-space or mesh-space additive sequence for recoil over the live aimed overlay. Author its reference pose deliberately, such as frame zero of the same fire clip, so it adds only the recoil and not another carry or aim pose.
Animation-driven motion. StartAnimationMotion moves the capsule along a clip's root motion through a Storm root motion source, while the pose plays with its root locked. The owner predicts it, and the server and observers follow. StartServerAnimationMotion starts an authoritative motion for a remote player too. Authority cancellation reaches the owner, and a replacement uses its current server age.
Authorise owner prediction. Configure Owner Action Templates (OwnerActionTemplates) and Owner Motion Templates (OwnerMotionTemplates) on the authority, keyed by the request's Action Tag.
After possession, the first StartAnimationMotion can be refused until the owner's prediction namespace arrives; retry once it is ready. Starts, stops and acknowledgements belong to that possession, so a new owner can safely reuse its local counter.
A weapon is an overlay that aims with its own layer, plus a held item whose grip the support hand holds.
Aimed overlays. An entry's Aim Mode says what aims the spine while the entry is presented:
Drive an Aim Offset with no code. Give the overlay layer's Animation Blueprint the parent class Storm Overlay Layer Instance (UStormOverlayLayerInstance). Its Aim Yaw and Aim Pitch copy the host's aim each update, in degrees from the visual facing after turn in place. Feed them to the Aim Offset's axes.
Author the Aim Offset's poses as mesh-space additives (Additive Anim Type Mesh Space) against a reference frame of a clip with no curves, since an additive's curves are its own minus the reference's.
Storm Layering. Place this node in an overlay layer, with the layer's input pose as Base and the overlay's own pose, such as its carry with its Aim Offset, as Overlay. It blends by region: Head, Spine, LeftArm, RightArm, Hands, Pelvis and Legs. Each region has three settings:
Layering curves. A curve on the overlay's clips sets a value while the clip plays: StormLayering_<Region> for the weight, with _Add or _MeshSpace for the other two, such as StormLayering_RightArm_MeshSpace. A region with no curve takes the node's setting. The defaults give Head, Pelvis and Legs a weight of 0 and the other regions 1, with no additive and local-space arms.
Layering regions. Each region starts at its bone under Bones and holds everything below it up to another region's bone. By default these are neck_01, spine_01, each clavicle, each hand, pelvis and each thigh, with Hand IK Bone, ik_hand_root, in Hands. The overlay's StormHandIK curves pass through to the host's hand IK; its other curves stay the base's.
UStormHitReactionComponent resolves hit requests to reactions registered from its Default Reactions set and at runtime with RegisterReaction. Call ReceiveHit on the server.
Author a reaction set. A Storm Hit Reaction Set data asset lists reactions. Assign it as the hit reaction component's Default Reactions, or add reactions at runtime with RegisterReaction. For each reaction:
Choose its channel.
A clip of the wrong kind for its channel is refused when the reaction is registered, and so is a channel the host lacks.
The native Humanoid carries two adapter components. Each binds at BeginPlay to a matching component on the same character, and sends nothing until its Reactions map is set:
StormWeapons raises no hit events. Call UStormWeaponsAnimationAdapter::SendShotReactions on the server with the result of each hitscan shot the game commits and a weapon reaction map. It returns how many requests it sent.
UStormRagdollComponent collapses a character into physics, gets it up again through a get-up clip, and lets it die. Requests are made on the server, and every copy follows the server's record and fires the same events.
While the body is down, the overlay, its grips, the look and limb IK stand aside, and the capsule keeps the facing the body gives it. They return when the get-up ends. A get-up holds the character until its clip ends.
Mantling is off on both of SGF's Humanoids, BP_Humanoid and BP_StormNativeHumanoid, and SGF ships no mantle clips. Turn it on and author the climbs as below.
Place the contacts. Left Hand, Right Hand and Lead Foot each take:
Choose the lead foot with Left Lead Foot, and turn Align Lead Foot to Surface on to turn the planted foot to the top. The server samples each contact against the accepted top. The hands reach the Storm Hand Reach node as action targets and the lead foot reaches Storm Foot Placement as a foot lock, with no wiring.
Follow the clip's own travel. A profile's optional Trajectory is a Curve Vector of the climb's root travel in cm, keyed by the clip's normalised phase: X forward, Y zero, Z up. With it, the capsule follows that path instead of Storm's default lift. The climb clip still plays in place.
Native movement can carry a character along a route the game builds, such as through a window or up a wall. On the server, call one of these on UStormNativeCharacterMovement:
Each returns a refusal, or none with a motion id.
Give a route its animation. Pass a presentation tag to the start, and add a Traversal Clip Set with that tag to the character's Storm Native Animation Component, the same on every copy. The native provider passes its rule's kind for you.
Clip. An in-place clip with no root motion, played on the full-body channel while the character follows the route:
Either way the clip follows how far along the route the character is, so a climb held at rate 0 holds its pose.
Getting on and off, as for a ladder. Leave Clip empty and fill these instead:
Each clip covers as much of the route as its root travels. The cycle clips are stretched slightly, all alike, so a whole number of them fill the route between the get-on and the get-off. Each join then lands where the clips were authored to meet, and the exit is the one that follows the last cycle clip played. A cycle clip whose root does not move shares Cycle Distance with the others.
Storm Foot Placement places each foot on the floor under it.
Stairs. Because the feet trace on Visibility, stairs that carry an invisible ramp for the capsule still place the feet on their treads. Max Pelvis Drop, 40 cm by default, and the host's LimbIK Foot Trace Depth, 60 cm, are deep enough for a planted rear foot on such stairs.
Going up static stairs, the host also keeps each foot's sole clear of the treads. It does this only while the character stands on a level, static floor, grounded and not crouched, mantling or playing root motion. The host needs exactly one Storm Foot Placement node and no replacement LimbIK layer. When it cannot keep the clearance it wants, it logs a warning once.
Storm Hand Reach places each hand, in order of precedence:
Held-item grips. SetHeldItemGrip on the animation component gives this copy a support-hand grip on the item it holds, and ClearHeldItemGrip removes it. Each machine sets its own, as each builds its own presentation of the item; a dedicated server applies none. A FStormHeldItemGrip names:
The StormItemsAnimationAdapter module sets these from a held item's presentation; see StormItemsAnimationAdapter.
Grip curves. A StormHandIK_L or StormHandIK_R curve scales that hand's grip, whatever its source, from 0 to 1. Put it on the overlay's clips, or on a clip played in the regional channel, such as a reload that takes the hand off the gun and back. A hand whose pose has no such curve holds at full weight. Storm Layering passes the overlay's curves through, and holds the hands' IK bones, ik_hand_root and below, in its Hands region.
A replacement LimbIK layer reads the same inputs through GetLimbIKInputs and needs no Storm code change. While one is linked, the host does not trace for it.
Aim inputs. Every copy aims with one view.
GetViewRotation on the animation component returns this view on the game thread. The host publishes it each update as FStormAimInputs: the view in world space, its yaw from the visual facing after turn in place, its pitch, and where it came from. Read them with GetAimInputs, which is Blueprint thread-safe, or FindAimInputs from any instance on the mesh, including an overlay or LimbIK layer. Neither allocates.
Storm Turn In Place applies the host's visual root yaw to Root Bone. The Storm Locomotion node plays the clip set's turn clips while the character turns in place.
Storm Look turns its Chain toward the aim inputs' yaw and pitch, which it reads from the visual facing after turn in place. Each bone of the chain takes its Yaw Share and Pitch Share of the look, within its own Max Yaw and Max Pitch; what one bone cannot take passes to the next. The defaults, for the UE5 mannequin, give the whole look to spine_03 up to 40 degrees of yaw and 35 of pitch, then up to 30 and 20 more to neck_01 and 40 and 30 more to head.
The look follows the character's own animation time, so time dilation slows it.
Look requests. By default a character looks where it aims. RequestLook on the animation component asks it to look at a FStormLookRequest instead:
Aim points. SetAimPoint on the animation component aims a copy at a world point instead of along its view. The aim's yaw and pitch turn toward the point from the character's eyes, and so do an overlay's Aim Offset and a look that follows the aim.
Use it for a camera placed off the eyes, such as a shoulder view, so the weapon meets what the camera's centre shows. It is per copy and never replicated: set it each frame from the camera that knows the point, and call ClearAimPoint when the view returns to the eyes.
GetLookTarget returns the winning request and its world point on the game thread. The aim inputs carry it as Look Target, Look Yaw and Look Pitch; an overlay's Aim Offset keeps reading the aim's own yaw and pitch.
Suppression. Three things fade the look out over Look Blend Time and give it back after:
The aim inputs carry the result as Spine Look Weight and Head Look Weight. Each chain bone's Head setting says which weight it takes.
Every clip is authored for the character's skeleton and in place unless the table says otherwise. The SGF example column names a shipped asset under /SGF/Characters/Animation, or under /SGF/Characters/Mannequins for the template mannequin's own clips. A dash means SGF ships no clip of that kind.
| What | Where it goes | Requires | SGF example |
|---|---|---|---|
| Cycles | A clip set tier's four cycles, and Diagonals in an octant set | LeftFootContact and RightFootContact curves, 0 in swing to 1 planted, renamed by the host's contact curve settings | MF_Unarmed_Jog_Fwd, in the clip set CS_Humanoid_Stand |
| Starts | A tier's starts, forward, right, backward, left | Authored with travel: a StormDistance curve of the distance covered | A_StormStart_Humanoid_Jog_Fwd |
| Stops | A tier's footed stops, left foot and optional right foot | A StormDistance curve of the distance left | A_StormStop_Humanoid_Jog_Fwd, A_StormStop_Humanoid_Jog_Fwd_RightFoot |
| Pivots | A tier's pivots | A StormDistance curve | A_StormPivot_Humanoid_Jog_Fwd |
| Turning starts and reversals | A tier's Turning lists, each with its Angle | In place, with a StormDistance curve and a StormTurn curve: the degrees the root has turned so far, positive to the right | — |
| Idle | The clip set's Idle | A loop | MM_Idle |
| Turns in place | Turns: left and right 90 and 180 degrees | The host's Storm Turn In Place node; optionally a StormTurn curve and contact curves | — |
| Rise, fall, land | Rise, held on its last frame; Fall, a loop; Land | Land Min Air Seconds before a landing plays | MM_Jump, MM_Fall_Loop, A_Humanoid_Land |
| Lean | Lean, single-pose additives | Local-space additive, one frame | — |
| Locomotion transitions | The catalogue's Transitions | A StormSwitch sync marker; starts on the left foot, with an optional right-foot variant | — |
| Overlay pose | An overlay layer | Its layer's own masking, or Storm Layering's StormLayering_* curves | — |
| Weapon carry | A weapon overlay layer | StormLayering_* curves with mesh-space arms; the hand IK bones for a clip IK grip | — |
| Aim Offset | A weapon overlay layer | Mesh-space additive poses against a reference with no curves | — |
| Overlay enter and exit | An overlay entry's Enter Transition and Exit Transition | Non-additive, with exactly one StormSwitch marker | — |
| Regional actions | StartAction on the regional channel, such as a reload or recoil | Non-additive owned poses or additive recoil; StormHandIK_L or StormHandIK_R where a hand lets go | — |
| Full-body actions | StartAction on the full-body channel | Non-additive | — |
| Animation-driven motion | StartAnimationMotion | Root motion, which moves the capsule | — |
| Flinches | A reaction on the Additive channel | Additive | — |
| Upper-body hits | A reaction on the Upper Body channel | Non-additive | — |
| Staggers and knockbacks | A reaction on the Full Body channel, with Land and Get Up for a launch | Non-additive and in place, or root motion for Animation Driven | — |
| Mantles | A movement Mantle Profile's Sequence | In place, covering the profile's Duration | — |
| Ragdoll get-ups | The ragdoll's Get Up Face Up and Get Up Face Down, or Select Get Up | Root motion enabled; the first frame lies as the body does, face up with the feet forward or face down with the head forward | — |
Curves any clip may carry: StormLookBlock fades the look as it rises, and StormHandIK_L and StormHandIK_R scale each hand's grip. Storm writes StormFootContact_L, StormFootContact_R, StormFootLock_L and StormFootLock_R into the pose itself, from the contact curves; do not author them.
In a Development build or the editor, enter ShowDebug Storm.State, ShowDebug Storm.Shapes, ShowDebug Storm.Traces or ShowDebug Storm.Curves in the console. Each draws for the HUD's debug target. Page Up and Page Down cycle it, so you can inspect another player's copy as well as your own. See the console reference for what each shows and for the Storm console variables. ShowDebug Reset turns them all off.
Profile with Unreal Insights. With the cpu trace channel on, Storm's work appears under Storm. scopes:
The Storm.Anim.Change.* scopes run only when something has changed, such as a stance, a locomotion request, an overlay or a linked layer. On a steady frame none of them appears, so a count that keeps climbing with nothing changing is a fault worth reporting.