“Scoring a goal in Chaos Goal is more than increasing a number. It triggers a complete gameplay sequence involving validation, score updates, replay presentation, player reset, and match continuation.”

Goal Folder Tutorial

https://youtu.be/48gOY54yWAM

Goal System Overview

Ball Enters Goal Zone ↓ Goal Is Validated ↓ Scoring Team Is Determined ↓ Team Score Is Updated ↓ Active Gameplay Is Stopped ↓ Goal Replay Begins ↓ Players and Ball Are Reset ↓ Ready / Go Countdown ↓ Gameplay Resumes

The system is server-authoritative. Clients can display the result, but the server is responsible for confirming the goal and updating the match state.

Responsibility Description
Goal Detection Detects when the ball crosses a valid Goal Zone
Team Validation Determines which team receives the point
Score Update Increases the correct replicated team score
Duplicate Prevention Prevents the same goal from being counted multiple times
Gameplay Lock Temporarily stops normal gameplay after scoring
Replay Trigger Starts the Goal Replay sequence
Arena Reset Returns players and the ball to their starting state
Match Resume Starts the next countdown and resumes gameplay

Goal Zone

The Goal Zone is the gameplay actor responsible for detecting a valid goal.

It normally uses a collision volume placed inside or behind the physical goal.

When the ball overlaps this volume, the Goal Zone sends the scoring event to the authoritative match logic.

The Goal Zone should only respond to:

The active match ball.

Valid scoring conditions.

Goals that have not already been processed.

Important

The Goal Zone should not increase the score directly on every client. It should notify the server, which then validates and processes the goal.

Determining the Scoring Team

1.webp

The team receiving the point is determined by the goal that the ball entered.

For example: