Skip to main content

Default terminal

Metadata

Name: Default Terminal
Description: Default dualcap (can be used for rollback / reset )
Version: v2.0
Author: Omega77073
Compatibility: >=2.0.0
Supports debug: true

A simple dualcap terminal that can be used for rollback or reset.

Installation

1. Get the model

Find a file with the model here

2. Move the model

Place the model in Main folder > Addons

3. In the Server script add before loading addons:

wrapper:LoadTerminal(script.Parent.Addons["Terminal-Default"])

4. Configure the terminal

Configure the terminal

  • Set the terminal part to a volume representing the zone of the terminal.
  • Edit default settings as you wish by editing the attributes of Configuration > Default configuration values

You're done !

Components

-- See the DefaultComponents module script for reference
function components.updatePoints(terminal: terminal, tickRate: number): { attackerPoints: number, defenderPoints: number }

function components.getPlayerCount(terminal: terminal,tickRate: number): { AttackersCount: number, DefendersCount: number }

function components.computeState(terminal: terminal): "locked" | "attacker" | "defender" | "neutral"

function components.updateCaptureProgress(terminal: terminal, tickRate: number): number

function components.getWinner(terminal): "attackers" | "defenders" | "draw" | nil

Events

Event NameParametersDescription
playerCountChangedattackersCount, defendersCountFired when the player count changes
pointsChangedattackerPoints, defenderPointsFired when the points change
captureProgressChangednewCaptureProgressFired when the capture progress changes
stateChangednewStateFired when the terminal's state changes
endEventwinnerFired when the terminal ends
startEventFired when the terminal starts
partialUpdateA list of changed properties, used for replication