Developer settings and combat data
This page covers the configuration objects an attack reads as it moves from a request into EffectContext and then into an attack result. Runtime flow is in Combat Flow and attack results and Attack definitions and requests.
UGCS_DeveloperSettings
A project-level UDeveloperSettings with Config=Game. Its Details name is Generic Combat System Developer Settings. Read it with the Blueprint node Get GCS Developer Settings or UGCS_DeveloperSettings::Get(). It only exposes two global lookup / debug switches. It does not own Combat Flow, processors, or attack tables.
After edits, check [/Script/GenericCombatSystem.GCS_DeveloperSettings] in DefaultGame.ini. The character mesh tag must match this value.
FGCS_AttackDefinition
A Data Table row (display name GCS Attack Definition). Melee requests, bullet definitions, and the function library all read “what to apply on hit” from here. Lifecycle: authored in a table → a request or bullet carries the row handle → applying a GE writes the handle into FGCS_ContextPayload_Combat → Combat Flow / processors read it back.
TargetEffectClass and TargetEffectContainer are not exclusive. When both are valid they apply independently, and the handle is written into each spec’s EffectContext. AttackTags are appended as dynamic AssetTags. SetByCallerMagnitudes only writes entries whose Value > 0.
Melee stores the row handle on UGCS_AttackRequest_Melee. Ranged hangs the same row on FGCS_BulletDefinition.AttackDefinition. The bullet system builds GEs on the authority and calls AddAttackHandleToGameplayEffectSpec.
Attack requests
UGCS_AttackRequest_Base is an Abstract, Const, DefaultToInstanced, EditInlineNew UObject. The base GetAttackDefinitionHandle is empty; concrete types must supply a row handle. GetAttackDefinition() reads the table and returns a default empty definition when the row is invalid.
UGCS_AttackRequest_Melee
An animation window or Collision Trace Task carries this request while the window is active. TracesToControl decides which traces start and stop; AttackDefinitionHandle points at an FGCS_AttackDefinition row.
UGCS_AttackRequest_Bullet
A bullet request also decides spawn origin, aim, and whether a lock is required. GetTargetingTransform, GetWeaponTargetingSourceLocation, and GetPawnTargetingSourceLocation can be overridden. Socket fields hide when the source is CameraTowardsFocus. AI or non-locally-controlled shots spawn on the authority and skip local trajectory prediction.
GetAttackDefinitionHandle forwards to the bullet definition’s AttackDefinition. Settlement GEs still come from that row, not from a second copy on the request.
FGCS_AttackResult
One result produced by Combat Flow after an attribute PostGameplayEffectExecute (and after a local predicted execute when the predictive-execute component is present). Authoritative results replicate through the FGCS_AttackResultContainer FastArray. Predicted results stay local until a matching PredictionKey arrives and sets bWasPredicated.
The container has a size cap (default 10 on the component). It is a history buffer, not an authoring asset. Base HandleGameplayEffectExecute is empty. A project Combat Flow must fill the result from the attribute callback and call RegisterAttackResult.
FGCS_ContextPayload_Combat
Combat payload attached to a GGA EffectContext. The function library writes table and row names when applying an attack definition. The predictive-execute component writes PredictionKey and bIsPredictingContext. Ability System Globals must be the GGA class, or this payload is never allocated.
SetTaggedValue / GetTaggedValue overwrite or read by tag. A missing value returns 0.
UGCS_AbilityActionSetSettings
A DataAsset (display name GCS Ability Action Set). It is not Developer Settings and not a character component. QueryAbilityActionsByContext on the combat entity typically hands the current weapon or ability context to this asset and receives the montage and optional Cost GE for this move.
SelectBestAbilityActions(SourceTags, TargetTags, AbilityTags, OutActions) picks the first ActionSets entry whose AbilityTag MatchesAny(AbilityTags). It then walks Layered; the first layer whose Source and Target queries both match supplies Actions. Otherwise it falls back to that set’s default Actions. No AbilityTag match returns false.
FGCS_AbilityAction
The same struct also has StartSection, bStopWhenAbilityEnds, and root-motion scale. Layered overrides default Actions with Source / Target TagQueries, which fits “play a different montage against an airborne target.”
UGCS_GEComponent_PredictivelyExecute
An Effect Component on an instant Gameplay Effect. When AutonomousProxy applies the effect locally, it writes the current PredictionKey into the combat payload, sets bIsPredictingContext, then calls PredictivelyExecuteEffectSpec. Local attribute callbacks therefore enter Combat Flow and produce a predicted FGCS_AttackResult.
Local bullet prediction only predicts trajectory and presentation. It does not use this GE path. For local melee hit feedback, add this component to the target Instant GE and keep processors on the matching ExecutePolicy. See Processors and combat hooks.