Combo, weapon, and targeting
This page covers how a combo table picks a move, how a weapon Actor carries traces and a table, and how targeting and team IDs replicate. Concepts are in Combos, weapons, and the combat entity and Targeting and teams. Steps are in Configure combo and weapon.
FGCS_ComboDefinition
A Data Table row. On the locally controlled machine, UGCS_ComboAbility walks the table from the combat entity’s GetComboDefinitionTable(), filters by current ComboStep, event tag, tag queries, and an optional activation test, then TryActivateAbility on the first matching row. The table comes from the combat entity, not from the combo ability itself.
Lifecycle: a weapon or pawn implements GetComboDefinitionTable → input becomes a Gameplay Event → StartCombo / AdvanceCombo → SelectComboDefinition → activate the child ability and UpdateComboStep. When the child ends with no next step, ResetCombo clears the step to zero.
DevDescription is editor-only. Selection runs on the locally controlled machine. The step replicates through the combat component.
AGCS_WeaponActor
Default Actor implementation of IGCS_WeaponInterface. Abstract; subclass it. bWeaponActive replicates. On activate, the project should call RefreshTraceInstance, which adds traces from TraceDefinitions on the owning pawn’s UGCS_TraceSystemComponent and uses the weapon as SourceObject. Default GetPrimitiveComponent looks up a mesh on the owner by WeaponMeshTagName, not on the weapon Actor itself.
TraceHandles is a VisibleInstanceOnly runtime array. GCS_GetTargetingStartTransform, GCS_ToggleTargeting, and ToggleTrail are interface hooks: the first two feed bullet requests as a weapon-side origin or aim toggle; ToggleTrail is presentation only, not a collision Trace.
UGCS_TargetingSystemComponent
Lock-on and candidate collection. The owner is the Targeting SourceActor; the component is the SourceObject. TargetedActor replicates COND_OwnerOnly. Authority also pushes ClientSetTargetedActor; AutonomousProxy requests with ServerSetTargetedActor. PotentialTargets is not replicated and refreshes locally on Authority and AutonomousProxy. Combat code usually reads the same lock through GetCombatTargetActor.
CanBeTargeted can be overridden. StaticSwitchToNewTarget steps left or right through candidates. Bullet GetTargetActor and emitter TargetingSystem may read this lock. Do not treat a SimulatedProxy write to TargetedActor as an authoritative lock.
Team: FGenericTeamId
UGCS_CombatTeamAgentComponent implements IGCS_CombatTeamAgentInterface and replicates CombatTeamId. SetCombatTeamId is authority-only. bAssignTeamIdToController defaults to true: the authority also copies the ID onto the owning Controller when that controller implements a team interface. GCS:FilterTask (Affiliation) looks at the CombatTeam interface first, then GenericTeam. TeamId 255 means unassigned; the filter ignores unassigned targets by default. For debug cross-team hits, use UGCS_DeveloperSettings::bDisableAffiliationCheck. Do not rewrite team IDs in shipping config.
Built-in Targeting Tasks
Add these by display name in a TargetingPreset Selection / Filter list.
Custom shapes or tasks are in Interfaces and custom instances. Combo advance hooks are in Processors and combat hooks.