Skip to content

How it works

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 any
  • USumoCommComponent: 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.
  1. The local player calls RequestQuickPing, or commits a wheel slice, which calls RequestWheelComm.
  2. 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.
  3. 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.
  4. The client calls Server_RequestComm with the entry ID, the location and the target actor.
  5. The server runs anti-spam, resolves the entry by ID and validates the location and the target.
  6. The server calls Client_ReceiveComm on every Player Controller that passes the team rule, including the sender.
  7. 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. OnCommReceived fires.

Only the entry ID travels over the network. Each machine needs the same Comm Config to resolve it.

An entry is one callout. Three settings decide what receivers get:

  • Sound plays for every receiver. With bIsPersonal off it is played at the sender’s pawn, otherwise as a 2D sound.
  • bShowsInWorld spawns a world marker for LifetimeSec.
  • bShowsOnMinimap publishes a minimap marker for LifetimeSec.

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.

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.

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.

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.

The server keeps a small state per player and applies three layers, with values from the Comm Config:

  1. Cooldown. While a cooldown runs, every ping is rejected with CooldownLocked.
  2. Minimum gap. A ping sooner than MinPingInterval after the last one is dropped without feedback.
  3. Burst limit. After MaxConsecutivePings accepted pings, the next one starts SpamCooldown and is rejected with BurstExhausted.

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.

  • USumoCommComponent does 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, an FVector and two object references.
  • Icons and sounds are soft references, loaded asynchronously on first use.
  • ASumoPingWorldActor ticks while it exists: target follow, distance and zone name.
  • A wheel widget ticks while it is visible. A closed wheel is collapsed.
  • 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_RequestComm uses WithValidation, 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.