Overview

WCGASOverflowSubsystem is a World Subsystem that provides utility functions for implementing overflow mechanics in event-triggered Gameplay Abilities. Overflow occurs when damage or healing exceeds target capacity (overkill/overheal), enabling mechanics like chain reactions, shield conversion, and cascading effects. This subsystem is NOT standalone—it provides utilities for use INSIDE abilities that react to overflow events triggered by GAS's native Gameplay Event system.


Purpose

The Overflow Subsystem provides tools for building overflow reaction abilities by offering:


How It Works

Overflow Event Flow

  1. Effect Execution: A UGameplayEffect executes on a target (damage or healing)
  2. Overflow Detection: Execution calculation (UWCGASExecCalc_Damage or UWCGASExecCalc_Healing) detects overflow when magnitude exceeds capacity
  3. Event Dispatch: Execution calculation sends a Gameplay Event with overflow data via GAS's event system
  4. Ability Activation: Pre-granted abilities with matching trigger tags (e.g., Event.Combat.Damage.Overflow) activate automatically
  5. Subsystem Usage: Activated abilities use this subsystem's utilities to extract data, find targets, and apply effects

Typical Usage Pattern

Setup Phase: