SlashCo Wiki

SlashCo.LobbyData

SlashCo.LobbyData

Description

A table holding all state for the currently running Lobby, reset by SlashCo.ResetLobbyData whenever the Lobby restarts.

Parameters

number LOBBYSTATE

Internal progress step of the Lobby sequence (readying up, picking a Slasher, briefing, entering the helicopter, etc.).

Default: 0

number Offering

ID of the currently selected OFFERING, or 0 if none is selected.

Default: 0

number VotedOffering

ID of the Offering the current vote is deciding on.

Default: 0

Entity ButtonDoorPrimary

The Lobby's primary item-room door button.

Default: NULL

Entity ButtonDoorPrimaryClose

The button that closes the primary item-room door.

Default: NULL

Entity ButtonDoorSecondary

The Lobby's secondary item-room door button.

Default: NULL

Entity ButtonDoorSecondaryClose

The button that closes the secondary item-room door.

Default: NULL

Entity ButtonDoorItems

The button that opens the item vendor room.

Default: NULL

table Players

Table of players in the Lobby, keyed by player, with their current SlashCo.ReadyState as the value.

Default: {}

table Offerors

Set of players who have offered to pick the current Offering.

Default: {}

boolean ReadyTimerStarted

Whether the countdown to leave the Lobby has already been started.

Default: false

table PotentialSurvivors

Players who readied up as Survivor.

Default: {}

table PotentialSlashers

Players who readied up as Slasher.

Default: {}

table NonPickedPotentialSlashers

Players who wanted to be Slasher but weren't picked once Slashers were assigned - they remain Survivors for the round.

Default: {}

table AssignedSurvivors

Players that were finally assigned the Survivor role.

Default: {}

table AssignedSlashers

Players that were finally assigned the Slasher role.

Default: {}

boolean FinishedPicking

Whether roles have already been assigned for this Lobby.

Default: false

number SelectedDifficulty

The round SlashCo.DifficultyLevel selected for the upcoming round.

Default: SlashCo.DifficultyLevel.EASY

number SurvivorGasMod

Extra/fewer gas cans to spawn, accumulated from the selected Offering.

Default: 0

table SelectedSlasherInfo

Info about the Slasher that will be used for the round's briefing screen, with the fields ID, CLASS, DANGER, NAME and TIP.

string SelectedMap

The map that will be loaded once the Lobby finishes.

Default: sc_summercamp