Skip to main content

Domination terminal

Metadata

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

A multipoint version of dualcap terminal that can be used for multipoint rollback, multipoint reset or hardpoint.

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-Domination"])

4. Configure the terminal

Configure the terminal

  • Inside the Configuration > Terminals folder, add as many object values as you want points to capture.
  • Set their value to a volume representing the zone of each point, and name them as you wish.
  • 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,subterminal: any,tickRate: number): { AttackersCount: number, DefendersCount: number }

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

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

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

Events

Event NameParametersDescription
playerCountChangedattackersCount, defendersCount per subterminalFired when the player count changes on a subterminal
pointsChangedattackerPoints, defenderPointsFired when the points change
captureProgressChangednewCaptureProgress per subterminalFired when the capture progress changes
stateChangednewState per subterminalFired when the terminal's state changes
endEventwinnerFired when the terminal ends
startEventFired when the terminal starts
partialUpdateA list of changed properties, used for replication