
Parent Class: BP_BaseGroundSegment
Purpose: This segment presents the player with two gates, each offering a mathematical operation (e.g., +5, x2, -3, /2) that will modify the player's current follower count. The player chooses one gate to pass through.
Key Components:
Left_Trigger (BoxCollisionComponent): Trigger for the left gate.Right_Trigger (BoxCollisionComponent): Trigger for the right gate.L_Text (TextRenderComponent): Displays the math operation for the left gate.R_Text (TextRenderComponent): Displays the math operation for the right gate.Key Variables for Configuration:
bIsFirstSegment (Boolean, set by Game Mode): If true, both gates are forced to be positive 'Add' operations.MinRandomValue (Integer): Minimum value used for randomized operations.MaxRandomValue (Integer): Maximum value used for randomized operations.MaxPlayerCrowdSize (Integer, often referenced from Game Mode or Player): Used to clamp the result of operations.Key EventGraph Logic & Functions:
Event InitializeSegment (from BPI_SegmentInitialization)
IsFirst boolean from the Game Mode when spawned.bIsFirstSegment variable.RandomizeAndDisplayOperations to set up the gate math.