SlashCo Wiki

SlashCo.CurRound

SlashCo.CurRound

Description

A table holding all state for the currently running (or upcoming) round, reset by SlashCo.ResetCurRoundData at the start of every round.

For backwards compatibility, reading/writing the field SlashCo.CurRound.Helicopter actually redirects to the entity index of SlashCo.Helicopter, and the old Offering field names SO/DO/SatO are redirected to Singularity/Duality/Satiation on SlashCo.CurRound.OfferingData.

Parameters

number Difficulty

The round's SlashCo.DifficultyLevel.

Default: SlashCo.DifficultyLevel.EASY

table ExpectedPlayers

SteamID64s of the players expected to load into the round.

Default: {}

table DisconnectedPlayers

Players that disconnected during the round.

Default: {}

boolean AntiLoopSpawn

Safety flag used while selecting spawn points, to avoid infinite loops when no valid spawn can be found.

Default: false

table OfferingData

Data about the currently selected Offering, with the fields CurrentOffering (the Offering ID), OfferingName, OFFERING.GasCanMod, Singularity, Duality and Satiation (Offering-specific modifiers) and ItemMod (extra/fewer items to spawn).

table SlasherData

Tracks who is playing, with the fields AllSurvivors and AllSlashers (all players loaded for the round, dead or alive) and GameReadyToBegin.

number GameProgress

How much fuel/batteries have been put into the generators, from 0 to 10. -1 means the round hasn't started tracking progress yet.

Default: -1

table SurvivorData

Round-wide Survivor data, currently only GasCanMod (decremented when a Survivor picks a gas can as their starting item).

table SlasherEntities

A Slasher's unique per-round entities, such as Bababooey's clones.

Default: {}

table ExposureSpawns

Only used by the legacy map config test tool.

Default: {}

table Items

Entity indexes of items that have been spawned or dropped this round.

Default: {}

table SlashersToBeSpawned

Slashers still waiting to be spawned.

Default: {}

table Slashers

SteamID64-keyed table of the round's Slasher assignments, each entry having SlasherID and SLASHER.GasCanMod - see SlashCo.SelectSlasher.

Default: {}

number GasCanCount

How many gas cans should be spawned this round.

Default: 8

number ItemCount

How many items should be spawned this round.

Default: 6

boolean roundOverToggle

Internal flag toggled once the round-over sequence has run.

Default: false

Vector HelicopterSpawnPosition

Where the helicopter spawns for the round's escape sequence.

Default: vector_origin

Vector HelicopterInitialSpawnPosition

The helicopter's spawn position before any adjustments.

Default: vector_origin

Vector HelicopterTargetPosition

Where the helicopter is currently flying towards.

Default: vector_origin

table HelicopterRescuedPlayers

Players that have already boarded the escape helicopter.

Default: {}

boolean EscapeHelicopterSummoned

Whether the escape helicopter has been summoned yet.

Default: false

boolean DistressBeaconUsed

Whether the distress beacon has already been used this round.

Default: false

number Helicopter

Entity index of the current round's helicopter, or 0 if none exists. This is a virtual field backed by SlashCo.Helicopter.