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
- 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 Name | Parameters | Description |
|---|---|---|
| playerCountChanged | attackersCount, defendersCount | Fired when the player count changes |
| pointsChanged | attackerPoints, defenderPoints | Fired when the points change |
| captureProgressChanged | newCaptureProgress | Fired when the capture progress changes |
| stateChanged | newState | Fired when the terminal's state changes |
| endEvent | winner | Fired when the terminal ends |
| startEvent | Fired when the terminal starts | |
| partialUpdate | A list of changed properties, used for replication |