Recipes
Tell the plugin who is on which team
Section titled “Tell the plugin who is on which team”- Open your Player State Blueprint and go to Class Settings → Interfaces.
- Add Sumo Team Provider Interface.
- Implement Get Team ID and return the team number from your own team system. Return 255 for a player without a team.
#include "Interfaces/SumoProviderInterfaces.h"
UCLASS()class AMyPlayerState : public APlayerState, public ISumoTeamProviderInterface{ GENERATED_BODY()
public: virtual uint8 GetTeamID_Implementation() const override { return TeamID; }
UPROPERTY(Replicated) uint8 TeamID = 255;};
// MyPlayerState.cpp: register TeamID in GetLifetimeReplicatedProps// with DOREPLIFETIME(AMyPlayerState, TeamID).Send pings to everyone in a game without teams
Section titled “Send pings to everyone in a game without teams”On the Sumo Comm component, open the advanced properties and enable Treat Unassigned As FFA. Players without a team then send to and receive from every player.
Open a wheel while a key is held
Section titled “Open a wheel while a key is held”- Create a Comm Wheel Definition Data Asset and fill Entries. Assign it to Ping Wheel or Comm Wheel in the Comm Config.
- On the Sumo Comm component, set Ping Wheel Widget Class or Comm Wheel Widget Class.
- Wire the input action:
IA_CommWheel (Started) → Open Wheel (Wheel: Comm Wheel)
IA_CommWheel (Completed) → Commit Wheel (Wheel: Comm Wheel)
The component creates the widget, shows and hides it, and sets the cursor and input mode.
Use one key for quick ping on tap and the ping wheel on hold
Section titled “Use one key for quick ping on tap and the ping wheel on hold”- Map both input actions to the same key.
- Give the quick ping action a Tap trigger and the wheel action a Hold trigger.
- Set Tap Release Time Threshold and Hold Time Threshold to the same value, for example 0.2.
- Leave Is One Shot off on the Hold trigger.
- Wire the events:
IA_Ping (Triggered) → Request Quick Ping
IA_PingWheel (Triggered) → Open Wheel (Wheel: Ping Wheel)
IA_PingWheel (Completed) → Commit Wheel (Wheel: Ping Wheel)
Leave Canceled of the wheel action unwired. It fires when the key is released before the hold time, which is the quick ping case.
Close the wheel when the player dies
Section titled “Close the wheel when the player dies”Your death event → Cancel Wheel (Target: Sumo Comm)
Cancel Wheel closes the open wheel without sending and restores the input mode. It has no effect when no wheel is open.
Make an actor pingable with its own callout
Section titled “Make an actor pingable with its own callout”- Add a tag under
Sumo.PingTargetin Project Settings → Gameplay Tags, or useSumo.PingTarget.Objective. - In the actor’s Details panel, under Actor → Tags, add the full tag name, for example
Sumo.PingTarget.Objective. - Make sure the actor blocks the Visibility channel.
- In the Comm Config, add an item to Quick Ping Overrides. Set Actor Tag to the same tag and fill Override Entry with its own ID, name, icon and sound.
For a moving actor in multiplayer, enable Replicates and Replicate Movement on it.
Add a voice line that leaves no marker
Section titled “Add a voice line that leaves no marker”In the entry, switch off Shows In World and Shows On Minimap. Set Sound. Leave Is Personal off to play the line at the sender’s position, or switch it on for a 2D sound.
Change how long a marker stays
Section titled “Change how long a marker stays”Set Lifetime Sec on the entry. The world marker and the minimap marker share the value.
Change the size of the world marker
Section titled “Change the size of the world marker”Open your marker Blueprint (B_SumoPing or your subclass), select the InfoWidget component and change Draw Size. Or enable Draw at Desired Size and size the widget itself.
Show the distance in a different format
Section titled “Show the distance in a different format”In your marker Blueprint, override BP Format Distance. Write your text to Out Text and return true.
BP Format Distance (In Distance Meters) → Multiply (× 1.094) → To Text → Format Text ("{0} yd") → Return (Out Text, true)
Fade the marker with distance
Section titled “Fade the marker with distance”In the marker widget, bind Render Opacity to:
Owning Ping → Get Distance Opacity
Set Fade Start Distance, Fade End Distance and Min Fade Opacity on the marker Blueprint.
Hide the zone name when there is no zone
Section titled “Hide the zone name when there is no zone”In the marker widget, bind Visibility of the zone text:
Owning Ping → Zone Name → Is Empty (Text) → Select (True: Collapsed, False: Self Hit Test Invisible)
Show pings on my own Blueprint minimap
Section titled “Show pings on my own Blueprint minimap”Sumo Comm → On Comm Received (Entry ID, World Location, Target Actor, Sender) → Comm Config → Find Entry By ID (Entry ID) → your minimap: add marker (Icon, Color, World Location, Lifetime Sec)
Show pings on my own C++ minimap
Section titled “Show pings on my own C++ minimap”Implement ISumoMinimapSinkInterface from Sumo Core and register the object with the map subsystem. Entries with bShowsOnMinimap then arrive as FSumoMinimapMarker. The interface is C++ only and has three pure virtual functions: AddMinimapMarker, RemoveMinimapMarker and SetBombMinimapState. The plugin never removes a ping marker itself, so drop each marker when the world time passes its ExpiryTime. Each ping marker has VisibilityRule set to TeamOnly and OwnerTeamID set to the sender’s team.
#include "Map/SumoMapSubsystem.h"
void UMyMinimapSubsystem::OnWorldBeginPlay(UWorld& World){ if (USumoMapSubsystem* Map = USumoMapSubsystem::Get(&World)) { Map->RegisterMinimapSink(this); }}
FGuid UMyMinimapSubsystem::AddMinimapMarker(const FSumoMinimapMarker& Marker){ // Store and draw the marker until Marker.ExpiryTime. // Return a handle for RemoveMinimapMarker.}
void UMyMinimapSubsystem::RemoveMinimapMarker(const FGuid& Handle){ // Remove the marker with this handle.}
void UMyMinimapSubsystem::SetBombMinimapState(const FVector& WorldLocation, ESumoSpikeMinimapVisibility Visibility, uint8 AttackerTeamID){ // Not used by this plugin. Leave empty if your game has no bomb icon.}Play feedback when a ping is rejected for spam
Section titled “Play feedback when a ping is rejected for spam”Set Spam Rejected Sound in the Comm Config for a sound. For HUD feedback:
Sumo Comm → On Ping Rejected (Reason) → Switch on ESumoPingRejectReason → your HUD: show message
Build a wheel with my own look
Section titled “Build a wheel with my own look”- Create a Widget Blueprint with parent class Sumo Comm Wheel Widget.
- Add a Canvas Panel named
SliceContainer. - Optional: add an Image named
WheelBackgroundand give its brush a material with the parametersNumSlices,HoveredSlice,HoverColor,InnerRadiusandOuterRadius. - Create a second Widget Blueprint with parent class Sumo Comm Wheel Slice Widget. Implement BP On Entry Set to show the icon and name, and BP On Hover Changed for the highlight.
- In the wheel widget’s class defaults, set Slice Widget Class to the slice widget.
Create and show the wheel from my own UI manager
Section titled “Create and show the wheel from my own UI manager”Skip Open Wheel and call the widget directly:
Create Widget → Show For Definition (Definition, Sumo Comm) → your manager shows it
key released → Commit Selection → your manager hides it
Commit Selection and Cancel Wheel on the widget never hide or remove it. Cursor and input mode are yours to set.