Storm Game Framework 2.0.0
User guide
Loading...
Searching...
No Matches
Native animation and the native Humanoid

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.

Back to the module index.

On this page

What SGF ships

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:

  • Cycles: the mannequin's MF_Unarmed_Walk_* and MF_Unarmed_Jog_* clips, in four cardinal and four diagonal directions, with LeftFootContact and RightFootContact curves.
  • Starts, stops and pivots: 32 clips named A_StormStart_Humanoid_*, A_StormStop_Humanoid_* and A_StormPivot_Humanoid_*, for Walk and Jog in the Fwd, Right, Bwd and Left directions. Each stop has a left-foot clip and a _RightFoot variant. They are built from the idle and the cycles, and carry StormDistance curves.
  • Idle, rise and fall: the mannequin's MM_Idle, MM_Jump and MM_Fall_Loop.
  • Land: A_Humanoid_Land, an in-place landing.

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.

Start from SGF's framework

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:

  1. Make a child of BP_StormNativeHumanoid and set its mesh. The mesh's skeleton needs the UE5 mannequin's bone names, as the host's nodes expect them. SGF's own Humanoid uses the template mannequin's skeleton, SK_Mannequin.
  2. Author your clips and the locomotion catalogue, as below, and set the animation component's Catalogue and Default Locomotion Tag.
  3. Tune movement on its UStormNativeCharacterMovement to the speeds your cycles were authored for. See Set up the character.
  4. Add reactions, mantles and first person as you need them:

    • a Default Reactions set on the hit reaction component;
    • Mantle Profiles with Enable Mantling on the movement component;
    • a First Person Profile on the character.

    See Hit reactions and Mantle.

  5. Give a weapon its overlay layer. Make a child Animation Blueprint of ABP_StormOverlayLayer on your skeleton. In its Asset Override panel, set the hold pose on the Sequence Player and your Aim Offset on the Aim Offset player. Name the child as the Layer of the weapon's overlay catalogue entry, as in Aim and hold a weapon.
  6. Bind input in your character or controller: the framework character binds none. Movement takes AddMovementInput, Jump, Crouch and the movement component's Set Desired Gait. AStormNativeHumanoidController switches views with ToggleHumanoidView.

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.

Set up the character

Use the native Humanoid. Make a child of SGF's BP_StormNativeHumanoid, above, or a Blueprint derived from AStormNativeHumanoid. It already carries:

  • UStormNativeCharacterMovement and UStormNativeAnimationComponent;
  • the hit reaction component;
  • the combat and body adapters.

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:

AMyCharacter::AMyCharacter(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer.SetDefaultSubobjectClass<UStormNativeCharacterMovement>(
ACharacter::CharacterMovementComponentName))
{
StormAnimation = CreateDefaultSubobject<UStormNativeAnimationComponent>(TEXT("StormAnimation"));
}

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:

  • Set Walk Speed, Max Walk Speed for run, Sprint Speed and Max Walk Speed Crouched in cm/s, and Sprint Half Angle.
  • Bind input to Set Desired Gait and read Get Resolved Gait. Sprint resolves only with forward input while grounded and standing.
  • Run Stop Distance, when positive, brakes a run to rest over that many centimetres. SetRunStopDistance changes it at runtime from the owner or the server.

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:

  • Max Gait caps the gait. A faster request moves at the cap, and resumes when the restriction lifts, so the player's held sprint carries on.
  • Max Speed optionally caps the speed in cm/s, below the gait's own.
  • Block Jump, Block Mantle and Block Crouch refuse those actions. A mantle already under way finishes, and a crouched character may still stand.

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.

Rotation modes

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.

  • Set Desired Aiming faces the view while held, whatever the desired mode.
  • Get Rotation Mode reads the mode the character presents.
  • Under velocity direction the movement turns the capsule itself and clears the character's Use Controller Rotation Yaw. It restores the character's own setting when it faces the view again, so do not set that flag yourself meanwhile.

Tune the turn.

  • Walk Turn Half Life, Run Turn Half Life and Sprint Turn Half Life set how quickly the capsule closes on its movement direction, 0.2 s by default.
  • Velocity Direction Max Yaw Rate caps it, 800 deg/s by default.
  • Turn To Velocity In Air keeps turning while airborne. When it is off, the yaw holds until landing.

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.

  • Add starts to a band's Turning list by Angle, positive to the right, such as 45, 90, 135 and 180 degrees each way.
  • A start at least Turning Start Min Angle (30 degrees) from the facing plays the nearest one within Turning Max Off Angle (45 degrees).
  • Reversals are optional turns at speed for a reversal. Without one, a reversal turns on the cycle.
  • The node's Turn Hand Off Fraction, Turn Max Rate and Turn Smoothing Half Life tune how the body follows the clip and when the cycle takes over.

Build the host Animation Blueprint

  1. Create an Animation Layer Interface with three layers:
    • Locomotion, in the layer group StormLocomotion, with no input pose;
    • Overlay, in the group StormOverlay, with one input pose;
    • LimbIK, in the group StormLimbIK, with one input pose.
  2. Create an Animation Blueprint for your skeleton with the parent class UStormNativeAnimInstance, and implement the interface in its Class Settings.
  3. Build the main AnimGraph in this order, from the bottom up:
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.
  1. Implement the layers in the same Animation Blueprint:
    • Locomotion: a Storm Locomotion node into the layer's output.
    • Overlay: the input pose straight to the output. Overlay layers linked from the overlay catalogue replace it.
    • LimbIK: the input pose, Local To Component, Storm Foot Placement, Storm Hand Reach, Component To Local, then the output.

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.

Author the locomotion catalogue

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.

  • Stances lists every movement stance the character can enter, such as Storm.Stance.Crouch, with the tag segment that names it and a Default Entry.
  • Transitions lists authored clips from one presented tag to another, starting on the left foot, with an optional right-foot variant.

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:

  • Idle, an in-place idle loop;
  • Turns: left and right 90 and 180 degree turns in place;
  • Rise, Fall and Land: an in-place takeoff held on its last frame, a fall loop, and a landing played on touchdown after at least Land Min Air Seconds in the air. A fall that did not start with a rise, such as a step off a kerb, keeps the ground pose until it has lasted Fall Pose Min Air Seconds (0.2 s by default), so short drops do not flash the fall pose;
  • Lean: single-pose, local-space additive lean poses for the Storm Lean node;
  • Cycle Play Rate Clamp, the playback rate limits when matching ground speed.

Curves and markers. Author every clip in place.

  • Give the cycles LeftFootContact and RightFootContact curves, from zero in swing to one when planted. The host's Left Foot Contact Curve and Right Foot Contact Curve rename them.
  • A start, stop or pivot authored with travel carries a StormDistance curve of the distance it covers, so the Storm Locomotion node plays it by the capsule's travel.
  • A locomotion transition or an overlay transition marks its switch with a StormSwitch sync marker.

DA_HumanoidLocomotion and CS_Humanoid_Stand, under /SGF/Characters/Animation, are a working catalogue and clip set to compare against.

Overlays, actions and motion

Overlays. An overlay catalogue entry names:

  • a Layer that implements Overlay;
  • optional Enter Transition and Exit Transition clips, played in the regional channel;
  • an optional Grip that holds one hand relative to the other.

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.

  • The standard mannequin region roots are spine_01, neck_01/head, clavicle_l, clavicle_r and hand_l/hand_r. Hands are a separate region from arms.
  • With no Owned Regions, the action changes the whole Mask Root subtree, as overlay transitions do.
  • Full-body actions always replace the whole body.

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.

  • An additive action's curves are deltas, not absolute values, so they do not replace the overlay's look and grip curves.
  • Non-additive regional actions replace their owned bones, and may author StormLookBlock and hand IK curves.
  • Full-body actions need non-additive sequences.
  • An arm or hand fire action should leave Spine and Head unowned, so the overlay keeps its aim and the look keeps the head.

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.

  • An owner request must match its registered clip, rate, priority, blends, regions and other effective settings. Missing or mismatched templates are refused.
  • For motion, the destination may vary within the template's alignment permission and budgets. Motion owns the channel, loop and clock settings.
  • These maps do not replicate, and changing a client's copy grants no authority. Gameplay code controls which templates the character has.
  • Server-initiated calls need no owner template.

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.

Aim and hold a weapon

A weapon is an overlay that aims with its own layer, plus a held item whose grip the support hand holds.

  1. Author the carry. A clip of the weapon held, in place.
    • Give it StormLayering_Spine, StormLayering_LeftArm, StormLayering_RightArm and StormLayering_Hands curves at 1, and StormLayering_LeftArm_MeshSpace and StormLayering_RightArm_MeshSpace at 1, so the weapon stays on the aim while the body under it moves.
    • For a grip from the clip's IK bones, key ik_hand_root, ik_hand_gun, ik_hand_l and ik_hand_r as UE5 mannequin weapon clips do: ik_hand_gun on the gun hand, and the other hand's IK bone where it holds the weapon.
  2. Author the Aim Offset. Yaw on the horizontal axis and pitch on the vertical, in degrees. Its poses are mesh-space additives (Additive Anim Type Mesh Space) against a reference frame with no curves. Turn the upper spine, so the arms and weapon pitch with the chest.
  3. Make the overlay layer. Make a child of SGF's ABP_StormOverlayLayer and set its two players in its Asset Override panel, as above. Or make your own: an Animation Blueprint for the skeleton with the parent class Storm Overlay Layer Instance. Add an Animation Layer named Overlay, in the group StormOverlay, with one input pose, and no other host layer. In it:
    • the carry in a Sequence Player, or a Sequence Evaluator for a single pose, into the Aim Offset player's Base Pose;
    • Aim Yaw into the Aim Offset's horizontal axis and Aim Pitch into its vertical axis;
    • the layer's Input Pose into a Storm Layering node's Base, and the Aim Offset into its Overlay;
    • the Storm Layering node into the layer's output.
  4. Add the catalogue entry. In the character's overlay catalogue, give the weapon's overlay tag an entry with the layer as Layer and Aim Mode Layer. Add Enter Transition and Exit Transition clips for the draw and the holster.
  5. Request the overlay on the authority with a UStormNativeOverlayComponent, or let the items adapter do it in step 6.
  6. Hold the weapon. Present it as a held item on the holding hand. Then give the support hand its grip, a socket on the weapon or the carry's IK bones. Use a Storm Items Animation Profile on a UStormItemsAnimationComponent, or call SetHeldItemGrip yourself. See held-item grips.
  7. Let go where a clip needs the hand. Give a reload, an inspect or the draw and holster a StormHandIK_L or StormHandIK_R curve that falls to 0 while that hand is off the weapon.

Aimed overlays. An entry's Aim Mode says what aims the spine while the entry is presented:

  • Host, the default. The Storm Look node turns the chest and head to the aim, as for an unarmed character.
  • Layer. The overlay's layer aims the spine and arms itself, usually with an Aim Offset over its carry pose. The Storm Look node then turns only its head bones, and only by how far a look request points away from the aim, so the aim is never applied twice. Layer mode holds while the entry's own layer is linked; a ClaimOverlay layer in the slot hands the aim back to the host.

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:

  • Weight, how much the overlay replaces the pose beneath, from 0 to 1.
  • Additive, how much of the overlay's difference from the reference pose is added to the pose beneath instead.
  • Mesh Space, for the arms: how much the arm keeps the overlay's rotation in component space rather than following the spine beneath. An aimed weapon needs 1, so it stays on the aim while the body under it walks and leans.

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.

Hit reactions and adapters

UStormHitReactionComponent resolves hit requests to reactions registered from its Default Reactions set and at runtime with RegisterReaction. Call ReceiveHit on the server.

  • An additive or upper-body reaction plays on the host's Storm Reaction node, there and on every client.
  • A full-body reaction, such as a stagger or a knockback, plays from the server's record as a full-body action on every copy.

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:

  1. Name it. Give it a Reaction Tag, such as Storm.Reaction.Gunshot. A request for a child tag, such as Storm.Reaction.Gunshot.Shotgun, falls back to the nearest registered parent. Among registrations for one tag, the highest Priority wins, then the newest.
  2. Choose its channel.

    • Additive plays over the overlay for a flinch, and takes additive clips of any additive type.
    • Upper Body replaces the pose from spine_01 up, over the overlay, and takes non-additive clips.
    • Full Body plays as a full-body action below the overlay for a stagger or knockback, and takes non-additive, in-place clips.

    A clip of the wrong kind for its channel is refused when the reaction is registered, and so is a channel the host lacks.

  3. Give it clips by side. Each Variant holds clips for the side the hit came from: Front, Back, Left, Right and optionally the four diagonals.
    • Front alone serves every side. A missing diagonal uses its front or back side, then its left or right side.
    • A variant plays for hits of at least its Min Strength, the strongest it reaches.
    • Escalations send a hit of at least their Min Strength to another reaction tag instead, such as a flinch escalating to a stagger.
  4. Set who plays it. Cosmetic reactions play on each copy from the replicated hit. Server Started reactions start on the server and replicate with the server time, so observers and late joiners join them at their age. A full-body reaction always starts on the server, whatever this says.
  5. Set how it moves the character, full-body only.
    • Launch throws the character along the hit with Knockback's Launch Velocity, plays the side's clip looping in flight, then Land on touchdown and Get Up at Get Up Play Rate.
    • Animation Driven moves the capsule by the clip's root motion, so author that clip with root motion.
  6. Repeat, blends and rate. Repeat says what a new hit does while the channel plays: Restart, Blend, or Hold Until Stronger. Set Blend In Time, Blend Out Time and Play Rate.
  7. Optionally add an effect. An Effect Overlay layer, such as burning or frozen, claims the Overlay slot for Effect Duration seconds on each copy that presents the reaction. It needs a positive duration and is not offered with animation-driven motion.

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:

  • Combat Reactions sends a reaction to the character hit for each of this character's resolved StormCombat resolutions.
  • Body Reactions turns region changes of this character's StormBody into its own server-started reactions.

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.

Ragdoll, get-ups and death

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.

  1. Add the component to a character with Storm's native movement and host. The mesh's physics asset needs bodies for Required Bodies: pelvis and spine_03 by default.
  2. Choose the physics asset it falls with. Ragdoll Physics Asset replaces the mesh's own while the body is down; leave it empty to use the mesh's.
    • A ragdoll asset should let a body lying on the floor come to rest.
    • While down the ragdoll owns every joint's drives, with no spring and Joint Drive Damping, so drives authored for physical animation cannot throw the body. Clear Own Joint Drives only for an asset made to ragdoll with its own drives.
  3. Give it get-ups. Set Get Up Face Up and Get Up Face Down, or override Select Get Up. The server asks it with whether the body lies face up, and it may return none to keep the body down.
    • Author each get-up for the mesh's skeleton, with root motion enabled, starting from the body as it lies in its first frame: face up with the feet forward, face down with the head forward.
    • Its first frame decides where the capsule stands and which way it faces. Its root motion moves the capsule as it rises.
    • A get-up without root motion is refused, and the body stays down.
  4. Start and stop it, on the server. Each call returns an EStormRagdollResult. Only Accepted changes anything; the others say why.
    • StartRagdoll collapses the character, interrupting a get-up. Follow it with AddRagdollImpulse to push the body, for a hit.
    • StopRagdoll(Recover) gets up through the chosen get-up. It returns Declined when the choice is none, and Blocked when the standing capsule would not fit, lifted Recovery Clearance off the floor.
    • StopRagdoll(LeavePhysics) stands at once.
  5. Let it die. Die collapses a standing or falling character, cuts a get-up short, or keeps a body that is down there. From then on every start and stop returns Dead, and the body is a corpse: it settles, can be pushed, and never gets up.
    • Dormant Corpses makes a settled corpse's actor dormant on the server, after Corpse Dormancy Delay, until something pushes it. A dormant corpse's relevance is not checked either, so clients keep it even out of range.
    • Destroy the character when the game is done with the corpse.
  6. Choose who drives the body. Driver is Server by default: the server simulates, and every copy follows its body. Owner lets a player's own client drive its body, which the server accepts only within Max Owner Deviation of its own.
  7. Choose what a get-up does with no controller, such as a player who has left. No Controller: Get Up plays it anyway; Stand At Once stands the character where the body lies, as Unavailable.
  8. Read its state.
    • Phase: Standing, Ragdolling, Settled or Recovering. Is Down covers the two down phases; Is Recovering and Is Dead read the record.
    • Events: On Ragdoll Started, On Ragdoll Physics Ended, On Ragdoll Settled, On Recovery Started, On Recovery Ended (Completed, Interrupted, Airborne or Unavailable) and On Died. Every copy fires them, a late joiner included.

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.

Mantle

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.

  1. Turn it on. On UStormNativeCharacterMovement, set Enable Mantling. Set Min Mantle Height and Max Mantle Height above the standing capsule's feet, and Mantle Reach ahead of the capsule, in cm. Bind the owner's input to Request Mantle; the server validates the ledge before the climb starts. Is Mantling reports an accepted mantle.
  2. Add a profile per height band. In Mantle Profiles, give each climb a Min Height, Max Height, Duration and Sequence.
    • The server takes the first band that contains the measured ledge height, so order overlapping bands by priority.
    • A height between bands is refused.
    • Keep the same profiles on every peer.
    • With no profiles at all, an accepted mantle still moves the capsule over Mantle Duration, 0.75 s by default, but has no climb clip to play.
  3. Author each climb clip for the mesh's skeleton, in place, with no root motion: Storm's swept movement carries the capsule. The clip covers the profile's Duration, and plays as a full-body action that owns the spine, arms, hands and head.
  4. Place the contacts. Left Hand, Right Hand and Lead Foot each take:

    • an Offset in cm from the ledge's lip: X into the ledge, Y to the climber's right and Z above the top;
    • a Window, the normalised start and end of the grip or plant within the climb. A contact with no window stays inactive.

    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.

  • Use linear, finite curves that only increase, start at zero, finish with positive X and Z, and still travel forward after reaching full height.
  • A profile with a trajectory needs an upright ledge face and a level top.
  • Clearance Bones and Clearance Margin Cm, 3 cm by default, keep the listed bones' centres outside the ledge face while they are below its top. They do not test the mesh's surface. The defaults are mannequin bones; set them for your rig.
  • Invalid trajectory data, a clip on another skeleton, or a sloped ledge refuses the mantle.

Move along a route

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:

  • StartTraversalCorridor with the route's capsule centres, starting at the capsule. The character settles onto the floor at the route's end.
  • StartTraversalWalkOff to follow the route and then launch off its end.
  • StartTraversalAirborne to launch at once.

Each returns a refusal, or none with a motion id.

  • Steer it with that id: SetTraversalRate for a climb started with rate control, SetTraversalFacing, and CancelTraversalMotion.
  • Its result arrives once through OnTraversalMotionCompleted: Completed, Cancelled, ReturnedToEntry, Blocked, MissedLanding, TimedOut or Interrupted.
  • On every copy, owner and observers follow the motion by themselves, and GetTraversalMotion describes it, including each copy's segment.
  • While traversing, the character cannot jump, crouch or mantle.

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:

    • Span Route spreads the whole clip over the route, as for a window;
    • Cycle By Distance loops it once per Cycle Distance, as for a climb's hand-over-hand.

    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:

    • Enter: played over the start of the route.
    • Cycle: clips played in order and repeated, such as the left and right halves of a climb. At most eight.
    • Exits: the clip played over the end of the route. The first follows the first cycle clip, the second the second, and so on. A single exit follows any.

    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.

  • Launch. A take-off clip played once when a launch or a walk-off leaves the ground.
  • Fall and Land. Optional. A fall loop played in flight once the take-off has finished, or from take-off when there is none. A landing played once on touchdown. Leave them empty and the flight uses locomotion's own rise, fall and land.
  • Contacts. A hand or foot held to a surface during part of the route, as the mantle's contacts are. Choose:
    • the limb;
    • the route point to place it from, where −1 is the last;
    • an offset from that point's foot: X along the route, Y to the right, Z up;
    • whether to find a wall ahead or a ledge below;
    • the window, as fractions of the route.

Feet, hands and turning

Storm Foot Placement places each foot on the floor under it.

  • It tilts the foot within Max Tilt, and drops the pelvis for a low foot within Max Pelvis Drop.
  • It holds a planted foot where the clip's lock curve asks.
  • The host traces the floor on LimbIK Foot Trace Channel, Visibility by default, only while the character is within LimbIK Trace Distance of a local view and has rendered recently. Set bLimbIKWhenUnrendered on the host for feet that matter unseen.

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:

  1. on an action target, such as a mantle grip;
  2. on the held item's grip;
  3. on the overlay's grip;
  4. otherwise it leaves the hand as animated.

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:

  • Hand, the hand that reaches. The other hand holds the item.
  • Component, the item's attached component. The grip applies only while that component rides on the character's mesh at the holding hand's bone or below it, so an item that is detached, or slung at another bone, releases the hand.
  • Source, where the hand goes. Socket places the hand on Socket on the component, authored as the hand's own transform at the grip. Clip IK Bones places it where the overlay's pose puts ik_hand_l or ik_hand_r relative to ik_hand_gun, carried by the holding hand, as UE5 mannequin weapon clips author their grips. It holds only while an overlay tag's own layer is linked.
  • Weight, from 0 to 1.

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.

  • On the owner and the server, it is the controller's control rotation.
  • On an observer, it is the server's view, replicated as 16-bit yaw and pitch with the time the owner's move set it. It plays back a little behind the latest update, so a late update pauses the view briefly instead of making it jump.
  • Compared with the engine's view, GetBaseAimRotation gives an observer only the body's yaw and a byte of pitch. The replicated view also shows a look away from the body.
  • On a moving base, the yaw travels in the base's space.

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.

  • Turn timing. Give a turn clip a StormTurn curve of the degrees the root has turned so far. The visual yaw follows that curve at the time the clip is shown, so the turn can finish before the clip's settling steps end. Without the curve, the yaw eases over the whole clip.
  • Turn feet. A foot whose turn clip has its contact curve is locked by that curve. A foot without one is held in place for the early part of the turn.

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.

  • Held bones. Held Bones move with the chest but keep the rotation the clip gave them, by how little they Follow. The defaults are upperarm_l and upperarm_r at 0, so the arms hang and swing as animated while the chest turns, instead of turning with it as one block. Raise Follow for a pose whose arms must turn with the chest.
  • Smoothing. Yaw follows on a critically damped spring with Yaw Half Life, and pitch on a damper with Pitch Half Life.
  • World-stable yaw. The body's own turn, including a moving base's, comes straight off the look, so the head keeps pointing where it was while the body turns under it.
  • Sides. Past Hold Side Yaw to one side, a target more than Hold Target Yaw behind on the other side holds the look at Max Yaw while the character has movement input. Without input the look crosses over the front, with Side Switch Half Life.
  • Reset. Initialisation, a teleport, a mesh replacement and the end of a mantle place the look on its target at once.

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:

  • The target. A Target Actor, at its eyes for a pawn or its location otherwise, plus Target Location as an offset. Without an actor, Target Location is a world point.
  • Priority and Reason. The highest Priority wins; among equal priorities, the newest request. Reason names the request for diagnostics.
  • Release. RequestLook returns a handle for ReleaseLook. When the last request is released, the look returns to the aim over its spring.
  • Local requests are cosmetic and stay on the copy that made them.
  • Replicated requests, made on the authority with bReplicated, reach every copy and late joiners. A target actor that is gone or not relevant on a copy is skipped there, so a lower request or free look takes over.

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:

  • A full-body action fades the whole look while it plays, since it replaces the body's pose: a mantle, a stagger, a knockback or a full-body action of your own. One that owns only the Spine or only the Head region fades just that part.
  • A regional action that owns Head fades the neck and head and leaves the chest to the look. A regional action's Spine region stays the overlay's torso and arms, so it does not fade the look.
  • A StormLookBlock curve on any clip playing, from 0 to 1, fades the look as it rises, with no code: for an emote, an interaction or a scripted clip.

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.

Clip and curve checklist

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.

Inspect a character

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:

  • Each character's game-thread frame: Storm.Anim.PreUpdate.
  • Its graph nodes, usually on worker threads: Storm.Node.<Node>.Update and .Evaluate.
  • Its movement: Storm.Movement.Tick.

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.