How it works
Architecture
Section titled “Architecture” Player Controller └─ USumoCommComponent ──────────── reads ──► USumoCommConfig │ RequestQuickPing ├─ QuickPingDefault (FSumoCommEntry) │ OpenWheel / CommitWheel ├─ QuickPingOverrides[] (tag + FSumoCommEntry) │ ├─ PingWheel ──► USumoCommWheelDefinition │ ├─ CommWheel ──► USumoCommWheelDefinition │ └─ PingWorldActorClass │ ├─ shows ──► USumoCommWheelWidget ──► USumoCommWheelSliceWidget (one per slice) │ ├─ Server_RequestComm ──► server: anti-spam, validation, team filter │ └─ Client_ReceiveComm ──► sound ├─► ASumoPingWorldActor ──► USumoPingWorldWidget └─► USumoMapSubsystem (Sumo Core) ──► your minimap, if anyUSumoCommComponent: the component on the Player Controller. Sends requests, receives pings, presents the wheels.USumoCommConfig: root Data Asset with all callouts, both wheels, validation and anti-spam values.USumoCommWheelDefinition: Data Asset for one wheel: slice count, radii, entries.FSumoCommEntry: one callout: ID, name, icon, color, sound, lifetime, marker flags.USumoCommWheelWidget: base class of a radial wheel. Resolves the hovered slice from the cursor.USumoCommWheelSliceWidget: base class of one slice of a wheel.ASumoPingWorldActor: the marker in the world. Spawned locally on each receiving client.USumoPingWorldWidget: base class of the marker’s widget, with a reference to its marker actor.
The path of a ping
Section titled “The path of a ping”- The local player calls
RequestQuickPing, or commits a wheel slice, which callsRequestWheelComm. - The client traces from the camera on the Visibility channel, up to
QuickPingTraceDistance. The hit point, or the end of the trace, is the ping location. - The client checks the hit actor against
QuickPingOverrides. On a match the actor becomes the target and its location the ping location. For a quick ping the override’s entry also replaces the default entry. - The client calls
Server_RequestCommwith the entry ID, the location and the target actor. - The server runs anti-spam, resolves the entry by ID and validates the location and the target.
- The server calls
Client_ReceiveCommon every Player Controller that passes the team rule, including the sender. - Each receiving client resolves the entry by ID in its own Comm Config, plays the sound, publishes the minimap marker and spawns the world marker.
OnCommReceivedfires.
Only the entry ID travels over the network. Each machine needs the same Comm Config to resolve it.
Entries
Section titled “Entries”An entry is one callout. Three settings decide what receivers get:
Soundplays for every receiver. WithbIsPersonaloff it is played at the sender’s pawn, otherwise as a 2D sound.bShowsInWorldspawns a world marker forLifetimeSec.bShowsOnMinimappublishes a minimap marker forLifetimeSec.
The two marker flags are independent, and bShowsInWorld is on by default. A voice line that marks nothing needs both switched off.
The server reads each player’s team with ISumoTeamProviderInterface::GetTeamID on the Player State. A Player State without the interface reads as 255, which means unassigned.
| Sender | Receiver | Delivered |
|---|---|---|
| Team N | Team N | Yes |
| Team N | Another team | No |
| Team N | Unassigned (255) | No |
| Unassigned (255) | Anyone else | No. The sender alone receives it |
With bTreatUnassignedAsFFA enabled on the component, an unassigned player sends to and receives from everyone.
Context pings
Section titled “Context pings”A quick ping becomes a context ping when the trace hits an actor whose Actor Tags contain the full name of an override’s ActorTag. The override’s entry is sent instead of QuickPingDefault, the ping location is the actor’s location, and the world marker follows the actor.
The server accepts a target only if it carries an override tag and is not an enemy pawn. A rejected target is removed and the ping is sent as a plain location ping.
Wheels
Section titled “Wheels”OpenWheel creates the wheel widget on first use and keeps it. It binds the widget to the Wheel Definition, makes it visible, switches to Game and UI input and centres the cursor. CommitWheel sends the hovered slice and restores Game Only input with the cursor hidden.
One wheel is open at a time. While one is open, OpenWheel for the other returns null. CommitWheel does nothing unless its argument is the open wheel.
Slice 0 is at the top and the rest follow clockwise. A cursor inside DeadZoneRadius selects nothing, and committing there cancels.
SliceCount sets the number of slices. Entry 0 goes to slice 0, entry 1 to slice 1, and so on. Entries beyond SliceCount are not shown. A slice without an entry, or with an entry without an ID, cancels when committed.
World markers
Section titled “World markers”Each receiving client spawns its own ASumoPingWorldActor. The actor is not replicated. Its widget component draws in screen space, so the marker keeps its size on screen at any distance.
A client holds one marker per entry ID. A new ping of the same entry destroys the previous marker of that entry, whoever sent it.
A marker with LifetimeSec above 0 destroys itself when the time runs out. With 0 it stays until the same entry is pinged again.
Anti-spam
Section titled “Anti-spam”The server keeps a small state per player and applies three layers, with values from the Comm Config:
- Cooldown. While a cooldown runs, every ping is rejected with
CooldownLocked. - Minimum gap. A ping sooner than
MinPingIntervalafter the last one is dropped without feedback. - Burst limit. After
MaxConsecutivePingsaccepted pings, the next one startsSpamCooldownand is rejected withBurstExhausted.
The burst counter resets after ConsecutivePingResetTime without a ping. A ping counts toward the burst as soon as it passes the three layers, even when validation drops it afterwards.
Performance
Section titled “Performance”USumoCommComponentdoes not tick and has no replicated properties.- A ping costs one reliable server RPC and one reliable client RPC per receiver. The payload is an
FName, anFVectorand two object references. - Icons and sounds are soft references, loaded asynchronously on first use.
ASumoPingWorldActorticks while it exists: target follow, distance and zone name.- A wheel widget ticks while it is visible. A closed wheel is collapsed.
Multiplayer
Section titled “Multiplayer”- The component must be on the Player Controller. All client functions return early on a non-local controller.
- The distance and line-of-sight checks run only while the sender has a pawn.
- Team filtering happens on the server. Clients outside the team never receive the RPC.
Server_RequestCommusesWithValidation, and the validate function always returns true, so a late or implausible request does not disconnect the client. Implausible requests are dropped or downgraded in the implementation.- World markers and wheel widgets exist only on clients.