|
Storm Game Framework 2.0.0
User guide
|
Input, abilities, targeting, teams, combat and coordination.
StormInput maps named game actions to Unreal's Enhanced Input actions and helps a player own the active gameplay mapping context.
Try it. Give an action such as Interact a gameplay tag and connect it to the right Input Action. Test the mapping in gameplay and when handing control to a menu.
C++ entry point. Add StormInput to your consuming module and include Input/StormInputConfig.h. See StormInputConfig.h.
Pass a configured semantic input tag and a UInputAction pointer output.
This opens SGF Input Config assets in the Input Config editor.
Try it. Edit which Input Action each tag names and inspect the keys supplied by the chosen mapping context. To change the keys themselves, open the Enhanced Input mapping context.
StormTargeting finds, filters and ranks candidates for an action.
Try it. Choose what counts as a valid target and which aim point to use. Put two candidates in a test level and check which one is selected and how switching behaves.
C++ entry point. Add StormTargeting to your consuming module and include Targeting/StormTargetingLibrary.h. See StormTargetingLibrary.h.
After requesting a lock, check the character's target-lock component. Include Targeting/StormTargetLockComponent.h for this check.
StormInteraction checks a request against the interactor's rules and passes accepted requests to the target.
Try it. Give one object an interaction your game understands, such as opening a door. Try it within range, farther away and with a blocked line of sight.
C++ entry point. Add StormInteraction to your consuming module and include Interaction/StormInteractionComponent.h. See StormInteractionComponent.h.
This adds the read-only Interaction Diagnostics tool.
Try it. From the SGF menu, open it and select an interactor and target. Check the range and sight result, then use Play In Editor to observe the result of an actual request.
StormAbilities supplies an ability system and reusable sets of abilities to grant to characters.
Try it. Put one ability in a set and grant it to your test character. Trigger it through your game's input or AI and check what changes when the grant is removed.
C++ entry point. Add StormAbilities to your consuming module and include Abilities/StormAbilitySystemComponent.h. See StormAbilitySystemComponent.h.
After actor assembly, check that the character's ability system is ready.
This adds the Abilities tool in Character Designer.
Try it. Choose the ability profile for the character and set the ability sets it receives at spawn. Test on a spawned character that supports abilities to check that the intended grant is present.
StormTeams identifies factions and resolves how one faction regards another.
Try it. Assign a faction to each test actor and set up relationships for the pairs your game checks. Compare friendly and hostile targets to see how your AI or combat rules use the result.
C++ entry point. Add StormTeams to your consuming module and include Teams/StormTeamSubsystem.h. See StormTeamSubsystem.h.
With team relationships loaded, pass two registered faction tags and an ETeamAttitude::Type output.
This opens SGF Team Relations assets in a matrix editor.
Try it. Set how the row faction regards the column faction. Review the reverse direction separately when both sides should agree.
StormCombat detects what a melee attack touches during its active window.
Try it. Set up a trace profile for one attack and decide how your game resolves a contact. Test a hit, a miss and a friendly target to check where the trace runs and what happens on contact.
C++ entry point. Add StormCombat to your consuming module and include Combat/StormCombatTraceComponent.h. See StormCombatTraceComponent.h.
StormTraversal asks the agent's available movement systems whether they can get past an obstacle and helps choose an option.
Try it. SGF's Humanoids ship with mantling off and no mantle clips. On a child of BP_Humanoid, turn on Enable Mantling in its movement component and give it a mantle profile, as in Mantle. Add the components listed under StormTraversalNativeAdapter, then try one reachable ledge. Check how the agent responds to a ledge outside Min Mantle Height and Max Mantle Height.
C++ entry point. Add StormTraversal to your consuming module and include Traversal/Components/StormTraversalComponent.h. See StormTraversalComponent.h.
StormTraversalNativeAdapter lets StormTraversal carry a character with native movement across its opportunities: corridors, climbs, jumps, drops and mantles.
Try it. Give a character with UStormNativeCharacterMovement a Storm Traversal Component and a Storm Native Traversal Provider Component. Give the provider a Storm Native Traversal Profile with a rule for each kind you publish. Then override Check Traversal Permission, which denies by default, to allow the kinds your game permits. Start a crossing through the traversal component's Execute Traversal. A player asks with Request Traversal or Request Nearest Traversal, and steers a climb with Request Climb Rate.
When it refuses. Something in the way of the route, the arc or the landing gives Storm.Traversal.Native.Failure.Blocked. If only another character is in the way, the refusal is StormTraversal's Occupied, which clears once the body moves on. List Blocked and MissedLanding among an AI mission's physical failure causes, so the mission plans round them. Never list Occupied, so the mission waits instead.
C++ entry point. Add StormTraversalNativeAdapter to your consuming module and include StormNativeTraversalProviderComponent.h. See StormNativeTraversalProviderComponent.h.
StormCoordination manages roles, readiness and start or cancellation for an action shared by multiple actors.
Try it. Use it for a sequence such as two characters opening a heavy door. Give each participant a role, start after both are ready and test what happens if one leaves early.
C++ entry point. Add StormCoordination to your consuming module and include Coordination/StormCoordinationSubsystem.h. See StormCoordinationSubsystem.h.